Moving Parts Script Error

@Cypacic Try that, it should work.

It didn’t print anything sadly

(Did you put the print outside of the brackets?)

This means your script is not running. Where is the model located.

Try my script, It should work!

I really don’t know why you’re ignoring me but fine.

Yes, it probably would work but not in the way OP intended. They said they wanted to make it slowly open.

Oh, then use Tweenservice I guess.

That’s literally the script that @JackscarIitt provided and I’m trying to make it work. It seems the script isn’t running

I didn’t see it, but Vector3() is used for positions every scripter knows that…

The script is using Vector3. It’s just tweening it instead of instantly setting position.

the model is located in workplace

I did try it but it isn’t working not sure why let me try again

Could You please provide a screenshot of where the script is located (The model it’s parented to and stuff)

Vector3() sets the position instantly I even tried it, but I did not see that he wants to open the door slowly. I have to go right now if you have any questions my discord below.

Discord: MasterLoyalty#6780

try this:

local Left = script.Parent.LeftDoor
local Right = script.Parent.RightDoor

local Touch = script.Parent.Touch--touch part

local startLeft=Vector3.new(178, 21.326, -188.446)
local endLeft=Vector3.new(189, 21.326, -188.446)
local startRight=Vector3.new(156, 21.326, -188.461)
local endRight=Vector3.new(145, 21.326, -188.461)

--difference left==+11
--difference right==-11

debounce=true
Touch.Touched:Connect(function()
  if not debounce then return end
  debounce=false
  if Left.Position==startLeft and Right.Position==startRight then
    for i=1,11,1 do
      Left.Position+=Vector3.new(1,0,0)
      Right.Position-=Vector3.new(1,0,0)
      wait(0.25)
    end
  else
      return
  end
  wait(3)
  
  if Left.Position==endLeft and Right.Position==endRight then
    for i=1,11,1 do
      Left.Position-=Vector3.new(1,0,0)
      Right.Position+=Vector3.new(1,0,0)
      wait(0.25)
    end
  else
      return
  end
  debounce=true
end)

Screen Shot 2021-04-30 at 17.12.26

Could You also show the children inside the model, please? I have no idea why the script isn’t running, though. This is a server script,correct?

this is a local script inside the model…

That’s it then! Local scripts don’t run inside workspace. Take the above code I refined, copy it (no brackets), delete the Local script and copy and paste the code into a server script where the local script was.