When you step on it, the brick changes color. Is it correct?
H = game.Workspace.Part
function onTouch(Part)
H.BrickColor.new("Bright red")
end
script.Parent.Touched:connect(onTouch)
When you step on it, the brick changes color. Is it correct?
H = game.Workspace.Part
function onTouch(Part)
H.BrickColor.new("Bright red")
end
script.Parent.Touched:connect(onTouch)
Include BrickColor.
H = game.Workspace.Part
function onTouch(Part)
H.BrickColor = BrickColor.new("Bright red")
end
H.Touched:connect(onTouch)
This discussion is preserved as it was. New answers, comments, and votes are closed.