I have this script which I made, but I want to make the script start all over once the player resets.
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.
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)