I'm currently wanting to change a players character at the beginning of the game, but ROBLOX just respawns the character just a bit after it was changed. This is a totally annoying problem and I would really much appreciate any help. This here is my code, maybe the respawning is somehow related to this(which I doubt):

game.Players.PlayerAdded:connect(function(plr)
	local cor=coroutine.create(function()
		while wait() do
			repeat wait() until plr.Character
			local New_Char=script.Parent:Clone()
			New_Char.Name=""
			New_Char.Parent=workspace
			plr.Character=New_Char
			workspace.Camera.CameraSubject=New_Char.Humanoid
			plr.Character.Animate.Disabled=false
			repeat wait() until not plr.Character
		end
	end)
	coroutine.resume(cor)
end)

1 comment