i want to show an amout of points on a label, and for some reason i get this error
Players.Medoozi.PlayerGui.InsertedObjects.Gradient.TextLabel.LocalScript:8: attempt to index nil with 'points i've checked and i havent misstyped anything...
local Players = game:GetService("Players")
local number = script.Parent
local player = game.Players.LocalPlayer
local leaderstats = Players:FindFirstChild("leaderstats")
while true do
wait()
number.Text = "Cash:"..leaderstats.points.Value.."$"
end

1 comment
This might be silly, but when you instanced the points leaderstat, did you name it "points"