Here you go, it’s inside the Character, and listens to their .Died, I would suppose it doesn’t run because 4 seconds elapse since the character died, but is the character dying really stopping a modulescript from running?
Humanoid.Died:Connect(function()
local Arena = Player.CurrentArena.Value
if Arena ~= nil then
ArenaModule.ResetArena(Player, Arena.OpponentB.Value)
Player.CurrentArena.Value = nil
end
end)
I’ll try to change the task.wait to something shorter like 1 second and see…
Changing the task.wait to one second instead of 4 seems to work, I guess the modulescript stops running even when the player has died. But instead of putting it to 1 second, i’ll just place the script outside character.