why does it not change the text when the value is changed?
Asked by
7 years ago Edited 7 years ago
01 | local leaderstats = game.Players.LocalPlayer.leaderstats |
02 | local level = leaderstats.Level |
03 | local exp = level:WaitForChild( "EXP" ) |
04 | local levelDisplay = script.Parent.Level |
05 | local expDisplay = script.Parent.Exp |
07 | exp.Changed:Connect( function () |
08 | expDisplay.Text = "Exp: " ..exp.Value "/1000" |
10 | level.Changed:Connect( function () |
11 | levelDisplay.Text = "level: " ..level.Value |
changing the level works but not the exp i get an error
Error attempt to call field 'Value' (a number value)
local script in a screenGUI