Find any script for Roblox

Enter the name of the game or script.

Script – Crown Divers

Thank you for using our website
Your script:

NO KEY

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Coins = workspace:WaitForChild("Coins")
local player = Players.LocalPlayer
local HRP = player.Character:WaitForChild("HumanoidRootPart")
local function collectCoin(coin)
    if coin:IsA("BasePart") then
        coin.CFrame = HRP.CFrame
        task.wait()
    end
end
RunService.Heartbeat:Connect(function()
    for _, coin in ipairs(Coins:GetChildren()) do
        collectCoin(coin)
    end
end)
Coins.ChildAdded:Connect(collectCoin)