local W=(script.Parent.Parent:FindFirstChild(modelname)):clone()local w=script.Parent enabled=true function onClick(g)if enabled==true then enabled=false w.BrickColor=BrickColor.new("\082\101\097\108\108\121 \098\108\097\099\107")script.Parent.BillboardGui.Enabled=false script.Parent.bing:Play()if script.Parent.Parent:FindFirstChild(modelname)~=nil then(script.Parent.Parent:FindFirstChild(modelname)):Destroy()end local l=W:clone()l.Parent=script.Parent.Parent l:MakeJoints()g.Character.Torso.CFrame=CFrame.new(l.seat.Position)*CFrame.new(0,.5,0)l.seat.sitsound:Play()wait(1)l.seat.Anchored=false wait(WaitTime)script.Parent.BillboardGui.Enabled=true enabled=true w.BrickColor=BrickColor.new("\066\114\105\103\104\116 \118\105\111\108\101\116")end end script.Parent.ClickDetector.MouseClick:connect(onClick)



local modelbackup = script.Parent.Parent:FindFirstChild(modelname):clone()
local trigger = script.Parent

enabled = true

function onClick(player)

	if enabled == true then

		enabled = false
		trigger.BrickColor = BrickColor.new("Really black")
		script.Parent.BillboardGui.Enabled = false
		script.Parent.bing:Play()


	if script.Parent.Parent:FindFirstChild(modelname) ~= nil then

		script.Parent.Parent:FindFirstChild(modelname):Destroy()

	end

		local modelclone = modelbackup:clone()
		modelclone.Parent = script.Parent.Parent
		modelclone:MakeJoints()
		player.Character.Torso.CFrame = CFrame.new(modelclone.seat.Position) * CFrame.new(0, 0.5, 0) 
		modelclone.seat.sitsound:Play()
		wait(1)
		modelclone.seat.Anchored = false

		wait(WaitTime)
		script.Parent.BillboardGui.Enabled = true		
		enabled = true
		trigger.BrickColor = BrickColor.new("Bright violet")

	end

end

script.Parent.ClickDetector.MouseClick:connect(onClick)

