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

How would I disable respawning for a certain team?

Asked by 4 years ago

Yes, disabling respawning for a certain team. How would I do it if there’s a way to do it?

0
Thanks, but that’s resetting, not respawning minerpepper 18 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

This should be working, modify it to disable the respawn feature for that team.

game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:Connect(function(char)
        local humanoid = char:WaitForChild("Humanoid")

        humanoid:GetPropertyChangedSignal("Health"):Connect(function()
            if humanoid.Health <= 0 then
                char.Parent = game:GetService("ServerStorage")
            end
        end)
    end)
end)
0
Thanks so much! minerpepper 18 — 4y
Ad

Answer this question