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
 

Re: Whats wrong with this?

Previous Thread :: Next Thread 
rokenrock is not online. 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
applepen77710 is not online. applepen77710
Joined: 26 Apr 2013
Total Posts: 69
16 Jan 2017 03:04 PM
It is not StarterGui it is PlayerGui.
Report Abuse
rokenrock is not online. 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 is not online. 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
BossitronBeast is not online. BossitronBeast
Joined: 18 Sep 2014
Total Posts: 64
16 Jan 2017 03:21 PM
do you have the level in a leader board, or something else?
Report Abuse
BossitronBeast is not online. BossitronBeast
Joined: 18 Sep 2014
Total Posts: 64
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
16 Jan 2017 03:25 PM
don't fetch the value locally, get it from the server

Report Abuse
rokenrock is not online. 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 is not online. pketny
Joined: 27 Dec 2010
Total Posts: 1162
16 Jan 2017 04:37 PM
Use .Changed
Report Abuse
Sealbutterscotch is online. Sealbutterscotch
Joined: 27 Oct 2013
Total Posts: 17326
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
BossitronBeast is not online. BossitronBeast
Joined: 18 Sep 2014
Total Posts: 64
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
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