Help with leaderstat text

Hey DevForum,
I’m really in a rush, my cafe is launching in around 5 minutes and I need to make a text label that shows the points of a user. Here’s my current code (the LocalScript is the only child of the TextLabel)

local points = game.Players.LocalPlayer.leaderstats.Points

while true do

points.Value = script.Parent.Text

wait(2)

end

is there any errors?

ignore this

nope none i can see in the client nor server logs

Try to use this

Script.Parent.Text.Changed:Connect(function()
-- code
end)
1 Like

is this wrong?

script.Parent.Text = points.Value
1 Like

Doesn’t seem to work, pretty sure Changed is for instances only, not updated text (got an attempt to index nil with Connect error)

that’s because he’s indexing it with the property itself

im trying your solution, give me a minute