11076
|
  |
| Joined: 16 Mar 2010 |
| Total Posts: 649 |
|
|
| 13 Jul 2013 04:46 PM |
I was making a tycoon, and when I went to test it, Nothing was working but the drops.
I dont understand. I dont know what script would be broken or what. I used the same stuff I am using for this tycoon as I did in the homes that were there in the same game.
Here is my issue;(I will post a script from the part remover further down.) When I go into the game, My drops are working, But I also notice that the part removers I have placed around the map don't work.
I get to the tycoon, and I buy it. I move a drop over to my tycoon, But then it doesn't work.
I didnt think that the drops had to be apart of the tycoon model, But am I wrong?
Here is the *Part Remover script* for the tycoon, not for around the map.
money = script.Parent.Parent.Money (This is not present in the other removers)
function onTouched(hit) if hit.Name == "copper" then hit:remove() money.Value = money.Value + 25 end if hit.Name == "cleancopper" then hit:remove() money.Value = money.Value + 50 end if hit.Name == "Coal" then hit:remove() money.Value = money.Value + 20 end if hit.Name == "CleanCoal" then hit:remove() money.Value = money.Value + 40 end if hit.Name == "stone" then hit:remove() money.Value = money.Value + 2 end if hit.Name == "cleanstone" then hit:remove() money.Value = money.Value + 6 end if hit.Name == "granite" then hit:remove() money.Value = money.Value + 50 end if hit.Name == "ConterStone" then hit:remove() money.Value = money.Value + 10 end if hit.Name "PolishedGranite" then hit:remove() money.Value = money.Value + 100 end if hit.Name "iron" then hit:remove() money.Value = money.Value + 300 end if hit.Name "Refinediron" then hit:remove() money.Value = money.Value + 600 end if hit.Name "Diamond" then hit:remove() money.Value = money.Value + 1000 end if hit.Name "RefinedDiamond" then hit:remove() money.Value = money.Value + 1000 end if hit.Name "BlueDiamond" then hit:remove() money.Value = money.Value + 30000 end end script.Parent.Touched:connect(onTouched)
Help? ~11076
|
|
|
| Report Abuse |
|
11076
|
  |
| Joined: 16 Mar 2010 |
| Total Posts: 649 |
|
| |
11076
|
  |
| Joined: 16 Mar 2010 |
| Total Posts: 649 |
|
|
| 13 Jul 2013 04:54 PM |
Help? I mean, I cant figure out why my tycoon wont work.
And I need these parts to be outside the tycoon. Help? ~11076 |
|
|
| Report Abuse |
|