I’ve had someone reply for something they said would help then I got an error saying attempt to nil index with ‘Humanoid’
local Humanoid = player.Character:FindFirstChild(‘Humanoid’)
plrs.Character.Humanoid.Died:Connect(function()
if plrs.leaderstats.InGame and not plrs.Winner == true then
plrs.leaderstats.Elo.Value = plrs.leaderstats.Elo.Value - EloDown
table.remove(plrs,x)
print(player.Name…" Is dead")
the reason its not working its because the humanoid take time to load but you are already executing the script, and scripts execute very very fast so instead, try waiting for the character first then wait for the Humanoid
Use my code and replace your current code with it.
You should add whatever you want to happen when the player dies where print(Player.Name .. " died!") is.