I am stumped on how I would get the LocalPlayer to teleport to the position set when the player is dead/health = 0.. Could anyone help me with this?
Player = script.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Down:Connect(function()
Player.Team = game.Teams.Blue
wait(.05)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(39.3, 0.6, -71.35))
wait(.05)
end)

3 comments
Please, use LocalPlayer and not script.Parent.Parent.Parent.Parent. And use local variables.
ok i'm presuming this is a local script so #1, Set the position of the player on the server, #2, use SetPrimaryPartCFrame() instead of setting the humanoid root part cframe, #3 why use a gui button when you want to check if the player is dead, #4, change the player's team in a server script, #5 why bother using game.Players.LocalPlayer when you have a player variable
Ok guys thanks for answering my question it helps a lot!