Motor6D not replicating to other players?

  1. What do you want to achieve?
    I want to find a solution to fix my Motor6D animations

  2. What is the issue?
    I’ve been working on a space shuttle project by animating the payload bay doors through motor6D but I’ve been experiencing problems to which I do not know how to fix. The motor6D only functions to the one who controls it while for the other people nothing is showing for them.

  3. What solutions have you tried so far?
    I was thinking of using a remote event to do this rather than just one server script, keep in mind that I am a new scripter so I might not be able to understand a lot of things. I have been trying to find posts similar to mine but to no avail, I just really need a solution.

Here is a GIF showing the problem that is occurring for me:
https://gyazo.com/5e066f3391746780e4383338f4b712af

SERVERSCRIPT
local open = false
local orbiter = game.Workspace.Orbiter
local bay = orbiter["PAYLOAD DOOR"]
local Lmotor = bay["Left Motor"]
local Rmotor = bay["Right Motor"]

script.Parent.MouseButton1Click:Connect(function(Bruh)
	
	if open == false then
		script.Parent.BackgroundColor3 = Color3.new(0.137255, 0.639216, 0)
		open = true
		Rmotor.Motor.Motor6D.DesiredAngle = 2.7

	elseif open == true then
		script.Parent.BackgroundColor3 = Color3.new(0.666667, 0, 0)
		open = false
		Rmotor.Motor.Motor6D.DesiredAngle = 0
	end
end)
1 Like

How about using a RemoteEvent? Since it seems that the script is local, normally the local is not replicated if it is not related to the player’s character.

Local
local open = false
script.Parent.MouseButton1Click:Connect(function()
	if not open then
		script.Parent.BackgroundColor3 = Color3.new(0.137255, 0.639216, 0)
	else
		script.Parent.BackgroundColor3 = Color3.new(0.666667, 0, 0)
	end
	open = not open
	game:GetService("ReplicatedStorage").RemoteEvent:FireServer(open)
end)
Script
local orbiter = workspace.Orbiter
local bay = orbiter["PAYLOAD DOOR"]
local Lmotor = bay["Left Motor"]
local Rmotor = bay["Right Motor"]

game:GetService("ReplicatedStorage").RemoteEvent.OnServerEvent:Connect(function(Player, open)
	if not open then
		Rmotor.Motor.Motor6D.DesiredAngle = 2.7
	else
		Rmotor.Motor.Motor6D.DesiredAngle = 0
	end
end)
Preferred location

image

1 Like

I don’t know why but I don’t think it worked, here’s a gif of what happened. It showed the same result even if it had the remote events.
https://gyazo.com/398389d39d871cb71dd617d3bf5428d4

Screenshots of my explorer:
https://gyazo.com/9ef898ac0d4be5616c5025bae03d8b8e
https://gyazo.com/d1b3490c5d696dbebc718893f051a46a

1 Like

Update:
Motors replicate to other players but with huge stutters and delay before being able to do something, also I used the code that you have sent me. (I tested both the roblox studio local server and ingame)

1 Like

New update:
Instead of using Motor6Ds, use hinge constraints as they work and is much smoother than Motor6Ds
https://gyazo.com/3b70158f1f41ca062362fb42215ed667

1 Like