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

How do I create a brick that turns to a random colour then stops?

I'm pretty new to scripting and I need a little bit of help. How can I create a brick that when you touch it, it turns to a random colour then stops?

Thanks!

Curly.

2 comments

1

What do you mean by, 'then stops'?

0

It turns to a random colour then stays at that random colour until touched again.

1 answer

Something like this:

script.Parent.Touched:connect(function()
	script.Parent.BrickColor = BrickColor.Random()
end)

Please upvote and accept answer if it works!

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