wait(.1)local Z=script.Parent function GetPlayerFromWeld(Z)if Z.Part1.Name=="\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116"then local x=Z.Part1.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if x then local Z=game.Players:GetPlayerFromCharacter(x.Parent)if Z then return Z end end end return nil end Z.ChildAdded:connect(function(x)if x:IsA("\087\101\108\100")then local s=GetPlayerFromWeld(x)if s then local x=script.SpeedGUI:Clone()wait(.1)x.Car.Value=Z x.Parent=s.PlayerGui end end end)Z.ChildRemoved:connect(function(Z)if Z:IsA("\087\101\108\100")then local x=GetPlayerFromWeld(Z)if x then if x.PlayerGui:findFirstChild("\083\112\101\101\100\071\085\073")then x.PlayerGui.SpeedGUI:Destroy()end end end end)

wait(0.1)

local seat = script.Parent

function GetPlayerFromWeld( weld )
	if weld.Part1.Name == "HumanoidRootPart" then
		local character = weld.Part1.Parent:findFirstChild("Humanoid")
		if (character) then
			local player = game.Players:GetPlayerFromCharacter(character.Parent)
			if (player) then
				return player
			end
		end
	end
	return nil
end

seat.ChildAdded:connect(function( newChild )	
	if newChild:IsA("Weld") then
		local player = GetPlayerFromWeld(newChild)
		if (player) then
			local newGUI = script.SpeedGUI:Clone()
			wait(0.1)
			newGUI.Car.Value = seat
			newGUI.Parent = player.PlayerGui
		end
	end
end)

seat.ChildRemoved:connect(function( oldChild )
	if oldChild:IsA("Weld") then
		local player = GetPlayerFromWeld( oldChild )
		if player then
			if player.PlayerGui:findFirstChild("SpeedGUI") then
				player.PlayerGui.SpeedGUI:Destroy()
			end
		end
	end
end)
