Why isent my character changing to the value

When your chosen you turn into a noob. I have a system where you click a button of the noob name. Send it to a string in the player then I want it to change the player to that skin name. At the else it changes me to the noob by default. But above for some reason it doesent work. even though the string value is the same as the skin/Startercharacter in replicated storage. Please help me why its not talking the if and only the else even though my string value is the same thanks

1 Like

I believe your problem is that your character isn’t changing to the chosen model. There are a lot of wrong things in your script not allowing it to work. Try this.

local characters = game.ReplicatedStorage.Characters:GetChildren()
for _, char in pairs(characters) do

if thatPlayer.noobOutfitName.Value == char.Name then

local charClone = char:Clone()
charClone.Parent = workspace
thatPlayer.Character = charClone
charClone.PrimaryPart = charClone.HumanoidRootPart -- change this to charClone.Torso if the HumanoidRootPart doesn't exist
return

else

local charClone = game.ReplicatedStorage.Characters.Noob:Clone()
charClone.Parent = workspace
thatPlayer.Character = charClone
charClone.PrimaryPart = charClone.HumanoidRootPart -- change this to charClone.Torso if the HumanoidRootPart doesn't exist

end

end

Changing the player’s character would cause an error therefore your solution wouldn’t work.

What error would it throw? Reading the documenation on Player.Character, it doesn’t seem like it is read-only.

1 Like

I tried once to change the player’s character but it would kill them and reset their character to their avatar.

1 Like

I mean it kinda worked but it dident make it me like I can move em but it dident do the animations and my camera wasent on it

@FirewolfYT_751Adult …

I tested it again and it still doesn’t work I tried a different character make and it still doesn’t switch it still is only noob