local t=script.Parent.Car.Value local N=workspace.CurrentCamera local M=game:GetService("\082\117\110\083\101\114\118\105\099\101")t.DriveSeat.ChildRemoved:connect(function(t)if t.Name=="\083\101\097\116\087\101\108\100"then M:UnbindFromRenderStep("\077\067\097\109")N.CameraType=Enum.CameraType.Custom end end)script.Parent.Values.MouseSteerOn.Changed:connect(function(p)if script.Parent.Values.MouseSteerOn.Value then M:BindToRenderStep("\077\067\097\109",Enum.RenderPriority.Camera.Value,function()N.CameraType=Enum.CameraType.Scriptable local M=math.min(1,t.DriveSeat.Velocity.Magnitude/500)local p=((t.DriveSeat.Position+Vector3.new(0,8+M*2,0))-t.DriveSeat.CFrame.lookVector*17)+(t.DriveSeat.Velocity.Unit*-7)*M N.CoordinateFrame=CFrame.new(p,t.DriveSeat.Position)end)else M:UnbindFromRenderStep("\077\067\097\109")N.CameraType=Enum.CameraType.Custom end end)
-- Decompiled with Visenya | https://targaryentech.com
local car = script.Parent.Car.Value
local cam = workspace.CurrentCamera
local RS = game:GetService("RunService")
car.DriveSeat.ChildRemoved:connect(function(child)
	if child.Name == "SeatWeld" then
		RS:UnbindFromRenderStep("MCam")
		cam.CameraType = Enum.CameraType.Custom
	end
end)
script.Parent.Values.MouseSteerOn.Changed:connect(function(property)
	if script.Parent.Values.MouseSteerOn.Value then
		RS:BindToRenderStep("MCam", Enum.RenderPriority.Camera.Value, function()
			cam.CameraType = Enum.CameraType.Scriptable
			local pspeed = math.min(1, car.DriveSeat.Velocity.Magnitude / 500)
			local cc = car.DriveSeat.Position
				+ Vector3.new(0, 8 + pspeed * 2, 0)
				- car.DriveSeat.CFrame.lookVector * 17
				+ car.DriveSeat.Velocity.Unit * -7 * pspeed
			cam.CoordinateFrame = CFrame.new(cc, car.DriveSeat.Position)
		end)
	else
		RS:UnbindFromRenderStep("MCam")
		cam.CameraType = Enum.CameraType.Custom
	end
end)
