local T=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")This=script.Parent Lift=This.Parent.Parent.Parent CustomLabel=require(Lift.CustomLabel)Characters=require(script.Characters)CustomText=CustomLabel.CUSTOMFLOORLABEL for T,S in pairs((Lift.Car:WaitForChild("\087\101\108\100\115")):GetChildren())do if S.Part1==script.Parent.Back then S:Destroy()end end local S=Instance.new("\077\097\110\117\097\108\087\101\108\100",This.Button)S.C0=Lift.Car.Platform.CFrame:inverse()*This.Back.CFrame S.Part0=Lift.Car.Platform S.Part1=This.Back click=false for E,u in pairs(This.Button:GetChildren())do if u:IsA("\083\117\114\102\097\099\101\071\117\105")and u.Name=="\066\117\116\116\111\110"then u.Button.MouseButton1Click:connect(function()if click==false then click=true;(T:Create(S,TweenInfo.new(.1),{C1=S.C1*CFrame.new(.002,0,0)})):Play()wait(.1);(T:Create(S,TweenInfo.new(.1),{C1=S.C1*CFrame.new(-0.002,0,0)})):Play()wait(.1)click=false end end)end end


local tweenService = game:GetService("TweenService")
This = script.Parent
Lift = This.Parent.Parent.Parent
CustomLabel = require(Lift.CustomLabel)
Characters = require(script.Characters)

CustomText = CustomLabel["CUSTOMFLOORLABEL"]

for i,v in pairs(Lift.Car:WaitForChild("Welds"):GetChildren()) do
	if v.Part1 == script.Parent.Back then v:Destroy() end
end
local weld = Instance.new("ManualWeld", This.Button)
weld.C0 = Lift.Car.Platform.CFrame:inverse() * This.Back.CFrame
weld.Part0 = Lift.Car.Platform
weld.Part1 = This.Back
click = false

for x,x in pairs(This.Button:GetChildren()) do 
	if x:IsA("SurfaceGui") and x.Name == ("Button") then 
		x.Button.MouseButton1Click:connect(function()
			if click == false then
				click = true
				tweenService:Create(weld,TweenInfo.new(0.1),{
					["C1"] = weld.C1*CFrame.new(0.002, 0, 0),
				}):Play()
				wait(0.1)
				tweenService:Create(weld,TweenInfo.new(0.1),{
					["C1"] = weld.C1*CFrame.new(-0.002, 0, 0),
				}):Play()
				wait(0.1)
				click = false
			end
		end)
	end
end
