--	if seat == nil then
--		cnt:disconnect()
--		--print(('no seat')
--		return
--	end

	currentframe = currentframe + 1

	local steer = seat.Steer
	local throttle = seat.Throttle
	local ocu = seat.Occupant

	if ocu ~= nil and ocu.Health > 0 and ocu == game.Players.LocalPlayer.Character.Humanoid then
		if controls.looped ~= nil then
			controls:looped()
		end
		if tick() - pretick >= runTime then
			pretick = tick()
		else
			return
		end
		if throttle == 1 then
			controls:Foward()
		elseif throttle == -1 then
			controls:Backward()
		else
			controls:Idle()
		end
		if steer == 1 then
			controls:RightTurn()
		elseif steer == -1 then
			controls:LeftTurn()
		else
			controls:NormalWheel()
		end
		--if seat.Parent.m.BodyVelocity.Velocity.magnitude <= .001 then
		--	local c = script.Parent.Parent:GetDescendants()
		--	for i = 1,#c do
		--		if c[i]:IsA("BasePart") then
		--			c[i].Velocity = Vector3.new()
		--			c[i].RotVelocity = Vector3.new()
		--		end
		--	end
		--end
	else
		if controls ~= nil and controls.End ~= nil then
			if controls.Anims then
				for i = 1,#controls.Anims do
					controls.Anims[i]:Stop()
				end
			end
			controls:End()
			cnt:Disconnect()
			cnt = nil
		else
			cnt:Disconnect()
			cnt = nil
		end
	end
end)
