I have a meshpart that looks like a gun and I want it to rotate correctly, but for some reason its not working. There are no errors in the output.
game.ReplicatedStorage.BlitzGunEvents.EquipItem.OnServerEvent:Connect(function(plr)
local gun = game.ReplicatedStorage.Guns.AK:Clone()
gun.CFrame = plr.Character:FindFirstChild("RightHand").CFrame * CFrame.Angles(math.rad(90),0,0)
gun.Parent = plr.Character
local joint = Instance.new("Motor6D",gun)
joint.Part0 = plr.Character.RightHand
joint.Part1 = gun
game.ReplicatedStorage.BlitzGunEvents.SetUpHumAnims:FireClient(plr)
end)
