handler=script.Parent handler.OnServerEvent:Connect(function(T,Y)print("\114\101\099\101\105\118\101\100")handler:FireClient(game.Players:WaitForChild(T.Name))if Y=="\102\114\111\110\116"then airbags.FL.Transparency=0 airbags.FR.Transparency=0 airbags.Crash1.Transparency=1 airbags.Crash2.Transparency=1 airbags.Crash3.Transparency=1 airbags.Crash4.Transparency=1 airbags.Crash5.Transparency=1 airbags.Crash6.Transparency=1 end if Y=="\102\114\111\110\116\108\101\102\116"then airbags.FL.Transparency=0 airbags.FR.Transparency=0 airbags.L.Transparency=0 airbags.Crash1.Transparency=1 airbags.Crash2.Transparency=1 airbags.Crash3.Transparency=1 airbags.Crash4.Transparency=1 airbags.Crash5.Transparency=1 airbags.Crash6.Transparency=1 end if Y=="\108\101\102\116"then airbags.L.Transparency=0 end if Y=="\102\114\111\110\116\114\105\103\104\116"then airbags.FR.Transparency=0 airbags.FL.Transparency=0 airbags.R.Transparency=0 airbags.Crash1.Transparency=1 airbags.Crash2.Transparency=1 airbags.Crash3.Transparency=1 airbags.Crash4.Transparency=1 airbags.Crash5.Transparency=1 airbags.Crash6.Transparency=1 end if Y=="\114\105\103\104\116"then airbags.R.Transparency=0 end if Y=="\114\101\115\116\111\114\101"then airbags.FL.Transparency=1 airbags.FR.Transparency=1 airbags.R.Transparency=1 airbags.L.Transparency=1 airbags.Crash1.Transparency=0 airbags.Crash2.Transparency=0 airbags.Crash3.Transparency=0 airbags.Crash4.Transparency=0 airbags.Crash5.Transparency=0 airbags.Crash6.Transparency=0 end end)

handler = script.Parent

handler.OnServerEvent:Connect(function(plr, side)
	print('received')
	handler:FireClient(game.Players:WaitForChild(plr.Name))
	if side == 'front' then
		airbags.FL.Transparency = 0
		airbags.FR.Transparency = 0
		airbags.Crash1.Transparency = 1
		airbags.Crash2.Transparency = 1
		airbags.Crash3.Transparency = 1
		airbags.Crash4.Transparency = 1
		airbags.Crash5.Transparency = 1
		airbags.Crash6.Transparency = 1
	end	
	
	if side == 'frontleft' then
		airbags.FL.Transparency = 0
		airbags.FR.Transparency = 0
		airbags.L.Transparency = 0
		airbags.Crash1.Transparency = 1
		airbags.Crash2.Transparency = 1
		airbags.Crash3.Transparency = 1
		airbags.Crash4.Transparency = 1
		airbags.Crash5.Transparency = 1
		airbags.Crash6.Transparency = 1
	end
	
	if side == 'left' then
		airbags.L.Transparency = 0
	end
	
	if side == 'frontright' then
		airbags.FR.Transparency = 0
		airbags.FL.Transparency = 0
		airbags.R.Transparency = 0
		airbags.Crash1.Transparency = 1
		airbags.Crash2.Transparency = 1
		airbags.Crash3.Transparency = 1
		airbags.Crash4.Transparency = 1
		airbags.Crash5.Transparency = 1
		airbags.Crash6.Transparency = 1
	end
	
	if side == 'right' then
		airbags.R.Transparency = 0
	end
	
	if side == 'restore' then
		airbags.FL.Transparency = 1
		airbags.FR.Transparency = 1
		airbags.R.Transparency = 1	
		airbags.L.Transparency = 1
		airbags.Crash1.Transparency = 0
		airbags.Crash2.Transparency = 0
		airbags.Crash3.Transparency = 0
		airbags.Crash4.Transparency = 0
		airbags.Crash5.Transparency = 0
		airbags.Crash6.Transparency = 0
	end
end)
