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

Color changing brick?

Asked by 10 years ago

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)

1 answer

Log in to vote
1
Answered by
Dummiez 360 Moderation Voter
10 years ago

Include BrickColor.

H = game.Workspace.Part

function onTouch(Part)
H.BrickColor = BrickColor.new("Bright red")
end

H.Touched:connect(onTouch)
Ad

Answer this question