Why does the part I specifically touched not change to the color red?
part = script.Parent
function ontouched(hit) if game.Player.Name == "phoenix" then part.BrickColor = BrickColor.new("Really Red")
end
end
part.touched:connect(ontouched)
first off, you must type in your full name for it to work "phoenix_ruby". Second, game.Player dos not exist. I think you were trying to use this
if hit.Parent.Name == "phoenix_ruby" then --do stuff end