This is my code within each touchdetecter
db = false
script.Parent.Touched:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
if db == false then
db = true
plr.leaderstats["Celebs Found"].Value += 1
end
end
wait(5)
db = false
end)
this is leaderstats code:
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local celebsFound = Instance.new("IntValue")
celebsFound.Name = "Celebs Found"
celebsFound.Value = 0
celebsFound.Parent = leaderstats
end)
** You are now Level 2! **