Door's poistion not changing

Hello so i’m working on a door system that gets every instance in the folder and then whenever you use a keycard it opens it
I ran into a issue where it doesnt change the doors postion

function open()
    print("Bruh")
	for i = 1,60,1 do
		door.Position = Vector3.new(door.Position.X, door.Position.Y + 0.1, door.Position.Z)
		wait()
	end
	wait(3)
	close()
	openv.Value = false
end

if anyone can help please tell me

Try this:

door.Position + Vector3.new(0,.1,0) -- offset

Where may i ask? As its meant to slowly make the door go up lol

function open()
    print("Bruh")
	for i = 1,60,1 do
		door.Position = door.Position + Vector3.new(0,.1,0)
		wait()
	end
	wait(3)
	close()
	openv.Value = false
end
1 Like

Not really good with position lol

https://gyazo.com/56bbeba2e6f1015bd0109d14a27ed04d?token=65f3c74dcef96361d89b8ff37c88d3c0 same result sadly

Is your Door a model?

ergersjg

1 Like

door.rbxm (31.5 KB) its moving the core

Just show the Explorer Tab of the Door.

1 Like

image

Open the Door folder please.

sure
image

Try this?

local TS = game.TweenService


function Doorfunc(open: boolean)
  if open == true then
    TS:Create(door, TweenInfo.new(2), {CFrame = door.CFrame * CFrame.new(0,6,0)}):Play()
  else
    TS:Create(door, TweenInfo.new(2), {CFrame = door.CFrame * CFrame.new(0,-6,0)}):Play()
  end
end

Doorfunc(true) -- Opens door

Disregard. Didn’t notice it as I didn’t scroll to it.

Hello we arent changing the door frame its self

Is the Door anchored?

Are you getting Bruh printed in the Output Window? If not then whatever calls the open() function isn’t working.

Is the door a model or a part?
If the door is a model, I suggest you make a main part of the door and weld all other parts to it, then tween the main part.