|
| 05 Feb 2014 11:33 PM |
print("This is a tycoon kit from legocitymovie...") I have this tycoon kit and I made this script: cash = script.Parent.Parent.Cash
function onTouched(hit) if hit.Name == "Money" then hit:remove() cash.Value = cash.Value + 5 elseif hit.Name == "UpgradedTycoonBrick" then hit:remove() cash.Value = cash.Value + 50 end end
script.Parent.Touched:connect(onTouched)
This script doesn't work, so anyone else know how to make a block turn into money? |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 05 Feb 2014 11:38 PM |
cash = script.Parent.Parent.Cash
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Money") ~= nil then hit.Parent:Destroy() cash.Value = cash.Value + 5 elseif hit.Parent:FindFirstChild("UpgradedTycoonBrick") ~= nil then hit.Parent:Destroy() cash.Value = cash.Value + 50 end end end) --this might be 'end end)', try that if it doesn't work the first time
|
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 11:51 PM |
| That doesn't delete the block |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2014 11:54 PM |
| I really need this script into my tycoon! Please help me! |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2014 07:41 AM |
| Bump. I really need help! PPPPPPPLLLLLLEEEEEAAAAASSSSEEEE? |
|
|
| Report Abuse |
|
|
| |
|