Celeritas
|
  |
| Joined: 15 Dec 2012 |
| Total Posts: 50 |
|
|
| 20 Jun 2015 08:36 PM |
Hey friends, I'm working on making a game. I have a regen GUI where when you click a button, it regenerates everything. This works once in studio, then no longer works; It doesnt work at all in game. Help? Thank you!
script.Parent.MouseButton1Click:connect(function(regen) local allDebris = game.ServerStorage.all print("Regenerating all parts.") local leaderstats = script.Parent.Parent.Parent.Parent.Parent.leaderstats local coins = leaderstats.Coins if coins.Value >= 500 then local allParts = game.Workspace:FindFirstChild("all") if allParts then allParts:Remove() allDebris:Clone().Parent = game.Workspace coins.Value = coins.Value - 500 end else print "Nothing doing." end end) |
|
|
| Report Abuse |
|
| |
Celeritas
|
  |
| Joined: 15 Dec 2012 |
| Total Posts: 50 |
|
| |