So I have this Gui display your points It works fine BUT I have to disable and enable the script to make it work Error: leaderstats is not a valid member of Player
I know whats wrong, its that when the script runs, leaderstats is not made in player yet, it takes a couple seconds to load, so when the script does its magic, leaderstats is not a part of Player yet
How would I fix this?
local gui = script.Parent local text = gui:FindFirstChild("TextLabel") local points = script.Parent.Parent.Parent.leaderstats.Points text.Text = "Points"..points.Value while true do wait() text.Text = "Points:"..points.Value end