so this is what ive tried
local count = 0
local heartbeat = game:GetService("RunService").Heartbeat:Connect(function()
if count >= 300 then
heartbeat:Disconnect()
end
count = count + 1
end)
but is says that heartbeat is unknown help?
so this is what ive tried
local count = 0
local heartbeat = game:GetService("RunService").Heartbeat:Connect(function()
if count >= 300 then
heartbeat:Disconnect()
end
count = count + 1
end)
but is says that heartbeat is unknown help?
local heartbeat = game:GetService("RunService").Heartbeat:Connect(function()
Simply remove the "local"
heartbeat = game:GetService("RunService").Heartbeat:Connect(function()
wow it worked at first i looked over this i thought u said take out the entire local heartbeat = good thing i realized that wasn't what you meant
hello
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
what i want it to do is that i want it to go 300 times