Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can I make a running script cancel if a player resets?

Asked by 9 years ago

I have this script which I made, but I want to make the script start all over once the player resets.

0
post it! davness 376 — 9y

2 answers

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

We need a bit more info for a specific answer for your case, but in general the Died event will be what you can use to detect the death of a Player.

Ad
Log in to vote
0
Answered by 9 years ago

You could put this in a different script, not very effective but it works

local player = playerhere
player.Character.Died:connect(function()
game.Workspace.SCRIPTHERE.Disabled = true
game.Workspace.SCRIPTHERE.Disabled = false
end)
0
The Died event is used with the Humanoid of a player, not the Character. dyler3 1510 — 9y

Answer this question