generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Issue with tycoon scripts/Drops

Previous Thread :: Next Thread 
11076 is not online. 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 is not online. 11076
Joined: 16 Mar 2010
Total Posts: 649
13 Jul 2013 04:50 PM
Bump?
Report Abuse
11076 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image