local S=script.Parent local w=S:WaitForChild("\072\097\110\100\108\101")local J=S:WaitForChild("\065\105\109\080\097\114\116")local Z=S:WaitForChild("\077\097\105\110")local u=S:WaitForChild("\065\109\109\111")local a=S:WaitForChild("\067\108\105\112\083\105\122\101")local l=S:WaitForChild("\083\116\111\114\101\100\065\109\109\111")local x=require(script:WaitForChild("\077\105\110\105\103\117\110"))local K=game.Players.LocalPlayer local v=K.Character local H=v:WaitForChild("\072\117\109\097\110\111\105\100")local O=v:WaitForChild("\084\111\114\115\111")local r=v:WaitForChild("\072\101\097\100")local g=v:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local f=O:WaitForChild("\078\101\099\107")local Y=v:WaitForChild("\076\101\102\116 \065\114\109")local y=v:WaitForChild("\082\105\103\104\116 \065\114\109")local n=v:WaitForChild("\076\101\102\116 \076\101\103")local Q=v:WaitForChild("\082\105\103\104\116 \076\101\103")local e=K:GetMouse()local A=script:WaitForChild("\077\097\105\110\095\071\117\105")local U=(game:GetService("\082\117\110\083\101\114\118\105\099\101")).RenderStepped local j=game.Workspace.CurrentCamera local L,G,T,o=math.abs,math.huge,math.floor,math.ceil local d,C,b,X=math.rad,math.sin,math.atan2,math.cos local B=Vector3.new local m,R=CFrame.new,CFrame.Angles local q=table.insert local i=x.SprintTime*60 local h=x.ScopeSteadyTime*60 local E={"\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\057\052\056\052\057\056\056\048","\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\057\053\055\050\055\055\057\049","\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\057\053\055\050\056\049\051\055"}local p={"\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\057\053\055\050\056\052\055\051","\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\057\053\055\050\056\054\057\051"}local V={v;Ignore_Model}local M={B(0,0,0);B(0,-1,0);B(0,-3,0)}local N={Right=O:WaitForChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114"),Left=O:WaitForChild("\076\101\102\116 \083\104\111\117\108\100\101\114")}local I={m(.4,.2,1.7)*R(d(70),-1.5,-1),m(2,-0.5,0)*R(d(90),0,0)}local t=function(S)return C(d(S))end local F=function(S)return S/90 end
--------------------------------------------------------------------------------------
--------------------[ CONSTANTS ]-----------------------------------------------------
--------------------------------------------------------------------------------------

local Gun = script.Parent
local Handle = Gun:WaitForChild("Handle")
local AimPart = Gun:WaitForChild("AimPart")
local Main = Gun:WaitForChild("Main")

local Ammo = Gun:WaitForChild("Ammo")
local ClipSize = Gun:WaitForChild("ClipSize")
local StoredAmmo = Gun:WaitForChild("StoredAmmo")

local S = require(script:WaitForChild("Minigun"))

local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Torso = Character:WaitForChild("Torso")
local Head = Character:WaitForChild("Head")
local HRP = Character:WaitForChild("HumanoidRootPart")

local Neck = Torso:WaitForChild("Neck")

local LArm = Character:WaitForChild("Left Arm")
local RArm = Character:WaitForChild("Right Arm")
local LLeg = Character:WaitForChild("Left Leg")
local RLeg = Character:WaitForChild("Right Leg")

local M2 = Player:GetMouse()
local Main_Gui = script:WaitForChild("Main_Gui")

local RS = game:GetService("RunService").RenderStepped

local Camera = game.Workspace.CurrentCamera

local ABS, HUGE, FLOOR, CEIL = math.abs, math.huge, math.floor, math.ceil
local RAD, SIN, ATAN, COS = math.rad, math.sin, math.atan2, math.cos
local VEC3 = Vector3.new
local CF, CFANG = CFrame.new, CFrame.Angles
local INSERT = table.insert

local MaxStamina = S.SprintTime * 60
local MaxSteadyTime = S.ScopeSteadyTime * 60

local LethalIcons = {
	"http://www.roblox.com/asset/?id=194849880",
	"http://www.roblox.com/asset/?id=195727791",
	"http://www.roblox.com/asset/?id=195728137",
}

local TacticalIcons = {
	"http://www.roblox.com/asset/?id=195728473",
	"http://www.roblox.com/asset/?id=195728693",
}

local Ignore = {
	Character,
	Ignore_Model,
}

local StanceOffset = {
	VEC3(0, 0, 0),
	VEC3(0, -1, 0),
	VEC3(0, -3, 0),
}

local Shoulders = {
	Right = Torso:WaitForChild("Right Shoulder"),
	Left = Torso:WaitForChild("Left Shoulder"),
}

local ArmC0 = {
	CF(0.4, 0.2, 1.7) * CFANG(RAD(70), -1.5, -1),
	CF(2, -0.5, 0) * CFANG(RAD(90), 0, 0),
}

local Sine = function(X)
	return SIN(RAD(X))
end

local Linear = function(X)
	return (X / 90)
end
