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: Why doesnt this work?

Previous Thread :: Next Thread 
TerexEquipment is not online. TerexEquipment
Joined: 20 Dec 2010
Total Posts: 267
17 Jan 2014 06:19 PM
income = 3 -- Money you get for plowing ice

function onTouch(hit)
if hit.Name == "Once" then
wait(.001)
hit.Name = "SidewalkA"
hit.Transparency = 1

game.Players:findFirstChild(script.Parent.Parent.Owner.Value).leaderstats.Cash.Value = game.Players:findFirstChild(script.Parent.Parent.Owner.Value).leaderstats.Cash.Value + income
end
wait(60) -- How long you want to wait till your grass "grows" back
hit.Transparency = 0
hit.Name = "Once"
end


script.Parent.Touched:connect(onTouch)

I have brick "Once" change to "Two" so that you dont collect money after the brick is invisible but after a minute or so itll change everything to the name "One" so bricks that arent supposed to go invisible go invisible. Can anyone help?
Report Abuse
TerexEquipment is not online. TerexEquipment
Joined: 20 Dec 2010
Total Posts: 267
17 Jan 2014 06:20 PM
SidewalkA is supposed to be Two, thats not the problem though
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