I'm trying to make a door that has two buttons but only one button works.
local tweenService = game:GetService("TweenService")
local clickDetector = workspace:WaitForChild("Lever").ClickDetector
local seconds = 11.9
clickDetector.MouseClick:Connect(function()
wait(2.7)
script.Parent.Rumb:Play()
tweenService:Create(script.Parent, TweenInfo.new(seconds, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = CFrame.new(-232.523, 75.247, -242.881)}):Play()
wait(30)
script.Parent.Rumb:Play()
tweenService:Create(script.Parent, TweenInfo.new(seconds, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = CFrame.new(-232.523, 75.247, -182.133)}):Play()
end)
Thanks if you can help!

4 comments
So you have two buttons, but one click detector?
There are two, one in each button
id rather use a for i loop im not a fan of working with tween services
By the way I suggest not using explicit cframes but instead using rightVector and multiplying an offset so you don't have to re-edit the script when you want to move the doors.