Hello, point is to give me +1 speed only once so when player dies they give +1 again
Script:
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild(“Humanoid”) ~= nil then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
player.leaderstats.Speed.Value = player.leaderstats.Speed.Value + 1
script.Sound:Play()
script.Disabled = true
end
end)