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 » Game Design
Home Search
 

Re: Value not being added to

Previous Thread :: Next Thread 
ArceusLevelX is not online. ArceusLevelX
Joined: 16 Apr 2013
Total Posts: 762
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 is not online. rexexa
Joined: 07 Jan 2012
Total Posts: 99
17 Jan 2015 11:55 AM
Same Here
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
17 Jan 2015 12:10 PM
script.Paren.Parent:Destroy()

script.Parent.Parent:Destroy()
Report Abuse
ArceusLevelX is not online. ArceusLevelX
Joined: 16 Apr 2013
Total Posts: 762
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
ArceusLevelX is not online. ArceusLevelX
Joined: 16 Apr 2013
Total Posts: 762
17 Jan 2015 12:44 PM
Bump
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
17 Jan 2015 12:46 PM
it should work, whats the layout of it, and whats the output
Report Abuse
ArceusLevelX is not online. ArceusLevelX
Joined: 16 Apr 2013
Total Posts: 762
17 Jan 2015 12:56 PM
No output.

The layout is script > TextButton > ScreenGUI
The value is in the TextButton
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
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 is not online. rexexa
Joined: 07 Jan 2012
Total Posts: 99
17 Jan 2015 03:10 PM
Still wont work :(
Report Abuse
listcross is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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