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

Can you help me with my thing?

Please be nice and dont be mean to the code, https://code.stypi.com/neontails190/Game%20Block%20V1.lua I need help with the brickcolor random thing. Any one can help? Please don't mess with it. I'm gonna backup.

2 comments

0

Its lagging for me while i do the brickcolor random :/

1

Don't use stypi for your code -- just include it in the post! If you absolutely must, using something like Hastebin which is much easier to read, locks your original, and is clean and fast to load.

1 answer

You forgot a 'wait' function.

while true do
	GB.BrickColor=BrickColor.Random()
	wait()
end

A 'while' loop will more than likely, if it hasn't already, crash Roblox if you did not put a wait in it.

2 comments

0

I am under the impression that "wait()" is a function, not a method.

0

Mm, updated. Thank you.

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