Hi, I am trying to make a lift for my roblox game, However, There seems to be problems.
Here’s the lift
The white button is meant to be clicked to go up
Here is the script
local Door1 = script.Parent.Parent.SlideDoor.Door1.Metal
local Door1_5 = script.Parent.Parent.Parent.SlideDoor_LiftA.Door1.Metal
local Door2 = script.Parent.Parent.SlideDoor.Door2.Metal
local Door2_5 = script.Parent.Parent.Parent.SlideDoor_LiftA.Door2.Metal
local Elevator = script.Parent.Parent.Parent.Elevator_A
script.Parent.Touched:Connect(function(part)
local h = part.Parent:FindFirstChild(“Humanoid”)
if h then
script.Disabled = true
Door1.Close.Disabled = false
Door1_5.Close.Disabled = false
Door2.Close.Disabled = false
Door2_5.Close.Disabled = false
wait(2)
Elevator.Up.Disabled = false
end
end)