Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I create a script that always runs, without lagging the server?

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)

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.