script.Parent.OnServerEvent:connect(function(t,s,...)if F[s]then F[s](...)end end)
--F.headLights = function(Tog)
--	for i,v in pairs(script.Parent.Parent.Parent:getChildren()) do
--		if v:FindFirstChild('Head') or v:FindFirstChild('Tail') then
--			v.BGUI.Enabled = (carSeat.Ignition.Value == 1 and Tog or false)
--			v.SpotLight.Enabled = (carSeat.Ignition.Value == 1 and Tog or false)
--		end
--	end
--	carSeat.Headlights.Value = (carSeat.Ignition.Value == 1 and Tog or false)
--end

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