I need help with values stuff


why it isnt working, basically the text of a thing need to be like the value + “platform”

oh yea and thats a localscript in starterplayerscripts

Change like this :

local lvl = plr.leaderstats.Platform
...
workspace.P_TPER["Tower Name"].SurfaceGui.TextLabel.Text = lvl.Value .." Platform"
...

ok i will try to change that in this

it isnt working at all, btw i changed the location of the localscript to startergui and it only shows platform without lvl.value thing

Ok then, try this code :

local plr = game.Players.LocalPlayer
local lvl = plr:WaitForChild("leaderstats"):WaitForChild("Platform")

-- Wait for your gui TextLabel to load in
workspace:WaitForChild("P_TPER"):WaitForChild("Tower Name"):WaitForChild("SurfaceGui"):WaitForChild("TextLabel")

while true do
     workspace.P_TPER["Tower Name"].SurfaceGui.TextLabel.Text = lvl.Value .."Platform"
     print("CHANGED")
     wait(5)
end

If this doesn’t work, try putting workspace[“P_TPER”] instead of workspace.P_TPER, I’m not sure that you can use a “_” with the “.”.
You should put the script in StarterPlayerScripts btw

i tried all methods this isnt working

Can you please check the console ? Are there any errors ?

oh wait, jk that is working i forgot those 5 seconds lol, thanks

I’m glad I fixed your problem :+1:, happy scripting

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.