Home Game Development lua – How do I morph a player’s character to a specified player’s character?

lua – How do I morph a player’s character to a specified player’s character?

0
lua – How do I morph a player’s character to a specified player’s character?

[ad_1]

I’m making a shapeshift command that you can run via chat. It works pretty similar to how HD Admin handles character morphin (https://create.roblox.com/marketplace/asset/13549366436)

I know how to get the model a specified player’s avatar by using HumanoidDescription. However, I want to make a new rig with the specified avatar. The reason I want to do this is so that I can put a” animation during the command. How do I do this?

Code (Simplified)

{
            PrimaryAlias = "shapeshift",
            SecondaryAlias = "change",
            PermissionLevel = 0,
            Function = function(player: Player, args: { string })
                local TemporaryRig = game.ReplicatedStorage.Rig.R15:Clone()
                TemporaryRig.Parent = game.Workspace
                
                

                game.Players.PlayerAdded:Connect(function(player)
                    TemporaryRig.Position = player.Character.Position -- Main Problem
                        local id = PlayerService:GetUserIdFromNameAsync(args[1])
                        print(id .. " returned when GetUserIdFromNameSync") -- Debug
                        print(args[1] .. " returned") -- Debug
                    local newHumanoidDescription = game.Players:GetHumanoidDescriptionFromUserId(id)
                    TemporaryRig.Humanoid:ApplyDescription(newHumanoidDescription)
                end)
                end,
        },
```

[ad_2]

Previous article 7 Games For Good Vibes
Next article I guess I only want to play old school racing games now
Hello there! My name is YoleeTeam, and I am thrilled to welcome you to AmazonianGames.com. As the premier destination for all things related to Amazon Games' universe, we are dedicated to providing you with the most exciting and immersive gaming experiences out there. From captivating visuals to exhilarating gameplay, our website is packed with comprehensive insights, updates, and reviews to keep you ahead of the game. Whether you're a seasoned gamer or new to the scene, I am here to guide you through this virtual frontier. If you have any questions or suggestions, feel free to reach out to me at john@yoleesolutions.com. Embark on your Amazon gaming journey today with AmazonianGames.com and let the adventure begin!