|
| 17 Jan 2015 11:46 AM |
The value called Uses is not is not going up when the button is pressed.
local uses = script.Parent.Uses local player = script.Parent.Parent.Parent.Parent function click() uses.Value = uses.Value + 1 player.leaderstats.Stage.Value = player.leaderstats.Stage.Value + 1 player.Character.Humanoid.Health = 0 player.leaderstats.Lives.Value = player.leaderstats.Lives.Value + 1 if uses.Value == 3 then script.Paren.Parent:Destroy() end end
script.Parent.MouseButton1Down:connect(click) |
|
|
| Report Abuse |
|
|
rexexa
|
  |
| Joined: 07 Jan 2012 |
| Total Posts: 99 |
|
| |
|
|
| 17 Jan 2015 12:10 PM |
script.Paren.Parent:Destroy()
script.Parent.Parent:Destroy() |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2015 12:20 PM |
| I noticed that after I posted. I corrected it but it still won't add to the value. |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Jan 2015 12:46 PM |
| it should work, whats the layout of it, and whats the output |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2015 12:56 PM |
No output.
The layout is script > TextButton > ScreenGUI The value is in the TextButton |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2015 12:58 PM |
local player = script.Parent.Parent.Parent.Parent
to
local player = game.Players.LocalPlayer
try that, idk |
|
|
| Report Abuse |
|
|
rexexa
|
  |
| Joined: 07 Jan 2012 |
| Total Posts: 99 |
|
| |
|
listcross
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 1247 |
|
|
| 17 Jan 2015 03:13 PM |
I'm assuming that script.Parent.Uses is an IntValue.
No need for this. Just have uses be a variable within the script.
local uses = 0
Also, try putting everything else in comment, using --[[ and ]]--.
If it works with the other stuff commented, then you know your issue. |
|
|
| Report Abuse |
|
|