Motor6D Orientation Bug?

DISCLAIMER:
This issue popped up randomly after the “Origin Position / Orientation” update so I don’t know whether it’s tied to that or not. It wasn’t an issue before and I haven’t changed my code.

For some reason when the player is loaded in with a weapon.

  • The client always loads their weapon in correctly.
  • The server sometimes sees that the client loaded their weapon correctly.
  • The client sees that other client’s weapons aren’t loaded correctly.

Client:

Server:

Code:

local SixDee = Instance.new("Motor6D", SwappedGun:WaitForChild("BodyAttach")) -- This attaches the gun to da boi
	SixDee.Part0 = Character:WaitForChild("RightHand")
    SwappedGun.Parent = Character -- I clone the gun to the player then attach the Motor6D to it's hand.
    SixDee.Part1 = SwappedGun:WaitForChild("BodyAttach")

I am extremely confused on why this is happening all of a sudden and would love some help. Thank you <3

This is also a random occurrence that happens with it as well:

Server Loads Both Weapons Fine:

But Both Clients See Differently:


Mind me everything is ran by the server so the clients should be seeing what the server is. Vice Versa.

Ive had this issue before. Make sure the motor6d is already created before you weld the gun to the player. For example create the motor6d when the players character loads in then when you want to equip the weapon you can just reference the motor6d thats already created.

Hope this helps.

4 Likes