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

Welding Obejcts to Players?

Asked by 9 years ago

how do i weld parts to a player like in his arm to make a shoulder pad

2 answers

Log in to vote
2
Answered by 9 years ago

Here a simple thing for made a weld with a part ! Don't forgot to read the comment for more information or you can go on Roblox wiki here Enjoy !

local player = game.Players.LocalPlayer
local character = player.CharacterAdded:wait() or workspace[player.Name]

spawn(function() -- dont forgot that if you want it work !
    local part = Instance.new("Part", workspace)
    local weld = Instance.new("Weld", part)
    weld.Part0 = part --Attach to Part1
    weld.Part1 = character["Left Arm"] --Attack to Part0
    weld.C0 = CFrame.new(0, 0, 0) *CFrame.new(0, 0, 0) -- Position your Part !
end)
0
ok need some real help everytime i have player in a code as a variable it says player is not a member of backpack or is a nil string WeBuiltOurOwnWorld 6 — 9y
0
nvm WeBuiltOurOwnWorld 6 — 9y
Ad
Log in to vote
0
Answered by
funyun 958 Moderation Voter
9 years ago
part = Instance.new("Part", workspace)
weld = Instance.new("Weld", part)
weld.Part0 = part
weld.Part1 = workspace.Player["Left Arm"]

Copy that, put it in the command line, play your game in studio, then run the command.

0
fix your line 4 O: XToonLinkX123 580 — 9y
0
What's there to fix? It's just something for the command line. funyun 958 — 9y
0
line 4 at the last character XToonLinkX123 580 — 9y
0
OH! funyun 958 — 9y
1
You should explain what is the Weld object, how does it work, Not just give the user code. woodengop 1134 — 9y

Answer this question