Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you help me with my thing?

Asked by 10 years ago

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.

0
Its lagging for me while i do the brickcolor random :/ Rickastley5888 0 — 10y
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. BlueTaslem 18071 — 10y

1 answer

Log in to vote
1
Answered by
Redbullusa 1580 Moderation Voter
10 years ago

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.

0
I am under the impression that "wait()" is a function, not a method. duckwit 1404 — 10y
0
Mm, updated. Thank you. Redbullusa 1580 — 10y
Ad

Answer this question