#Trying to make simple Morphs

8 messages · Page 1 of 1 (latest)

austere relic
#

Hello, I'm currently trying to make a morph system. The player can only play the game using one of the pre-made characters for the game. What is the best way to set the player's morph without changing the player's original character?

I'm trying to TP the morph to the player, and then anchor all of the morph parts to the designated part of the character because of the amount of morphs I have.

Here is my current script:```lua
local Model = script.Parent:FindFirstChildOfClass("Model")

game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
-- :: Wait for character to appear in workspace
task.wait()

    for i, v in pairs(char:GetChildren()) do
        if v:IsA("Accessory") then
            v:Destroy()
        end
    end
    
    -- :: Build your morph
    local MorphMeshesFolder = script:WaitForChild("Decorations")
    local MorphMeshesClone = MorphMeshesFolder:Clone()
    MorphMeshesClone.Parent = char
    
    MorphMeshesClone:SetPrimaryPartCFrame(char:GetPrimaryPartCFrame())

    for _, Decoration in pairs(MorphMeshesClone:GetChildren()) do
        local PartWeConnectTo = char:WaitForChild(Decoration.Name)

        if PartWeConnectTo then
            Decoration.CanCollide = false
            Decoration.CanTouch = false
            
            Decoration.Parent = PartWeConnectTo
            Decoration.Name = Decoration.Name .. " Decoration"
            
            local Weld = Instance.new("WeldConstraint")
            Weld.Part0  = PartWeConnectTo
            Weld.Part1  = Decoration
            Weld.Parent = PartWeConnectTo
            Weld.Enabled = true
        end
    end
    MorphMeshesClone:Destroy()
end)

end)


It almost works, but the morph is slightly lower than I want it.

`Morph on character: Img 1`
`Morph setup: Img 2`
unkempt kettle
#

Give me a sec

#

I can make a morph script for liek a pad or smt

#

where u have to stand on smt

#

i think i could do that anyway

#

And all u have to do is create a character?

#

you could teleport the pad to the player with can collide off, transparency 1, and can touch on.

#

but again it would change the player so nvm