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

attempt to index local bool a boolean value ERROR Help?

1 answer

✓ Accepted answer

There are no events for variables. You have to make an infinite loop to see if it is changed or not.

while wait(0.5) do
	local Val = Bool
	wait(0.5)
	if Val ~= Bool then
		--Do stuff
	end
end)

4 comments

0

so this script is will work? and its infinite wol?

0

infinite loop* one more thing what ~= means?

0

That script will error unexpected ")" near lol. Also, you are already waiting .5 seconds on line 3, might as well make while wait while true

0

so give me working script..

This discussion is preserved as it was. New answers, comments, and votes are closed.