so i am welding a part to the RightUpperArm it works as long as the character isnt touching the floor why is this
edit its the same for RightLowerArm and RightHand
edit2: code-
local clone = children[i]:Clone()
local weld = Instance.new("WeldConstraint")
print(positions[clone.Name])
local weldtoo = weldto[clone.Name]
clone.Position = char[weldtoo].Position + positions[clone.Name]
clone.Parent = char
weld.Parent = char.HumanoidRootPart
weld.Part0 = char[weldto[clone.Name]]
weld.Part1 = clone
clone.Anchored = false
everything works fine as long as i am in the air how do i fix this?
Sometimes welds are effected by the starting position of the 2 parts, when a player is in the air their arm is in a different position than when they are on the ground due to the animations
1 Like
I see « weldtoo » earlier on the code and on that line there is « weldto ». Is it meant to be or is it an error?
1 Like
its meant to be as such the weldto is a table wayyy above the script there r no errors it works but the part just dissappears whn plr touches ground
Does the ground have a touched.event?
no also someone asked me to use motor6d am doing it rn
update didnt work and i checked the welds just delete themselves
They delete themselves because when you move a welded part with a simple weld, you have to modify the C0 of the weld unlike WeldConstraint