#How do I make a wall door
1 messages · Page 1 of 1 (latest)
script
local door = workspace.Door
local isOpen = false
local function toggleDoor()
if isOpen == false then
-- Open the door (change position or orientation)
door.Position = door.Position + Vector3.new(0, 5, 0) -- Moves door up
isOpen = true
else
-- Close the door
door.Position = door.Position - Vector3.new(0, 5, 0) -- Moves door down
isOpen = false
end
end
script.Parent.ClickDetector.MouseClick:Connect(toggleDoor)
i think the last line needs to be:
script.Parent.ClickDetector.MouseClick:Connect(toggleDoor())
** You are now Level 1! **
not 100% sure tho
I'm going to need a complete guide because I restarted the whole thing.
First I have them attached