Stage Door Solution

So hi!

Is there any possible way of making stage doors open when a button is pressed just like in reality shows.
I tried this script but it is not working.

local rightDoor = game.Workspace.RightScrn
local leftDoor = game.Workspace.LeftScrn
local button = script.Parent -- Replace with the actual name of your button

local doorOpen = false
local doorMoveTime = 1  -- Adjust this time based on your animation speed

local doorStartPosition = Vector3.new(0, 0, 0)
local doorOpenPosition = Vector3.new(3, 0, 0)  -- Adjust the X value for a small open

local function toggleDoors()
	if doorOpen then
		rightDoor.Position = rightDoor.Position - doorOpenPosition
		leftDoor.Position = leftDoor.Position + doorOpenPosition
		doorOpen = false
	else
		rightDoor.Position = rightDoor.Position + doorOpenPosition
		leftDoor.Position = leftDoor.Position - doorOpenPosition
		doorOpen = true
	end
end

button.MouseClick:Connect(toggleDoors)

Im guessing you mean as in they slide off? Im not to sure what you mean by in reality shows but if you want them to slide off the stage instead of just disappearing, then you should use the TweenService.

1 Like

Yeah slide on their sides.

I hate the word limit

Yep use the tweenservice to tween their position.

1 Like

Door.rbxm (22.2 KB)

I don’t need a hinge door, I want a door that slides on both sides.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.