Hi, I don't know how to repeat a pcall infinitely. Does anyone know?
pcall(function(Succes, Error)
StarterGui:SetCore("ResetButtonCallback", false)
if Error then
StarterGui:SetCore("ResetButtonCallback", false)
end
end)
Hi, I don't know how to repeat a pcall infinitely. Does anyone know?
pcall(function(Succes, Error)
StarterGui:SetCore("ResetButtonCallback", false)
if Error then
StarterGui:SetCore("ResetButtonCallback", false)
end
end)
Simpy use a while true do loop:
while true do
wait(0.1) -- Add a wait so the script doesn't go too fast and break
-- All the code below will run every 0.1 seconds because of the wait()
local success, failed = pcall(function()
StarterGui:SetCore("ResetButtonCallback", false)
end)
if failed then
StarterGui:SetCore("ResetButtonCallback", false)
end
end
I hope this was helpful!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Use the while true do loop