local t=script.Parent local e=script.Parent.Parent t.OnServerEvent:connect(function(t,o)if o.ToggleLight then if e.Body.Light.on.Value==true then e.Body.Light.on.Value=false else e.Body.Light.on.Value=true end elseif o.ToggleFog then if e.Body.Fog.on.Value==false then e.Body.Fog.on.Value=true else e.Body.Fog.on.Value=false end elseif o.ReverseOn then e.Body.Reverse.on.Value=true elseif o.ReverseOff then e.Body.Reverse.on.Value=false elseif o.EnableBrakes then e.Body.Brakes.on.Value=true elseif o.DisableBrakes then e.Body.Brakes.on.Value=false elseif o.ToggleLeftBlink then if e.Body.Left.on.Value==true then e.Body.Left.on.Value=false else e.Body.Left.on.Value=true end elseif o.ToggleRightBlink then if e.Body.Right.on.Value==true then e.Body.Right.on.Value=false else e.Body.Right.on.Value=true end elseif o.ToggleHazard then if e.Body.Hazards.on.Value==true then e.Body.Hazards.on.Value=false else e.Body.Hazards.on.Value=true end end end)
-- Testing AC FE support

local event = script.Parent
local car = script.Parent.Parent

event.OnServerEvent:connect(function(player, data)
	if data["ToggleLight"] then
		if car.Body.Light.on.Value == true then
			car.Body.Light.on.Value = false
		else
			car.Body.Light.on.Value = true
		end
	elseif data["ToggleFog"] then
		if car.Body.Fog.on.Value == false then
			car.Body.Fog.on.Value = true
		else
			car.Body.Fog.on.Value = false
		end
	elseif data["ReverseOn"] then
		car.Body.Reverse.on.Value = true
	elseif data["ReverseOff"] then
		car.Body.Reverse.on.Value = false
	elseif data["EnableBrakes"] then
		car.Body.Brakes.on.Value = true
	elseif data["DisableBrakes"] then
		car.Body.Brakes.on.Value = false
	elseif data["ToggleLeftBlink"] then
		if car.Body.Left.on.Value == true then
			car.Body.Left.on.Value = false
		else
			car.Body.Left.on.Value = true
		end
	elseif data["ToggleRightBlink"] then
		if car.Body.Right.on.Value == true then
			car.Body.Right.on.Value = false
		else
			car.Body.Right.on.Value = true
		end
	elseif data["ToggleHazard"] then
		if car.Body.Hazards.on.Value == true then
			car.Body.Hazards.on.Value = false
		else
			car.Body.Hazards.on.Value = true
		end
	end
end)
