Need helping getting this weld script to work properly. Any ideas?
Asked by
5 years ago Edited 5 years ago
So basically, I wanna attach a wristband type of accessory onto the characters arm, however, the code I have isn't allowing me to do that
01 | local parent = script.Parent |
02 | local PrimaryPart = parent.PrimaryPart |
03 | local player = game:GetService( "Players" ).LocalPlayer |
04 | local character = player.Character or player.CharacterAdded:Wait() |
05 | local RArm = character [ "Right Arm" ] |
07 | local weld = Instance.new( "Weld" ) |
09 | weld.Part 0 = PrimaryPart |
11 | weld.C 0 = PrimaryPart.CFrame:inverse() |
12 | weld.C 1 = RArm.CFrame:inverse() |
13 | weld.Parent = PrimaryPart |
What can I fix to get it to weld?