Advertisement
ItzInfern

old one test

Jan 5th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 81.08 KB | None | 0 0
  1.  
  2.  
  3.  
  4. --https://github.com/Mokiros/roblox-FE-compatibility
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  7. local RealPlayer = Player
  8. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  9.  
  10.  
  11. Ply = game.Players.LocalPlayer
  12. Char = Ply.Character
  13. Tor = Char.Torso
  14. He = Char.Head
  15. Ne = Tor.Neck
  16. Hu = Char.Humanoid
  17. LA = Char["Left Arm"]
  18. LL = Char["Left Leg"]
  19. RA = Char["Right Arm"]
  20. RL = Char["Right Leg"]
  21. LS = Tor["Left Shoulder"]
  22. RS = Tor["Right Shoulder"]
  23. LH = Tor["Left Hip"]
  24. RH = Tor["Right Hip"]
  25. Combo = 1
  26. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. RP = Char.HumanoidRootPart
  28. RJ = RP.RootJoint
  29. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  30. LHCF = CFrame.Angles(0, math.rad(-90), 0)
  31. RHCF = CFrame.Angles(0, math.rad(90), 0)
  32. attack = false
  33. camo = false
  34. prop = false
  35. equipped = false
  36. local Anim = "Idle"
  37. Effects = { }
  38. cam = workspace.CurrentCamera
  39. local RbxUtility = LoadLibrary("RbxUtility")
  40. local Create = RbxUtility.Create
  41. local m = Create("Model"){
  42. Parent = Char,
  43. Name = "WeaponModel",
  44. }
  45.  
  46. RS.Parent = nil
  47. LS.Parent = nil
  48.  
  49. RW = Create("Weld"){
  50. Name = "Right Shoulder",
  51. Part0 = Tor ,
  52. C0 = CFrame.new(1.5, 0.5, 0),
  53. C1 = CFrame.new(0, 0.5, 0),
  54. Part1 = RA ,
  55. Parent = Tor ,
  56. }
  57.  
  58. LW = Create("Weld"){
  59. Name = "Left Shoulder",
  60. Part0 = Tor ,
  61. C0 = CFrame.new(-1.5, 0.5, 0),
  62. C1 = CFrame.new(0, 0.5, 0) ,
  63. Part1 = LA ,
  64. Parent = Tor ,
  65. }
  66.  
  67. mouse = Ply:GetMouse()
  68.  
  69. function RemoveOutlines(part)
  70. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  71. end
  72.  
  73. function CreatePart(FF, Par, Mat, Ref, Tra, BC, Nam, Siz)
  74. local Part = Create("Part"){
  75. formFactor = FF,
  76. Parent = Par,
  77. Reflectance = Ref,
  78. Transparency = Tra,
  79. CanCollide = false,
  80. Locked = true,
  81. BrickColor = BrickColor.new(tostring(BC)),
  82. Name = Nam,
  83. Size = Siz,
  84. Position = Tor.Position,
  85. Material = Mat,
  86. }
  87. RemoveOutlines(Part)
  88. return Part
  89. end
  90.  
  91. function CreateMesh(Ms, Par, MType, MId, OS, Sca)
  92. local Msh = Create(Ms){
  93. Parent = Par,
  94. Offset = OS,
  95. Scale = Sca,
  96. }
  97. if Ms == "SpecialMesh" then
  98. Msh.MeshType = MType
  99. Msh.MeshId = MId
  100. end
  101. end
  102.  
  103. function CreateWeld(Par, PartA, PartB, CA, CB)
  104. local Weld = Create("Weld"){
  105. Parent = Par,
  106. Part0 = PartA,
  107. Part1 = PartB,
  108. C0 = CA,
  109. C1 = CB,
  110. }
  111. return Weld
  112. end
  113.  
  114. function CreateSound(id, par, vol, pit)
  115. coroutine.resume(coroutine.create(function()
  116. local sou = Create("Sound"){
  117. Parent = par or workspace,
  118. Volume = vol,
  119. Pitch = pit or 1,
  120. SoundId = id,
  121. }
  122. wait()
  123. sou:play()
  124. end))
  125. end
  126.  
  127. function clerp(a, b, t)
  128. return a:lerp(b, t)
  129. end
  130.  
  131. function rayCast(Pos, Dir, Max, Ignore)
  132. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  133. end
  134.  
  135. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  136. for i, v in pairs(hit:GetChildren()) do
  137. if v:IsA("Humanoid") and hit.Name ~= Char.Name then
  138. local find = v:FindFirstChild("Hitz")
  139. if not find then
  140. if v.Parent:findFirstChild("Head") then
  141. local BillG = Create("BillboardGui"){
  142. Parent = v.Parent.Head,
  143. Size = UDim2.new(1, 0, 1, 0),
  144. Adornee = v.Parent.Head,
  145. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  146. }
  147. local TL = Create("TextLabel"){
  148. Parent = BillG,
  149. Size = UDim2.new(3, 3, 3, 3),
  150. BackgroundTransparency = 1,
  151. Text = tostring(damage).."-",
  152. TextColor3 = Color1.Color,
  153. TextStrokeColor3 = Color2.Color,
  154. TextStrokeTransparency = 0,
  155. TextXAlignment = Enum.TextXAlignment.Center,
  156. TextYAlignment = Enum.TextYAlignment.Center,
  157. FontSize = Enum.FontSize.Size18,
  158. Font = "ArialBold",
  159. }
  160. coroutine.resume(coroutine.create(function()
  161. wait(1)
  162. for i = 0, 1, .1 do
  163. wait(.1)
  164. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  165. end
  166. BillG:Destroy()
  167. end))
  168. end
  169. v.Health = v.Health - damage
  170. local bool = Create("BoolValue"){
  171. Parent = v,
  172. Name = 'Hitz',
  173. }
  174. if HSound ~= nil and HPitch ~= nil then
  175. CreateSound(HSound, hit, 1, HPitch)
  176. end
  177. game:GetService("Debris"):AddItem(bool, cooldown)
  178. end
  179. end
  180. end
  181. end
  182.  
  183. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HitSound)
  184. for _, c in pairs(workspace:children()) do
  185. local hum = c:findFirstChild("Humanoid")
  186. if hum ~= nil then
  187. local head = c:findFirstChild("Torso")
  188. if head ~= nil then
  189. local targ = head.Position - Part.Position
  190. local mag = targ.magnitude
  191. if mag <= magni and c.Name ~= Ply.Name then
  192. Damage(head.Parent, math.random(mindam, maxdam), 0, Color1, Color2, HitSound, 1)
  193. end
  194. end
  195. end
  196. end
  197. end
  198.  
  199. Handle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Navy blue", "Handle", Vector3.new(0.216133296, 0.432266444, 0.200000003))
  200. Handleweld = CreateWeld(m, RA, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015))
  201. CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  202. FakeHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Navy blue", "FakeHandle", Vector3.new(0.216133296, 0.432266444, 0.200000003))
  203. FakeHandleweld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1))
  204. Barrel = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Smoky grey", "Barrel", Vector3.new(0.324199915, 0.200000003, 0.216133296))
  205. Barrelweld = CreateWeld(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 5.45991993, 0.648399353, 1.88395493e-016, 1.00281931e-024, -1, 0.999999642, 0, 4.37113812e-008, 0, -0.999999642, -4.73655636e-016))
  206. CreateMesh("CylinderMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.567349613, 1))
  207. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199826, 0.324199826, 0.432266533))
  208. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.378201485, -0.162090302, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  209. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003))
  210. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.03202057, 0.162498474, 0.864542007, 5.96045453e-008, 0.999996662, 2.34803412e-008, 4.76836078e-007, 6.32193187e-009, 0.999997854, 0.999997139, -2.98022425e-008, -4.3312528e-007))
  211. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  212. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003))
  213. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648406029, -0.594371796, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  214. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  215. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.756466568, 0.200000003, 0.432266533))
  216. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.8910985, -0.70243454, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  217. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  218. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296))
  219. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.45885229, -0.832115173, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  220. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1))
  221. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003))
  222. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810516357, -0.81047821, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  223. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  224. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003))
  225. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37740993, -0.594367981, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  226. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  227. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  228. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0540370941, -0.162101746, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1))
  229. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.369587988, 0.358781129, 0.748901784))
  230. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296))
  231. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37741232, -0.702438354, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  232. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  233. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296))
  234. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000377655029, -1.56698084, -1.0320282, -4.17232428e-007, 6.32132613e-009, -0.999997616, -0.999997139, 2.98022425e-008, 2.99015426e-007, -8.70414851e-014, 0.999996722, -2.34809274e-008))
  235. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  236. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.432266563, 2.48553157, 0.216133296))
  237. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 3.51209116, 0.648399353, 1.78814986e-007, -6.32150376e-009, -1, 0.999999642, -5.96046341e-008, 2.22526424e-007, -5.96046341e-008, -0.999999642, 6.32149666e-009))
  238. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  239. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296))
  240. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37741327, -0.486289978, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  241. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  242. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.756466269, 0.432266533))
  243. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.45884228, 0.0540428162, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1))
  244. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  245. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  246. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000377655029, -1.02661896, -0.162124634, 4.37113812e-008, 4.73655636e-016, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  247. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.218294606, 0.239907846, 1.02987504))
  248. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(2.485533, 0.216133222, 0.432266533))
  249. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.02665424, -0.324203491, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  250. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(2.16133285, 0.200000003, 0.432266533))
  251. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.18871307, -0.486282349, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  252. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  253. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003))
  254. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000408172607, 1.19412231, 0.869961739, 4.17229757e-007, 6.32150021e-009, 0.999997854, 8.70414851e-014, -0.999996722, -2.34808173e-008, 0.999997079, 1.49012358e-008, -3.73518958e-007))
  255. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  256. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  257. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000377655029, -1.02661514, -0.378243446, 4.37113812e-008, 4.73655636e-016, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  258. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.229101285, 0.250714511, 2.71571469))
  259. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  260. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, -1.02661896, 1.56696892, -1.93715053e-007, 9.32587256e-015, -0.999999702, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, -6.05967614e-008))
  261. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.218294606, 0.239907846, 1.02987504))
  262. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  263. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0540370941, -0.162101746, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1))
  264. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.369587988, 0.369587809, 0.748901784))
  265. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.29679966, 0.200000003, 0.432266533))
  266. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.864494324, -0.378234863, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1))
  267. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  268. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296))
  269. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.270159721, -0.832111359, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  270. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1))
  271. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(1.08066642, 0.200000003, 0.432266533))
  272. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.72902441, -0.594367981, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  273. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  274. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  275. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, -1.02661514, 1.35084629, -1.93715053e-007, 9.32587256e-015, -0.999999702, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, -6.05967614e-008))
  276. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.229101285, 0.250714511, 2.71571469))
  277. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.432266563, 0.648399651, 0.216133296))
  278. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.864570618, -1.03203201, 3.57626845e-007, 6.32133856e-009, 0.999997854, 0.999997139, -2.98022425e-008, -3.1391599e-007, -8.70414851e-014, 0.999996722, 2.34809345e-008))
  279. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  280. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003))
  281. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37740993, -0.594367981, -0.161708832, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  282. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  283. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003))
  284. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648406029, -0.594371796, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  285. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  286. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003))
  287. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0540428162, -0.486282349, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  288. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  289. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.864533126, 0.540332973, 0.432266533))
  290. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.972568512, -0.0540428162, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1))
  291. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003))
  292. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810501099, -0.810474396, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  293. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  294. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296))
  295. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.162106514, -1.0320282, 3.57626845e-007, 6.32133856e-009, 0.999997854, 0.999997139, -2.98022425e-008, -3.1391599e-007, -8.70414851e-014, 0.999996722, 2.34809345e-008))
  296. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  297. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216134712, 0.216134697, 0.216134712))
  298. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000408172607, 0.864553452, -1.03203201, 3.57626561e-007, 6.59261232e-008, 1, 0.999999642, 0, -3.1391528e-007, 0, 0.999999642, -6.59261374e-008))
  299. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.40486634, 0.200000003, 0.432266533))
  300. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810516357, -0.70243454, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  301. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  302. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003))
  303. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0540428162, -0.486282349, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  304. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  305. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199915, 0.756466269, 0.432266533))
  306. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 5.1330142, 0.648399353, 0, 0, -1, 0.999999642, 0, 4.37113812e-008, 0, -0.999999642, -4.73655636e-016))
  307. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  308. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.864533186))
  309. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, -0.324199677, -0.972576141, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008))
  310. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.432266444, 0.216133267))
  311. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.161708832, -0.648399353, -2.86102295e-005, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  312. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  313. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133192, 0.216133267))
  314. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, -0.108055115, -0.432257652, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008))
  315. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  316. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.162475586, -0.486286163, 0.32416153, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  317. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  318. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  319. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.161708832, -0.810497284, 1.62095213, 1.49011559e-008, 0, -0.999999762, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, 5.86125317e-008))
  320. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  321. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.432266384, 0.216133267))
  322. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.162475586, -0.648399353, -2.86102295e-005, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  323. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  324. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  325. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.162475586, -0.810497284, 1.62095213, 1.49011559e-008, 0, -0.999999762, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, 5.86125317e-008))
  326. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  327. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133237, 0.216133267))
  328. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.324203491, 2.37740946, 1.06338617e-018, 5.01342412e-010, 0.999999404, 1.49011701e-008, -0.999999285, 5.01343078e-010, 0.999999285, 1.49011701e-008, 4.37113634e-008))
  329. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.216133296))
  330. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.108070374, -0.108057022, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008))
  331. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  332. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.161708832, -0.486286163, 0.32416153, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  333. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  334. MagHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "MagHandle", Vector3.new(0.432266504, 0.324199826, 0.216133296))
  335. MagHandleweld = CreateWeld(m, FakeHandle, MagHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648423195, -0.0540428162, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  336. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296))
  337. Partweld = CreateWeld(m, MagHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.270163536, 0, 0, 0.999999642, 0, 0, 0, 0.999999642, -0, 0, -0, 1))
  338. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  339. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296))
  340. Partweld = CreateWeld(m, MagHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.270174026, 0, 0, 0.999999642, 0, 0, 0, 0.999999642, -0, 0, -0, 1))
  341. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  342. BoltHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "BoltHandle", Vector3.new(0.216133282, 1.40486586, 0.216133267))
  343. BoltHandleweld = CreateWeld(m, FakeHandle, BoltHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.540328979, -0.486276627, -0.000385284424, -4.47034729e-008, -0.999999583, -2.42770696e-015, -0.999999642, 0, -4.37113812e-008, 0, 0, -0.99999994))
  344. CreateMesh("CylinderMesh", BoltHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  345. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216133282, 0.216133252, 0.216133267))
  346. Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.70238018, 0, 0.999999523, 4.47034729e-008, 0, 4.47034729e-008, 0.999999642, 0, 0, 0, 0.999999881))
  347. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  348. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199915, 0.324199826, 0.200000003))
  349. Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.015832901, 0.146270752, 0.648381233, 0.707106292, 5.08757338e-008, 0.707106531, 0.707106411, -8.72889849e-009, -0.707106411, 8.94069458e-008, 0.999999404, -5.09424458e-009))
  350. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  351. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199915, 0.200000003, 0.200000003))
  352. Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0158443451, 0.362377167, 0.648385048, 0.707106292, 5.08757338e-008, 0.707106531, 0.707106411, -8.72889849e-009, -0.707106411, 8.94069458e-008, 0.999999404, -5.09424458e-009))
  353. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  354. ScopeZoom = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Bright violet", "ScopeZoom", Vector3.new(0.216133296, 0.200000003, 0.200000003))
  355. ScopeZoomweld = CreateWeld(m, FakeHandle, ScopeZoom, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.72752714, -1.03763962, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1))
  356.  
  357. local PE1 = Create("ParticleEmitter"){
  358. Parent = Barrel,
  359. Color = ColorSequence.new(BrickColor.new("Dark stone grey").Color),
  360. Transparency = NumberSequence.new(0),
  361. Size = NumberSequence.new(.5),
  362. Texture = "rbxassetid://257430870",
  363. Lifetime = NumberRange.new(.1),
  364. Rate = 100,
  365. VelocitySpread = 180,
  366. Rotation = NumberRange.new(0),
  367. Speed = NumberRange.new(0),
  368. LightEmission = .6,
  369. LockedToPart = true,
  370. Enabled = false
  371. }
  372.  
  373. local PE2 = PE1:Clone()
  374. PE2.Size = NumberSequence.new(.7)
  375. PE2.LightEmission = 1
  376. PE2.Texture = "rbxassetid://87729590"
  377.  
  378. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  379. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  380. prt.Anchored = true
  381. prt.CFrame = cframe
  382. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  383. game:GetService("Debris"):AddItem(prt, 2)
  384. Effects[#Effects + 1] = {
  385. prt,
  386. "Cylinder",
  387. delay,
  388. x3,
  389. y3,
  390. z3
  391. }
  392. end
  393.  
  394. local Ammo = 10
  395. local Depleted = false
  396.  
  397. function Shoot(asd, spread1, spread2)
  398. local MainPos = asd.Position
  399. local MainPos2 = mouse.Hit.p
  400. local spread = Vector3.new((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 100
  401. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2 + spread)
  402. num = 30
  403. Ammo = Ammo - 1
  404. print(Ammo)
  405. if Ammo == 0 then
  406. Depleted = true
  407. end
  408. coroutine.resume(coroutine.create(function(Spreaded)
  409. repeat
  410. wait()
  411. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 50, RP.Parent)
  412. local TheHit = mouse.Hit.p
  413. local mag = (MainPos - pos).magnitude
  414. CylinderEffect(BrickColor.new("Dark stone grey"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 3, .5, 1, .5, 0.2)
  415. MainPos = MainPos + (MouseLook.lookVector * 50)
  416. num = num - 1
  417. if hit ~= nil then
  418. num = 0
  419. local ref = CreatePart(3, workspace, "Neon", 0, 1, BrickColor.new("Dark stone grey"), "Reference", Vector3.new())
  420. ref.Anchored = true
  421. ref.CFrame = CFrame.new(pos)
  422. MagnitudeDamage(ref, 5, 999999999, 999999999, BrickColor.new("Dark stone grey"), BrickColor.new("Navy blue") , "rbxassetid://199149297")
  423. game:GetService("Debris"):AddItem(ref, 1)
  424. end
  425. until num <= 0
  426. end))
  427. end
  428. local Aiming = false
  429. gyro = Instance.new("BodyGyro")
  430. gyro.Parent = nil
  431. gyro.P = 1e7
  432. gyro.D = 1e3
  433. gyro.MaxTorque = Vector3.new(0,1e7,0)
  434.  
  435.  
  436. local Crouching = false
  437.  
  438. function Fire()
  439. if Aiming == true then
  440. attack = true
  441. CreateSound("rbxassetid://132572951", Barrel, 1, .9)
  442. CreateSound("rbxassetid://130767489", Barrel, .7, 1.2)
  443. PE1.Enabled = true
  444. PE2.Enabled = true
  445. Shoot(Barrel, 0, 0)
  446. for i = 0, 1, 0.2 do
  447. wait()
  448. if Crouching == false and Aiming == true then
  449. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  450. elseif Crouching == true and Aiming == true then
  451. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  452. end
  453. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(-10), math.rad(90)), .3)
  454. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(-20), math.rad(-90)), .5)
  455. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.7, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(140)), .5)
  456. if Crouching == false and Aiming == true then
  457. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  458. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  459. elseif Crouching == true and Aiming == true then
  460. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  461. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  462. end
  463. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  464. end
  465. PE1.Enabled = false
  466. PE2.Enabled = false
  467. for i = 0, 1, 0.1 do
  468. wait()
  469. if Crouching == false and Aiming == true then
  470. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  471. elseif Crouching == true and Aiming == true then
  472. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  473. end
  474. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .3)
  475. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .3)
  476. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .3)
  477. if Crouching == false and Aiming == true then
  478. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  479. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  480. elseif Crouching == true and Aiming == true then
  481. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  482. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  483. end
  484. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  485. end
  486. Handleweld.Part0 = LA
  487. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  488. Handleweld.C1 = CFrame.new(-0.737663269, -0.281144857, 0.33117196, 0.00916702952, 0.939647615, 0.342020333, 0.999940991, -0.0106014106, 0.00232372736, 0.00580918044, 0.341978878, -0.939689875)
  489. for i = 0, 1, 0.1 do
  490. wait()
  491. if Crouching == false and Aiming == true then
  492. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  493. elseif Crouching == true and Aiming == true then
  494. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  495. end
  496. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  497. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3)
  498. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  499. if Crouching == false and Aiming == true then
  500. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  501. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  502. elseif Crouching == true and Aiming == true then
  503. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  504. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  505. end
  506. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  507. end
  508. CreateSound("rbxassetid://146740582", BoltHandle, .7, 1)
  509. for i = 0, 1, 0.1 do
  510. wait()
  511. if Crouching == false and Aiming == true then
  512. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  513. elseif Crouching == true and Aiming == true then
  514. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  515. end
  516. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  517. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  518. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  519. if Crouching == false and Aiming == true then
  520. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  521. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  522. elseif Crouching == true and Aiming == true then
  523. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  524. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  525. end
  526. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  527. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  528. end
  529. for i = 0, 1, 0.1 do
  530. wait()
  531. if Crouching == false and Aiming == true then
  532. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  533. elseif Crouching == true and Aiming == true then
  534. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  535. end
  536. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  537. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  538. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  539. if Crouching == false and Aiming == true then
  540. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  541. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  542. elseif Crouching == true and Aiming == true then
  543. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  544. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  545. end
  546. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  547. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  548. end
  549. for i = 0, 1, 0.3 do
  550. wait()
  551. if Crouching == false and Aiming == true then
  552. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  553. elseif Crouching == true and Aiming == true then
  554. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  555. end
  556. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  557. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  558. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  559. if Crouching == false and Aiming == true then
  560. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  561. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  562. elseif Crouching == true and Aiming == true then
  563. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  564. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  565. end
  566. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  567. end
  568. Handleweld.Part0 = RA
  569. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  570. Handleweld.C1 = CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015)
  571. attack = false
  572. end
  573. end
  574.  
  575. local Zoomed = false
  576.  
  577. function Reload()
  578. attack = true
  579. for i = 0, 1, 0.1 do
  580. wait()
  581. if Crouching == false and Aiming == true then
  582. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  583. elseif Crouching == true and Aiming == true then
  584. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  585. end
  586. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  587. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3)
  588. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(120)), .3)
  589. if Crouching == false and Aiming == true then
  590. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  591. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  592. elseif Crouching == true and Aiming == true then
  593. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  594. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  595. end
  596. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  597. end
  598. CreateSound("rbxassetid://131045401", FakeHandle, 1, 1)
  599. MagHandleweld.Part0 = LA
  600. MagHandleweld.C0 = CFrame.new(.5, -1, .6) * CFrame.Angles(1.5, 0, 1.5)
  601. for i = 0, 1, 0.08 do
  602. wait()
  603. if Crouching == false and Aiming == true then
  604. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  605. elseif Crouching == true and Aiming == true then
  606. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  607. end
  608. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(5), math.rad(50)), .3)
  609. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3)
  610. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(20)), .3)
  611. if Crouching == false and Aiming == true then
  612. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  613. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  614. elseif Crouching == true and Aiming == true then
  615. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  616. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  617. end
  618. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  619. end
  620. CreateSound("rbxassetid://131045429", FakeHandle, 1, 1)
  621. for i = 0, 1, 0.08 do
  622. wait()
  623. if Crouching == false and Aiming == true then
  624. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  625. elseif Crouching == true and Aiming == true then
  626. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  627. end
  628. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  629. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-50)), .5)
  630. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(100)), .5)
  631. if Crouching == false and Aiming == true then
  632. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  633. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  634. elseif Crouching == true and Aiming == true then
  635. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  636. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  637. end
  638. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  639. end
  640. MagHandleweld.Part0 = FakeHandle
  641. MagHandleweld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  642. Ammo = 10
  643. print(Ammo)
  644. if Depleted == true then
  645. Depleted = false
  646. Handleweld.Part0 = LA
  647. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  648. Handleweld.C1 = CFrame.new(-0.737663269, -0.281144857, 0.33117196, 0.00916702952, 0.939647615, 0.342020333, 0.999940991, -0.0106014106, 0.00232372736, 0.00580918044, 0.341978878, -0.939689875)
  649. for i = 0, 1, 0.1 do
  650. wait()
  651. if Crouching == false and Aiming == true then
  652. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  653. elseif Crouching == true and Aiming == true then
  654. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  655. end
  656. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  657. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3)
  658. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  659. if Crouching == false and Aiming == true then
  660. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  661. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  662. elseif Crouching == true and Aiming == true then
  663. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  664. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  665. end
  666. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  667. end
  668. CreateSound("rbxassetid://146740582", BoltHandle, .7, 1)
  669. for i = 0, 1, 0.1 do
  670. wait()
  671. if Crouching == false and Aiming == true then
  672. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  673. elseif Crouching == true and Aiming == true then
  674. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  675. end
  676. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  677. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  678. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  679. if Crouching == false and Aiming == true then
  680. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  681. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  682. elseif Crouching == true and Aiming == true then
  683. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  684. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  685. end
  686. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  687. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  688. end
  689. for i = 0, 1, 0.3 do
  690. wait()
  691. if Crouching == false and Aiming == true then
  692. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  693. elseif Crouching == true and Aiming == true then
  694. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  695. end
  696. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  697. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  698. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  699. if Crouching == false and Aiming == true then
  700. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  701. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  702. elseif Crouching == true and Aiming == true then
  703. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  704. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  705. end
  706. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  707. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  708. end
  709. end
  710. Handleweld.Part0 = RA
  711. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  712. Handleweld.C1 = CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015)
  713. attack = false
  714. end
  715. mouse.KeyDown:connect(function(key)
  716. key:lower()
  717. if key == "e" and camo == false and prop == true then
  718. camo = true
  719.  
  720. Camoflauge=Instance.new('Part',Char)
  721. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  722. Camoflauge.CanCollide = true
  723. Camoflauge.TopSurface = "Smooth"
  724. Camoflauge.BottomSurface = "Smooth"
  725. Camoflauge.Material = "Grass"
  726. Camoflauge.Transparency = 0
  727. Camoflauge.Size = Vector3.new(1,1,1)
  728. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  729. CamoflaugeMesh.MeshType = "Brick"
  730. CamoflaugeMesh.Scale = Vector3.new(4,13,6)
  731. CaWeld = Instance.new("Weld",Char)
  732. CaWeld.Part0 = Char.Torso
  733. CaWeld.Part1 = Camoflauge
  734. CaWeld.C1 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(.35, 0, 0)
  735.  
  736. end
  737. end)
  738.  
  739. mouse.KeyDown:connect(function(key)
  740. key:lower()
  741. if key == "e" and camo == false and prop == false then
  742. camo = true
  743.  
  744.  
  745. ac = math.random(1,6)
  746.  
  747. if ac == 1 then
  748. Camoflauge=Instance.new('Part',Char)
  749. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  750. Camoflauge.CanCollide = true
  751. Camoflauge.TopSurface = "Smooth"
  752. Camoflauge.BottomSurface = "Smooth"
  753. Camoflauge.Material = "Grass"
  754. Camoflauge.Transparency = 0
  755. Camoflauge.Size = Vector3.new(1,1,1)
  756. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  757. CamoflaugeMesh.MeshType = "Brick"
  758. CamoflaugeMesh.Scale = Vector3.new(8,8,10)
  759. CaWeld = Instance.new("Weld",Char)
  760. CaWeld.Part0 = Char.Torso
  761. CaWeld.Part1 = Camoflauge
  762. CaWeld.C1 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  763. end
  764.  
  765.  
  766. if ac == 2 then
  767. Camoflauge=Instance.new('Part',Char)
  768. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  769. Camoflauge.CanCollide = true
  770. Camoflauge.TopSurface = "Smooth"
  771. Camoflauge.BottomSurface = "Smooth"
  772. Camoflauge.Transparency = 0
  773. Camoflauge.Size = Vector3.new(1,1,1)
  774. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  775. CamoflaugeMesh.MeshType = "FileMesh"
  776. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=19106014"
  777. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=142039906"
  778. CamoflaugeMesh.Scale = Vector3.new(10,10,10)
  779. CaWeld = Instance.new("Weld",Char)
  780. CaWeld.Part0 = Char.Torso
  781. CaWeld.Part1 = Camoflauge
  782. CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  783. end
  784.  
  785. if ac == 3 then
  786. Camoflauge=Instance.new('Part',Char)
  787. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  788. Camoflauge.CanCollide = true
  789. Camoflauge.TopSurface = "Smooth"
  790. Camoflauge.BottomSurface = "Smooth"
  791. Camoflauge.Transparency = 0
  792. Camoflauge.Size = Vector3.new(1,1,1)
  793. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  794. CamoflaugeMesh.MeshType = "FileMesh"
  795. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=92598630"
  796. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=92599263"
  797. CamoflaugeMesh.Scale = Vector3.new(10,10,10)
  798. CaWeld = Instance.new("Weld",Char)
  799. CaWeld.Part0 = Char.Torso
  800. CaWeld.Part1 = Camoflauge
  801. CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  802. end
  803.  
  804. if ac == 4 then
  805. Camoflauge=Instance.new('Part',Char)
  806. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  807. Camoflauge.CanCollide = true
  808. Camoflauge.TopSurface = "Smooth"
  809. Camoflauge.BottomSurface = "Smooth"
  810. Camoflauge.Transparency = 0
  811. Camoflauge.Size = Vector3.new(1,1,1)
  812. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  813. CamoflaugeMesh.MeshType = "FileMesh"
  814. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
  815. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=29796694"
  816. CamoflaugeMesh.Scale = Vector3.new(10,10,10)
  817. CaWeld = Instance.new("Weld",Char)
  818. CaWeld.Part0 = Char.Torso
  819. CaWeld.Part1 = Camoflauge
  820. CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  821. end
  822.  
  823. if ac == 5 then
  824. Camoflauge=Instance.new('Part',Char)
  825. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  826. Camoflauge.CanCollide = true
  827. Camoflauge.TopSurface = "Smooth"
  828. Camoflauge.BottomSurface = "Smooth"
  829. Camoflauge.Transparency = 0
  830. Camoflauge.Size = Vector3.new(1,1,1)
  831. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  832. CamoflaugeMesh.MeshType = "FileMesh"
  833. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset?id=220616206"
  834. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset?id=220616251"
  835. CamoflaugeMesh.Scale = Vector3.new(5,5,5)
  836. CaWeld = Instance.new("Weld",Char)
  837. CaWeld.Part0 = Char.Torso
  838. CaWeld.Part1 = Camoflauge
  839. CaWeld.C1 = CFrame.new(0,1,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  840. end
  841.  
  842.  
  843. if ac == 6 then
  844.  
  845.  
  846. Camoflauge = Instance.new("Model")
  847. p1 = Instance.new("Part", Camoflauge)
  848. p1.BrickColor = BrickColor.new("White")
  849. p1.FormFactor = Enum.FormFactor.Custom
  850. p1.Size = Vector3.new(0.399999708, 6.30000019, 1.4000001)
  851. p1.CFrame = CFrame.new(-21.8000011, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  852. p1.Anchored = false
  853. p1.BottomSurface = Enum.SurfaceType.Smooth
  854. p1.TopSurface = Enum.SurfaceType.Smooth
  855. p2 = Instance.new("Part", Camoflauge)
  856. p2.BrickColor = BrickColor.new("Institutional white")
  857. p2.FormFactor = Enum.FormFactor.Custom
  858. p2.Size = Vector3.new(5.79999971, 0.399999946, 1.4000001)
  859. p2.CFrame = CFrame.new(-24.5, 5.0999999, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  860. p2.Anchored = false
  861. p2.BottomSurface = Enum.SurfaceType.Smooth
  862. p2.TopSurface = Enum.SurfaceType.Smooth
  863. p3 = Instance.new("Part", Camoflauge)
  864. p3.BrickColor = BrickColor.new("Brown")
  865. p3.FormFactor = Enum.FormFactor.Custom
  866. p3.Size = Vector3.new(5.5999999, 0.299999952, 5.5999999)
  867. p3.CFrame = CFrame.new(-24.5, 5.04999971, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  868. p3.Anchored = false
  869. p3.BottomSurface = Enum.SurfaceType.Smooth
  870. p3.TopSurface = Enum.SurfaceType.Smooth
  871. p4 = Instance.new("Part", Camoflauge)
  872. p4.BrickColor = BrickColor.new("Brown")
  873. p4.FormFactor = Enum.FormFactor.Custom
  874. p4.Size = Vector3.new(1.20000005, 1.30000007, 0.299999714)
  875. p4.CFrame = CFrame.new(-26.7000027, 2.54999995, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  876. p4.Anchored = false
  877. p4.BottomSurface = Enum.SurfaceType.Smooth
  878. p4.TopSurface = Enum.SurfaceType.Smooth
  879. p5 = Instance.new("Part", Camoflauge)
  880. p5.BrickColor = BrickColor.new("Brown")
  881. p5.FormFactor = Enum.FormFactor.Custom
  882. p5.Size = Vector3.new(1.20000005, 1.30000007, 0.299999714)
  883. p5.CFrame = CFrame.new(-22.3000011, 2.54999995, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  884. p5.Anchored = false
  885. p5.BottomSurface = Enum.SurfaceType.Smooth
  886. p5.TopSurface = Enum.SurfaceType.Smooth
  887. p6 = Instance.new("Part", Camoflauge)
  888. p6.BrickColor = BrickColor.new("White")
  889. p6.FormFactor = Enum.FormFactor.Custom
  890. p6.Size = Vector3.new(0.399999708, 6.30000019, 1.4000001)
  891. p6.CFrame = CFrame.new(-27.2000027, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  892. p6.Anchored = false
  893. p6.BottomSurface = Enum.SurfaceType.Smooth
  894. p6.TopSurface = Enum.SurfaceType.Smooth
  895. p7 = Instance.new("Part", Camoflauge)
  896. p7.BrickColor = BrickColor.new("Medium stone grey")
  897. p7.Transparency = 1
  898. p7.Name = "Handle"
  899. p7.FormFactor = Enum.FormFactor.Custom
  900. p7.Size = Vector3.new(5, 5, 5)
  901. p7.CFrame = CFrame.new(-24.5, 2.5, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  902. p7.Anchored = false
  903. p7.BottomSurface = Enum.SurfaceType.Smooth
  904. p7.TopSurface = Enum.SurfaceType.Smooth
  905. p8 = Instance.new("Part", Camoflauge)
  906. p8.BrickColor = BrickColor.new("Brown")
  907. p8.FormFactor = Enum.FormFactor.Custom
  908. p8.Size = Vector3.new(5.5999999, 1.79999995, 0.299999714)
  909. p8.CFrame = CFrame.new(-24.5, 4.0999999, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  910. p8.Anchored = false
  911. p8.BottomSurface = Enum.SurfaceType.Smooth
  912. p8.TopSurface = Enum.SurfaceType.Smooth
  913. p9 = Instance.new("Part", Camoflauge)
  914. p9.BrickColor = BrickColor.new("Brown")
  915. p9.FormFactor = Enum.FormFactor.Custom
  916. p9.Size = Vector3.new(0.299999714, 6.30000019, 5)
  917. p9.CFrame = CFrame.new(-21.8500004, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  918. p9.Anchored = false
  919. p9.BottomSurface = Enum.SurfaceType.Smooth
  920. p9.TopSurface = Enum.SurfaceType.Smooth
  921. p10 = Instance.new("Part", Camoflauge)
  922. p10.BrickColor = BrickColor.new("Brown")
  923. p10.FormFactor = Enum.FormFactor.Custom
  924. p10.Size = Vector3.new(5.5999999, 3.20000005, 0.299999714)
  925. p10.CFrame = CFrame.new(-24.5, 0.300000072, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  926. p10.Anchored = false
  927. p10.BottomSurface = Enum.SurfaceType.Smooth
  928. p10.TopSurface = Enum.SurfaceType.Smooth
  929. p11 = Instance.new("Part", Camoflauge)
  930. p11.BrickColor = BrickColor.new("Brown")
  931. p11.FormFactor = Enum.FormFactor.Custom
  932. p11.Size = Vector3.new(5.5999999, 6.30000019, 0.299999714)
  933. p11.CFrame = CFrame.new(-24.5, 1.85000002, -6.8499999, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  934. p11.Anchored = false
  935. p11.BottomSurface = Enum.SurfaceType.Smooth
  936. p11.TopSurface = Enum.SurfaceType.Smooth
  937. p12 = Instance.new("Part", Camoflauge)
  938. p12.BrickColor = BrickColor.new("Brown")
  939. p12.FormFactor = Enum.FormFactor.Custom
  940. p12.Size = Vector3.new(0.299999714, 6.30000019, 5)
  941. p12.CFrame = CFrame.new(-27.1500015, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  942. p12.Anchored = false
  943. p12.BottomSurface = Enum.SurfaceType.Smooth
  944. p12.TopSurface = Enum.SurfaceType.Smooth
  945. w1 = Instance.new("Weld", p7)
  946. w1.Name = "BTWeld"
  947. w1.Part0 = p7
  948. w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  949. w1.Part1 = p1
  950. w1.C1 = CFrame.new(-2.69999886, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  951. w2 = Instance.new("Weld", p7)
  952. w2.Name = "BTWeld"
  953. w2.Part0 = p7
  954. w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  955. w2.Part1 = p2
  956. w2.C1 = CFrame.new(0, -2.5999999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  957. w3 = Instance.new("Weld", p7)
  958. w3.Name = "BTWeld"
  959. w3.Part0 = p7
  960. w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  961. w3.Part1 = p3
  962. w3.C1 = CFrame.new(0, -2.54999971, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  963. w4 = Instance.new("Weld", p7)
  964. w4.Name = "BTWeld"
  965. w4.Part0 = p7
  966. w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  967. w4.Part1 = p4
  968. w4.C1 = CFrame.new(2.20000267, -0.0499999523, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  969. w5 = Instance.new("Weld", p7)
  970. w5.Name = "BTWeld"
  971. w5.Part0 = p7
  972. w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  973. w5.Part1 = p5
  974. w5.C1 = CFrame.new(-2.19999886, -0.0499999523, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  975. w6 = Instance.new("Weld", p7)
  976. w6.Name = "BTWeld"
  977. w6.Part0 = p7
  978. w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  979. w6.Part1 = p6
  980. w6.C1 = CFrame.new(2.70000267, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  981. w7 = Instance.new("Weld", p7)
  982. w7.Name = "BTWeld"
  983. w7.Part0 = p7
  984. w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  985. w7.Part1 = p8
  986. w7.C1 = CFrame.new(0, -1.5999999, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  987. w8 = Instance.new("Weld", p7)
  988. w8.Name = "BTWeld"
  989. w8.Part0 = p7
  990. w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  991. w8.Part1 = p9
  992. w8.C1 = CFrame.new(-2.64999962, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  993. w9 = Instance.new("Weld", p7)
  994. w9.Name = "BTWeld"
  995. w9.Part0 = p7
  996. w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  997. w9.Part1 = p10
  998. w9.C1 = CFrame.new(0, 2.19999981, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  999. w10 = Instance.new("Weld", p7)
  1000. w10.Name = "BTWeld"
  1001. w10.Part0 = p7
  1002. w10.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1003. w10.Part1 = p11
  1004. w10.C1 = CFrame.new(0, 0.649999976, -2.6500001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1005. w11 = Instance.new("Weld", p7)
  1006. w11.Name = "BTWeld"
  1007. w11.Part0 = p7
  1008. w11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1009. w11.Part1 = p12
  1010. w11.C1 = CFrame.new(2.65000153, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1011.  
  1012. rlwwww = Instance.new("Weld", Char)
  1013. rlwwww.Part0 = Char.Torso
  1014. rlwwww.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  1015. rlwwww.Part1 = p7
  1016.  
  1017. Camoflauge.Parent = Char
  1018. Camoflauge:MakeJoints()
  1019.  
  1020. for i, v in pairs(Camoflauge:GetChildren()) do
  1021. if v:IsA('Part') then
  1022. v.CanCollide = False
  1023. end
  1024. end
  1025.  
  1026.  
  1027. end
  1028.  
  1029.  
  1030.  
  1031. end
  1032. end)
  1033.  
  1034. mouse.KeyDown:connect(function(key)
  1035. key:lower()
  1036. if key == "q" and camo == true then
  1037. camo = false
  1038.  
  1039. Camoflauge:Destroy()
  1040.  
  1041. end
  1042. end)
  1043.  
  1044. mouse.Button1Down:connect(function()
  1045. if attack == false and Depleted == false then
  1046. Fire()
  1047. end
  1048. end)
  1049.  
  1050. mouse.KeyDown:connect(function(k)
  1051. k = k:lower()
  1052. if k == "r" and attack == false then
  1053. Reload()
  1054. elseif k == "f" and Aiming == false then
  1055. Aiming = true
  1056. elseif k == "f" and Aiming == true then
  1057. Aiming = false
  1058. elseif k == "c" and Aiming == true and Crouching == false then
  1059. Crouching = true
  1060. elseif k == "c" and Aiming == true and Crouching == true then
  1061. Crouching = false
  1062. elseif k == "z" and Aiming == true and Zoomed == false then
  1063. Zoomed = true
  1064. CreateSound("rbxassetid://180144779", FakeHandle, 1, 1)
  1065. for i = 0, 1, 0.2 do
  1066. wait()
  1067. cam.FieldOfView = cam.FieldOfView - 5
  1068. end
  1069. Ply.CameraMode = "LockFirstPerson"
  1070. --Ply.DevEnableMouseLock = false
  1071. cam.FieldOfView = 10
  1072. cam.CameraSubject = ScopeZoom
  1073. mouse.Icon = "rbxassetid://18006519"
  1074. elseif k == "z" and Aiming == true and Zoomed == true then
  1075. Zoomed = false
  1076. CreateSound("rbxassetid://190623951", FakeHandle, 1, 1)
  1077. for i = 0, 1, 0.2 do
  1078. wait()
  1079. cam.FieldOfView = cam.FieldOfView + 5
  1080. end
  1081. Ply.CameraMode = "Classic"
  1082. --Ply.DevEnableMouseLock = true
  1083. cam.FieldOfView = 80
  1084. cam.CameraSubject = Hu
  1085. mouse.Icon = ""
  1086. end
  1087. end)
  1088.  
  1089.  
  1090. local sine = 0
  1091. local change = 1
  1092. local val = 0
  1093.  
  1094. while true do
  1095. wait()
  1096. sine = sine + change
  1097. local torvel = (RP.Velocity * Vector3.new(1, 0, 1)).magnitude
  1098. local velderp = RP.Velocity.y
  1099. hitfloor, posfloor = rayCast(RP.Position, (CFrame.new(RP.Position, RP.Position - Vector3.new(0, 1, 0))).lookVector, 4, Char)
  1100. if equipped == true or equipped == false then
  1101. if Aiming == true then
  1102. if Crouching == false and Aiming == true then
  1103. Hu.WalkSpeed = 10
  1104. elseif Crouching == true and Aiming == true then
  1105. Hu.WalkSpeed = 5
  1106. end
  1107. gyro.Parent = RP
  1108. local gunpos = Vector3.new(mouse.Hit.p.x, He.Position.Y, mouse.Hit.p.z)
  1109. offset = (Tor.Position.y - mouse.Hit.p.y) / 60
  1110. local mag = (Tor.Position - mouse.Hit.p).magnitude / 80
  1111. offset = offset / mag
  1112. gyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p -RP.CFrame.p).unit * 100)
  1113. elseif Aiming == false then
  1114. Hu.JumpPower = 50
  1115. Hu.WalkSpeed = 16
  1116. gyro.Parent = nil
  1117. end
  1118. if RP.Velocity.y > 1 and hitfloor == nil then
  1119. Anim = "Jump"
  1120. if attack == false and Aiming == false then
  1121. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1122. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  1123. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(-40)), .3)
  1124. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(60)), .3)
  1125. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3)
  1126. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3)
  1127. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  1128. elseif attack == false and Aiming == true then
  1129. if Crouching == false and Aiming == true then
  1130. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1131. elseif Crouching == true and Aiming == true then
  1132. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1133. end
  1134. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1135. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1136. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1137. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1138. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1139. if Crouching == false and Aiming == true then
  1140. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1141. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1142. elseif Crouching == true and Aiming == true then
  1143. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1144. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1145. end
  1146. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1147. end
  1148. elseif RP.Velocity.y < -1 and hitfloor == nil then
  1149. Anim = "Fall"
  1150. if attack == false and Aiming == false then
  1151. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1152. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1153. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-40)), .3)
  1154. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(100)), .3)
  1155. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3)
  1156. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3)
  1157. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  1158. elseif attack == false and Aiming == true then
  1159. if Crouching == false and Aiming == true then
  1160. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1161. elseif Crouching == true and Aiming == true then
  1162. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1163. end
  1164. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1165. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1166. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1167. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1168. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1169. if Crouching == false and Aiming == true then
  1170. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1171. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1172. elseif Crouching == true and Aiming == true then
  1173. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1174. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1175. end
  1176. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1177. end
  1178. elseif torvel < 1 and hitfloor ~= nil then
  1179. Anim = "Idle"
  1180. if attack == false and Aiming == false then
  1181. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1182. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-50)), .3)
  1183. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, 0) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(-40)), .3)
  1184. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(70)), .3)
  1185. RH.C0 = clerp(RH.C0, CFrame.new(.9, -.5, .2) * RHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(0)), .3)
  1186. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -1, -1) * LHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(50)), .3)
  1187. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), .3)
  1188. elseif attack == false and Aiming == true then
  1189. if Crouching == false and Aiming == true then
  1190. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1191. elseif Crouching == true and Aiming == true then
  1192. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1193. end
  1194. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1195. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1196. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1197. if Crouching == false and Aiming == true then
  1198. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1199. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1200. elseif Crouching == true and Aiming == true then
  1201. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1202. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1203. end
  1204. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1205. end
  1206. elseif torvel > 2 and hitfloor ~= nil then
  1207. Anim = "Walk"
  1208. if attack == false and Aiming == false then
  1209. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  1210. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  1211. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-40)), .3)
  1212. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(50)), .3)
  1213. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1214. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1215. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  1216. elseif attack == false and Aiming == true then
  1217. if Crouching == false and Aiming == true then
  1218. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1219. elseif Crouching == true and Aiming == true then
  1220. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1221. end
  1222. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1223. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1224. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1225. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1226. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1227. if Crouching == false and Aiming == true then
  1228. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1229. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1230. elseif Crouching == true and Aiming == true then
  1231. RH.C0 = clerp(RH.C0, CFrame.new(1, -.1, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1232. LH.C0 = clerp(LH.C0, CFrame.new(-1, -.1, -.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1233. end
  1234. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1235. end
  1236. end
  1237.  
  1238. end
  1239. if #Effects > 0 then
  1240. for e = 1, #Effects do
  1241. if Effects[e] ~= nil then
  1242. local Thing = Effects[e]
  1243. if Thing ~= nil then
  1244. local Part = Thing[1]
  1245. local Mode = Thing[2]
  1246. local Delay = Thing[3]
  1247. local IncX = Thing[4]
  1248. local IncY = Thing[5]
  1249. local IncZ = Thing[6]
  1250. if Thing[1].Transparency <= 1 then
  1251. if Thing[2] == "Block1" then
  1252. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1253. Mesh = Thing[1].Mesh
  1254. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1255. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1256. elseif Thing[2] == "Cylinder" then
  1257. Mesh = Thing[1].Mesh
  1258. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1259. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1260. elseif Thing[2] == "Blood" then
  1261. Mesh = Thing[7]
  1262. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1263. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1264. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1265. elseif Thing[2] == "Elec" then
  1266. Mesh = Thing[1].Mesh
  1267. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1268. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1269. elseif Thing[2] == "Disappear" then
  1270. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1271. end
  1272. else
  1273. Part.Parent = nil
  1274. table.remove(Effects, e)
  1275. end
  1276. end
  1277. end
  1278. end
  1279. end
  1280. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement