Miksir13
|
  |
| Joined: 22 Nov 2015 |
| Total Posts: 131 |
|
|
| 04 Oct 2017 10:05 AM |
I want a part to change it's color & material, When a player steps on it. But it doesn't seem to work. Can somebody fix this?
function onTouch(part) script.Parent.BrickColor = "New Yeller" script.Parent.Material = "Neon" end
script.Parent.Touched:connect (onTouch) |
|
|
| Report Abuse |
|
EvanHolt
|
  |
| Joined: 06 Sep 2008 |
| Total Posts: 1264 |
|
|
| 04 Oct 2017 11:16 AM |
Use this instead:
function onTouch(part) script.Parent.BrickColor = BrickColor.new("New Yeller") script.Parent.Material = Enum.Material.Neon end
script.Parent.Touched:connect (onTouch)
[ After this tub and the next tub, there're only two tubs left! ] |
|
|
| Report Abuse |
|