Hello, I want to make the script repeat after death. How to do it?
This is a 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)
The reason why he’s disabling the script is probably because the .Touched event is fired multiple times (for each limb and it fires pretty much if you move)