script.Parent.Touched:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local debounce = false
if plr then
plr.Character.HumanoidRootPart.CFrame = CFrame.new(-81.2, 26, -10.6)
if not debounce then
debounce = true
plr.leaderstats.Points.Value = plr.leaderstats.Points.Value + 10
wait(15)
debounce = false
end
end
end)
I've made a debounce script to stop giving player points when it touched the part. (example, I want to give player 10 points, but It gives me 40)
any help is appreciated :]
