|
| 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 |
|
|
| 17 Jan 2014 06:20 PM |
| SidewalkA is supposed to be Two, thats not the problem though |
|
|
| Report Abuse |
|