Dark_EccentricYT

Untitled

Nov 11th, 2017
2,698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.59 KB | None | 0 0
  1. --[[
  2.  
  3. Made by Cronizete
  4. Cronnie#8709
  5.  
  6. GunModel by Omega_Phoenix
  7.  
  8. --]]
  9.  
  10. plr = game:GetService('Players').LocalPlayer
  11. char = plr.Character
  12. mouse = plr:GetMouse()
  13. camera = workspace.Camera
  14.  
  15. --// Tabs
  16.  
  17. BrickFirst = Instance.new("Part")
  18. BrickFirst.CanCollide = false
  19. BrickFirst.Anchored = false
  20. BrickFirst.Size = Vector3.new(0.2,0.2,0.2)
  21. BrickFirst.Transparency = 1
  22. BrickFirst2 = Instance.new("Part")
  23. BrickFirst2.CanCollide = false
  24. BrickFirst2.Anchored = true
  25. BrickFirst2.Size = Vector3.new(0.2, 25, 35)
  26. BrickFirst2.Transparency = 1
  27. BrickFirst2.CFrame = BrickFirst.CFrame * CFrame.new(0,-75,0)
  28. BrickFirst2.TopSurface = 0
  29. BrickFirst2.BottomSurface = 0
  30. BrickFirst2.BrickColor = BrickColor.new("Teal")
  31. g1 = Instance.new("SurfaceGui", BrickFirst2)
  32. g1.Face = "Right"
  33. o1 = Instance.new("TextLabel", g1)
  34. o1.BackgroundColor3 = Color3.new(1, 1, 1)
  35. o1.BackgroundTransparency = 1
  36. o1.BorderColor3 = Color3.new(1, 1, 1)
  37. o1.Size = UDim2.new(1, 0, 1, 0)
  38. o1.TextScaled = true
  39. o1.TextWrapped = true
  40. o1.TextColor3 = Color3.new(1, 1, 1)
  41. o1.TextStrokeTransparency = 0
  42. o1.Font = Enum.Font.Arial
  43. o1.Text = ""
  44. o1.FontSize = Enum.FontSize.Size48
  45. gg1 = Instance.new("SurfaceGui", BrickFirst2)
  46. gg1.Face = "Right"
  47. oo1 = Instance.new("ImageLabel", gg1)
  48. oo1.BackgroundColor3 = Color3.new(1, 1, 1)
  49. oo1.BackgroundTransparency = 1
  50. oo1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  51. oo1.Size = UDim2.new(0, 250, 0, 250)
  52. oo1.Position = UDim2.new(0, 250, 0, 0)
  53. local characterImageFormat='http://www.roblox.com/Thumbs/Avatar.ashx?x=352&y=352&format=png&userid=%d';
  54. oo1.Image = ''
  55. --characterImageFormat:format(plr.userId);
  56. Weld = Instance.new("Weld", char)
  57. Weld.Part0 = char.Torso
  58. Weld.Part1 = BrickFirst
  59. Weld.C1 = CFrame.new(0,0,8) * CFrame.Angles(math.rad(90),math.rad(90),math.rad(90)) * CFrame.new(-8,5,20) * CFrame.Angles(0,0,math.rad(180))
  60.  
  61. --// Functions
  62.  
  63. function tw(string)
  64. coroutine.resume(coroutine.create(function()
  65. local String = string
  66. local Length = string.len(String)
  67. for i=1,Length do
  68. wait(.05)
  69. o1.Text = string.sub(String,1,i)
  70. end
  71. end))
  72. end
  73.  
  74. tw("Hi, "..plr.Name.."!")
  75.  
  76. function explode(a,b)
  77. local colors = {
  78. 'Deep orange',
  79. 'New Yeller',
  80. 'Bright yellow'
  81. }
  82. local p = Instance.new('Part', workspace)
  83. p.Anchored = true
  84. p.CanCollide = false
  85. p.CFrame = a
  86. p.BottomSurface = 0
  87. p.Material = 'Neon'
  88. p.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  89. p.TopSurface = 0
  90. p.Transparency = 0.25
  91. p.Size = Vector3.new(0,0,0)
  92. local o = p:Clone()
  93. o.Parent = p
  94. o.CFrame = a
  95. o.Touched:connect(function(hit)
  96. if hit.Parent and hit.Parent.Name ~= plr.Name and hit.Parent:FindFirstChildOfClass'Humanoid' then
  97. local targ = hit.Parent
  98. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  99. humtarg:TakeDamage(humtarg.MaxHealth/2/2)
  100. end
  101. end)
  102. p.Touched:connect(function(hit)
  103. if hit.Parent and hit.Parent.Name ~= plr.Name and hit.Parent:FindFirstChildOfClass'Humanoid' then
  104. local targ = hit.Parent
  105. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  106. humtarg:TakeDamage(humtarg.MaxHealth/2/2)
  107. end
  108. end)
  109. for i = 1,b do
  110. wait(.05)
  111. p.Size = p.Size + Vector3.new(0.7,0.7,0.7)
  112. o.Size = p.Size
  113. o.CFrame = a * CFrame.Angles(math.random(1,100),math.random(1,100),math.random(1,100))
  114. p.CFrame = a * CFrame.Angles(math.random(1,100),math.random(1,100),math.random(1,100))
  115. p.Transparency = p.Transparency + 0.03
  116. o.Transparency = o.Transparency + 0.03
  117. p.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  118. o.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  119. end
  120. p:Destroy()
  121. o:Destroy()
  122. end
  123.  
  124. function sd()
  125. coroutine.resume(coroutine.create(function()
  126. local colors = {
  127. 'Deep orange',
  128. 'New Yeller',
  129. 'Bright yellow'
  130. }
  131. local p = Instance.new('Part', workspace)
  132. p.Anchored = true
  133. p.CanCollide = false
  134. p.CFrame = char.Torso.CFrame
  135. p.BottomSurface = 0
  136. p.Material = 'Neon'
  137. p.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  138. p.TopSurface = 0
  139. p.Transparency = 0.25
  140. p.Size = Vector3.new(0,0,0)
  141. local o = p:Clone()
  142. o.Parent = p
  143. o.CFrame = char.Torso.CFrame
  144. o.Touched:connect(function(hit)
  145. if hit.Parent and hit.Parent.Name ~= plr.Name and hit.Parent:FindFirstChildOfClass'Humanoid' then
  146. local targ = hit.Parent
  147. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  148. humtarg:TakeDamage(humtarg.MaxHealth/2/2)
  149. for _, a in pairs(targ:children()) do
  150. if a:IsA('ForceField') then
  151. a:Destroy()
  152. end
  153. end
  154. end
  155. end)
  156. p.Touched:connect(function(hit)
  157. if hit.Parent and hit.Parent.Name ~= plr.Name and hit.Parent:FindFirstChildOfClass'Humanoid' then
  158. local targ = hit.Parent
  159. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  160. humtarg:TakeDamage(humtarg.MaxHealth/2/2)
  161. for _, a in pairs(targ:children()) do
  162. if a:IsA('ForceField') then
  163. a:Destroy()
  164. end
  165. end
  166. end
  167. end)
  168. for i = 1,80 do
  169. wait(.05)
  170. p.Size = p.Size + Vector3.new(2,2,2)
  171. o.Size = p.Size
  172. o.CFrame = char.Torso.CFrame * CFrame.Angles(math.random(1,100),math.random(1,100),math.random(1,100))
  173. p.CFrame = char.Torso.CFrame * CFrame.Angles(math.random(1,100),math.random(1,100),math.random(1,100))
  174. p.Transparency = p.Transparency + 0.012
  175. o.Transparency = o.Transparency + 0.012
  176. p.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  177. o.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  178. end
  179. p:Destroy()
  180. o:Destroy()
  181. end))
  182. end
  183.  
  184. function firer(a)
  185. local fire1 = Instance.new("ParticleEmitter", a)
  186. fire1.Texture = "rbxassetid://160041569"
  187. fire1.Rotation = NumberRange.new(-180,180)
  188. fire1.RotSpeed = NumberRange.new(5, 9)
  189. fire1.Speed = NumberRange.new(5, 7)
  190. fire1.Lifetime = NumberRange.new(0.05,0.06)
  191. fire1.Color = ColorSequence.new(BrickColor.new'Deep orange'.Color)
  192. fire1.Rate = 200,300
  193. fire1.Acceleration = Vector3.new( 8, 6, 6 )
  194. fire1.Transparency = NumberSequence.new(0, 0, 0, 0.13253, 0.54375, 0, 0.32092, 0.7375, 0, 0.387733, 0, 0, 0.468784 ,0.725, 0, 0.522453, 0.45625, 0, 0.615553, 0.6375, 0, 0.63965, 0 ,0, 0.744797, 0.525, 0 ,1, 0, 0 )
  195. fire1.LightEmission = 0.860
  196. fire1.Size = NumberSequence.new(1)
  197. fire1.LightInfluence = 0
  198. fire1.Enabled = false
  199. fire1.SpreadAngle = Vector2.new(28, 28)
  200. end
  201.  
  202. function swait(num)
  203. if num == 0 or num == nil then
  204. ArtificialHB.Event:wait()
  205. else
  206. for i = 0, num do
  207. ArtificialHB.Event:wait()
  208. end
  209. end
  210. end
  211.  
  212. --// Body Parts
  213.  
  214. human = char:FindFirstChildOfClass'Humanoid'
  215. torso = char.Torso
  216. root = char.HumanoidRootPart
  217. lleg = char["Left Leg"]
  218. rleg = char["Right Leg"]
  219. larm = char["Left Arm"]
  220. rarm = char["Right Arm"]
  221. head = char.Head
  222.  
  223. --// Head
  224.  
  225. neck = torso.Neck
  226. ncf = neck.C0
  227.  
  228. --// torso
  229.  
  230. torsojoint = root.RootJoint
  231. torsoC0 = torsojoint.C0
  232.  
  233. --// Legs
  234.  
  235. lhip = torso["Left Hip"]
  236. rhip = torso["Right Hip"]
  237. lle = lhip.C0
  238. rle = rhip.C0
  239.  
  240. --// rad,random,sin,cos,and floor
  241.  
  242. rad = math.rad
  243. random = math.random
  244. sin = math.sin
  245. cos = math.cos
  246. floor = math.floor
  247.  
  248. --// Body Color
  249.  
  250. bc = char:FindFirstChild('Body Colors')
  251. bc.HeadColor = BrickColor.new('asd')
  252. bc.LeftArmColor = BrickColor.new('asd')
  253. bc.RightArmColor = BrickColor.new('asd')
  254. bc.LeftLegColor = BrickColor.new('asd')
  255. bc.RightLegColor = BrickColor.new('asd')
  256. bc.TorsoColor = BrickColor.new('asd')
  257.  
  258. --// Sfx
  259.  
  260. local s1 = Instance.new('Sound', plr.PlayerGui) -- Zoom out/in
  261. s1.SoundId = "rbxassetid://866613992"
  262. s1.Looped = true
  263. s1.Volume = 4
  264. s1:Stop()
  265.  
  266. local s2 = Instance.new('Sound', char.Torso) -- Fire
  267. s2.SoundId = "rbxassetid://455238567"
  268. s2.Looped = true
  269. s2.Volume = 8
  270. s2:Stop()
  271.  
  272. local s3 = Instance.new('Sound', char.Torso) -- Explosion
  273. s3.SoundId = "rbxassetid://138210320"
  274. s3.Looped = false
  275. s3.Volume = 10
  276. s3:Stop()
  277.  
  278. local s4 = Instance.new('Sound', char['Right Arm']) -- Down/Up
  279. s4.SoundId = "rbxassetid://92597369"
  280. s4.Volume = 4
  281. s4:Stop()
  282.  
  283. local s5 = Instance.new('Sound', char['Right Arm']) -- Shoot
  284. s5.SoundId = "rbxassetid://168143115"
  285. s5.Volume = 6
  286. s5.Pitch = 4
  287. s5:Stop()
  288. local s6 = s5:Clone()
  289. s6.Parent = char['Right Arm']
  290. local s7 = s5:Clone()
  291. s7.Parent = char['Right Arm']
  292.  
  293. local sfx = {}
  294. table.insert(sfx,s5)
  295. table.insert(sfx,s6)
  296. table.insert(sfx,s7)
  297.  
  298. --// Arms
  299.  
  300. lshold = torso["Left Shoulder"]
  301. rshold = torso["Right Shoulder"]
  302. lsho = lshold.C0
  303. rsho = rshold.C0
  304.  
  305. --// Remove animations
  306.  
  307. char.Animate.Parent = nil
  308. human.Animator.Parent = nil
  309.  
  310. for i,v in pairs(human:GetPlayingAnimationTracks()) do
  311. v:Stop()
  312. end
  313.  
  314. --// Heartbeat
  315.  
  316. ArtificialHB = Instance.new("BindableEvent", script)
  317. ArtificialHB.Name = "Heartbeat"
  318.  
  319. script:WaitForChild("Heartbeat")
  320.  
  321. frame = 1 / 60
  322. tf = 0
  323. allowframeloss = false
  324. tossremainder = false
  325. lastframe = tick()
  326. script.Heartbeat:Fire()
  327.  
  328. game:GetService("RunService").Heartbeat:connect(function(s, p)
  329. tf = tf + s
  330. if tf >= frame then
  331. if allowframeloss then
  332. script.Heartbeat:Fire()
  333. lastframe = tick()
  334. else
  335. for i = 1, math.floor(tf / frame) do
  336. script.Heartbeat:Fire()
  337. end
  338. lastframe = tick()
  339. end
  340. if tossremainder then
  341. tf = 0
  342. else
  343. tf = tf - frame * math.floor(tf / frame)
  344. end
  345. end
  346. end)
  347.  
  348. --// Configs
  349.  
  350. speed = 4
  351. cooldown = true
  352. sprint = false
  353. gunOut = false
  354. bladeOut = false
  355. shootPart = ""
  356.  
  357. --// Run
  358.  
  359. local UIS = game:GetService('UserInputService')
  360. UIS.InputBegan:connect(function(input)
  361. if input.KeyCode == Enum.KeyCode.LeftShift then
  362. if sprint == false and cooldown then
  363. cooldown = false
  364. human.WalkSpeed = 22
  365. sprint = true
  366. for _, a in pairs(firep) do
  367. a.Enabled = true
  368. end
  369. elseif sprint == true and cooldown then
  370. cooldown = false
  371. sprint = false
  372. human.WalkSpeed = 7
  373. for _, a in pairs(firep) do
  374. a.Enabled = false
  375. end
  376. end
  377. cooldown = true
  378. end
  379. end)
  380.  
  381. --// Fake Leg Parts
  382.  
  383. local p1 = Instance.new('Part', char)
  384. p1.Name = 'LeftLeg'
  385. p1.Size = Vector3.new(0.5,0.5,0.5)
  386. p1.Anchored = false
  387. p1.CanCollide = false
  388. local w1 = Instance.new('Weld', char)
  389. w1.Part0 = p1
  390. w1.Part1 = char['Left Leg']
  391. w1.C0 = CFrame.new(0,1,0)
  392.  
  393. local p2 = p1:Clone()
  394. p2.Parent = char
  395. local w2 = Instance.new('Weld', char)
  396. w2.Part0 = p2
  397. w2.Part1 = char['Right Leg']
  398. w2.C0 = CFrame.new(0,1,0)
  399.  
  400. local p3 = p1:Clone()
  401. p3.Parent = char
  402. local w3 = Instance.new('Weld', char)
  403. w3.Part0 = p3
  404. w3.Part1 = char['Right Arm']
  405. w3.C0 = CFrame.new(0,1,0)
  406.  
  407. p3.Transparency = 1
  408. p2.Transparency = 1
  409. p1.Transparency = 1
  410.  
  411. firer(p3)
  412. firer(p2)
  413. firer(p1)
  414.  
  415. firep = {}
  416. table.insert(firep,p1:FindFirstChildOfClass'ParticleEmitter')
  417. table.insert(firep,p2:FindFirstChildOfClass'ParticleEmitter')
  418. table.insert(firep,p3:FindFirstChildOfClass'ParticleEmitter')
  419.  
  420. --// Character
  421.  
  422. human.WalkSpeed = 7
  423.  
  424. for _, a in pairs(char:children()) do
  425. if a:IsA'Pants' or a:IsA'ShirtGraphic' or a:IsA'Shirt' or a:IsA'CharacterMesh' or a:IsA'Accessory' then
  426. a:Destroy()
  427. end
  428. end
  429.  
  430. local sh = Instance.new('Shirt', char)
  431. sh.ShirtTemplate = "http://www.roblox.com/asset/?id=21849553"
  432.  
  433. local pa = Instance.new('Pants', char)
  434. pa.PantsTemplate = "http://www.roblox.com/asset/?id=21849622"
  435.  
  436. local hat = Instance.new('Part', char)
  437. hat.Name = "Accessory"
  438. hat.Anchored = false
  439. hat.CanCollide = false
  440. hat.BrickColor = BrickColor.new('Really black')
  441. local weld = Instance.new('Weld', hat)
  442. weld.Part0 = hat
  443. weld.Part1 = char.Head
  444. weld.C0 = CFrame.new(0,-0.52,0)
  445. local mesh = Instance.new('SpecialMesh', hat)
  446. mesh.MeshId = "http://www.roblox.com/asset/?id=14394711"
  447. mesh.Scale = Vector3.new(1, 0.95, 0.85)
  448. mesh.TextureId = "http://www.roblox.com/asset/?id=14394687"
  449.  
  450. --// HandBlade
  451.  
  452. local m = Instance.new("Model")
  453. m.Name = "HandBlade"
  454. p1 = Instance.new("Part", m)
  455. p1.BrickColor = BrickColor.new("Bright yellow")
  456. p1.Reflectance = 0.20000000298023
  457. p1.Name = "Handle4"
  458. p1.CFrame = CFrame.new(-0.643002868, 3.90081668, 19.4344158, -0.0783733577, 4.25964231e-07, -0.996935844, 0.0411199033, -0.999173105, -0.00323337456, -0.996070921, -0.041249644, 0.0783098191)
  459. p1.CanCollide = false
  460. p1.FormFactor = Enum.FormFactor.Plate
  461. p1.Size = Vector3.new(0.246900573, 0.106616475, 0.549366534)
  462. p1.BottomSurface = Enum.SurfaceType.Smooth
  463. p1.TopSurface = Enum.SurfaceType.Smooth
  464. b1 = Instance.new("SpecialMesh", p1)
  465. b1.MeshType = Enum.MeshType.Brick
  466. b1.Name = "Mesh"
  467. b1.Scale = Vector3.new(0.5, 0.853330731, 1)
  468. p2 = Instance.new("Part", m)
  469. p2.BrickColor = BrickColor.new("Bright yellow")
  470. p2.Reflectance = 0.20000000298023
  471. p2.Name = "Handle5"
  472. p2.CFrame = CFrame.new(-0.64328289, 3.26432657, 19.4081631, -0.0783744007, 4.87090063e-07, -0.996926308, 0.041120708, -0.999153793, -0.00323330285, -0.996074617, -0.0412481911, 0.0783083141)
  473. p2.FormFactor = Enum.FormFactor.Plate
  474. p2.Size = Vector3.new(0.246900573, 1.18272865, 0.548843801)
  475. p2.BottomSurface = Enum.SurfaceType.Smooth
  476. p2.TopSurface = Enum.SurfaceType.Smooth
  477. b2 = Instance.new("SpecialMesh", p2)
  478. b2.MeshType = Enum.MeshType.Brick
  479. b2.Name = "Mesh"
  480. b2.Scale = Vector3.new(0.200000003, 1, 0.800000012)
  481. p3 = Instance.new("Part", m)
  482. p3.BrickColor = BrickColor.new("Bright yellow")
  483. p3.Reflectance = 0.20000000298023
  484. p3.Name = "Main"
  485. local bladeWeld = Instance.new('Weld', p3)
  486. bladeWeld.Part0 = p3
  487. bladeWeld.Name = 'MainWeld'
  488. bladeWeld.Part1 = char['Right Arm']
  489. bladeWeld.C0 = CFrame.new(0,-.7,0) * CFrame.Angles(rad(0),rad(0),rad(180))
  490. p3.CFrame = CFrame.new(-0.636542201, 2.46875334, 19.3747864, -0.0783738792, 4.56527232e-07, -0.996931076, 0.0411203057, -0.999163449, -0.00323333871, -0.996072769, -0.0412489176, 0.0783090666)
  491. p3.FormFactor = Enum.FormFactor.Plate
  492. p3.Size = Vector3.new(0.246900573, 0.454895586, 0.562311172)
  493. b3 = Instance.new("SpecialMesh", p3)
  494. b3.MeshType = Enum.MeshType.Wedge
  495. b3.Name = "Mesh"
  496. b3.Scale = Vector3.new(0.200000003, 1, 0.800000012)
  497. w1 = Instance.new("Weld", p3)
  498. w1.Name = "BTWeld"
  499. w1.Part0 = p3
  500. w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  501. w1.Part1 = p2
  502. w1.C1 = CFrame.new(2.86102295e-06, 0.79626894, -0.00676131248, 0.999998152, 3.27825546e-07, -3.7997961e-07, 3.27825546e-07, 1.00000966, 4.88944352e-09, -3.7997961e-07, 4.88944352e-09, 1.00000477)
  503. w2 = Instance.new("Weld", p3)
  504. w2.Name = "BTWeld"
  505. w2.Part0 = p3
  506. w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  507. w2.Part1 = p1
  508. w2.C1 = CFrame.new(9.53674316e-07, 1.4332695, -0.00647997856, 0.999998152, 3.27825546e-07, -3.7997961e-07, 3.27825546e-07, 1.00000966, 4.88944352e-09, -3.7997961e-07, 4.88944352e-09, 1.00000477)
  509. m.Parent = char
  510. local b = m:Clone()
  511. local c = m:Clone()
  512. for _, a in pairs(b['Main']:children()) do
  513. if a:IsA'Weld' and a.Name == 'MainWeld' then
  514. a:Destroy()
  515. end
  516. end
  517. for _, a in pairs(c['Main']:children()) do
  518. if a:IsA'Weld' and a.Name == 'MainWeld' then
  519. a:Destroy()
  520. end
  521. end
  522. local bladeWeld2 = bladeWeld:Clone()
  523. bladeWeld2.Parent = b.Main
  524. bladeWeld2.Part0 = b.Main
  525. bladeWeld2.Part1 = char['Right Arm']
  526. bladeWeld2.C0 = CFrame.new(-.3,-.7,0) * CFrame.Angles(rad(0),rad(0),rad(180))
  527. local bladeWeld3 = bladeWeld:Clone()
  528. bladeWeld3.Parent = c.Main
  529. bladeWeld3.Part0 = c.Main
  530. bladeWeld3.Part1 = char['Right Arm']
  531. bladeWeld3.C0 = CFrame.new(.3,-.7,0) * CFrame.Angles(rad(0),rad(0),rad(180))
  532. b.Parent = m
  533. c.Parent = b
  534.  
  535. for _, a in pairs(c:children()) do
  536. if a:IsA'Part' then
  537. a.Anchored = false
  538. a.CanCollide = false
  539. a.BrickColor = BrickColor.new'asd'
  540. a.Material = 'DiamondPlate'
  541. end
  542. end
  543.  
  544. for _, a in pairs(b:children()) do
  545. if a:IsA'Part' then
  546. a.Anchored = false
  547. a.CanCollide = false
  548. a.BrickColor = BrickColor.new'asd'
  549. a.Material = 'DiamondPlate'
  550. end
  551. end
  552.  
  553. for _, a in pairs(m:children()) do
  554. if a:IsA'Part' then
  555. a.Anchored = false
  556. a.CanCollide = false
  557. a.BrickColor = BrickColor.new'asd'
  558. a.Material = 'DiamondPlate'
  559. end
  560. end
  561.  
  562. --// Gun model
  563.  
  564. local m = Instance.new("Model")
  565. m.Name = "Gun"
  566. p1 = Instance.new("Part", m)
  567. p1.BrickColor = BrickColor.new("Fossil")
  568. p1.CFrame = CFrame.new(-0.401441604, 2.8175571, 18.1787033, 0.999962628, 0.00863229949, -1.11795003e-07, 0.00863230135, -0.999962628, -1.11789809e-07, -1.12755828e-07, 1.10820594e-07, -1)
  569. p1.Size = Vector3.new(1, 0.25, 0.5)
  570. b1 = Instance.new("SpecialMesh", p1)
  571. b1.MeshId = "rbxassetid://989468093"
  572. b1.TextureId = ""
  573. b1.MeshType = Enum.MeshType.FileMesh
  574. b1.Name = "Mesh"
  575. b1.Scale = Vector3.new(0.5, 12.5, 0.5)
  576. p2 = Instance.new("Part", m)
  577. p2.BrickColor = BrickColor.new("Fossil")
  578. p2.Material = Enum.Material.Metal
  579. p2.CFrame = CFrame.new(-0.512578011, 2.62521815, 18.2519169, -0.00863235723, 1.11795003e-07, 0.999965012, 0.999965012, 1.11789795e-07, 0.00863236282, -1.10820849e-07, 1, -1.12756112e-07)
  580. p2.Shape = Enum.PartType.Cylinder
  581. p2.Size = Vector3.new(0.309999973, 0.12178535, 0.110713989)
  582. p2.BottomSurface = Enum.SurfaceType.Smooth
  583. p2.TopSurface = Enum.SurfaceType.Smooth
  584. gunpart = Instance.new("Part", m)
  585. gunpart.BrickColor = BrickColor.new("Fossil")
  586. gunpart.Material = Enum.Material.Metal
  587. gunpart.CFrame = CFrame.new(-0.401283592, 2.6261785, 18.0415592, -0.00863235909, 1.11795003e-07, 0.999965012, 0.999965012, 1.11789795e-07, 0.00863236468, -1.10820849e-07, 1, -1.12756112e-07)
  588. gunpart.Shape = Enum.PartType.Cylinder
  589. gunpart.Size = Vector3.new(0.309999973, 0.12178535, 0.110713989)
  590. gunpart.BottomSurface = Enum.SurfaceType.Smooth
  591. gunpart.TopSurface = Enum.SurfaceType.Smooth
  592. p4 = Instance.new("Part", m)
  593. p4.BrickColor = BrickColor.new("Fossil")
  594. p4.Material = Enum.Material.Metal
  595. p4.CFrame = CFrame.new(-0.290575087, 2.62713361, 18.1190605, -0.00863239262, 1.11794996e-07, 0.99996978, 0.99996978, 1.11789795e-07, 0.00863240566, -1.10821397e-07, 1, -1.12756659e-07)
  596. p4.Shape = Enum.PartType.Cylinder
  597. p4.Size = Vector3.new(0.309999973, 0.12178535, 0.110713989)
  598. p4.BottomSurface = Enum.SurfaceType.Smooth
  599. p4.TopSurface = Enum.SurfaceType.Smooth
  600. p5 = Instance.new("Part", m)
  601. p5.BrickColor = BrickColor.new("Fossil")
  602. p5.Material = Enum.Material.Metal
  603. p5.CFrame = CFrame.new(-0.512001157, 2.62522316, 18.1190605, -0.00863235909, 1.11795003e-07, 0.999965012, 0.999965012, 1.11789795e-07, 0.00863236468, -1.10820849e-07, 1, -1.12756112e-07)
  604. p5.Shape = Enum.PartType.Cylinder
  605. p5.Size = Vector3.new(0.309999973, 0.12178535, 0.110713989)
  606. p5.BottomSurface = Enum.SurfaceType.Smooth
  607. p5.TopSurface = Enum.SurfaceType.Smooth
  608. p6 = Instance.new("Part", m)
  609. p6.BrickColor = BrickColor.new("Fossil")
  610. p6.Material = Enum.Material.Metal
  611. p6.CFrame = CFrame.new(-0.401282996, 2.62617803, 18.3072739, -0.00863235537, 1.11794996e-07, 0.999965012, 0.999965012, 1.11789802e-07, 0.00863236096, -1.10820856e-07, 1, -1.12756105e-07)
  612. p6.Shape = Enum.PartType.Cylinder
  613. p6.Size = Vector3.new(0.309999973, 0.12178535, 0.110713989)
  614. p6.BottomSurface = Enum.SurfaceType.Smooth
  615. p6.TopSurface = Enum.SurfaceType.Smooth
  616. p7 = Instance.new("Part", m)
  617. p7.BrickColor = BrickColor.new("Fossil")
  618. p7.Material = Enum.Material.Metal
  619. p7.Name = "MainWeld"
  620. p7.CFrame = CFrame.new(-0.290575475, 2.62713385, 18.2519169, -0.00863235351, 1.11794996e-07, 0.999965012, 0.999965012, 1.11789809e-07, 0.00863235909, -1.10820864e-07, 1, -1.12756105e-07)
  621. p7.Shape = Enum.PartType.Cylinder
  622. p7.Size = Vector3.new(0.309999973, 0.12178535, 0.110713989)
  623. p7.BottomSurface = Enum.SurfaceType.Smooth
  624. p7.TopSurface = Enum.SurfaceType.Smooth
  625. p8 = Instance.new("Part", m)
  626. p8.BrickColor = BrickColor.new("Really black")
  627. p8.Material = Enum.Material.Metal
  628. p8.Reflectance = 0.55000001192093
  629. p8.CFrame = CFrame.new(-0.402910084, 2.81120157, 18.1801624, -0.00863235537, 1.11795003e-07, 0.999965012, 0.999965012, 1.11789802e-07, 0.00863236096, -1.10820856e-07, 1, -1.12756112e-07)
  630. p8.Shape = Enum.PartType.Cylinder
  631. p8.Size = Vector3.new(0.539999843, 0.437499523, 0.69999963)
  632. p8.BottomSurface = Enum.SurfaceType.Smooth
  633. p8.TopSurface = Enum.SurfaceType.Smooth
  634. p9 = Instance.new("Part", m)
  635. p9.BrickColor = BrickColor.new("Fossil")
  636. p9.Material = Enum.Material.Metal
  637. p9.CFrame = CFrame.new(-0.400313258, 2.62618637, 18.183979, -0.00863235723, 1.11795003e-07, 0.999965012, 0.999965012, 1.11789795e-07, 0.00863236282, -1.10820849e-07, 1, -1.12756112e-07)
  638. p9.Shape = Enum.PartType.Cylinder
  639. p9.Size = Vector3.new(0.309999973, 0.12178535, 0.110713989)
  640. p9.BottomSurface = Enum.SurfaceType.Smooth
  641. p9.TopSurface = Enum.SurfaceType.Smooth
  642. p10 = Instance.new("Part", m)
  643. p10.BrickColor = BrickColor.new("Medium stone grey")
  644. p10.Name = "Handle"
  645. p10.CFrame = CFrame.new(-0.393283606, 2.8216691, 17.7182941, 0.027286822, 3.7252903e-09, 0.999634027, 1.16415322e-10, 1.00000477, 3.7252903e-09, -0.999627113, -5.47117907e-13, 0.0272866897)
  646. p10.Shape = Enum.PartType.Cylinder
  647. p10.Size = Vector3.new(1.10000086, 0.270000219, 0.199999958)
  648. w1 = Instance.new("Weld", p7)
  649. w1.Name = "BTWeld"
  650. w1.Part0 = p7
  651. w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  652. w1.Part1 = p6
  653. w1.C1 = CFrame.new(2.38418579e-07, -0.0553569794, 0.110711396, 1, 7.10531724e-15, -1.86262872e-09, -7.10531724e-15, 1, -1.3234773e-23, 1.86262872e-09, 2.6469341e-23, 1)
  654. w2 = Instance.new("Weld", p7)
  655. w2.Name = "BTWeld"
  656. w2.Part0 = p7
  657. w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  658. w2.Part1 = p8
  659. w2.C1 = CFrame.new(-0.185030222, 0.0717544556, 0.110741228, 1, 7.10535451e-15, -1.86263849e-09, -7.10535451e-15, 1, 7.10542736e-15, 1.86263849e-09, -7.10542736e-15, 1)
  660. w3 = Instance.new("Weld", p7)
  661. w3.Name = "BTWeld"
  662. w3.Part0 = p7
  663. w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  664. w3.Part1 = p10
  665. w3.C1 = CFrame.new(-0.530622482, -0.194534302, 0.117230028, -0.000235437692, -0.999627113, 0.0272858571, 0.99996525, 1.11789817e-07, 0.00863235909, -0.00862916, 0.0272868015, 0.99959451)
  666. w4 = Instance.new("Weld", p7)
  667. w4.Name = "BTWeld"
  668. w4.Part0 = p7
  669. w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  670. w4.Part1 = p9
  671. w4.C1 = CFrame.new(2.38418579e-07, 0.067937851, 0.109741598, 1, 1.4210709e-14, -3.72526454e-09, -1.4210709e-14, 1, 7.10542736e-15, 3.72526454e-09, -7.10542736e-15, 1)
  672. w5 = Instance.new("Weld", p7)
  673. w5.Name = "BTWeld"
  674. w5.Part0 = p7
  675. w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  676. w5.Part1 = p2
  677. w5.C1 = CFrame.new(-7.15255737e-07, 0, 0.222010314, 1, 1.4210709e-14, -3.72526454e-09, -1.4210709e-14, 1, 7.10542736e-15, 3.72526454e-09, -7.10542736e-15, 1)
  678. w6 = Instance.new("Weld", p7)
  679. w6.Name = "BTWeld"
  680. w6.Part0 = p7
  681. w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  682. w6.Part1 = p1
  683. w6.C1 = CFrame.new(0.10921821, 0.19137311, -0.0732135773, -3.35275985e-08, -7.10542736e-15, 1.00000238, -1.00000238, 0, -3.72529172e-08, 1.42108547e-14, -1, 0)
  684. w7 = Instance.new("Weld", p7)
  685. w7.Name = "BTWeld"
  686. w7.Part0 = p7
  687. w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  688. w7.Part1 = gunpart
  689. w7.C1 = CFrame.new(-4.76837158e-07, 0.210357666, 0.110711962, 1, 1.42107124e-14, -5.58789193e-09, -1.42107124e-14, 1, 7.10542736e-15, 5.58789193e-09, -7.10542736e-15, 1)
  690. w8 = Instance.new("Weld", p7)
  691. w8.Name = "BTWeld"
  692. w8.Part0 = p7
  693. w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  694. w8.Part1 = p4
  695. w8.C1 = CFrame.new(2.38418579e-07, 0.132856369, -3.87430191e-07, 1.00000477, -7.10542736e-15, 1.86265758e-09, -1.42108547e-14, 1, 0, 5.58794788e-09, -1.42108547e-14, 1.00000477)
  696. w9 = Instance.new("Weld", p7)
  697. w9.Name = "BTWeld"
  698. w9.Part0 = p7
  699. w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  700. w9.Part1 = p5
  701. w9.C1 = CFrame.new(-7.15255737e-07, 0.132856369, 0.221433431, 1, 1.42107124e-14, -5.58789193e-09, -1.42107124e-14, 1, 7.10542736e-15, 5.58789193e-09, -7.10542736e-15, 1)
  702. m.Parent = char
  703. local gunWeld = Instance.new('Weld', p7)
  704. gunWeld.Part0 = p7
  705. gunWeld.Part1 = char['Right Arm']
  706. gunWeld.C0 = CFrame.new(0.25,-1.53,-0.10) * CFrame.Angles(rad(0),rad(90),rad(0))
  707. m.Parent = char
  708.  
  709. for _, a in pairs(m:children()) do
  710. if a:IsA'Part' then
  711. a.CanCollide = false
  712. a.Anchored = false
  713. end
  714. end
  715.  
  716. --// Arm
  717.  
  718. local m = Instance.new("Model")
  719. m.Name = "Arm"
  720. p1 = Instance.new("Part", m)
  721. p1.BrickColor = BrickColor.new("Medium stone grey")
  722. p1.Name = "Arm"
  723. p1.CFrame = CFrame.new(1.30997491, 7.09002733, -22.9693718, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  724. p1.Anchored = true
  725. p1.CanCollide = false
  726. p1.FormFactor = Enum.FormFactor.Symmetric
  727. p1.Size = Vector3.new(1, 1, 1)
  728. b1 = Instance.new("SpecialMesh", p1)
  729. b1.MeshType = Enum.MeshType.Head
  730. b1.Name = "Mesh"
  731. b1.Scale = Vector3.new(0.100000001, 0.600000024, 0.100000001)
  732. p2 = Instance.new("Part", m)
  733. p2.BrickColor = BrickColor.new("Bright blue")
  734. p2.Transparency = 1
  735. p2.Name = "Middle"
  736. p2.CFrame = CFrame.new(1.61000085, 8.00003242, -23.0793571, 4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, 4.37113883e-08)
  737. p2.Anchored = true
  738. p2.CanCollide = false
  739. p2.FormFactor = Enum.FormFactor.Symmetric
  740. p2.Size = Vector3.new(1, 2, 1)
  741. p2.LeftSurface = Enum.SurfaceType.Weld
  742. p2.RightSurface = Enum.SurfaceType.Weld
  743. p2.TopSurface = Enum.SurfaceType.Weld
  744. p2.LeftParamA = 0
  745. p2.LeftParamB = 0
  746. p2.RightParamA = 0
  747. p2.RightParamB = 0
  748. p3 = Instance.new("Part", m)
  749. p3.BrickColor = BrickColor.new("Dark stone grey")
  750. p3.Name = "Arm"
  751. p3.CFrame = CFrame.new(1.22997284, 6.77002525, -22.9693642, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  752. p3.Anchored = true
  753. p3.CanCollide = false
  754. p3.FormFactor = Enum.FormFactor.Symmetric
  755. p3.Size = Vector3.new(1, 1, 1)
  756. b2 = Instance.new("SpecialMesh", p3)
  757. b2.MeshType = Enum.MeshType.Head
  758. b2.Name = "Mesh"
  759. b2.Scale = Vector3.new(0.150000006, 0.300000012, 0.400000006)
  760. p4 = Instance.new("Part", m)
  761. p4.BrickColor = BrickColor.new("asd")
  762. p4.Name = "Arm"
  763. p4.CFrame = CFrame.new(1.40998793, 7.4000144, -22.8793755, -0.965925813, -1.0213936e-07, -0.258819044, 0.258819044, 8.27919777e-08, -0.965925813, 1.20087179e-07, -1, -5.35352989e-08)
  764. p4.Anchored = true
  765. p4.CanCollide = false
  766. p4.FormFactor = Enum.FormFactor.Symmetric
  767. p4.Size = Vector3.new(1, 1, 1)
  768. b3 = Instance.new("SpecialMesh", p4)
  769. b3.MeshType = Enum.MeshType.Torso
  770. b3.Name = "Mesh"
  771. b3.Scale = Vector3.new(0.600000024, 0.5, 0.699999988)
  772. p5 = Instance.new("Part", m)
  773. p5.BrickColor = BrickColor.new("asd")
  774. p5.Name = "Arm"
  775. p5.CFrame = CFrame.new(1.61000085, 8.5000248, -22.8793755, -1, -4.37113883e-08, 1.91068547e-15, -3.82137093e-15, 4.37113883e-08, -1, 4.37113883e-08, -1, -4.37113883e-08)
  776. p5.Anchored = true
  777. p5.CanCollide = false
  778. p5.FormFactor = Enum.FormFactor.Symmetric
  779. p5.Size = Vector3.new(1, 1, 1)
  780.  
  781. b4 = Instance.new("SpecialMesh", p5)
  782. b4.MeshType = Enum.MeshType.Torso
  783. b4.Name = "Mesh"
  784. b4.Scale = Vector3.new(0.600000024, 0.5, 0.699999988)
  785. p6 = Instance.new("Part", m)
  786. p6.BrickColor = BrickColor.new("Medium stone grey")
  787. p6.Name = "Arm"
  788. p6.CFrame = CFrame.new(1.40997291, 7.05002451, -22.8193779, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  789. p6.Anchored = true
  790. p6.CanCollide = false
  791. p6.FormFactor = Enum.FormFactor.Symmetric
  792. p6.Size = Vector3.new(1, 1, 1)
  793. b5 = Instance.new("SpecialMesh", p6)
  794. b5.MeshType = Enum.MeshType.Head
  795. b5.Name = "Mesh"
  796. b5.Scale = Vector3.new(0.100000001, 0.600000024, 0.100000001)
  797. p7 = Instance.new("Part", m)
  798. p7.BrickColor = BrickColor.new("Olive")
  799. p7.Name = "Arm"
  800. p7.CFrame = CFrame.new(1.519943, 7.78999233, -22.9393425, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  801. p7.Anchored = true
  802. p7.CanCollide = false
  803. p7.FormFactor = Enum.FormFactor.Symmetric
  804. p7.Size = Vector3.new(1, 1, 1)
  805. b6 = Instance.new("SpecialMesh", p7)
  806. b6.MeshType = Enum.MeshType.Head
  807. b6.Name = "Mesh"
  808. b6.Scale = Vector3.new(0.0500000007, 0.5, 0.0500000007)
  809. p8 = Instance.new("Part", m)
  810. p8.BrickColor = BrickColor.new("a")
  811. p8.Name = "Arm"
  812. p8.CFrame = CFrame.new(1.40997291, 7.4000144, -22.8893547, -0.965925813, -1.0213936e-07, -0.258819044, 0.258819044, 8.27919777e-08, -0.965925813, 1.20087179e-07, -1, -5.35352989e-08)
  813. p8.Anchored = true
  814. p8.CanCollide = false
  815. p8.FormFactor = Enum.FormFactor.Symmetric
  816. p8.Size = Vector3.new(1, 1, 1)
  817. b7 = Instance.new("SpecialMesh", p8)
  818. b7.MeshType = Enum.MeshType.Torso
  819. b7.Name = "Mesh"
  820. b7.Scale = Vector3.new(0.600000024, 0.200000003, 0.600000024)
  821. p9 = Instance.new("Part", m)
  822. p9.BrickColor = BrickColor.new("Dark stone grey")
  823. p9.Name = "Arm"
  824. p9.CFrame = CFrame.new(1.33997297, 6.75002527, -22.8193779, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  825. p9.Anchored = true
  826. p9.CanCollide = false
  827. p9.FormFactor = Enum.FormFactor.Symmetric
  828. p9.Size = Vector3.new(1, 1, 1)
  829. b8 = Instance.new("SpecialMesh", p9)
  830. b8.MeshType = Enum.MeshType.Head
  831. b8.Name = "Mesh"
  832. b8.Scale = Vector3.new(0.150000006, 0.300000012, 0.400000006)
  833. p10 = Instance.new("Part", m)
  834. p10.BrickColor = BrickColor.new("Bright blue")
  835. p10.Name = "Arm"
  836. p10.CFrame = CFrame.new(1.41996789, 7.88999844, -22.7793694, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  837. p10.Anchored = true
  838. p10.CanCollide = false
  839. p10.FormFactor = Enum.FormFactor.Symmetric
  840. p10.Size = Vector3.new(1, 1, 1)
  841. b9 = Instance.new("SpecialMesh", p10)
  842. b9.MeshType = Enum.MeshType.Head
  843. b9.Name = "Mesh"
  844. b9.Scale = Vector3.new(0.0500000007, 0.5, 0.0500000007)
  845. p11 = Instance.new("Part", m)
  846. p11.BrickColor = BrickColor.new("Medium stone grey")
  847. p11.Name = "Arm"
  848. p11.CFrame = CFrame.new(1.61000085, 7.80000639, -22.8193779, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  849. p11.Anchored = true
  850. p11.CanCollide = false
  851. p11.FormFactor = Enum.FormFactor.Symmetric
  852. p11.Size = Vector3.new(1, 1, 1)
  853. b10 = Instance.new("SpecialMesh", p11)
  854. b10.MeshType = Enum.MeshType.Head
  855. b10.Name = "Mesh"
  856. b10.Scale = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  857. p12 = Instance.new("Part", m)
  858. p12.BrickColor = BrickColor.new("Medium stone grey")
  859. p12.Name = "Arm"
  860. p12.CFrame = CFrame.new(1.20997596, 7.12002039, -22.709362, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  861. p12.Anchored = true
  862. p12.CanCollide = false
  863. p12.FormFactor = Enum.FormFactor.Symmetric
  864. p12.Size = Vector3.new(1, 1, 1)
  865. b11 = Instance.new("SpecialMesh", p12)
  866. b11.MeshType = Enum.MeshType.Head
  867. b11.Name = "Mesh"
  868. b11.Scale = Vector3.new(0.100000001, 0.600000024, 0.100000001)
  869. p13 = Instance.new("Part", m)
  870. p13.BrickColor = BrickColor.new("Bright red")
  871. p13.Name = "MainArm"
  872. local weld = Instance.new('Weld', p13)
  873. weld.Part0 = char:FindFirstChild('Left Arm')
  874. weld.Part1 = p13
  875. weld.C0 = CFrame.new(.5,0,0)
  876. p13.CFrame = CFrame.new(1.75000787, 7.78999233, -22.7793694, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  877. p13.Anchored = true
  878. p13.CanCollide = false
  879. p13.FormFactor = Enum.FormFactor.Symmetric
  880. p13.Size = Vector3.new(1, 1, 1)
  881. b12 = Instance.new("SpecialMesh", p13)
  882. b12.MeshType = Enum.MeshType.Head
  883. b12.Name = "Mesh"
  884. b12.Scale = Vector3.new(0.0500000007, 0.5, 0.0500000007)
  885. p14 = Instance.new("Part", m)
  886. p14.BrickColor = BrickColor.new("a")
  887. p14.Name = "Arm"
  888. p14.CFrame = CFrame.new(1.61000085, 8.5000248, -22.7793694, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  889. p14.Anchored = true
  890. p14.CanCollide = false
  891. p14.FormFactor = Enum.FormFactor.Symmetric
  892. p14.Size = Vector3.new(1, 1, 1)
  893. b13 = Instance.new("SpecialMesh", p14)
  894. b13.MeshType = Enum.MeshType.Brick
  895. b13.Name = "Mesh"
  896. b13.Scale = Vector3.new(0.5, 1, 0.5)
  897. p15 = Instance.new("Part", m)
  898. p15.BrickColor = BrickColor.new("Dark stone grey")
  899. p15.Name = "Arm"
  900. p15.CFrame = CFrame.new(1.13997602, 6.78002453, -22.7093773, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  901. p15.Anchored = true
  902. p15.CanCollide = false
  903. p15.FormFactor = Enum.FormFactor.Symmetric
  904. p15.Size = Vector3.new(1, 1, 1)
  905. b14 = Instance.new("SpecialMesh", p15)
  906. b14.MeshType = Enum.MeshType.Head
  907. b14.Name = "Mesh"
  908. b14.Scale = Vector3.new(0.150000006, 0.300000012, 0.400000006)
  909. p16 = Instance.new("Part", m)
  910. p16.BrickColor = BrickColor.new("Bright red")
  911. p16.Name = "Arm"
  912. p16.CFrame = CFrame.new(1.48001099, 7.88999653, -22.6793633, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  913. p16.Anchored = true
  914. p16.CanCollide = false
  915. p16.FormFactor = Enum.FormFactor.Symmetric
  916. p16.Size = Vector3.new(1, 1, 1)
  917. b15 = Instance.new("SpecialMesh", p16)
  918. b15.MeshType = Enum.MeshType.Head
  919. b15.Name = "Mesh"
  920. b15.Scale = Vector3.new(0.0500000007, 0.5, 0.0500000007)
  921. p17 = Instance.new("Part", m)
  922. p17.BrickColor = BrickColor.new("Really asdblack")
  923. p17.Name = "Arm"
  924. p17.CFrame = CFrame.new(1.4100039, 7.40001249, -22.689373, 0.965925813, -4.37113883e-08, -0.258819044, -0.258819044, -4.37113883e-08, -0.965925813, 3.09086197e-08, 1, -5.35352989e-08)
  925. p17.Anchored = true
  926. p17.CanCollide = false
  927. p17.FormFactor = Enum.FormFactor.Symmetric
  928. p17.Size = Vector3.new(1, 1, 1)
  929. b16 = Instance.new("SpecialMesh", p17)
  930. b16.MeshType = Enum.MeshType.Torso
  931. b16.Name = "Mesh"
  932. b16.Scale = Vector3.new(0.600000024, 0.200000003, 0.600000024)
  933. p18 = Instance.new("Part", m)
  934. p18.BrickColor = BrickColor.new("Earth green")
  935. p18.Name = "Arm"
  936. p18.CFrame = CFrame.new(1.68000793, 7.78999662, -22.6793633, 0.965925813, 0.258819044, -4.37113883e-08, -0.258819044, 0.965925813, 0, 4.22219593e-08, 1.13133396e-08, 1)
  937. p18.Anchored = true
  938. p18.CanCollide = false
  939. p18.FormFactor = Enum.FormFactor.Symmetric
  940. p18.Size = Vector3.new(1, 1, 1)
  941. b17 = Instance.new("SpecialMesh", p18)
  942. b17.MeshType = Enum.MeshType.Head
  943. b17.Name = "Mesh"
  944. b17.Scale = Vector3.new(0.0500000007, 0.5, 0.0500000007)
  945. p19 = Instance.new("Part", m)
  946. p19.BrickColor = BrickColor.new("Really red")
  947. p19.Transparency = 0.89999997615814
  948. p19.Name = "Arm"
  949. p19.CFrame = CFrame.new(1.10996199, 8.60003662, -22.6793633, -4.37113883e-08, 1, -4.37113883e-08, -1, -4.37113883e-08, 0, -1.91068547e-15, 4.37113883e-08, 1)
  950. p19.Anchored = true
  951. p19.CanCollide = false
  952. p19.FormFactor = Enum.FormFactor.Symmetric
  953. p19.Size = Vector3.new(1, 1, 1)
  954. b18 = Instance.new("SpecialMesh", p19)
  955. b18.MeshType = Enum.MeshType.Head
  956. b18.Name = "Mesh"
  957. b18.Scale = Vector3.new(0.400000006, 0.5, 0.400000006)
  958. p20 = Instance.new("Part", m)
  959. p20.BrickColor = BrickColor.new("Really red")
  960. p20.Transparency = 0.89999997615814
  961. p20.Name = "Arm"
  962. p20.CFrame = CFrame.new(1.10997796, 8.60003662, -22.6793633, -4.37113883e-08, 1, -4.37113883e-08, -1, -4.37113883e-08, 0, -1.91068547e-15, 4.37113883e-08, 1)
  963. p20.Anchored = true
  964. p20.CanCollide = false
  965. p20.FormFactor = Enum.FormFactor.Symmetric
  966. p20.Size = Vector3.new(1, 1, 1)
  967. b19 = Instance.new("SpecialMesh", p20)
  968. b19.MeshType = Enum.MeshType.Head
  969. b19.Name = "Mesh"
  970. b19.Scale = Vector3.new(0.300000012, 0.400000006, 0.300000012)
  971. p21 = Instance.new("Part", m)
  972. p21.BrickColor = BrickColor.new("Really red")
  973. p21.Transparency = 0.89999997615814
  974. p21.Name = "Arm"
  975. p21.CFrame = CFrame.new(1.10993195, 8.60003662, -22.6793633, -4.37113883e-08, 1, -4.37113883e-08, -1, -4.37113883e-08, 0, -1.91068547e-15, 4.37113883e-08, 1)
  976. p21.Anchored = true
  977. p21.CanCollide = false
  978. p21.FormFactor = Enum.FormFactor.Symmetric
  979. p21.Size = Vector3.new(1, 1, 1)
  980. b20 = Instance.new("SpecialMesh", p21)
  981. b20.MeshType = Enum.MeshType.Head
  982. b20.Name = "Mesh"
  983. b20.Scale = Vector3.new(0.600000024, 0.699999988, 0.600000024)
  984. p22 = Instance.new("Part", m)
  985. p22.BrickColor = BrickColor.new("Reallyasd black")
  986. p22.Name = "Arm"
  987. p22.CFrame = CFrame.new(1.61000085, 8.5000248, -22.6793785, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  988. p22.Anchored = true
  989. p22.CanCollide = false
  990. p22.FormFactor = Enum.FormFactor.Symmetric
  991. p22.Size = Vector3.new(1, 1, 1)
  992. b21 = Instance.new("SpecialMesh", p22)
  993. b21.MeshType = Enum.MeshType.Brick
  994. b21.Name = "Mesh"
  995. b21.Scale = Vector3.new(0.400000006, 0.600000024, 0.800000012)
  996. p23 = Instance.new("Part", m)
  997. p23.BrickColor = BrickColor.new("Really red")
  998. p23.Transparency = 0.89999997615814
  999. p23.Name = "Arm"
  1000. p23.CFrame = CFrame.new(1.10994697, 8.60003662, -22.6793633, -4.37113883e-08, 1, -4.37113883e-08, -1, -4.37113883e-08, 0, -1.91068547e-15, 4.37113883e-08, 1)
  1001. p23.Anchored = true
  1002. p23.CanCollide = false
  1003. p23.FormFactor = Enum.FormFactor.Symmetric
  1004. p23.Size = Vector3.new(1, 1, 1)
  1005. b22 = Instance.new("SpecialMesh", p23)
  1006. b22.MeshType = Enum.MeshType.Head
  1007. b22.Name = "Mesh"
  1008. b22.Scale = Vector3.new(0.5, 0.600000024, 0.5)
  1009. p24 = Instance.new("Part", m)
  1010. p24.BrickColor = BrickColor.new("Really red")
  1011. p24.Name = "Arm"
  1012. p24.CFrame = CFrame.new(1.30998993, 8.60003662, -22.6793633, 0, 1, 1.91068547e-15, 4.37113883e-08, 1.91068547e-15, -1, -1, 0, -4.37113883e-08)
  1013. p24.Anchored = true
  1014. p24.CanCollide = false
  1015. p24.FormFactor = Enum.FormFactor.Symmetric
  1016. p24.Size = Vector3.new(1, 1, 1)
  1017. b23 = Instance.new("SpecialMesh", p24)
  1018. b23.MeshType = Enum.MeshType.Head
  1019. b23.Name = "Mesh"
  1020. b23.Scale = Vector3.new(0.200000003, 0.300000012, 0.200000003)
  1021. p25 = Instance.new("Part", m)
  1022. p25.BrickColor = BrickColor.new("Realasdly black")
  1023. p25.Name = "Arm"
  1024. p25.CFrame = CFrame.new(1.61000085, 8.59003067, -22.4793816, 1, 3.63966279e-08, 1.46659626e-15, 1.24350789e-16, -4.37113883e-08, 1, 3.63966279e-08, -1, -4.37113883e-08)
  1025. p25.Anchored = true
  1026. p25.CanCollide = false
  1027. p25.FormFactor = Enum.FormFactor.Symmetric
  1028. p25.Size = Vector3.new(1, 1, 1)
  1029. b24 = Instance.new("SpecialMesh", p25)
  1030. b24.MeshType = Enum.MeshType.Head
  1031. b24.Name = "Mesh"
  1032. b24.Scale = Vector3.new(1, 0.699999988, 0.699999988)
  1033. w1 = Instance.new("Weld", p13)
  1034. w1.Name = "BTWeld"
  1035. w1.Part0 = p13
  1036. w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1037. w1.Part1 = p8
  1038. w1.C1 = CFrame.new(-0.227514863, -0.109985352, -0.464697361, -0.99999994, 1.35858706e-15, 1.62309135e-07, -1.62309135e-07, 4.22219593e-08, -1, -2.26036523e-15, -0.99999994, -4.22219593e-08)
  1039. w2 = Instance.new("Weld", p13)
  1040. w2.Name = "BTWeld"
  1041. w2.Part0 = p13
  1042. w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1043. w2.Part1 = p12
  1044. w2.C1 = CFrame.new(0.348229289, 0.786913872, -0.0700073242, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1045. w3 = Instance.new("Weld", p13)
  1046. w3.Name = "BTWeld"
  1047. w3.Part0 = p13
  1048. w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1049. w3.Part1 = p2
  1050. w3.C1 = CFrame.new(-0.299987793, -0.210040092, 0.140007019, 0, 0, -1, -0.258819044, 0.965925813, 0, 0.965925813, 0.258819044, 0)
  1051. w4 = Instance.new("Weld", p13)
  1052. w4.Name = "BTWeld"
  1053. w4.Part0 = p13
  1054. w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1055. w4.Part1 = p4
  1056. w4.C1 = CFrame.new(-0.227500319, -0.100006104, -0.464693546, -0.99999994, 1.35858706e-15, 1.62309135e-07, -1.62309135e-07, 4.22219593e-08, -1, -2.26036523e-15, -0.99999994, -4.22219593e-08)
  1057. w5 = Instance.new("Weld", p13)
  1058. w5.Name = "BTWeld"
  1059. w5.Part0 = p13
  1060. w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1061. w5.Part1 = p9
  1062. w5.C1 = CFrame.new(0.126899958, 1.11065578, 0.0400085449, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1063. w6 = Instance.new("Weld", p13)
  1064. w6.Name = "BTWeld"
  1065. w6.Part0 = p13
  1066. w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1067. w6.Part1 = p15
  1068. w6.C1 = CFrame.new(0.327846646, 1.13344193, -0.0699920654, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1069. w7 = Instance.new("Weld", p13)
  1070. w7.Name = "BTWeld"
  1071. w7.Part0 = p13
  1072. w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1073. w7.Part1 = p18
  1074. w7.C1 = CFrame.new(0.0676159859, 0.0181126595, -0.100006104, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1075. w8 = Instance.new("Weld", p13)
  1076. w8.Name = "BTWeld"
  1077. w8.Part0 = p13
  1078. w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1079. w8.Part1 = p24
  1080. w8.C1 = CFrame.new(0.100006104, 0.440017939, 0.810044289, -5.35352989e-08, 3.09086197e-08, -1, 0.965925813, 0.258819044, -4.37113883e-08, 0.258819044, -0.965925813, -4.37113883e-08)
  1081. w9 = Instance.new("Weld", p13)
  1082. w9.Name = "BTWeld"
  1083. w9.Part0 = p13
  1084. w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1085. w9.Part1 = p23
  1086. w9.C1 = CFrame.new(0.810044289, 0.640060902, -0.100006104, 0.258819014, -0.965925813, 0, 0.965925813, 0.258819014, 0, 0, 0, 1)
  1087. w10 = Instance.new("Weld", p13)
  1088. w10.Name = "BTWeld"
  1089. w10.Part0 = p13
  1090. w10.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1091. w10.Part1 = p19
  1092. w10.C1 = CFrame.new(0.810044289, 0.640045881, -0.100006104, 0.258819014, -0.965925813, 0, 0.965925813, 0.258819014, 0, 0, 0, 1)
  1093. w11 = Instance.new("Weld", p13)
  1094. w11.Name = "BTWeld"
  1095. w11.Part0 = p13
  1096. w11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1097. w11.Part1 = p6
  1098. w11.C1 = CFrame.new(0.136930823, 0.802761555, 0.0400085449, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1099. w12 = Instance.new("Weld", p13)
  1100. w12.Name = "BTWeld"
  1101. w12.Part0 = p13
  1102. w12.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1103. w12.Part1 = p22
  1104. w12.C1 = CFrame.new(0.0999908447, -0.710032463, 0.140007019, -4.22219593e-08, -1.13133396e-08, -1, -0.258819044, 0.965925813, 0, 0.965925813, 0.258819044, -4.37113883e-08)
  1105. w13 = Instance.new("Weld", p13)
  1106. w13.Name = "BTWeld"
  1107. w13.Part0 = p13
  1108. w13.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1109. w13.Part1 = p3
  1110. w13.C1 = CFrame.new(0.238328338, 1.11980772, 0.189994812, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1111. w14 = Instance.new("Weld", p13)
  1112. w14.Name = "BTWeld"
  1113. w14.Part0 = p13
  1114. w14.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1115. w14.Part1 = p5
  1116. w14.C1 = CFrame.new(-0.140007019, -0.100006104, 0.710032463, -0.965925813, -0.258819044, 8.74227766e-08, -9.57572581e-08, 1.95952801e-08, -1, 0.258819044, -0.965925813, -4.37113883e-08)
  1117. w15 = Instance.new("Weld", p13)
  1118. w15.Name = "BTWeld"
  1119. w15.Part0 = p13
  1120. w15.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1121. w15.Part1 = p14
  1122. w15.C1 = CFrame.new(0, -0.710032463, 0.140007019, -4.22219593e-08, -1.13133396e-08, -1, -0.258819044, 0.965925813, 0, 0.965925813, 0.258819044, -4.37113883e-08)
  1123. w16 = Instance.new("Weld", p13)
  1124. w16.Name = "BTWeld"
  1125. w16.Part0 = p13
  1126. w16.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1127. w16.Part1 = p20
  1128. w16.C1 = CFrame.new(0.810044289, 0.640029907, -0.100006104, 0.258819014, -0.965925813, 0, 0.965925813, 0.258819014, 0, 0, 0, 1)
  1129. w17 = Instance.new("Weld", p13)
  1130. w17.Name = "BTWeld"
  1131. w17.Part0 = p13
  1132. w17.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1133. w17.Part1 = p17
  1134. w17.C1 = CFrame.new(0.227484345, -0.0899963379, -0.464691162, 0.99999994, 3.49679712e-16, -1.13133396e-08, 1.13133396e-08, -4.22219593e-08, 1, -2.26036523e-15, -0.99999994, -4.22219593e-08)
  1135. w18 = Instance.new("Weld", p13)
  1136. w18.Name = "BTWeld"
  1137. w18.Part0 = p13
  1138. w18.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1139. w18.Part1 = p1
  1140. w18.C1 = CFrame.new(0.243875027, 0.790002823, 0.190002441, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1141. w19 = Instance.new("Weld", p13)
  1142. w19.Name = "BTWeld"
  1143. w19.Part0 = p13
  1144. w19.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1145. w19.Part1 = p11
  1146. w19.C1 = CFrame.new(0.13782835, 0.0265636444, 0.0400085449, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1147. w20 = Instance.new("Weld", p13)
  1148. w20.Name = "BTWeld"
  1149. w20.Part0 = p13
  1150. w20.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1151. w20.Part1 = p10
  1152. w20.C1 = CFrame.new(0.344677687, -0.0111780167, 0, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1153. w21 = Instance.new("Weld", p13)
  1154. w21.Name = "BTWeld"
  1155. w21.Part0 = p13
  1156. w21.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1157. w21.Part1 = p25
  1158. w21.C1 = CFrame.new(0.140007019, 0.299987793, -0.800038338, 0.965925813, 0.258819044, -7.31476035e-09, 4.24782343e-09, -4.41151577e-08, -1, -0.258819044, 0.965925813, -4.37113883e-08)
  1159. w22 = Instance.new("Weld", p13)
  1160. w22.Name = "BTWeld"
  1161. w22.Part0 = p13
  1162. w22.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1163. w22.Part1 = p21
  1164. w22.C1 = CFrame.new(0.810044289, 0.640075922, -0.100006104, 0.258819014, -0.965925813, 0, 0.965925813, 0.258819014, 0, 0, 0, 1)
  1165. w23 = Instance.new("Weld", p13)
  1166. w23.Name = "BTWeld"
  1167. w23.Part0 = p13
  1168. w23.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1169. w23.Part1 = p16
  1170. w23.C1 = CFrame.new(0.286679983, -0.026717186, -0.100006104, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1171. w24 = Instance.new("Weld", p13)
  1172. w24.Name = "BTWeld"
  1173. w24.Part0 = p13
  1174. w24.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1175. w24.Part1 = p7
  1176. w24.C1 = CFrame.new(0.222225666, 0.0595450401, 0.159973145, 0.99999994, 4.77671366e-16, 0, 4.77671366e-16, 0.99999994, 0, 0, 0, 1)
  1177. m.Parent = char
  1178.  
  1179. char:FindFirstChild'Left Arm'.Transparency = 1
  1180.  
  1181. for _, a in pairs(m:children()) do
  1182. if a:IsA('Part') then
  1183. a.Anchored = false
  1184. a.CanCollide = false
  1185. a.BottomSurface = 0
  1186. a.TopSurface = 0
  1187. end
  1188. end
  1189.  
  1190. if char.Head:FindFirstChildOfClass'Decal' then
  1191. char.Head.face.Texture = "rbxassetid://0"
  1192. end
  1193.  
  1194. --// lclick and rlclick
  1195.  
  1196. local rclick = false
  1197. local lclick = false
  1198. local canZoom = false
  1199.  
  1200. mouse.Button1Down:connect(function()
  1201. if canZoom then
  1202. lclick = true
  1203. elseif gunOut then
  1204. lclick = true
  1205. end
  1206. end)
  1207.  
  1208. mouse.Button1Up:connect(function()
  1209. if canZoom then
  1210. lclick = false
  1211. elseif gunOut then
  1212. lclick = false
  1213. end
  1214. end)
  1215.  
  1216. mouse.Button2Down:connect(function()
  1217. if canZoom then
  1218. rclick = true
  1219. end
  1220. end)
  1221.  
  1222. mouse.Button2Up:connect(function()
  1223. if canZoom then
  1224. rclick = false
  1225. end
  1226. end)
  1227.  
  1228. --// Buttons
  1229.  
  1230. mouse.KeyDown:connect(function(key)
  1231. if key == "q" then
  1232. if canZoom == false and cooldown then
  1233. cooldown = false
  1234. canZoom = true
  1235. tw('Zooming ability activated!')
  1236. cooldown = true
  1237. elseif canZoom == true and cooldown then
  1238. canZoom = false
  1239. cooldown = false
  1240. tw('Zooming ability deactivated!')
  1241. cooldown = true
  1242. end
  1243. end
  1244. if key == "f" then
  1245. if gunOut == false and cooldown then
  1246. cooldown = false
  1247. gunOut = true
  1248. cooldown = true
  1249. elseif gunOut and cooldown then
  1250. cooldown = false
  1251. gunOut = false
  1252. cooldown = true
  1253. end
  1254. end
  1255. if key == "r" and cooldown then
  1256. cooldown = false
  1257. tw('Self destructing...')
  1258. wait(1.2)
  1259. s3:Play()
  1260. sd()
  1261. char:BreakJoints()
  1262. end
  1263. if key == "e" then
  1264. if cooldown and bladeOut == false then
  1265. cooldown = false
  1266. bladeOut = true
  1267. s4:Play()
  1268. bladeWeld.C0 = CFrame.new(0,-1.45,0) * CFrame.Angles(rad(0),rad(0),rad(180))
  1269. bladeWeld3.C0 = CFrame.new(.3,-1.45,0) * CFrame.Angles(rad(0),rad(0),rad(180))
  1270. bladeWeld2.C0 = CFrame.new(-.3,-1.45,0) * CFrame.Angles(rad(0),rad(0),rad(180))
  1271. cooldown = true
  1272. elseif cooldown and bladeOut then
  1273. cooldown = false
  1274. bladeOut = false
  1275. s4:Play()
  1276. bladeWeld3.C0 = CFrame.new(.3,-.7,0) * CFrame.Angles(rad(0),rad(0),rad(180))
  1277. bladeWeld2.C0 = CFrame.new(-.3,-.7,0) * CFrame.Angles(rad(0),rad(0),rad(180))
  1278. bladeWeld.C0 = CFrame.new(0,-.7,0) * CFrame.Angles(rad(0),rad(0),rad(180))
  1279. cooldown = true
  1280. end
  1281. end
  1282. end)
  1283.  
  1284. --// Loop
  1285.  
  1286. cam = workspace.Camera
  1287.  
  1288. game:GetService('RunService').RenderStepped:connect(function()
  1289. if sprint then
  1290. s2:Resume()
  1291. else
  1292. s2:Stop()
  1293. end
  1294. end)
  1295.  
  1296. game:GetService('RunService').RenderStepped:connect(function()
  1297. BrickFirst2.CFrame = BrickFirst2.CFrame:lerp(BrickFirst.CFrame,0.1)
  1298. end)
  1299.  
  1300. game:GetService('RunService').RenderStepped:connect(function()
  1301. if lclick and canZoom then
  1302. cam.FieldOfView = cam.FieldOfView - 0.2
  1303. s1:Resume()
  1304. elseif rclick and cam.FieldOfView <= 72 and canZoom then
  1305. cam.FieldOfView = cam.FieldOfView + 0.2
  1306. s1:Resume()
  1307. elseif rclick == false or lclick == false then
  1308. if canZoom then
  1309. s1:Stop()
  1310. if cam.FieldOfView <= 72 and canZoom == false then
  1311. cam.FieldOfView = cam.FieldOfView + 0.2
  1312. end
  1313. end
  1314. end
  1315. end)
  1316.  
  1317. --// Custom Animation
  1318.  
  1319. local ang = -5
  1320. local ang2 = -5
  1321. local sine = 0
  1322. local change = 0.5
  1323. arm = 0
  1324.  
  1325. local t = math.huge
  1326.  
  1327. game:GetService('RunService').RenderStepped:connect(function()
  1328.  
  1329. sine = change+sine
  1330. ang = ang+0.08
  1331. ang2 = ang2+0.01
  1332. rad = math.rad
  1333. sin = math.sin
  1334. arm = arm + 0.06
  1335.  
  1336. if sprint == false and Vector3.new(torso.Velocity.X,0,torso.Velocity.Z).magnitude > 2 then
  1337. lshold.C0 = lshold.C0:lerp(CFrame.new(0,0,0) * lsho * CFrame.Angles(-0.1, 0, sin(arm)/1.5), .1)
  1338. rshold.C0 = rshold.C0:lerp(CFrame.new(0,0,0) * rsho * CFrame.Angles(-0.1, 0, sin(arm)/1.5), .1)
  1339. neck.C0 = neck.C0:lerp(CFrame.new(0,0,0) * ncf * CFrame.Angles(0, 0, 0), 0.1)
  1340. lhip.C0 = lhip.C0:lerp(CFrame.new(-1,-0.95+0.1*-math.cos(tick()*speed),0.2*math.sin(tick()*4))*CFrame.Angles(math.rad(25*-math.sin(tick()*4)), rad(-90), rad(0)), 1.5) * CFrame.Angles(-0.1, 0, 0)
  1341. rhip.C0 = rhip.C0:lerp(CFrame.new(1,-0.95+0.1*math.cos(tick()*speed),0.2*-math.sin(tick()*4))*CFrame.Angles(math.rad(25*math.sin(tick()*4)), rad(90), rad(0)), 1.5) * CFrame.Angles(-0.1, 0, 0)
  1342. elseif sprint == false and Vector3.new(torso.Velocity.X,0,torso.Velocity.Z).magnitude < 2 then
  1343. lshold.C0 = lshold.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * lsho * CFrame.Angles(-0.2, 0, 0), 0.1)
  1344. rshold.C0 = rshold.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * rsho * CFrame.Angles(-0.1, 0, 0), 0.1)
  1345. torsojoint.C0 = torsojoint.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * torsoC0 * CFrame.Angles(0, 0, 0), 0.1)
  1346. lhip.C0 = lhip.C0:lerp(lle * CFrame.Angles(-0.07, 0, 0), 0.1)
  1347. rhip.C0 = rhip.C0:lerp(rle * CFrame.Angles(-0.07, 0, 0), 0.1)
  1348. elseif sprint and Vector3.new(torso.Velocity.X,0,torso.Velocity.Z).magnitude > 2 then
  1349. torsojoint.C0 = torsojoint.C0:lerp(torsoC0*CFrame.new(0, 0, 2.88) * CFrame.Angles(math.rad(9), 0, 0), 0.1)
  1350. lhip.C0 = lhip.C0:lerp(lle*CFrame.Angles(math.rad(-5.386), math.rad(-3.667), math.rad(22.861)), 0.1)
  1351. rhip.C0 = rhip.C0:lerp(rle*CFrame.Angles(math.rad(-7.047), math.rad(4.813), math.rad(-21.028)), 0.1)
  1352. lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(-15), math.rad(-8), math.rad(45)), 0.1)
  1353. rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(math.rad(-15), math.rad(-8), math.rad(-45)), 0.1)
  1354. elseif sprint and Vector3.new(torso.Velocity.X,0,torso.Velocity.Z).magnitude < 2 then
  1355. torsojoint.C0 = torsojoint.C0:lerp(torsoC0*CFrame.new(0, 0, 2.88) * CFrame.Angles(math.rad(9), 0, 0), 0.1)
  1356. lhip.C0 = lhip.C0:lerp(lle*CFrame.new(-0.557, 0.4, 0) * CFrame.Angles(0, 0, math.rad(-14.439)), 0.1)
  1357. rhip.C0 = rhip.C0:lerp(rle*CFrame.new(0.104, 0.064, 0.016) * CFrame.Angles(0, math.rad(-8.537), math.rad(4.756)), 0.1)
  1358. lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(-9.511), 0, 0), 0.1)
  1359. rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(math.rad(-9.912), 0, 0), 0.1)
  1360. neck.C0 = neck.C0:lerp(ncf*CFrame.Angles(math.rad(10.371), math.rad(-0.401), math.rad(0.057)), 0.1)
  1361. end
  1362. end)
  1363.  
  1364. --//
  1365.  
  1366. while wait(.02) do
  1367. local sound = sfx[math.random(1,#sfx)]
  1368. if lclick and gunOut then
  1369. sound:Resume()
  1370. local ray = Ray.new(gunpart.CFrame.p, (mouse.Hit.p - gunpart.CFrame.p).unit * 700)
  1371. local part, position = workspace:FindPartOnRay(ray, char, false, true)
  1372.  
  1373. local beam = Instance.new("Part", workspace)
  1374. beam.FormFactor = "Custom"
  1375. beam.Material = "Plastic"
  1376. beam.Transparency = 0.25
  1377. beam.Anchored = true
  1378. beam.Locked = true
  1379. beam.CanCollide = false
  1380. if mouse.Target and mouse.Target.Parent and mouse.Target.Parent:FindFirstChildOfClass'Humanoid' then
  1381. local targ = mouse.Target.Parent
  1382. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  1383. humtarg:TakeDamage(humtarg.MaxHealth/2/2/2/2/2)
  1384. end
  1385.  
  1386. local distance = (gunpart.CFrame.p - position).magnitude
  1387. beam.Size = Vector3.new(0.08, 0.08, distance)
  1388. beam.CFrame = CFrame.new(gunpart.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1389. game:GetService('Debris'):AddItem(beam,0.1)
  1390. end
  1391. end
Add Comment
Please, Sign In to add comment