https://imgur.com/a/UxiPGfS How to Fix this Error? everything what i need to show is in link.
✓ 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.

1 comment
include your code in your question