if IsNewPlayer and not UIS.TouchEnabled then script.Parent.Changed:connect(function(e)if e=="\086\105\115\105\098\108\101"and not UIS.TouchEnabled then if script.Parent.Visible then keyboardInput=UIS.InputBegan:connect(function(e,l)if e.UserInputType==Enum.UserInputType.Keyboard and e.KeyCode==Enum.KeyCode.Space then script.Parent:Destroy()end end)wait(7)script.Parent.Visible=false else if keyboardInput then keyboardInput:disconnect()keyboardInput=nil end end end end)local e=game.Players.LocalPlayer.Character:WaitForChild("\072\117\109\097\110\111\105\100",5)e.Seated:connect(function(e,l)if e and(l and l.Parent)then if not ShowedExitMessage and l.Name=="\068\114\105\118\101\114"then script.Parent.Frame.TextLabel.Text="\069\120\105\116 \067\097\114"ShowedExitMessage=true wait(2)script.Parent.Visible=true elseif not ShowedStandMessage and l.Name~="\068\114\105\118\101\114"then script.Parent.Frame.TextLabel.Text="\083\116\097\110\100 \085\112"ShowedStandMessage=true wait(.5)script.Parent.Visible=true end end end)else script.Parent:Destroy()end

if IsNewPlayer and not UIS.TouchEnabled then 
	script.Parent.Changed:connect(function(prop)
		if prop == "Visible" and not UIS.TouchEnabled then
			if script.Parent.Visible then
				keyboardInput = UIS.InputBegan:connect(function(input,gameProcessed)
					if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.Space then
						script.Parent:Destroy()
					end
				end)
				wait(7)
				script.Parent.Visible = false
			else
				if keyboardInput then keyboardInput:disconnect() keyboardInput = nil  end
			end
		
		end
	end)
	
	local humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid",5)
	humanoid.Seated:connect(function(active,seat)
		if active and seat and seat.Parent then
			if not ShowedExitMessage and seat.Name == "Driver" then
				script.Parent.Frame.TextLabel.Text = "Exit Car"
				ShowedExitMessage = true
				wait(2)
				script.Parent.Visible = true
				
				
				
			elseif not ShowedStandMessage and seat.Name ~= "Driver" then
				script.Parent.Frame.TextLabel.Text = "Stand Up"
				ShowedStandMessage = true
				wait(.5)
				script.Parent.Visible = true
				
			end
		end
	end)
else
	script.Parent:Destroy()
	
end

