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.
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.
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.
2 comments
What do you mean by, 'then stops'?
It turns to a random colour then stays at that random colour until touched again.