Advertisement
VorLex

For My Ssiter

Jan 19th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Character = game.Players.LocalPlayer.Character
  2. Head = Character.Head
  3.  
  4. CV="Blue"
  5. p = game.Players.LocalPlayer
  6. char = p.Character
  7. local txt = Instance.new("BillboardGui", char)
  8. txt.Adornee = char .Head
  9. txt.Name = "_status"
  10. txt.Size = UDim2.new(2, 0, 1.2, 0)
  11. txt.StudsOffset = Vector3.new(-9, 8, 0)
  12. local text = Instance.new("TextLabel", txt)
  13. text.Size = UDim2.new(10, 0, 7, 0)
  14. text.FontSize = "Size24"
  15. text.TextScaled = true
  16. text.TextTransparency = 0
  17. text.BackgroundTransparency = 1
  18. text.TextTransparency = 0
  19. text.TextStrokeTransparency = 0
  20. text.Font = "Cartoon"
  21. text.TextStrokeColor3 = Color3.new(255,0,255)
  22.  
  23. v=Instance.new("Part")
  24. v.Name = "ColorBrick"
  25. v.Parent=p.Character
  26. v.FormFactor="Symmetric"
  27. v.Anchored=true
  28. v.CanCollide=false
  29. v.BottomSurface="Smooth"
  30. v.TopSurface="Smooth"
  31. v.Size=Vector3.new(10,5,3)
  32. v.Transparency=0
  33. v.CFrame=char.Torso.CFrame
  34. v.BrickColor=BrickColor.new(CV)
  35. v.Transparency=1
  36. text.TextColor3 = Color3.new(255,0,255)
  37. v.Shape="Block"
  38. text.Text = "Piano!!"
  39.  
  40. local s = Instance.new("Sound",char)
  41. s.Name = "BGMusic"
  42. s.SoundId = "rbxassetid://755156652"
  43. s.Pitch = 1
  44. s.Volume = 0.5
  45. s.Looped = true
  46. s.archivable = false
  47. s.Parent = char.Head
  48. wait(0.1)
  49. s:play()
  50.  
  51.  
  52. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
  53. --[[Edited by whenyoudiev3]]--
  54. wait(1 / 60)
  55. Effects = { }
  56. local Player = game.Players.localPlayer
  57. local Character = Player.Character
  58. local Humanoid = Character.Humanoid
  59. local mouse = Player:GetMouse()
  60. local m = Instance.new('Model', Character)
  61. m.Name = "WeaponModel"
  62. local LeftArm = Character["Left Arm"]
  63. local RightArm = Character["Right Arm"]
  64. local LeftLeg = Character["Left Leg"]
  65. local RightLeg = Character["Right Leg"]
  66. local Head = Character.Head
  67. local Torso = Character.Torso
  68. local cam = game.Workspace.CurrentCamera
  69. local RootPart = Character.HumanoidRootPart
  70. local RootJoint = RootPart.RootJoint
  71. local equipped = false
  72. local attack = false
  73. local Anim = 'Idle'
  74. local idle = 0
  75. local attacktype = 1
  76. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  77. local velocity = RootPart.Velocity.y
  78. local sine = 0
  79. local change = 1
  80. local grabbed = false
  81. local cn = CFrame.new
  82. local mr = math.rad
  83. local angles = CFrame.Angles
  84. local ud = UDim2.new
  85. local c3 = Color3.new
  86. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  87.  
  88. Humanoid.Animator.Parent = nil
  89. Character.Animate.Parent = nil
  90.  
  91. local newMotor = function(part0, part1, c0, c1)
  92. local w = Instance.new('Motor', part0)
  93. w.Part0 = part0
  94. w.Part1 = part1
  95. w.C0 = c0
  96. w.C1 = c1
  97. return w
  98. end
  99.  
  100. function clerp(a, b, t)
  101. return a:lerp(b, t)
  102. end
  103.  
  104. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  105. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  106.  
  107. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  108. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  109. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  110. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  111. RootJoint.C1 = CFrame.new(0, 0, 0)
  112. RootJoint.C0 = CFrame.new(0, 0, 0)
  113. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  114. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  115.  
  116. local rarmc1 = RW.C1
  117. local larmc1 = LW.C1
  118. local rlegc1 = RH.C1
  119. local llegc1 = LH.C1
  120.  
  121. local resetc1 = false
  122.  
  123. function PlayAnimationFromTable(table, speed, bool)
  124. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  125. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  126. RW.C0 = clerp(RW.C0, table[3], speed)
  127. LW.C0 = clerp(LW.C0, table[4], speed)
  128. RH.C0 = clerp(RH.C0, table[5], speed)
  129. LH.C0 = clerp(LH.C0, table[6], speed)
  130. if bool == true then
  131. if resetc1 == false then
  132. resetc1 = true
  133. RootJoint.C1 = RootJoint.C1
  134. Torso.Neck.C1 = Torso.Neck.C1
  135. RW.C1 = rarmc1
  136. LW.C1 = larmc1
  137. RH.C1 = rlegc1
  138. LH.C1 = llegc1
  139. end
  140. end
  141. end
  142.  
  143. Char = char
  144.  
  145. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  146.  
  147. ArtificialHB = Instance.new("BindableEvent", script)
  148. ArtificialHB.Name = "Heartbeat"
  149.  
  150. script:WaitForChild("Heartbeat")
  151.  
  152. frame = 1 / 30
  153. tf = 0
  154. allowframeloss = false
  155. tossremainder = false
  156. lastframe = tick()
  157. script.Heartbeat:Fire()
  158.  
  159. game:GetService("RunService").Heartbeat:connect(function(s, p)
  160. tf = tf + s
  161. if tf >= frame then
  162. if allowframeloss then
  163. script.Heartbeat:Fire()
  164. lastframe = tick()
  165. else
  166. for i = 1, math.floor(tf / frame) do
  167. script.Heartbeat:Fire()
  168. end
  169. lastframe = tick()
  170. end
  171. if tossremainder then
  172. tf = 0
  173. else
  174. tf = tf - frame * math.floor(tf / frame)
  175. end
  176. end
  177. end)
  178.  
  179. function swait(num)
  180. if num == 0 or num == nil then
  181. ArtificialHB.Event:wait()
  182. else
  183. for i = 0, num do
  184. ArtificialHB.Event:wait()
  185. end
  186. end
  187. end
  188.  
  189. local RbxUtility = LoadLibrary("RbxUtility")
  190. local Create = RbxUtility.Create
  191.  
  192. function RemoveOutlines(part)
  193. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  194. end
  195.  
  196. CFuncs = {
  197. ["Part"] = {
  198. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  199. local Part = Create("Part"){
  200. Parent = Parent,
  201. Reflectance = Reflectance,
  202. Transparency = Transparency,
  203. CanCollide = false,
  204. Locked = true,
  205. BrickColor = BrickColor.new(tostring(BColor)),
  206. Name = Name,
  207. Size = Size,
  208. Material = Material,
  209. }
  210. RemoveOutlines(Part)
  211. return Part
  212. end;
  213. };
  214.  
  215. ["Mesh"] = {
  216. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  217. local Msh = Create(Mesh){
  218. Parent = Part,
  219. Offset = OffSet,
  220. Scale = Scale,
  221. }
  222. if Mesh == "SpecialMesh" then
  223. Msh.MeshType = MeshType
  224. Msh.MeshId = MeshId
  225. end
  226. return Msh
  227. end;
  228. };
  229.  
  230. ["Mesh"] = {
  231. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  232. local Msh = Create(Mesh){
  233. Parent = Part,
  234. Offset = OffSet,
  235. Scale = Scale,
  236. }
  237. if Mesh == "SpecialMesh" then
  238. Msh.MeshType = MeshType
  239. Msh.MeshId = MeshId
  240. end
  241. return Msh
  242. end;
  243. };
  244.  
  245. ["Weld"] = {
  246. Create = function(Parent, Part0, Part1, C0, C1)
  247. local Weld = Create("Weld"){
  248. Parent = Parent,
  249. Part0 = Part0,
  250. Part1 = Part1,
  251. C0 = C0,
  252. C1 = C1,
  253. }
  254. return Weld
  255. end;
  256. };
  257.  
  258. ["Sound"] = {
  259. Create = function(id, par, vol, pit)
  260. coroutine.resume(coroutine.create(function()
  261. local S = Create("Sound"){
  262. Volume = vol,
  263. Pitch = pit or 1,
  264. SoundId = id,
  265. Parent = par or workspace,
  266. }
  267. Instance.new("DistortionSoundEffect", S).Level = 1
  268. wait()
  269. S:play()
  270. game:GetService("Debris"):AddItem(S, 10)
  271. end))
  272. end;
  273. };
  274.  
  275. ["ParticleEmitter"] = {
  276. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  277. local fp = Create("ParticleEmitter"){
  278. Parent = Parent,
  279. Color = ColorSequence.new(Color1, Color2),
  280. LightEmission = LightEmission,
  281. Size = Size,
  282. Texture = Texture,
  283. Transparency = Transparency,
  284. ZOffset = ZOffset,
  285. Acceleration = Accel,
  286. Drag = Drag,
  287. LockedToPart = LockedToPart,
  288. VelocityInheritance = VelocityInheritance,
  289. EmissionDirection = EmissionDirection,
  290. Enabled = Enabled,
  291. Lifetime = LifeTime,
  292. Rate = Rate,
  293. Rotation = Rotation,
  294. RotSpeed = RotSpeed,
  295. Speed = Speed,
  296. VelocitySpread = VelocitySpread,
  297. }
  298. return fp
  299. end;
  300. };
  301. }
  302.  
  303. function rayCast(Position, Direction, Range, Ignore)
  304. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  305. end
  306.  
  307. local function GetNearest(obj, distance)
  308. local last, lastx = distance + 1
  309. for i, v in pairs(workspace:GetChildren()) do
  310. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  311. local t = v.Torso
  312. local dist = (t.Position - obj.Position).magnitude
  313. if dist <= distance then
  314. if dist < last then
  315. last = dist
  316. lastx = v
  317. end
  318. end
  319. end
  320. end
  321. return lastx
  322. end
  323.  
  324. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  325.  
  326. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  327. for i, v in pairs(hit:GetChildren()) do
  328. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  329. local find = v:FindFirstChild("DebounceHit")
  330. if not find then
  331. if v.Parent:findFirstChild("Head") then
  332. local BillG = Create("BillboardGui"){
  333. Parent = v.Parent.Head,
  334. Size = UDim2.new(1, 0, 1, 0),
  335. Adornee = v.Parent.Head,
  336. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  337. }
  338. local TL = Create("TextLabel"){
  339. Parent = BillG,
  340. Size = UDim2.new(3, 3, 3, 3),
  341. BackgroundTransparency = 1,
  342. Text = tostring(damage).."-",
  343. TextColor3 = Color1.Color,
  344. TextStrokeColor3 = Color2.Color,
  345. TextStrokeTransparency = 0,
  346. TextXAlignment = Enum.TextXAlignment.Center,
  347. TextYAlignment = Enum.TextYAlignment.Center,
  348. FontSize = Enum.FontSize.Size18,
  349. Font = "ArialBold",
  350. }
  351. coroutine.resume(coroutine.create(function()
  352. swait(1)
  353. for i = 0, 1, .1 do
  354. swait(.1)
  355. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  356. end
  357. BillG:Destroy()
  358. end))
  359. end
  360. v.Health = v.Health - damage
  361. local bool = Create("BoolValue"){
  362. Parent = v,
  363. Name = "DebounceHit",
  364. }
  365. if HSound ~= nil and HPitch ~= nil then
  366. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  367. end
  368. game:GetService("Debris"):AddItem(bool, cooldown)
  369. end
  370. end
  371. end
  372. end
  373.  
  374. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  375. for _, c in pairs(workspace:children()) do
  376. local hum = c:findFirstChild("Humanoid")
  377. if hum ~= nil then
  378. local head = c:findFirstChild("Torso")
  379. if head ~= nil then
  380. local targ = head.Position - Part.Position
  381. local mag = targ.magnitude
  382. if mag <= magni and c.Name ~= Player.Name then
  383. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  384. end
  385. end
  386. end
  387. end
  388. end
  389.  
  390. Handle = CFuncs["Part"].Create(m, Enum.Material.Neon, 0, 1, "New yeller", "Handle", Vector3.new(-0.399999946, 0.899999976, -0.400000095))
  391. HandleWeld = CFuncs["Weld"].Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199958801, -0.0500774384, -1.09998882, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  392. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.Neon, 0, 1, "New yeller", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  393. FakeHandleWeld = CFuncs["Weld"].Create(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  394. Barrel = CFuncs["Part"].Create(m, Enum.Material.Neon, 0, 1, "New yeller", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  395. BarrelWeld = CFuncs["Weld"].Create(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.749999046, -1.50000024, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  396. Part = CFuncs["Part"].Create(m, Enum.Material.Neon, 0, 0, "New yeller", "Part", Vector3.new(-0.399999946, 0.299999952, -0.400000095))
  397. PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.38, -0.300000194, 0.400000160, 1, 0, 0, 0, 1, 0, 0, 0, -1))
  398. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://443983595", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00700000007, 0.003000010))
  399. Part.Mesh.TextureId = "rbxassetid://162744662"
  400. Part.Mesh.Scale = Vector3.new(0.017, 0.017, 0.017)
  401.  
  402. EffectModel = Instance.new("Model", Character)
  403. EffectModel.Name = "Effects"
  404.  
  405. Effects = {
  406. ["Block"] = {
  407. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  408. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  409. prt.Anchored = true
  410. prt.CFrame = cframe
  411. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  412. game:GetService("Debris"):AddItem(prt, 10)
  413. if Type == 1 or Type == nil then
  414. table.insert(Effects, {
  415. prt,
  416. "Block1",
  417. delay,
  418. x3,
  419. y3,
  420. z3,
  421. msh
  422. })
  423. elseif Type == 2 then
  424. table.insert(Effects, {
  425. prt,
  426. "Block2",
  427. delay,
  428. x3,
  429. y3,
  430. z3,
  431. msh
  432. })
  433. end
  434. end;
  435. };
  436.  
  437. ["Cylinder"] = {
  438. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  439. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  440. prt.Anchored = true
  441. prt.CFrame = cframe
  442. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  443. game:GetService("Debris"):AddItem(prt, 2)
  444. Effects[#Effects + 1] = {
  445. prt,
  446. "Cylinder",
  447. delay,
  448. x3,
  449. y3,
  450. z3
  451. }
  452. end;
  453. };
  454.  
  455. ["Sphere"] = {
  456. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  457. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  458. prt.Anchored = true
  459. prt.CFrame = cframe
  460. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  461. game:GetService("Debris"):AddItem(prt, 10)
  462. table.insert(Effects, {
  463. prt,
  464. "Cylinder",
  465. delay,
  466. x3,
  467. y3,
  468. z3,
  469. msh
  470. })
  471. end;
  472. };
  473.  
  474. ["Elec"] = {
  475. Create = function(cff, x, y, z)
  476. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  477. prt.Anchored = true
  478. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  479. prt.CFrame = CFrame.new(prt.Position)
  480. game:GetService("Debris"):AddItem(prt, 2)
  481. local xval = math.random() / 2
  482. local yval = math.random() / 2
  483. local zval = math.random() / 2
  484. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  485. table.insert(Effects, {
  486. prt,
  487. "Elec",
  488. 0.1,
  489. x,
  490. y,
  491. z,
  492. xval,
  493. yval,
  494. zval
  495. })
  496. end;
  497.  
  498. };
  499.  
  500. ["Ring"] = {
  501. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  502. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  503. prt.Anchored = true
  504. prt.CFrame = cframe
  505. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  506. game:GetService("Debris"):AddItem(prt, 10)
  507. table.insert(Effects, {
  508. prt,
  509. "Cylinder",
  510. delay,
  511. x3,
  512. y3,
  513. z3,
  514. msh
  515. })
  516. end;
  517. };
  518.  
  519.  
  520. ["Wave"] = {
  521. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  522. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  523. prt.Anchored = true
  524. prt.CFrame = cframe
  525. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  526. game:GetService("Debris"):AddItem(prt, 10)
  527. table.insert(Effects, {
  528. prt,
  529. "Cylinder",
  530. delay,
  531. x3,
  532. y3,
  533. z3,
  534. msh
  535. })
  536. end;
  537. };
  538.  
  539. ["Break"] = {
  540. Create = function(brickcolor, cframe, x1, y1, z1)
  541. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  542. prt.Anchored = true
  543. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  544. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  545. local num = math.random(10, 50) / 1000
  546. game:GetService("Debris"):AddItem(prt, 10)
  547. table.insert(Effects, {
  548. prt,
  549. "Shatter",
  550. num,
  551. prt.CFrame,
  552. math.random() - math.random(),
  553. 0,
  554. math.random(50, 100) / 100
  555. })
  556. end;
  557. };
  558. }
  559.  
  560. Shoot2 = function(orgpos)
  561. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  562. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  563. table.insert(Effects, {
  564. MouseLook.lookVector,
  565. "Shoot2",
  566. 50,
  567. orgpos,
  568. 5,
  569. 7,
  570. 0,
  571. 1,
  572. 2
  573. })
  574. end
  575.  
  576. function bulletstorm()
  577. attack = true
  578. CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
  579. for i = 0, 1, 0.025 do
  580. swait()
  581. PlayAnimationFromTable({
  582. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  583. CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  584. CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  585. CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  586. CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  587. CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  588. }, .3, false)
  589. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  590. Shoot2(Barrel.Position)
  591. end
  592.  
  593. attack = false
  594. end
  595.  
  596. function overload()
  597. attack = true
  598. CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
  599. Shoot2(LeftArm.Position)
  600. Shoot2(RightArm.Position)
  601. Shoot2(RightLeg.Position)
  602. Shoot2(LeftLeg.Position)
  603. Shoot2(Head.Position)
  604. Shoot2(Torso.Position)
  605. wait(0)
  606. attack = false
  607. end
  608.  
  609. function overcharge()
  610. attack = true
  611. CFuncs["Sound"].Create("rbxassetid://813670691", Torso, .1, 2.8)
  612. for i = 0, 1, 0.15 do
  613. swait()
  614. PlayAnimationFromTable({
  615. CFrame.new(-0.0325974114, -4.05311584e-006, 0.110728048, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  616. CFrame.new(0, 1.50000095, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  617. CFrame.new(1.10100186, 0.535800219, -0.637803555, 0.658456147, 0.673041463, 0.336824596, 0.280167073, 0.196174845, -0.939692438, -0.698528469, 0.713113427, -0.0593915135),
  618. CFrame.new(-1.62758517, 0.073027119, -0.378663093, 0.90510416, 0.321394593, -0.278374165, -0.392632991, 0.883023262, -0.25711751, 0.163174719, 0.342016995, 0.92541796),
  619. CFrame.new(0.644929826, -1.96549833, 0.164695352, 0.962249994, -0.148305506, 0.228211343, 0.0871559754, 0.962249756, 0.257835865, -0.257834762, -0.22821258, 0.938850582),
  620. CFrame.new(-0.750219464, -1.99537396, -0.240616962, 0.862504363, 0.0818999186, 0.499378443, -0.08583197, 0.99619472, -0.0151344473, -0.498717606, -0.0298091136, 0.866251826),
  621. }, .5, false)
  622. end
  623. wait(3)
  624. Shoot2(Barrel.Position)
  625. Shoot2(Barrel.Position)
  626. Shoot2(Handle.Position)
  627. Shoot2(Handle.Position)
  628. Shoot2(FakeHandle.Position)
  629. Shoot2(FakeHandle.Position)
  630. Shoot2(Barrel.Position)
  631. Shoot2(Barrel.Position)
  632. Shoot2(Handle.Position)
  633. Shoot2(Handle.Position)
  634. Shoot2(FakeHandle.Position)
  635. Shoot2(FakeHandle.Position)
  636. Shoot2(Barrel.Position)
  637. Shoot2(Barrel.Position)
  638. Shoot2(Handle.Position)
  639. Shoot2(Handle.Position)
  640. Shoot2(FakeHandle.Position)
  641. Shoot2(FakeHandle.Position)
  642. Shoot2(Barrel.Position)
  643. Shoot2(Barrel.Position)
  644. Shoot2(Handle.Position)
  645. Shoot2(Handle.Position)
  646. Shoot2(FakeHandle.Position)
  647. Shoot2(FakeHandle.Position)
  648. for i = 0, 1, 0.15 do
  649. swait()
  650. PlayAnimationFromTable({
  651. CFrame.new(2.70828605e-006, -0.256154776, -0.071654655, 0.499999046, -1.78813579e-007, -0.866026044, 0.150384009, 0.984807789, 0.0868238211, 0.852869093, -0.173648283, 0.492402941),
  652. CFrame.new(4.34633694e-006, 1.49999607, 2.42484384e-006, 0.646143615, 0.0549410731, 0.761235893, -0.0851004422, 0.996372402, 0.000322267413, -0.758456767, -0.0649897307, 0.648474991),
  653. CFrame.new(1.86507177, 0.598104239, 0.183552518, -0.114682339, -0.981059372, -0.156110525, 0.981060445, -0.0871559381, -0.172987223, 0.156104773, -0.172992408, 0.9724738),
  654. CFrame.new(-1.52644157, 0.0874626189, -0.302744657, 0.95125103, 0.20658794, -0.229004204, -0.254887104, 0.944645047, -0.2065873, 0.173649222, 0.254886597, 0.951251268),
  655. CFrame.new(0.623469114, -1.90178788, 0.0298061967, 0.992532074, -0.0928985924, 0.079056859, 0.0757590532, 0.97739321, 0.197391063, -0.0956070125, -0.189927697, 0.977131963),
  656. CFrame.new(-0.786503196, -1.67652178, -0.389780819, 0.631277382, 0.179900557, 0.754403591, -0.0723632798, 0.982144117, -0.173656344, -0.772174001, 0.0550341941, 0.6330235),
  657. }, .35, false)
  658. end
  659. attack = false
  660. end
  661.  
  662. function attackone()
  663. attack = true
  664. CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
  665. for i = 0, 1, 0.025 do
  666. swait()
  667. PlayAnimationFromTable({
  668. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  669. CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  670. CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  671. CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  672. CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  673. CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  674. }, .3, false)
  675. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  676. end
  677. CFuncs["Sound"].Create("rbxassetid://203691837", Barrel, .01, .3)
  678. CFuncs["Sound"].Create("rbxassetid://203691885", Barrel, .01, .9)
  679. CFuncs["Sound"].Create("rbxassetid://184718741", Barrel, .05, .9)
  680. Shoot2(Barrel.Position)
  681. for i = 0, 1, 0.15 do
  682. swait()
  683. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  684. PlayAnimationFromTable({
  685. CFrame.new(-0, -0.281125277, 0.157014638, 1, 0, -0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  686. CFrame.new(0, 1.4999938, 1.05202198e-005, 1, 0, -0, 0, 0.965925813, 0.258818924, -0, -0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  687. CFrame.new(0.406597674, 0.817824185, -0.957423151, 0.939692974, 0.280165672, -0.196174338, -5.36441803e-007, -0.573575616, -0.819152534, -0.34201926, 0.769751906, -0.538984895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  688. CFrame.new(-0.506752789, 0.775180221, -0.974653006, 0.939692974, -0.280165732, 0.196174279, 5.36441803e-007, -0.573575556, -0.819152713, 0.34201926, 0.769752145, -0.538984716) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  689. CFrame.new(0.566868722, -1.61683154, -0.13679418, 0.954536259, -0.174988821, -0.241328761, 0.172366679, 0.984509468, -0.0321052969, 0.243208498, -0.0109513998, 0.969912171) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  690. CFrame.new(-0.545306504, -1.37044179, -0.679420352, 0.996202111, 0.0754783303, 0.0434113704, -0.0434117466, 0.862729907, -0.503797948, -0.0754781216, 0.49999994, 0.862729967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  691. }, .6, false)
  692. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  693. end
  694. for i = 0, 1, 0.15 do
  695. swait()
  696. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  697. PlayAnimationFromTable({
  698. CFrame.new(-0, -0.795007467, 0.0831707418, 1, 0, -0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  699. CFrame.new(0, 1.49999774, 1.20103359e-005, 1, 0, -0, 0, 0.965925634, 0.258819878, -0, -0.258819878, 0.965925634) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  700. CFrame.new(1.70605683, 1.21151328, -0.185158521, 0.893217862, -0.29338178, -0.340718448, -0.340719074, -0.936116338, -0.0871595442, -0.293381065, 0.193941653, -0.936116695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  701. CFrame.new(-1.69524968, 1.05172348, -0.252849877, 0.812758088, 0.493294626, 0.309975445, 0.582562625, -0.694268882, -0.422624737, 0.00672781467, 0.524071693, -0.851647615) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  702. CFrame.new(0.689150453, -1.88461804, -0.0157705098, 0.954536736, -0.174989104, -0.241326213, 0.172367141, 0.984509468, -0.0321044922, 0.243205875, -0.0109517872, 0.969912887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  703. CFrame.new(-0.536899447, -1.34506011, -0.583059072, 0.99620223, 0.0226762109, 0.0840658173, -0.043412663, 0.966281295, 0.253803402, -0.0754759163, -0.256489068, 0.963595748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  704. }, .2, false)
  705. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  706. end
  707. for i = 0, 1, 0.05 do
  708. swait()
  709. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  710. PlayAnimationFromTable({
  711. CFrame.new(-0, -2.09708667, 0.108620644, 1, 0, -0, 0, 0.573575675, -0.819152594, 0, 0.819152594, 0.573575675) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  712. CFrame.new(0, 1.53697455, -0.422635257, 1, 0, -0, 0, 0.766043842, 0.64278841, -0, -0.64278841, 0.766043842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  713. CFrame.new(1.57810855, 0.650130272, 0.33058399, 0.930655897, -0.284022599, -0.230674848, 0.352510452, 0.527023435, 0.773293555, -0.0980618149, -0.800985396, 0.590598404) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  714. CFrame.new(-1.38994181, 0.87733829, 0.667137444, 0.963715255, 0.08906921, 0.251633942, -0.25866431, 0.0788001418, 0.962747812, 0.0659223944, -0.992903471, 0.0989798903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  715. CFrame.new(0.774198592, -1.52057803, -0.607582211, 0.954536974, -0.272207022, -0.121501081, 0.172365844, 0.83655864, -0.520057499, 0.243206039, 0.475471497, 0.845445395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  716. CFrame.new(-0.530096769, -1.05517173, -0.660005629, 0.99620223, 0.0226761587, 0.0840661526, -0.0434127897, 0.966280818, 0.253804684, -0.0754762068, -0.256490231, 0.96359539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  717. }, .3, false)
  718. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  719. end
  720. for i = 0, 1, 0.13 do
  721. swait()
  722. PlayAnimationFromTable({
  723. CFrame.new(-0, -1.01349139, -0.251608461, 1, 0, 0, 0, 0.707105339, 0.707108378, 0, -0.707108378, 0.707105339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  724. CFrame.new(0.0127754211, 1.44207788, 0.0749337673, 1, 0, 0, 0, 0.939691544, -0.342023343, 0, 0.342023343, 0.939691544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  725. CFrame.new(1.62296665, 0.191783041, -0.192457974, 0.930656254, -0.329096794, 0.159920022, 0.352511466, 0.923570275, -0.150843769, -0.098055169, 0.196757287, 0.975536823) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  726. CFrame.new(-0.870643735, 0.71258086, -0.942903101, 0.18127799, -0.372358024, -0.910213113, -0.781424284, 0.507405519, -0.363202393, 0.597088516, 0.777103186, -0.19898814) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  727. CFrame.new(0.214147568, -1.73508716, -0.0895051956, 0.924306214, 0.282332808, -0.256800473, -0.113861978, 0.846218646, 0.520528436, 0.364271581, -0.451887846, 0.814311981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  728. CFrame.new(-0.535767198, -0.599929333, -0.996632636, 0.996202111, 0.0754788443, 0.0434101112, -0.0434126705, 0.862728953, -0.503799856, -0.0754773915, 0.500001788, 0.862729192) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  729. }, .3, false)
  730. end
  731. attack = false
  732. end
  733.  
  734. --[[Attacks]]--
  735.  
  736. mouse.Button1Down:connect(function()
  737. if attack == false and attacktype == 1 then
  738. attackone()
  739. end
  740. end)
  741.  
  742. mouse.KeyDown:connect(function(k)
  743. k = k:lower()
  744. if attack == false and k == 'q' then
  745. bulletstorm()
  746. elseif attack == false and k == 'e' then
  747. overload()
  748. elseif attack == false and k == 'r' then
  749. overcharge()
  750. end
  751. end)
  752.  
  753. while true do
  754. swait()
  755. for i, v in pairs(Character:GetChildren()) do
  756. if v:IsA("Part") then
  757. v.Material = "Neon"
  758. elseif v:IsA("Accessory") then
  759. v:WaitForChild("Handle").Material = "Neon"
  760. end
  761. end
  762. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  763. velocity = RootPart.Velocity.y
  764. sine = sine + change
  765. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  766. if equipped == true or equipped == false then
  767. if RootPart.Velocity.y > 1 and hit == nil then
  768. Anim = "Jump"
  769. if attack == false then
  770. PlayAnimationFromTable({
  771. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  772. CFrame.new(0, 1.49221826, -0.044082582, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  773. CFrame.new(1.66304386, 0.182627335, 0.00782334805, 0.883022726, -0.392632574, 0.257119894, 0.321392894, 0.905103981, 0.2783764, -0.342019886, -0.163176134, 0.925416708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  774. CFrame.new(-1.66570556, 0.224230319, 0.110721856, 0.903736115, 0.408218145, -0.128915116, -0.34750703, 0.875426054, 0.33595863, 0.25000003, -0.258819014, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  775. CFrame.new(0.499999166, -1.99999452, 4.76837158e-007, 0.984807849, -5.94328526e-007, -0.173648044, 0.0449439958, 0.965925872, 0.254886925, 0.167730987, -0.258819073, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  776. CFrame.new(-0.499999404, -1.51703107, -0.129407585, 0.965925753, 6.6929374e-007, 0.258819193, -0.0669879839, 0.965925813, 0.24999994, -0.24999994, -0.258819163, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  777. }, .3, false)
  778. end
  779. elseif RootPart.Velocity.y < -60 and hit == nil then
  780. Anim = "Fall"
  781. if attack == false then
  782. PlayAnimationFromTable({
  783. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  784. CFrame.new(0, 1.49221873, -0.0440826714, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  785. CFrame.new(1.76076102, 0.406842887, 0.0212866664, 0.695482016, -0.670965135, 0.257119834, 0.611573994, 0.74059701, 0.278376371, -0.377202988, -0.0363579579, 0.925416648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  786. CFrame.new(-1.68029141, 0.390803367, 0.155905366, 0.70961535, 0.692695498, -0.128914997, -0.625963271, 0.703777075, 0.335958213, 0.323444158, -0.157705069, 0.933012843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  787. CFrame.new(0.693307817, -1.96826017, -0.0605875254, 0.986561239, -0.127662987, -0.101976946, 0.137943029, 0.985269904, 0.101069227, 0.0875720233, -0.113777988, 0.989639223) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  788. CFrame.new(-0.526552737, -1.81498528, -0.152177691, 0.965925574, 0.0449441113, 0.254888207, -0.066988036, 0.994663239, 0.0784704387, -0.250001162, -0.0928710476, 0.963781357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  789. }, .3, false)
  790. end
  791. elseif Torsovelocity < 1 and hit ~= nil then
  792. Anim = "Idle"
  793. if attack == false then
  794. change = 1
  795. PlayAnimationFromTable({
  796. CFrame.new(1.22602091e-006, -0.219458103, 1.46111324e-006, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  797. CFrame.new(0, 1.49999201, 0, 0.707106233, 0, -0.707107306, 0, 1, 0, 0.707107306, 0, 0.707106233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  798. CFrame.new(0.571566343, -0.0739164352, -0.639066696, 0.939692855, 0.340718329, -0.0298085809, -0.241844058, 0.600305915, -0.762328327, -0.241844922, 0.723563433, 0.646503866) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  799. CFrame.new(-0.628383756, -0.12163578, -0.696761668, 0.939692736, -0.342020065, -5.06639481e-007, 0.196173996, 0.538984895, -0.819152653, 0.280166954, 0.769751549, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  800. CFrame.new(0.624118924, -1.79798961, 0.0678238794, 0.995454907, -0.0383867361, -0.0871553123, 0.0385330059, 0.999257326, -4.09960694e-006, 0.0870907605, -0.00335427374, 0.996194839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  801. CFrame.new(-0.53866595, -1.82180798, 0.00821807235, 0.977763176, 0.0281341001, 0.207816422, -0.0287620034, 0.999586344, -1.4934686e-007, -0.207730502, -0.00597707182, 0.978167892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  802. }, .3, false)
  803. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  804. end
  805. elseif Torsovelocity > 2 and hit ~= nil then
  806. Anim = "Walk"
  807. if attack == false then
  808. change = 3
  809. PlayAnimationFromTable({
  810. CFrame.new(0, -0.0240751095, -0.146390602, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  811. CFrame.new(0, 1.49999237, -1.81794167e-006, 1, 0, 0, 0, 0.984807789, -0.173647881, 0, 0.173647881, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  812. CFrame.new(0.172261134, 0.427689523, -1.09730911, 0.644483984, 0.748984814, -0.153825179, 0.413525045, -0.510645986, -0.753815472, -0.643146515, 0.422211438, -0.638827145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  813. CFrame.new(-1.1922102, 0.363029838, -0.448653877, 0.935289383, -0.110854559, -0.33607316, -0.341521561, -0.531564534, -0.775114357, -0.0927196145, 0.839732468, -0.535025835) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  814. CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(-50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  815. CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  816. }, .3, false)
  817. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  818. end
  819. end
  820. end
  821. if 0 < #Effects then
  822. for e = 1, #Effects do
  823. if Effects[e] ~= nil then
  824. local Thing = Effects[e]
  825. if Thing ~= nil then
  826. local Part = Thing[1]
  827. local Mode = Thing[2]
  828. local Delay = Thing[3]
  829. local IncX = Thing[4]
  830. local IncY = Thing[5]
  831. local IncZ = Thing[6]
  832. if Thing[2] == "Shoot" then
  833. local Look = Thing[1]
  834. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  835. local mag = (Thing[4] - pos).magnitude
  836. Thing[9] = Thing[9] + 0.5
  837. Thing[5] = Thing[5] + 0.2
  838. Thing[6] = Thing[6] + 0.2
  839. Effects["Cylinder"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), Thing[9], mag * 5, Thing[9], -0.2, 0, -0.2, 0.1)
  840. Thing[4] = Thing[4] + Look * 15
  841. Thing[3] = Thing[3] - 1
  842. if hit ~= nil then
  843. Thing[3] = 0
  844. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("New Yeller"), "Reference", Vector3.new())
  845. ref.Anchored = true
  846. ref.CFrame = CFrame.new(pos)
  847. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  848. CFuncs["Sound"].Create("rbxassetid://315748949", ref, 1, 1.1)
  849. game:GetService("Debris"):AddItem(ref, 1)
  850. end
  851. if Thing[3] <= 0 then
  852. table.remove(Effects, e)
  853. end
  854. end
  855. do
  856. if Thing[2] == "Shoot2" then
  857. local Look = Thing[1]
  858. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  859. local mag = (Thing[4] - pos).magnitude
  860. Thing[9] = Thing[9] + 0.5
  861. Thing[5] = Thing[5] + 0.2
  862. Thing[6] = Thing[6] + 0.2
  863. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  864. Thing[4] = Thing[4] + Look * 3
  865. Thing[3] = Thing[3] + 5
  866. if hit ~= nil then
  867. Thing[3] = 0
  868. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("New Yeller"), "Reference", Vector3.new())
  869. ref.Anchored = true
  870. ref.CFrame = CFrame.new(pos)
  871. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  872. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  873. Effects["Block"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  874. Effects["Wave"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  875. CFuncs["Sound"].Create("rbxassetid://1157966001", ref, 1, .3)
  876. CFuncs["Sound"].Create("rbxassetid://130944130", ref, 1, .9)
  877. CFuncs["Sound"].Create("rbxassetid://160718677", ref, 1, .9)
  878. local e = Instance.new("Explosion", ref)
  879. e.Position = ref.Position
  880. e.BlastRadius = 400
  881. e.DestroyJointRadiusPercent = 20
  882. e.Visible = false
  883. e.ExplosionType = "CratersAndDebris"
  884. game:GetService("Debris"):AddItem(ref, 10)
  885. end
  886. if Thing[3] <= 0 then
  887. table.remove(Effects, e)
  888. end
  889. end
  890. do
  891. do
  892. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  893. if Thing[1].Transparency <= 1 then
  894. if Thing[2] == "Block1" then
  895. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  896. Mesh = Thing[7]
  897. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  898. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  899. else
  900. if Thing[2] == "Block2" then
  901. Thing[1].CFrame = Thing[1].CFrame
  902. Mesh = Thing[7]
  903. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  904. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  905. else
  906. if Thing[2] == "Block3" then
  907. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  908. Mesh = Thing[7]
  909. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  910. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  911. else
  912. if Thing[2] == "Cylinder" then
  913. Mesh = Thing[7]
  914. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  915. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  916. else
  917. if Thing[2] == "Cylinder2" then
  918. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  919. Mesh = Thing[7]
  920. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  921. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  922. else
  923. if Thing[2] == "Blood" then
  924. Mesh = Thing[7]
  925. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  926. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  927. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  928. else
  929. if Thing[2] == "Elec" then
  930. Mesh = Thing[10]
  931. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  932. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  933. else
  934. if Thing[2] == "Disappear" then
  935. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  936. end
  937. end
  938. end
  939. end
  940. end
  941. end
  942. end
  943. end
  944. else
  945. Part.Parent = nil
  946. table.remove(Effects, e)
  947. end
  948. end
  949. end
  950. end
  951. end
  952. end
  953. end
  954. end
  955. end
  956. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement