Players=game:GetService("\080\108\097\121\101\114\115")Workspace=game:GetService("\087\111\114\107\115\112\097\099\101")Seat=script.Parent GUI=script.GUI Active=false Player=nil NewGui=nil Seat.ChildAdded:connect(function(t)if Active==false then if t.Name=="\083\101\097\116\087\101\108\100"then Active=true Player=Players:GetPlayerFromCharacter(t.Part1.Parent)if Player~=nil then PlayerGui=Player:FindFirstChild("\080\108\097\121\101\114\071\117\105")if PlayerGui~=nil then NewGui=GUI:Clone()NewGui.Parent=PlayerGui end end end end end)Seat.ChildRemoved:connect(function(t)if t.Name=="\083\101\097\116\087\101\108\100"then if Active==true then Active=false pcall(function()NewGui:Destroy()end)Player=nil NewGui=nil end end end)
--[[ Main Script ]]
--

Players = game:GetService("Players")
Workspace = game:GetService("Workspace")

Seat = script.Parent
GUI = script.GUI
Active = false
Player = nil
NewGui = nil

Seat.ChildAdded:connect(function(Child)
	if Active == false then
		if Child.Name == "SeatWeld" then
			Active = true
			Player = Players:GetPlayerFromCharacter(Child.Part1.Parent)
			if Player ~= nil then
				PlayerGui = Player:FindFirstChild("PlayerGui")
				if PlayerGui ~= nil then
					NewGui = GUI:Clone()
					NewGui.Parent = PlayerGui
				end
			end
		end
	end
end)

Seat.ChildRemoved:connect(function(child)
	if child.Name == "SeatWeld" then
		if Active == true then
			Active = false
			pcall(function()
				NewGui:Destroy()
			end)
			Player = nil
			NewGui = nil
		end
	end
end)
