I’m trying to make a player morph but for a specific rank (haven’t added that yet) but it’s not working for some reason. There are no errors in the output. Heres the script:
local Players = game:GetService("Players")
local ServerStorage = game:GetService("ServerStorage")
function PlayerJoined(Player)
local Cadet = ServerStorage.Cadet:Clone()
local function RemoveMeshes(Character)
local Humanoid = Character:WaitForChild("Humanoid")
wait()
local CurrentDescription = Humanoid:GetAppliedDescription() -- gets the current applied description
-- changes all of the body parts description to 0 (default)
CurrentDescription.Head = 0
CurrentDescription.Torso = 0
CurrentDescription.LeftArm = 0
CurrentDescription.RightArm = 0
CurrentDescription.LeftLeg = 0
CurrentDescription.RightLeg = 0
Humanoid:ApplyDescription(CurrentDescription) -- we only changes the body parts so the rest stays the same
for b,a in pairs(Character:GetChildren()) do
if a:IsA("Shirt") or a:IsA("Pants") or a:IsA("Accessory") or a:IsA("ShirtGraphic") then
a:Destroy()
end
end
for b,a in pairs(Cadet:GetChildren()) do
if a:IsA("Shirt") or a:IsA("Pants") or a:IsA("Accessory") or a:IsA("ShirtGraphic") then
a.Parent = Player.Character
end
end
end
Player.CharacterAppearanceLoaded:Connect(RemoveMeshes)
end
Players.PlayerAdded:Connect(PlayerJoined)
here’s the model I’m trying to morph it to:
StormTrooper.rbxm (129.3 KB)