How do I respawn the player without adding up a death counter?
So I have a script for changing teams in a GUI, it looks like this.
02 | script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new( "Institutional white" ) |
04 | script.Parent.Parent.Parent:Destroy() |
05 | local StarterGui = Game:GetService( 'StarterGui' ) |
06 | StarterGui:SetCoreGuiEnabled (Enum.CoreGuiType.PlayerList, true ) |
07 | StarterGui:SetCoreGuiEnabled (Enum.CoreGuiType.Backpack, true ) |
08 | game.Lighting.Blur.Size = 0 |
09 | game.Players.LocalPlayer.Character.Humanoid.Health = 0 |
13 | script.Parent.MouseButton 1 Down:connect(Click) |
Now it works fine but not perfect, such as, this game has a death counter and doing
1 | game.Players.LocalPlayer.Character.Humanoid.Health = 0 |
of course kills them, adding up to the death counter, Ive tried
1 | game.Players.LocalPlayer:LoadCharacter() |
instead of
1 | game.Players.LocalPlayer.Character.Humanoid.Health = 0 |
But it doesnt work in-game with Filtering Enabled.