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

"Left Arm is not a valid member of Model" Can someone help me?

Asked by 6 years ago

well im trying to make a one piece game and i have a problem with a script it is not mine script but i please someone help me fix the error my problem is that the output give me an error it says "Left Arm is not a valid member of Model" please help me ill let the script down please and sorry for my grammar im not english at all and im still learning it.

here is the script:

local Player = game.Players.LocalPlayer repeat wait() until Player.Character local Character = Player.Character local Mouse = Player:GetMouse ()

Mouse.KeyDown:connect(function(Key) if Key == "t" then

    Character["Left Arm"].Transparency = 1
    local LeftArm = Instance.new("Part")
    LeftArm.Name = "BusoLeftArm"
    LeftArm.BrickColor = BrickColor.new("Black")
    LeftArm.Material = "SmoothPlastic"
    LeftArm.Refletance = 0.2
    LeftArm.CanCollide = true
    LeftArm.Anchored = false
    LeftArm.Size = Vector3.new (1, 2, 1)
    LeftArm.Parent = Character
    local w = Instance.new ("Weld")
    w.Part0 = Character["LeftArm"]
    w.Part1 = LeftArm
    w.Parent = LeftArm
end

end)

2 answers

Log in to vote
2
Answered by
gitrog 326 Moderation Voter
6 years ago
Edited 6 years ago

LeftArm is the left arm using R6, and in R15, LeftArm is broken into multiple parts. For this script to work, you'll have to disable R15. You can do this by going to Develop, opening the game tab, opening the settings for the game, clicking Configure Game, and changing Avatar Type Options to "Use R6."

0
thx the first problem is fix but now it says something about the refectance it says this "Refletance is not a valid member of Part" do you know why? PeacefulTortu 1 — 6y
0
*Reflectance* is spelt wrong. PyccknnXakep 1225 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Do this:

local leftArm = game.Players.LocalPlayer.Character["Left Arm"]

Answer this question