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

Why won't the Morphing script work?

Asked by 8 years ago

This script is intended to make the player small- now that that's said, here's the script.

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

function touch(part)
    if(part.Parent:findFirstChild("Humanoid") == nil)then return end
    local p = game.Players:findFirstChild(part.Parent.Name)
    if(p == nil)then return end
    local m2 = morph:clone()
    m2.Name = part.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.Head.Position = m2.LeftArm.Position + Vector3.new(0,3,0)
    m2.Head.Position = m2.RightArm.Position + Vector3.new(0,3,0)
    m2.Head.Position = m2.LeftLeg.Position + Vector3.new(0,3,0)
    m2.Head.Position = m2.RightLeg.Position + Vector3.new(0,3,0)
    p.Character = m2
    --part.Parent:remove()
    m2.Parent = game.Workspace
    m2:MakeJoints()
end

script.Parent.Touched:connect(touch)

Thanks!

0
Whats wrong with it? User#5978 25 — 8y
0
@dawnhorizon It's not morphing... Take a look at it- http://www.roblox.com/Mini-item?id=282049158 iiCasual 20 — 8y
0
You need to change the CFrames of the welds inside the body parts. Changing the position will do nothing but break it. Vlatkovski 320 — 8y

Answer this question