Greetings.
I have been working on a car, and using Motors as a way to move the doors.
But, whenever I use the prompt, the door only opens on the server side, not client side.
All the scripts are server sided.
Does anyone have a solution?
Here’s some screenshots/videos of the issue:
Video of the issue:
Showcase of server side:
Door script:
repeat wait(.1) until script.Parent.Parent.Parent.SS:FindFirstChild('Motor')
local m = script.Parent.Parent.Parent.SS.Motor
script.Parent.Triggered:Connect(function()
if m.DesiredAngle == 0 then
m.DesiredAngle = -2
elseif m.DesiredAngle == -2 then
m.DesiredAngle = 0
while m.CurrentAngle < 0 do wait() end
end
end)
Motor script:
wait(.1)
local fl = Instance.new("Motor", script.Parent.Parent.Misc.FL.Door.SS)
fl.MaxVelocity = 0.03
fl.Part0 = script.Parent.FL
fl.Part1 = fl.Parent
Motor Properties: