0

# How to change the player "StarterCharacter" depending on the player race?

Asked by 15 days ago

im making a game that have some humanoid races and monster races(4 monsters), that i just do an if to check the player race and insert the Monster Model in the StarterPlayer and change the name for StarterCharacter, but when the player race change again, his body keep with the old one, how do i can fix it?

    local newChar = hollow:Clone()
newChar.Name = "StarterCharacter"
newChar.Torso.TheTorso.BrickColor = BrickColor.new(color)
newChar["Left Leg"].LLeg.BrickColor = BrickColor.new(color)
newChar["Right Leg"].RLeg.BrickColor = BrickColor.new(color)
if SP:FindFirstChild("StarterCharacter")~=nil then
SP:FindFirstChild("StarterCharacter"):Destroy()
end
newChar.Parent = SP