F.lock=function(t) end local t=0 F.rs=function(i)local o=require(carSeat.Parent:FindFirstChild("\065-\067\104\097\115\115\105\115 \084\117\110\101"))carSeat.IsOn.Value=i if i then carSeat.EngineStart:Play()if not car.DriveSeat.IsOn.Value then t=math.max(t-.015,0)else t=1 end car.DriveSeat.Rev.Pitch=(car.DriveSeat.Rev.SetPitch.Value+(car.DriveSeat.Rev.SetRev.Value*o.IdleRPM)/o.Redline)*t^2 else car.DriveSeat.Rev.Pitch=0 carSeat.EngineStart:Stop()end end F.user=function()carSeat.Parent:Destroy()end F.tk3=function(t)carSeat.Parent.Misc.TK.SS.Motor.DesiredAngle=0 carSeat.Parent.Misc.TK2.SS.Motor.DesiredAngle=0 end F.tk2=function(t)carSeat.Parent.Misc.TK2.SS.Motor.DesiredAngle=t and-1.5 or 0 end F.tk=function(t)carSeat.Parent.Misc.TK.SS.Motor.DesiredAngle=t and 1 or 0 end script.Parent.OnServerEvent:connect(function(t,i,...)if F[i]then F[i](...)end end)


F.lock = function(x)
end

local on = 0

F.rs = function(y)
	local tune = require(carSeat.Parent:FindFirstChild("A-Chassis Tune"))
	carSeat.IsOn.Value = y
	if y then
		carSeat.EngineStart:Play()
		if not car.DriveSeat.IsOn.Value then on=math.max(on-.015,0) else on=1 end
		car.DriveSeat.Rev.Pitch = (car.DriveSeat.Rev.SetPitch.Value + car.DriveSeat.Rev.SetRev.Value*tune.IdleRPM/tune.Redline)*on^2
	else car.DriveSeat.Rev.Pitch = 0
		carSeat.EngineStart:Stop()
	end
end

F.user = function()
	carSeat.Parent:Destroy()
end

F.tk3 = function(b)
	carSeat.Parent.Misc.TK.SS.Motor.DesiredAngle = 0
	carSeat.Parent.Misc.TK2.SS.Motor.DesiredAngle = 0
end

F.tk2 = function(b)
	carSeat.Parent.Misc.TK2.SS.Motor.DesiredAngle = b and -1.5 or 0
end

F.tk = function(b)
	carSeat.Parent.Misc.TK.SS.Motor.DesiredAngle = b and 1 or 0
end

script.Parent.OnServerEvent:connect(function(Player, Func, ...)
	if F[Func] then
		F[Func](...)
	end
end)
