Yeah, I want to change a brick color when hit by bulletThis is my script for now...
function onTouched(hit) if hit.Parent.Name=="Bullet" then script.Parent.BrickColor = BrickColor.new("Really red") end end script.Parent.Touched:connect(onTouched)
But it doesnt do anything, Help me.
function onTouched(hit) if hit.Name=="Bullet" then script.Parent.BrickColor = BrickColor.new("Really red") end end script.Parent.Touched:connect(onTouched)
The bullet is a part not a model so only but 1 parent in line 2.