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

why isn't my BrickColor changing?

Asked by 5 years ago

my script

local part = script.Parent

part.Touched:Connect(function()

part.BrickColor = "Cyan"

end)
0
change part.BrickColor = "Cyan" to part.BrickColor = BrickColor.new("Cyan") Gameplayer365247v2 1055 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago
part.BrickColor == "Cyan"

What you gave was a string, it expects for you to give it a BrickColor to fix this script you should change it to

part.BrickColor == BrickColor.new("Cyan")
0
oops typo howlongcanmynamebe0 47 — 5y
Ad

Answer this question