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 » Scripters
Home Search
 

IntValue

Previous Thread :: Next Thread 
MmC00KIESmM is not online. MmC00KIESmM
Joined: 05 Nov 2011
Total Posts: 372
26 Jul 2016 01:45 PM
How would I put an IntValue from the Workspace that's in a folder on a ScreenGui so it'll put the integer value on the gui..? and how do I make this specific value go up/down.

That's all I need help with I feel like I got the rest


▬▬ι═══════ﺤ Panicking leads to an early grave. -═══════ι▬▬
Report Abuse
MmC00KIESmM is not online. MmC00KIESmM
Joined: 05 Nov 2011
Total Posts: 372
26 Jul 2016 01:51 PM
bump1


▬▬ι═══════ﺤ Panicking leads to an early grave. -═══════ι▬▬
Report Abuse
MmC00KIESmM is not online. MmC00KIESmM
Joined: 05 Nov 2011
Total Posts: 372
26 Jul 2016 01:51 PM
bump2


▬▬ι═══════ﺤ Panicking leads to an early grave. -═══════ι▬▬
Report Abuse
MmC00KIESmM is not online. MmC00KIESmM
Joined: 05 Nov 2011
Total Posts: 372
26 Jul 2016 05:35 PM
bump3


▬▬ι═══════ﺤ Panicking leads to an early grave. -═══════ι▬▬
Report Abuse
FireFruit226 is not online. FireFruit226
Joined: 03 Jun 2015
Total Posts: 497
26 Jul 2016 05:41 PM
To make the value change on the Gui:

Value = PathToIntValueHere
PathToLabelHere.Text = Value


To make the Value go up or down:

Value = PathToIntValueHere
Value.Value = Value.Value (Plus or Minus sign) Amount



So for example, say I Clicked a button to give me gold. In a LocalScript in the Button:

Player = game.Players.LocalPlayer
Button = script.Parent
Mouse = Player:GetMouse()
Value = Player:WaitForChild('Gold')

Button.MouseButton1Click:connect(function()
Value.Value = Value.Value + 100 -- Gives 100 Gold
end)


And in a LocalScript in the Gui you want to say how much gold there is:

Button = script.Parent
Player = game.Players.LocalPlayer
Gold = Player:WaitForChild('Gold')

Gold.Changed:connect(function()
Button.Text = 'Gold: '..Gold.Value
end)
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
26 Jul 2016 05:42 PM
@Fire

you're coding as if OP doesn't want an FE game

you need remote events


Add 13,000 posts
Report Abuse
FireFruit226 is not online. FireFruit226
Joined: 03 Jun 2015
Total Posts: 497
26 Jul 2016 05:47 PM
@Lord

If the poor child doesn't even know how to change an IntValue, I am not going to try to explain how RemoteEvents and RemoteFunctions work.
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
26 Jul 2016 05:49 PM
@Fire

i guess you have a point there lol


Add 13,000 posts
Report Abuse
MmC00KIESmM is not online. MmC00KIESmM
Joined: 05 Nov 2011
Total Posts: 372
27 Jul 2016 02:14 AM
Yea my first game won't be FE..
But the IntValue are stats that effect the numbers of certain stuff, like walkspeed, damage, and player abilities.


▬▬ι═══════ﺤ Panicking leads to an early grave. -═══════ι▬▬
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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