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

Can someone give me some verification for a little script?

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

2 comments

0

this isnt a request, please dont give me a working script, just tell me how i can improve, thanks!

0

I reccommend you to put a wait inbetween of the switching values.

1 answer

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

2 comments

0

You should also make use of loops to do something that you want to do. It's going to repeat it.

0

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.