The title states all. I'm trying to find out how to make a script always run (and by that, always check an IntValue in realtime to see if it changes)
✓ ANSWER ACCEPTED
How do I create a script that always runs, without lagging the server?
1 answer
✓ Accepted answer
You can make a script that runs every time the IntValue changes.
local IV = script.Parent.IntValue -- You can change this. Just write the IntValue's location.
function blah()
-- Write code here.
end
IV.Changed:connect(blah) -- Activates when the IntValue changes.
If you just write it like that, then it should work.
This discussion is preserved as it was. New answers, comments, and votes are closed.
