script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
part = game.Workspace["Change1"]
part.BrickColor = BrickColor.new("Navy Blue")
end
end)
COMMUNITY QUESTION
How do I make it so that this color is random?
3 answers
script.Parent.Touched:connect(function(hit)
2
if hit.Parent:findFirstChild("Humanoid") then
3
part = game.Workspace["Change1"]
4
part.BrickColor = BrickColor.Random()
5
end
6
end)
^Tip for above, If you hover over the code, two icons appear. One of them is to copy. That might help you so you dont have 2 or 3 or 4, 5, 6..
game.Workspace.Part.BrickColor = BrickColor.Random()
This discussion is preserved as it was. New answers, comments, and votes are closed.
