AutoCollect Coins
Key Required

AutoCollect Coins

GODS WILLAuraAura 6.2K views 82 executesUpdated Aug 2, 2023
5.0/ 5(1 votes)
10100% Positive
Lua Script•22 lines (772 chars)
-- Get the local player
local player = game.Players.LocalPlayer

-- Wait until the character is loaded
while not player.Character do
    wait()
end

-- Get the character's humanoid root part (this is typically the part around which the character is built)
local characterRootPart = player.Character:WaitForChild("HumanoidRootPart")

-- Get the "Coins" folder from the Workspace
local coinsFolder = game:GetService("Workspace").Coins

-- Loop through each item in the "Coins" folder
for _, item in pairs(coinsFolder:GetChildren()) do
    -- Check if the item is a MeshPart and named "Coins"
    if item:IsA("MeshPart") and item.Name == "Coins" then
        -- Teleport the coin to the player's current position
        item.Position = characterRootPart.Position
    end
end

Features & Information

autocollects the coin tp the coins to you join my discord server or else https://discord.gg/MpY7h3WqNh

Community Comments (0)

No comments yet for this script.

More Scripts for GODS WILL