-- 100 == 1  0 == 0  1/0.5


function JamCalculation()
	local L_170_
	if (math.random(1, 100) <= L_24_.JamChance) then	
		L_170_ = true
		L_71_ = true
	else
		L_170_ = false
	end
	return L_170_
end

function TracerCalculation()
	local L_171_
	if (math.random(1, 100) <= L_24_.TracerChance) then	
		L_171_ = true
	else
		L_171_ = false
	end
	return L_171_
end

function SearchResupply(L_172_arg1)
	local L_173_ = false
	local L_174_ = nil
	
	if L_172_arg1:FindFirstChild('ResupplyVal') or L_172_arg1.Parent:FindFirstChild('ResupplyVal') then
		L_173_ = true
		if L_172_arg1:FindFirstChild('ResupplyVal') then
			L_174_ = L_172_arg1.ResupplyVal
		elseif L_172_arg1.Parent:FindFirstChild('ResupplyVal') then
			L_174_ = L_172_arg1.Parent.ResupplyVal
		end
	end
	return L_173_, L_174_
end

function CheckReverb()
	local L_175_, L_176_ = workspace:FindPartOnRayWithIgnoreList(Ray.new(L_6_.CFrame.p, (L_6_.CFrame.upVector).unit * 30), IgnoreList);
		
	if L_175_ then
		local L_177_ = L_55_:WaitForChild('Fire'):FindFirstChild('ReverbSoundEffect') or Instance.new("ReverbSoundEffect", L_55_:WaitForChild('Fire'))
	elseif not L_175_ then
		if L_55_:WaitForChild('Fire'):FindFirstChild('ReverbSoundEffect') then
			L_55_.Fire.ReverbSoundEffect:Destroy()
		end
	end
end

function UpdateAmmo()
	L_29_.Text = L_95_
	L_30_.Text = L_29_.Text
	
	L_31_.Text = '| ' .. math.ceil(L_96_ / L_24_.StoredAmmo)
	L_32_.Text = L_31_.Text
	
	if L_87_ == 0 then
		L_40_.Image = 'rbxassetid://' .. 1868007495
	elseif L_87_ == 1 then
		L_40_.Image = 'rbxassetid://' .. 1868007947
	elseif L_87_ == 2 then
		L_40_.Image = 'rbxassetid://' .. 1868008584
	end
	
	if L_86_ == 1 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0.7
		L_37_.BackgroundTransparency = 0.7
		L_38_.BackgroundTransparency = 0.7
		L_39_.BackgroundTransparency = 0.7
	elseif L_86_ == 2 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0
		L_39_.BackgroundTransparency = 0
	elseif L_86_ == 3 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0.7
		L_39_.BackgroundTransparency = 0.7
	elseif L_86_ == 4 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0
		L_39_.BackgroundTransparency = 0.7
	elseif L_86_ == 5 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0.7
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0.7
		L_39_.BackgroundTransparency = 0.7
	elseif L_86_ == 6 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0.7
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0
		L_39_.BackgroundTransparency = 0.7
	end
	
end
