hi im still new to this so be kind please.
I'm just testing around and messing around.
how is this?
if child.Value == 1 then child.Value = 2 end
its not working, so i'm here asking what i can improve on.
Thanks
hi im still new to this so be kind please.
I'm just testing around and messing around.
how is this?
if child.Value == 1 then child.Value = 2 end
its not working, so i'm here asking what i can improve on.
Thanks
while true do
if child.Value == 1 then
child.Value = 2
end
wait(0.1)
end
THIS ANSWER SUCKS PLEASE DO NOT USE IT I SWEAR TO GOD
You should also make use of loops to do something that you want to do. It's going to repeat it.
No, you NEVER use loops for things like that. You should also indent your code, as it's illegible unindented. Use a Changed event instead of a loop. Stop teaching bad practice.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
this isnt a request, please dont give me a working script, just tell me how i can improve, thanks!
I reccommend you to put a wait inbetween of the switching values.