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

Why does the script to change the player arms and legs not work?

Asked by 2 years ago

the script is supposed to change the players arms and legs and body to something more noob like the error I get is

Unable to assign property MeshId. Script write access is restricted

local function onPartTouched(otherPart)

    local partParent = otherPart.Parent

    local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
    if humanoid then

        local Root = otherPart.Parent.HumanoidRootPart
        otherPart.Parent.LeftFoot.Meshid = 'http://www.roblox.com/asset/?id=1699715602'
        otherPart.Parent.LeftHand.Meshid = 'http://www.roblox.com/asset/?id=1699715537'
        otherPart.Parent.LeftLowerArm.Meshid = 'http://www.roblox.com/asset/?id=1699715541'
        otherPart.Parent.LeftLowerLeg.Meshid = 'http://www.roblox.com/asset/?id=1699715610'
        otherPart.Parent.LeftUpperArm.Meshid = 'http://www.roblox.com/asset/?id=1699715550'
        otherPart.Parent.LeftUpperLeg.Meshid = 'http://www.roblox.com/asset/?id=1699715616'
        otherPart.Parent.LowerTorso.Meshid = 'http://www.roblox.com/asset/?id=1699715652'
        otherPart.Parent.RightFoot.Meshid = 'http://www.roblox.com/asset/?id=1699715627'
        otherPart.Parent.RightHand.Meshid = 'http://www.roblox.com/asset/?id=1699715557'
        otherPart.Parent.RightLowerArm.Meshid = 'http://www.roblox.com/asset/?id=1699715562'
        otherPart.Parent.RightLowerLeg.Meshid = 'http://www.roblox.com/asset/?id=1699715632'
        otherPart.Parent.RightUpperArm.Meshid = 'http://www.roblox.com/asset/?id=1699715576'
        otherPart.Parent.RightUpperLeg.Meshid = 'http://www.roblox.com/asset/?id=1699715641'
        otherPart.Parent.UpperTorso.Meshid = 'http://www.roblox.com/asset/?id=1699715593'
        otherPart.Parent.UpperTorso.Mesh.MeshType = 'Head'



    end
end

script.Parent.Touched:Connect(onPartTouched)
0
You can't change the MeshId of a MeshPart during runtime. Rinpix 639 — 2y

Answer this question