|
| 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 |
|
|
|
| 26 Jul 2016 01:51 PM |
bump1
▬▬ι═══════ﺤ Panicking leads to an early grave. -═══════ι▬▬ |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2016 01:51 PM |
bump2
▬▬ι═══════ﺤ Panicking leads to an early grave. -═══════ι▬▬ |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2016 05:35 PM |
bump3
▬▬ι═══════ﺤ Panicking leads to an early grave. -═══════ι▬▬ |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 26 Jul 2016 05:49 PM |
@Fire
i guess you have a point there lol
Add 13,000 posts |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|