Help make it not delete

  1. What do you want to achieve? I want it so that it doesnt delete the startercharacter

  2. What is the issue? It deletes the startercharacter so whenever people join the dev only skin is allowed for everyone

  3. What solutions have you tried so far? Ive tried so many times to fix this but nothing works

game.Players.ChildAdded:Connect(function(child)
	if child:IsA("Player") then -- Detect if it's a new PLAYER that is added.
		if child.UserId == 178196501 then -- Replace "userid" with the whitelisted/privileged user's UserId.
			-- Now, we respawn the player's character.
			local newcharacter = game.ServerStorage.HANK -- Replace "referencetocharacterlmao" with your character model.
			local oldcharactermodel = game.StarterPlayer.StarterCharacter
			local newcharactermodel = newcharacter:Clone()
			local oldcharactermodelcframe = oldcharactermodel:GetPrimaryPartCFrame()

			child.Character = newcharactermodel
			newcharactermodel.Parent = game.Workspace
			newcharactermodel:SetPrimaryPartCFrame(oldcharactermodelcframe)
			oldcharactermodel:Destroy()
		else
			local oldcharactermodel = child.Character
			child.Character = oldcharactermodel
		end
	end
end)

Put the dev skin into the replicated storage and do smthg like this:

game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:Connect(function(char)
        if plr.UserId == 178196501 then
            local devskin = game.ReplicatedStorage.Hank:Clone()
            devskin.Parent = workspace
            devskin:MoveTo(char.PrimaryPart.Position)
            plr.Character = devskin
        end
    end)
end)

yeah but it doesnt animate my character and clones the starter character

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		if plr.UserId == 178196501 then
			local mm = plr.Character
			local as = mm.Animate:Clone()
			local devskin = game.ReplicatedStorage.Hank:Clone()
			devskin.Parent = workspace
			devskin:MoveTo(char.PrimaryPart.Position)
			plr.Character = devskin
			mm.Archivable = true
			mm:Destroy()
			as.Parent = devskin
		end
	end)
end)

game.Players.PlayerAdded is better lol

StarterCharacter scripts wont load and also tried putting it in the morph and still doesnt work, any tips? oh and for some reason it wont let me respawn @Thanks4DaLimbs

What is this supposed to do, exactly? There are better alternatives to add morphs to a specific player (like attaching parts to a character’s model instead). Moving the “devskin” model to the player’s position doesn’t solve anything.

jsut to make it that a certain playerid gets a cool dev skin that has the startercharacterscripts and doesnt delete the startercharacter