It is in a localscript here is the script
script.Parent.MouseButton1Click:connect(function(Player)
game.Players.LocalPlayer.TeamColor = BrickColor.new("Forest green")
game.Players.LocalPlayer.Character.Humanoid.Health = 0
game.Players.LocalPlayer:LoadCharacter()
end)

1 comment
LoadCharacter() only works in server (regular) scripts. You’ll probably have to use RemoteEvents.