Hello! I'm pretty new to scripting and I made this script so that the text in a text label will change to one of the player's leaderstats value, but it doesn't work.

Script:

textLabel = script.Parent
local Players = game:GetService("Players")
local player = game.Players.LocalPlayer
local stagevalue = player.leaderstats.Stage.Value

textLabel.Text  = stagevalue

6 comments

0

Is it a local script?

0

u should put a local first on line 1: local textLabel = script.Parent

0

also is there anything else in the script?

0

Any errors?

0

Yes, it's a local script. I added local on line 1 and it still doesn't work. There are no errors.

0

try punting the textlabel.text = stagevalue in a loop