Ive been making this roblox game which has a leaderboard and ive came across this glitch where if i set the value to zero and get a jewel it just thinks i had the value that i had before and adds one to it
local there = true script.Parent.Touched:Connect(function(pl) if there == true then if pl.Parent:FindFirstChild("Humanoid") ~= nil then there = false script.Parent.Transparency = 1 local player = game.Players:GetPlayerFromCharacter(pl.Parent) player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1 wait(5) there = true script.Parent.Transparency = 0.4 end end end)