Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why won't the Morph script work?

Asked by 8 years ago

READ THIS This is not your "Normal" morphing script, this script is suppose to make you small. So, now that is said. Here's the script-

local morph = script.Parent.Parent:findFirstChild("Mini-Player")

function touch(MorphButton)
    if(MorphButton.Parent:findFirstChild("Humanoid") == nil)then return end
    local p = game.Players:findFirstChild(MorphButton.Parent.Name)
    if(p == nil)then return end
    local m2 = morph:clone()
    m2.Name = MorphButton.Parent.Name
    m2.Torso.Anchored = false
    m2.Torso.Position = m2.Torso.Position + Vector3.new(0,3,0)
    m2.Head.Position = m2.Head.Position + Vector3.new(0,3,0)
    m2.Hat.Position = m2.Hat.Position + Vector3.new(0,3,0)
    p.Character = m2
    --part.Parent:remove()
    m2.Parent = game.Workspace
    m2:MakeJoints()
end

script.Parent.Touched:connect(touch)

Answer this question