Event.OnServerEvent:Connect(function(S,k,F)print("\069\120\104\097\117\115\116\080\097\114\116\105\099\108\101")if F then local S=tostring(math.random(1,3))ExhaustPart["\066\097\099\107\102\105\114\101"..S]:Play()ExhaustPart.PointLight.Enabled=true ExhaustPart[k].Enabled=true if k=="\070\108\097\109\101\115\083\109\097\108\108"then ExhaustPart.PointLight.Range=6 ExhaustPart.PointLight.Brightness=5 ExhaustPart.Sparks.Enabled=false else ExhaustPart.PointLight.Range=8 ExhaustPart.PointLight.Brightness=12 ExhaustPart.Sparks.Enabled=true end else ExhaustPart[k].Enabled=false ExhaustPart.PointLight.Enabled=false end end)
--Serverside logic
Event.OnServerEvent:Connect(function(player, ExhaustParticle, FireBool)
	print("ExhaustParticle")

	if FireBool then
		local RanNum = tostring(math.random(1, 3))
		ExhaustPart["Backfire" .. RanNum]:Play()
		ExhaustPart.PointLight.Enabled = true
		ExhaustPart[ExhaustParticle].Enabled = true

		if ExhaustParticle == "FlamesSmall" then
			ExhaustPart.PointLight.Range = 6
			ExhaustPart.PointLight.Brightness = 5
			ExhaustPart.Sparks.Enabled = false
		else
			ExhaustPart.PointLight.Range = 8
			ExhaustPart.PointLight.Brightness = 12
			ExhaustPart.Sparks.Enabled = true
		end
	else
		ExhaustPart[ExhaustParticle].Enabled = false
		ExhaustPart.PointLight.Enabled = false
	end
end)
