function JamCalculation()local Z if math.random(1,100)<=L_24_.JamChance then Z=true L_75_=true else Z=false end return Z end function TracerCalculation()local Z if math.random(1,100)<=L_24_.TracerChance then Z=true else Z=false end return Z end function ScreamCalculation()local Z if math.random(1,100)<=L_24_.SuppressCalloutChance then Z=true else Z=false end return Z end function SearchResupply(Z)local e=false local a=nil if Z:FindFirstChild("\082\101\115\117\112\112\108\121\086\097\108")or Z.Parent:FindFirstChild("\082\101\115\117\112\112\108\121\086\097\108")then e=true if Z:FindFirstChild("\082\101\115\117\112\112\108\121\086\097\108")then a=Z.ResupplyVal elseif Z.Parent:FindFirstChild("\082\101\115\117\112\112\108\121\086\097\108")then a=Z.Parent.ResupplyVal end end return e,a end function CheckReverb()local Z,e=workspace:FindPartOnRayWithIgnoreList(Ray.new(L_6_.CFrame.p,L_6_.CFrame.upVector.unit*30),IgnoreList)if Z then local Z=(L_59_:WaitForChild("\070\105\114\101")):FindFirstChild("\082\101\118\101\114\098\083\111\117\110\100\069\102\102\101\099\116")or Instance.new("\082\101\118\101\114\098\083\111\117\110\100\069\102\102\101\099\116",L_59_:WaitForChild("\070\105\114\101"))elseif not Z then if(L_59_:WaitForChild("\070\105\114\101")):FindFirstChild("\082\101\118\101\114\098\083\111\117\110\100\069\102\102\101\099\116")then L_59_.Fire.ReverbSoundEffect:Destroy()end end end function UpdateAmmo()L_29_.Text=L_106_ L_30_.Text=L_29_.Text L_31_.Text="\124 "..math.ceil(L_107_/L_24_.StoredAmmo)L_32_.Text=L_31_.Text if L_93_==0 then L_40_.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\056\054\056\048\048\055\052\057\053"elseif L_93_==1 then L_40_.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\056\054\056\048\048\055\057\052\055"elseif L_93_==2 then L_40_.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\056\054\056\048\048\056\053\056\052"end if L_92_==1 then L_35_.BackgroundTransparency=0 L_36_.BackgroundTransparency=.7 L_37_.BackgroundTransparency=.7 L_38_.BackgroundTransparency=.7 L_39_.BackgroundTransparency=.7 elseif L_92_==2 then L_35_.BackgroundTransparency=0 L_36_.BackgroundTransparency=0 L_37_.BackgroundTransparency=0 L_38_.BackgroundTransparency=0 L_39_.BackgroundTransparency=0 elseif L_92_==3 then L_35_.BackgroundTransparency=0 L_36_.BackgroundTransparency=0 L_37_.BackgroundTransparency=0 L_38_.BackgroundTransparency=.7 L_39_.BackgroundTransparency=.7 elseif L_92_==4 then L_35_.BackgroundTransparency=0 L_36_.BackgroundTransparency=0 L_37_.BackgroundTransparency=0 L_38_.BackgroundTransparency=0 L_39_.BackgroundTransparency=.7 elseif L_92_==5 then L_35_.BackgroundTransparency=0 L_36_.BackgroundTransparency=.7 L_37_.BackgroundTransparency=0 L_38_.BackgroundTransparency=.7 L_39_.BackgroundTransparency=.7 elseif L_92_==6 then L_35_.BackgroundTransparency=0 L_36_.BackgroundTransparency=.7 L_37_.BackgroundTransparency=0 L_38_.BackgroundTransparency=0 L_39_.BackgroundTransparency=.7 end end


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

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

function ScreamCalculation()
	local L_187_
	if (math.random(1, 100) <= L_24_.SuppressCalloutChance) then	
		L_187_ = true
	else
		L_187_ = false
	end
	return L_187_
end

function SearchResupply(L_188_arg1)
	local L_189_ = false
	local L_190_ = nil
	
	if L_188_arg1:FindFirstChild('ResupplyVal') or L_188_arg1.Parent:FindFirstChild('ResupplyVal') then
		L_189_ = true
		if L_188_arg1:FindFirstChild('ResupplyVal') then
			L_190_ = L_188_arg1.ResupplyVal
		elseif L_188_arg1.Parent:FindFirstChild('ResupplyVal') then
			L_190_ = L_188_arg1.Parent.ResupplyVal
		end
	end
	return L_189_, L_190_
end

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

function UpdateAmmo()
	L_29_.Text = L_106_
	L_30_.Text = L_29_.Text
	
	L_31_.Text = '| ' .. math.ceil(L_107_ / L_24_.StoredAmmo)
	L_32_.Text = L_31_.Text
	
	if L_93_ == 0 then
		L_40_.Image = 'rbxassetid://' .. 1868007495
	elseif L_93_ == 1 then
		L_40_.Image = 'rbxassetid://' .. 1868007947
	elseif L_93_ == 2 then
		L_40_.Image = 'rbxassetid://' .. 1868008584
	end
	
	if L_92_ == 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_92_ == 2 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0
		L_39_.BackgroundTransparency = 0
	elseif L_92_ == 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_92_ == 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_92_ == 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_92_ == 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
