what is wrong with this it works but i keep getting this error: 5: attempt to perform arithmetic on a nil value
local pointlabel = script.Parent.Points local pointvalue = game.Players.LocalPlayer:WaitForChild("Stats"):WaitForChild("Points") pointvalue.Changed:connect(function() pointlabel.Text = pointvalue.Value - tonumber(pointlabel.Text).."+" wait(2) pointlabel.Text = pointvalue.Value end)
Haven't tested it myself but I'd imagine it's the call for tonumber(pointlabel.Text) being a nil value Of which you can't perform arithmetic on a nil value. I guess simply change pointLabel.Text to a default value upon starting the game or adding the player to the game. Or upon creating the GUI