rokenrock
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 38 |
|
|
| 16 Jan 2017 03:01 PM |
local Level = game.Players.LocalPlayer.Character.Level.Value game.Players.LocalPlayer.StarterGui.LevelTell.lvlnum.Text = Level
Im trying to change the text for a textlabel to the value of level but it just isnt working whats wrong? |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2017 03:04 PM |
| It is not StarterGui it is PlayerGui. |
|
|
| Report Abuse |
|
|
rokenrock
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 38 |
|
|
| 16 Jan 2017 03:11 PM |
local Level = game.Players.LocalPlayer.Character.Level.Value game.Players.LocalPlayer.PlayerGui.LevelTell.lvlnum.Text = Level
This is updated and still doesn't work |
|
|
| Report Abuse |
|
|
pketny
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 1162 |
|
|
| 16 Jan 2017 03:15 PM |
| Then there's probably an error in your code, can you copy the output if there is? |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2017 03:21 PM |
| do you have the level in a leader board, or something else? |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2017 03:24 PM |
| and, if the level value is not a leader board, is it a number value, or a string value. |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2017 03:25 PM |
don't fetch the value locally, get it from the server
|
|
|
| Report Abuse |
|
|
rokenrock
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 38 |
|
|
| 16 Jan 2017 03:49 PM |
Never mind i just had it disabled... But do you know how to make that update every time the level value changes? |
|
|
| Report Abuse |
|
|
pketny
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 1162 |
|
| |
|
|
| 16 Jan 2017 04:39 PM |
| Check the spelling that always gets me sometimes, and one time I was so lazy that I put parent 3 times instead of 2 times on accident. |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2017 05:29 PM |
to test if it changed, do:
Level.Changed:Connect(function() game.Players.LocalPlayer.StarterGui.LevelTell.lvlnum.Text = Level end) |
|
|
| Report Abuse |
|
|