local player = game.Players.LocalPlayer

-- Function to bring each part in the CollectibleMoney group to the player's torso
local function bringCollectibleMoneyToTorso()
    local character = player.Character or player.CharacterAdded:Wait()
    local torso = character:WaitForChild("HumanoidRootPart")

    -- Continuously check for new parts
    while true do
        local collectibleMoneyFolder = workspace:FindFirstChild("CollectibleMoney")

        if collectibleMoneyFolder then
            for _, part in ipairs(collectibleMoneyFolder:GetChildren()) do
                if part:IsA("Part") then
                    -- Move the part to the player's torso position
                    part.Position = torso.Position
                end
            end
        else
            print("CollectibleMoney folder not found in workspace.")
        end
        
        wait(0.1) -- Adjust the wait time as needed to prevent excessive looping
    end
end

-- Connect the function to the CharacterAdded event
player.CharacterAdded:Connect(function()
    bringCollectibleMoneyToTorso()
end)

-- Initial call to bring parts if the character already exists
if player.Character then
    bringCollectibleMoneyToTorso()
end

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: