Hi. So basically i'm trying to make a shotgun. And when i equip it, my arm disappears. It's the code that's making it be destroyed. but i don't have a :Destroy() function in it. please help. Code:
local plr = game.Players.LocalPlayer script.Parent.Equipped:Connect(function() local char = plr.Character char['Left Arm'].Orientation = Vector3.new(90, 60, 0) end) script.Parent.Unequipped:Connect(function() local char = plr.Character char['Left Arm'].Orientation = Vector3.new(90, 60, 0) end)
This is normal when you rotate a limb. To rotate these without these falling apart, you can go into their torso and you find Motor6Ds. To rotate the arms, we simply need to edit their C0s and C1s
local char = game.Players.LocalPlayer.Character --why not just define it once? local function rotate() --Remember, try not to repeat yourself. char.Torso['Left Shoulder'].C1 = CFrame.Angles(math.rad(90), math.rad(60), 0) --Experiment this with studio, I have not tried this out. end script.Parent.Equipped:Connect(rotate) script.Parent.Unequipped:Connect(rotate)
Try experimenting and changing C1 to C0, changing the amount of radians, etc. Hope this helps!