pinkball
|
  |
| Joined: 25 Mar 2009 |
| Total Posts: 152 |
|
|
| 24 Jan 2012 01:05 PM |
Fix please.
function onTouched(hit) if hit.Name == "TycoonBrick" then hit.Name = "UpgradedTycoonBrick" if hit.Changecolor.Part ="Really blue" end end
script.Parent.Touched:connect(onTouched)
Tips are welcome. |
|
|
| Report Abuse |
|
|
| 24 Jan 2012 01:17 PM |
"Fix please".. That's no good way to ask us to help you. ;) Try with "Could anyone please have a quick look at this, then eventually help me fix it - or point out what might be wrong?"
Anyway, since we're nice: if hit.Changecolor.Part ="Really blue" -- This line is the troublesome one.
Therefore:
function onTouched(hit) if hit.Name == "TycoonBrick" then hit.Name = "UpgradedTycoonBrick" hit.BrickColor = BrickColor.new("Really blue") end end
script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|