Local r_arm = default_description.RightArm Local l_arm = default_description.LeftArm Local default_description = playerhumanoid:GetAppliedDescription() Local playerhumanoid = playercharacter:FindFirstChildOfClass("Humanoid") Local morphhumanoid = morph:FindFirstChildOfClass("Humanoid") Oh, so what you want to do is just use HumanoidDescription, get the character you want to morph into and then get the description of that character, and befor applying it, save the body parts and then edit the description of the character you want to morph into and edit the body parts with what you’ve saved, apply it into the player and you should get the result you want.Īlso here’s an example script of what i mean local function apply_morph(playercharacter) Just be sure you understand I want it so when you morph into the dummy the dummy turns into your avatar but keeps its body shape. Local plrRoot = player.Character:FindFirstChild("HumanoidRootPart") or player.Character:FindFirstChild("Torso") Local rootPart = newChar:FindFirstChild("HumanoidRootPart") or newChar:FindFirstChild("Torso") NewChar:SetPrimaryPartCFrame()Įlseif newChar:FindFirstChild("Torso") and not newChar:FindFirstChild("HumanoidRootPart") then NewChar.PrimaryPart = newChar.HumanoidRootPart If newChar:FindFirstChild("HumanoidRootPart") then Local newChar = charsFolder:FindFirstChild(chosenCharacter):Clone() If charsFolder:FindFirstChild(chosenCharacter) then Local changeEvent = game.ReplicatedStorage:WaitForChild("ChangePlayerCharacter")ĬhangeEvent.OnServerEvent:Connect(function(player,chosenCharacter)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |