function JamCalculation()local M if math.random(1,100)<=L_24_.JamChance then M=true L_71_=true else M=false end return M end function TracerCalculation()local M if math.random(1,100)<=L_24_.TracerChance then M=true else M=false end return M end function SearchResupply(M)local l=false local v=nil if M:FindFirstChild("\082\101\115\117\112\112\108\121\086\097\108")or M.Parent:FindFirstChild("\082\101\115\117\112\112\108\121\086\097\108")then l=true if M:FindFirstChild("\082\101\115\117\112\112\108\121\086\097\108")then v=M.ResupplyVal elseif M.Parent:FindFirstChild("\082\101\115\117\112\112\108\121\086\097\108")then v=M.Parent.ResupplyVal end end return l,v end function CheckReverb()local M,l=workspace:FindPartOnRayWithIgnoreList(Ray.new(L_6_.CFrame.p,L_6_.CFrame.upVector.unit*30),IgnoreList)if M then local M=(L_55_: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_55_:WaitForChild("\070\105\114\101"))elseif not M then if(L_55_: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_55_.Fire.ReverbSoundEffect:Destroy()end end end function UpdateAmmo()L_29_.Text=L_95_ L_30_.Text=L_29_.Text L_31_.Text="\124 "..math.ceil(L_96_/L_24_.StoredAmmo)L_32_.Text=L_31_.Text if L_87_==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_87_==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_87_==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_86_==1 then L_35_.BackgroundTransparency=0 L_36_.BackgroundTransparency=.7 L_37_.BackgroundTransparency=.7 L_38_.BackgroundTransparency=.7 L_39_.BackgroundTransparency=.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=.7 L_39_.BackgroundTransparency=.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=.7 elseif L_86_==5 then L_35_.BackgroundTransparency=0 L_36_.BackgroundTransparency=.7 L_37_.BackgroundTransparency=0 L_38_.BackgroundTransparency=.7 L_39_.BackgroundTransparency=.7 elseif L_86_==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_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
