Advertisement
Cute_Sylveon

Untitled

May 15th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.06 KB | None | 0 0
  1. -- EDITED BY ADAM222334II
  2. CV="White"
  3. ---
  4. p = game.Players.LocalPlayer
  5. char = p.Character
  6. torso = char.Torso
  7. hed = char.Head
  8. neck = char.Torso.Neck
  9. hum = char.Humanoid
  10. hum.MaxHealth = math.huge
  11. local msg = game:GetService("Chat")
  12. torso.BrickColor = BrickColor.new("Brown")
  13. hed.BrickColor = BrickColor.new("Brown")
  14. char["Right Arm"].BrickColor = BrickColor.new("Pastal Brown")
  15. char["Left Arm"].BrickColor = BrickColor.new("Pastal Brown")
  16. char["Left Leg"].BrickColor = BrickColor.new("Pastal Brown")
  17. char["Right Leg"].BrickColor = BrickColor.new("PastalBrown")
  18. ypcall(function()
  19. shirt = Instance.new("Shirt", char)
  20. shirt.Name = "Shirt"
  21. pants = Instance.new("Pants", char)
  22. pants.Name = "Pants"
  23. char.Shirt.ShirtTemplate = "rbxassetid://762213874"
  24. char.Pants.PantsTemplate = "rbxassetid://808662750"
  25. hed.face.Texture = "http://www.roblox.com/asset/?id=110287880"
  26. end)
  27. --------------------------------
  28. p = game.Players.LocalPlayer
  29. char = p.Character
  30. local txt = Instance.new("BillboardGui", char)
  31. txt.Adornee = char .Head
  32. txt.Name = "_status"
  33. txt.Size = UDim2.new(2, 0, 1.2, 0)
  34. txt.StudsOffset = Vector3.new(-9, 8, 0)
  35. local text = Instance.new("TextLabel", txt)
  36. text.Size = UDim2.new(10, 0, 7, 0)
  37. text.FontSize = "Size24"
  38. text.TextScaled = true
  39. text.TextTransparency = 0
  40. text.BackgroundTransparency = 1
  41. text.TextTransparency = 0
  42. text.TextStrokeTransparency = 1
  43. text.Font = "Cartoon"
  44. text.TextStrokeColor3 = Color3.new(0,0,255)
  45.  
  46. v=Instance.new("Part")
  47. v.Name = "ColorBrick"
  48. v.Parent=p.Character
  49. v.FormFactor="Symmetric"
  50. v.Anchored=true
  51. v.CanCollide=false
  52. v.BottomSurface="Smooth"
  53. v.TopSurface="Smooth"
  54. v.Size=Vector3.new(10,5,3)
  55. v.Transparency=1
  56. v.CFrame=char.Torso.CFrame
  57. v.BrickColor=BrickColor.new(CV)
  58. v.Transparency=1
  59. text.TextColor3 = Color3.new(255,255,0)
  60. v.Shape="Block"
  61. text.Text = "Heavy"
  62. wait(1 / 60)
  63. Effects = { }
  64. local Player = game.Players.localPlayer
  65. local Character = Player.Character
  66. local Humanoid = Character.Humanoid
  67. local mouse = Player:GetMouse()
  68. local m = Instance.new('Model', Character)
  69. m.Name = "WeaponModel"
  70. local LeftArm = Character["Left Arm"]
  71. local RightArm = Character["Right Arm"]
  72. local LeftLeg = Character["Left Leg"]
  73. local RightLeg = Character["Right Leg"]
  74. local Head = Character.Head
  75. local Torso = Character.Torso
  76. local cam = game.Workspace.CurrentCamera
  77. local RootPart = Character.HumanoidRootPart
  78. local RootJoint = RootPart.RootJoint
  79. local equipped = false
  80. local attack = false
  81. local Anim = 'Idle'
  82. local idle = 0
  83. local attacktype = 1
  84. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  85. local velocity = RootPart.Velocity.y
  86. local sine = 0
  87. local change = 1
  88. local grabbed = false
  89. local cn = CFrame.new
  90. local mr = math.rad
  91. local angles = CFrame.Angles
  92. local ud = UDim2.new
  93. local c3 = Color3.new
  94. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  95. local s = Instance.new("Sound",Character)
  96. s.Name = "BGMusic"
  97. s.SoundId = "177596406"
  98. s.Pitch = 1
  99. s.Volume = 7
  100. s.Looped = true
  101. s.archivable = false
  102. wait(0.1)
  103. s:play()
  104.  
  105. Humanoid.Animator.Parent = nil
  106. Character.Animate.Parent = nil
  107.  
  108. local newMotor = function(part0, part1, c0, c1)
  109. local w = Instance.new('Motor', part0)
  110. w.Part0 = part0
  111. w.Part1 = part1
  112. w.C0 = c0
  113. w.C1 = c1
  114. return w
  115. end
  116.  
  117. function clerp(a, b, t)
  118. return a:lerp(b, t)
  119. end
  120.  
  121. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  122. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  123.  
  124. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  125. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  126. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  127. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  128. RootJoint.C1 = CFrame.new(0, 0, 0)
  129. RootJoint.C0 = CFrame.new(0, 0, 0)
  130. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  131. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  132.  
  133. local rarmc1 = RW.C1
  134. local larmc1 = LW.C1
  135. local rlegc1 = RH.C1
  136. local llegc1 = LH.C1
  137.  
  138. local resetc1 = false
  139.  
  140. function PlayAnimationFromTable(table, speed, bool)
  141. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  142. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  143. RW.C0 = clerp(RW.C0, table[3], speed)
  144. LW.C0 = clerp(LW.C0, table[4], speed)
  145. RH.C0 = clerp(RH.C0, table[5], speed)
  146. LH.C0 = clerp(LH.C0, table[6], speed)
  147. if bool == true then
  148. if resetc1 == false then
  149. resetc1 = true
  150. RootJoint.C1 = RootJoint.C1
  151. Torso.Neck.C1 = Torso.Neck.C1
  152. RW.C1 = rarmc1
  153. LW.C1 = larmc1
  154. RH.C1 = rlegc1
  155. LH.C1 = llegc1
  156. end
  157. end
  158. end
  159.  
  160. Char = char
  161.  
  162. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  163.  
  164. ArtificialHB = Instance.new("BindableEvent", script)
  165. ArtificialHB.Name = "Heartbeat"
  166.  
  167. script:WaitForChild("Heartbeat")
  168.  
  169. frame = 1 / 30
  170. tf = 0
  171. allowframeloss = false
  172. tossremainder = false
  173. lastframe = tick()
  174. script.Heartbeat:Fire()
  175.  
  176. game:GetService("RunService").Heartbeat:connect(function(s, p)
  177. tf = tf + s
  178. if tf >= frame then
  179. if allowframeloss then
  180. script.Heartbeat:Fire()
  181. lastframe = tick()
  182. else
  183. for i = 1, math.floor(tf / frame) do
  184. script.Heartbeat:Fire()
  185. end
  186. lastframe = tick()
  187. end
  188. if tossremainder then
  189. tf = 0
  190. else
  191. tf = tf - frame * math.floor(tf / frame)
  192. end
  193. end
  194. end)
  195.  
  196. function swait(num)
  197. if num == 0 or num == nil then
  198. ArtificialHB.Event:wait()
  199. else
  200. for i = 0, num do
  201. ArtificialHB.Event:wait()
  202. end
  203. end
  204. end
  205.  
  206. local RbxUtility = LoadLibrary("RbxUtility")
  207. local Create = RbxUtility.Create
  208.  
  209. function RemoveOutlines(part)
  210. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  211. end
  212.  
  213. CFuncs = {
  214. ["Part"] = {
  215. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  216. local Part = Create("Part"){
  217. Parent = Parent,
  218. Reflectance = Reflectance,
  219. Transparency = Transparency,
  220. CanCollide = false,
  221. Locked = true,
  222. BrickColor = BrickColor.new(tostring(BColor)),
  223. Name = Name,
  224. Size = Size,
  225. Material = Material,
  226. }
  227. RemoveOutlines(Part)
  228. return Part
  229. end;
  230. };
  231.  
  232. ["Mesh"] = {
  233. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  234. local Msh = Create(Mesh){
  235. Parent = Part,
  236. Offset = OffSet,
  237. Scale = Scale,
  238. }
  239. if Mesh == "SpecialMesh" then
  240. Msh.MeshType = MeshType
  241. Msh.MeshId = MeshId
  242. end
  243. return Msh
  244. end;
  245. };
  246.  
  247. ["Mesh"] = {
  248. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  249. local Msh = Create(Mesh){
  250. Parent = Part,
  251. Offset = OffSet,
  252. Scale = Scale,
  253. }
  254. if Mesh == "SpecialMesh" then
  255. Msh.MeshType = MeshType
  256. Msh.MeshId = MeshId
  257. end
  258. return Msh
  259. end;
  260. };
  261.  
  262. ["Weld"] = {
  263. Create = function(Parent, Part0, Part1, C0, C1)
  264. local Weld = Create("Weld"){
  265. Parent = Parent,
  266. Part0 = Part0,
  267. Part1 = Part1,
  268. C0 = C0,
  269. C1 = C1,
  270. }
  271. return Weld
  272. end;
  273. };
  274.  
  275. ["Sound"] = {
  276. Create = function(id, par, vol, pit)
  277. coroutine.resume(coroutine.create(function()
  278. local S = Create("Sound"){
  279. Volume = vol,
  280. Pitch = pit or 1,
  281. SoundId = id,
  282. Parent = par or workspace,
  283. }
  284. Instance.new("DistortionSoundEffect", S).Level = 1
  285. wait()
  286. S:play()
  287. game:GetService("Debris"):AddItem(S, 10)
  288. end))
  289. end;
  290. };
  291.  
  292. ["ParticleEmitter"] = {
  293. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  294. local fp = Create("ParticleEmitter"){
  295. Parent = Parent,
  296. Color = ColorSequence.new(Color1, Color2),
  297. LightEmission = LightEmission,
  298. Size = Size,
  299. Texture = Texture,
  300. Transparency = Transparency,
  301. ZOffset = ZOffset,
  302. Acceleration = Accel,
  303. Drag = Drag,
  304. LockedToPart = LockedToPart,
  305. VelocityInheritance = VelocityInheritance,
  306. EmissionDirection = EmissionDirection,
  307. Enabled = Enabled,
  308. Lifetime = LifeTime,
  309. Rate = Rate,
  310. Rotation = Rotation,
  311. RotSpeed = RotSpeed,
  312. Speed = Speed,
  313. VelocitySpread = VelocitySpread,
  314. }
  315. return fp
  316. end;
  317. };
  318. }
  319.  
  320. function rayCast(Position, Direction, Range, Ignore)
  321. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  322. end
  323.  
  324. local function GetNearest(obj, distance)
  325. local last, lastx = distance + 1
  326. for i, v in pairs(workspace:GetChildren()) do
  327. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  328. local t = v.Torso
  329. local dist = (t.Position - obj.Position).magnitude
  330. if dist <= distance then
  331. if dist < last then
  332. last = dist
  333. lastx = v
  334. end
  335. end
  336. end
  337. end
  338. return lastx
  339. end
  340.  
  341. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  342.  
  343. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  344. for i, v in pairs(hit:GetChildren()) do
  345. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  346. local find = v:FindFirstChild("DebounceHit")
  347. if not find then
  348. if v.Parent:findFirstChild("Head") then
  349. local BillG = Create("BillboardGui"){
  350. Parent = v.Parent.Head,
  351. Size = UDim2.new(1, 0, 1, 0),
  352. Adornee = v.Parent.Head,
  353. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  354. }
  355. local TL = Create("TextLabel"){
  356. Parent = BillG,
  357. Size = UDim2.new(3, 3, 3, 3),
  358. BackgroundTransparency = 1,
  359. Text = tostring(damage).."-",
  360. TextColor3 = Color1.Color,
  361. TextStrokeColor3 = Color2.Color,
  362. TextStrokeTransparency = 0,
  363. TextXAlignment = Enum.TextXAlignment.Center,
  364. TextYAlignment = Enum.TextYAlignment.Center,
  365. FontSize = Enum.FontSize.Size18,
  366. Font = "ArialBold",
  367. }
  368. coroutine.resume(coroutine.create(function()
  369. swait(1)
  370. for i = 0, 1, .1 do
  371. swait(.1)
  372. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  373. end
  374. BillG:Destroy()
  375. end))
  376. end
  377. v.Health = v.Health - damage
  378. local bool = Create("BoolValue"){
  379. Parent = v,
  380. Name = "DebounceHit",
  381. }
  382. if HSound ~= nil and HPitch ~= nil then
  383. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  384. end
  385. game:GetService("Debris"):AddItem(bool, cooldown)
  386. end
  387. end
  388. end
  389. end
  390.  
  391. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  392. for _, c in pairs(workspace:children()) do
  393. local hum = c:findFirstChild("Humanoid")
  394. if hum ~= nil then
  395. local head = c:findFirstChild("Torso")
  396. if head ~= nil then
  397. local targ = head.Position - Part.Position
  398. local mag = targ.magnitude
  399. if mag <= magni and c.Name ~= Player.Name then
  400. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  401. end
  402. end
  403. end
  404. end
  405. end
  406.  
  407. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(-0.399999946, 0.899999976, -0.400000095))
  408. 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))
  409. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  410. 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))
  411. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  412. 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))
  413. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(-0.399999946, 0.299999952, -0.400000095))
  414. 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))
  415. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://470533002", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00700000007, 0.003000010))
  416. Part.Mesh.TextureId = "rbxassetid://166709221"
  417. Part.Mesh.Scale = Vector3.new(-0.01, -0.01, -0.01)
  418.  
  419. EffectModel = Instance.new("Model", Character)
  420. EffectModel.Name = "Effects"
  421.  
  422. Effects = {
  423. ["Block"] = {
  424. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  425. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  426. prt.Anchored = true
  427. prt.CFrame = cframe
  428. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  429. game:GetService("Debris"):AddItem(prt, 10)
  430. if Type == 1 or Type == nil then
  431. table.insert(Effects, {
  432. prt,
  433. "Block1",
  434. delay,
  435. x3,
  436. y3,
  437. z3,
  438. msh
  439. })
  440. elseif Type == 2 then
  441. table.insert(Effects, {
  442. prt,
  443. "Block2",
  444. delay,
  445. x3,
  446. y3,
  447. z3,
  448. msh
  449. })
  450. end
  451. end;
  452. };
  453.  
  454. ["Cylinder"] = {
  455. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  456. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  457. prt.Anchored = true
  458. prt.CFrame = cframe
  459. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  460. game:GetService("Debris"):AddItem(prt, 2)
  461. Effects[#Effects + 1] = {
  462. prt,
  463. "Cylinder",
  464. delay,
  465. x3,
  466. y3,
  467. z3
  468. }
  469. end;
  470. };
  471.  
  472. ["Sphere"] = {
  473. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  474. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  475. prt.Anchored = true
  476. prt.CFrame = cframe
  477. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  478. game:GetService("Debris"):AddItem(prt, 10)
  479. table.insert(Effects, {
  480. prt,
  481. "Cylinder",
  482. delay,
  483. x3,
  484. y3,
  485. z3,
  486. msh
  487. })
  488. end;
  489. };
  490.  
  491. ["Elec"] = {
  492. Create = function(cff, x, y, z)
  493. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  494. prt.Anchored = true
  495. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  496. prt.CFrame = CFrame.new(prt.Position)
  497. game:GetService("Debris"):AddItem(prt, 2)
  498. local xval = math.random() / 2
  499. local yval = math.random() / 2
  500. local zval = math.random() / 2
  501. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  502. table.insert(Effects, {
  503. prt,
  504. "Elec",
  505. 0.1,
  506. x,
  507. y,
  508. z,
  509. xval,
  510. yval,
  511. zval
  512. })
  513. end;
  514.  
  515. };
  516.  
  517. ["Ring"] = {
  518. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  519. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  520. prt.Anchored = true
  521. prt.CFrame = cframe
  522. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  523. game:GetService("Debris"):AddItem(prt, 10)
  524. table.insert(Effects, {
  525. prt,
  526. "Cylinder",
  527. delay,
  528. x3,
  529. y3,
  530. z3,
  531. msh
  532. })
  533. end;
  534. };
  535.  
  536.  
  537. ["Wave"] = {
  538. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  539. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  540. prt.Anchored = true
  541. prt.CFrame = cframe
  542. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  543. game:GetService("Debris"):AddItem(prt, 10)
  544. table.insert(Effects, {
  545. prt,
  546. "Cylinder",
  547. delay,
  548. x3,
  549. y3,
  550. z3,
  551. msh
  552. })
  553. end;
  554. };
  555.  
  556. ["Break"] = {
  557. Create = function(brickcolor, cframe, x1, y1, z1)
  558. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  559. prt.Anchored = true
  560. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  561. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  562. local num = math.random(10, 50) / 1000
  563. game:GetService("Debris"):AddItem(prt, 10)
  564. table.insert(Effects, {
  565. prt,
  566. "Shatter",
  567. num,
  568. prt.CFrame,
  569. math.random() - math.random(),
  570. 0,
  571. math.random(50, 100) / 100
  572. })
  573. end;
  574. };
  575. }
  576.  
  577. Shoot2 = function(orgpos)
  578. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  579. Effects["Sphere"].Create(BrickColor.new("White"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  580. table.insert(Effects, {
  581. MouseLook.lookVector,
  582. "Shoot2",
  583. 50,
  584. orgpos,
  585. 5,
  586. 7,
  587. 0,
  588. 1,
  589. 2
  590. })
  591. end
  592.  
  593. function bulletstorm()
  594. attack = true
  595. CFuncs["Sound"].Create("rbxassetid://539881968", Torso, 1, 1)
  596. text.Text = "INCOMINGGGGGG"
  597. wait(1.5)
  598. for i = 0, 1, 0.025 do
  599. swait()
  600. PlayAnimationFromTable({
  601. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  602. 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),
  603. 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),
  604. 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),
  605. 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),
  606. 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),
  607. }, .3, false)
  608. CFuncs["Sound"].Create("rbxassetid://539882114", Torso, 1, 1)
  609. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  610. Shoot2(Barrel.Position)
  611. text.Text = "Heavy"
  612. end
  613.  
  614. attack = false
  615. end
  616.  
  617. function overload()
  618. attack = true
  619. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  620. text.Text = "INCOMINGGGGGGGG"
  621. Shoot2(LeftArm.Position)
  622. Shoot2(RightArm.Position)
  623. Shoot2(RightLeg.Position)
  624. Shoot2(LeftLeg.Position)
  625. Shoot2(Head.Position)
  626. Shoot2(Torso.Position)
  627. wait(0)
  628. attack = false
  629. text.Text "Heavy"
  630. end
  631.  
  632. function overcharge()
  633. attack = true
  634. text.Text = "INCOMINGGGGGGGGGGG"
  635. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  636. for i = 0, 1, 0.15 do
  637. swait()
  638. PlayAnimationFromTable({
  639. CFrame.new(-0.0325974114, -4.05311584e-006, 0.110728048, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  640. CFrame.new(0, 1.50000095, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  641. 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),
  642. 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),
  643. 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),
  644. 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),
  645. }, .5, false)
  646. end
  647. wait(3)
  648. Shoot2(Barrel.Position)
  649. Shoot2(Barrel.Position)
  650. Shoot2(Handle.Position)
  651. Shoot2(Handle.Position)
  652. Shoot2(FakeHandle.Position)
  653. Shoot2(FakeHandle.Position)
  654. Shoot2(Barrel.Position)
  655. Shoot2(Barrel.Position)
  656. Shoot2(Handle.Position)
  657. Shoot2(Handle.Position)
  658. Shoot2(FakeHandle.Position)
  659. Shoot2(FakeHandle.Position)
  660. Shoot2(Barrel.Position)
  661. Shoot2(Barrel.Position)
  662. Shoot2(Handle.Position)
  663. Shoot2(Handle.Position)
  664. Shoot2(FakeHandle.Position)
  665. Shoot2(FakeHandle.Position)
  666. Shoot2(Barrel.Position)
  667. Shoot2(Barrel.Position)
  668. Shoot2(Handle.Position)
  669. Shoot2(Handle.Position)
  670. Shoot2(FakeHandle.Position)
  671. Shoot2(FakeHandle.Position)
  672. for i = 0, 1, 0.15 do
  673. swait()
  674. PlayAnimationFromTable({
  675. 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),
  676. 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),
  677. 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),
  678. 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),
  679. 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),
  680. 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),
  681. }, .35, false)
  682. text.Text = "Heavy"
  683. end
  684. attack = false
  685. end
  686.  
  687. function attackone()
  688. attack = true
  689. text.Text = "INCOMINGGGGGG"
  690.  
  691. howtobasic1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  692. howtobasic1.Volume = 100
  693. howtobasic1.SoundId = "rbxassetid://190995007"
  694. howtobasic2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  695. howtobasic2.Volume = 100
  696. howtobasic2.SoundId = "rbxassetid://190995007"
  697. howtobasic3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  698. howtobasic3.Volume = 100
  699. howtobasic3.SoundId = "rbxassetid://190995007"
  700. howtobasic = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  701. howtobasic.Volume = 100
  702. howtobasic.SoundId = "rbxassetid://190995007"
  703.  
  704. local Math = math.random(1,4)
  705. if Math == 1 then
  706. howtobasic:Play()
  707. end
  708. if Math == 2 then
  709. howtobasic1:Play()
  710. end
  711. if Math == 3 then
  712. howtobasic2:Play()
  713. end
  714. if Math == 4 then
  715. howtobasic3:Play()
  716. end
  717. for i = 0, 1, 0.025 do
  718. swait()
  719. PlayAnimationFromTable({
  720. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  721. 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),
  722. 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),
  723. 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),
  724. 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),
  725. 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),
  726. }, .3, false)
  727. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  728. end
  729. CFuncs["Sound"].Create("rbxassetid://159490394", Barrel, 5, 1)
  730. text.Text = "Heavy"
  731. Shoot2(Barrel.Position)
  732. for i = 0, 1, 0.15 do
  733. swait()
  734. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  735. PlayAnimationFromTable({
  736. 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),
  737. 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),
  738. 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),
  739. 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),
  740. 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),
  741. 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),
  742. }, .6, false)
  743. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  744. end
  745. for i = 0, 1, 0.15 do
  746. swait()
  747. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  748. PlayAnimationFromTable({
  749. 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),
  750. 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),
  751. 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),
  752. 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),
  753. 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),
  754. 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),
  755. }, .2, false)
  756. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  757. end
  758. for i = 0, 1, 0.05 do
  759. swait()
  760. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  761. PlayAnimationFromTable({
  762. 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),
  763. 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),
  764. 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),
  765. 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),
  766. 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),
  767. 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),
  768. }, .3, false)
  769. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  770. end
  771. for i = 0, 1, 0.13 do
  772. swait()
  773. PlayAnimationFromTable({
  774. 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),
  775. 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),
  776. 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),
  777. 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),
  778. 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),
  779. 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),
  780. }, .3, false)
  781. end
  782. attack = false
  783. end
  784.  
  785. --[[Attacks]]--
  786.  
  787. mouse.Button1Down:connect(function()
  788. if attack == false and attacktype == 1 then
  789. attackone()
  790. end
  791. end)
  792.  
  793.  
  794. mouse.KeyDown:connect(function(k)
  795. k = k:lower()
  796. if attack == false and k == 'q' then
  797. bulletstorm()
  798. elseif attack == false and k == 'e' then
  799. overload()
  800. elseif attack == false and k == 'r' then
  801. overcharge()
  802. end
  803. end)
  804.  
  805. while true do
  806. swait()
  807. for i, v in pairs(Character:GetChildren()) do
  808. if v:IsA("Part") then
  809. v.Material = "SmoothPlastic"
  810. elseif v:IsA("Accessory") then
  811. v:WaitForChild("Handle").Material = "SmoothPlastic"
  812. end
  813. end
  814. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  815. velocity = RootPart.Velocity.y
  816. sine = sine + change
  817. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  818. if equipped == true or equipped == false then
  819. if RootPart.Velocity.y > 1 and hit == nil then
  820. Anim = "Jump"
  821. if attack == false then
  822. PlayAnimationFromTable({
  823. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  824. 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),
  825. 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),
  826. 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),
  827. 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),
  828. 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),
  829. }, .3, false)
  830. end
  831. elseif RootPart.Velocity.y < -60 and hit == nil then
  832. Anim = "Fall"
  833. if attack == false then
  834. PlayAnimationFromTable({
  835. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  836. 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),
  837. 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),
  838. 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),
  839. 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),
  840. 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),
  841. }, .3, false)
  842. end
  843. elseif Torsovelocity < 1 and hit ~= nil then
  844. Anim = "Idle"
  845. if attack == false then
  846. change = 1
  847. PlayAnimationFromTable({
  848. 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),
  849. 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),
  850. 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),
  851. 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),
  852. 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),
  853. 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),
  854. }, .3, false)
  855. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  856. end
  857. elseif Torsovelocity > 2 and hit ~= nil then
  858. Anim = "Walk"
  859. if attack == false then
  860. change = 3
  861. PlayAnimationFromTable({
  862. 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),
  863. 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),
  864. 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),
  865. 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),
  866. 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)),
  867. 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)),
  868. }, .3, false)
  869. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  870. end
  871. end
  872. end
  873. if 0 < #Effects then
  874. for e = 1, #Effects do
  875. if Effects[e] ~= nil then
  876. local Thing = Effects[e]
  877. if Thing ~= nil then
  878. local Part = Thing[1]
  879. local Mode = Thing[2]
  880. local Delay = Thing[3]
  881. local IncX = Thing[4]
  882. local IncY = Thing[5]
  883. local IncZ = Thing[6]
  884. if Thing[2] == "Shoot" then
  885. local Look = Thing[1]
  886. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  887. local mag = (Thing[4] - pos).magnitude
  888. Thing[9] = Thing[9] + 0.5
  889. Thing[5] = Thing[5] + 0.2
  890. Thing[6] = Thing[6] + 0.2
  891. Effects["Cylinder"].Create(BrickColor.new("White"), 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)
  892. Thing[4] = Thing[4] + Look * 15
  893. Thing[3] = Thing[3] - 1
  894. if hit ~= nil then
  895. Thing[3] = 0
  896. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  897. ref.Anchored = true
  898. ref.CFrame = CFrame.new(pos)
  899. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  900. CFuncs["Sound"].Create("rbxassetid://539881968", ref, 0.1, 1)
  901. game:GetService("Debris"):AddItem(ref, 10)
  902. end
  903. if Thing[3] <= 0 then
  904. table.remove(Effects, e)
  905. end
  906. end
  907. do
  908. if Thing[2] == "Shoot2" then
  909. local Look = Thing[1]
  910. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  911. local mag = (Thing[4] - pos).magnitude
  912. Thing[9] = Thing[9] + 0.5
  913. Thing[5] = Thing[5] + 0.2
  914. Thing[6] = Thing[6] + 0.2
  915. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  916. Thing[4] = Thing[4] + Look * 3
  917. Thing[3] = Thing[3] + 5
  918. if hit ~= nil then
  919. Thing[3] = 0
  920. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  921. ref.Anchored = true
  922. ref.CFrame = CFrame.new(pos)
  923. Effects["Sphere"].Create(BrickColor.new("Really yellow"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  924. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  925. Effects["Block"].Create(BrickColor.new("White"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  926. Effects["Wave"].Create(BrickColor.new("Smoky grey"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  927. CFuncs["Sound"].Create("rbxassetid://10209236", ref, 1, 1)
  928. CFuncs["Sound"].Create("rbxassetid://10209236", Sphere, 0.5, 1)
  929. CFuncs["Sound"].Create("rbxassetid://10209236", Sphere, 0.1, 1)
  930. local e = Instance.new("Explosion", ref)
  931. e.Position = ref.Position
  932. e.BlastRadius = 400
  933. e.DestroyJointRadiusPercent = 400
  934. e.Visible = false
  935. e.ExplosionType = "CratersAndDebris"
  936. game:GetService("Debris"):AddItem(ref, 2)
  937. end
  938. if Thing[3] <= 0 then
  939. table.remove(Effects, e)
  940. end
  941. end
  942. do
  943. do
  944. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  945. if Thing[1].Transparency <= 1 then
  946. if Thing[2] == "Block1" then
  947. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  948. Mesh = Thing[7]
  949. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  950. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  951. else
  952. if Thing[2] == "Block2" then
  953. Thing[1].CFrame = Thing[1].CFrame
  954. Mesh = Thing[7]
  955. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  956. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  957. else
  958. if Thing[2] == "Block3" then
  959. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  960. Mesh = Thing[7]
  961. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  962. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  963. else
  964. if Thing[2] == "Cylinder" then
  965. Mesh = Thing[7]
  966. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  967. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  968. else
  969. if Thing[2] == "Cylinder2" then
  970. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  971. Mesh = Thing[7]
  972. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  973. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  974. else
  975. if Thing[2] == "Blood" then
  976. Mesh = Thing[7]
  977. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  978. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  979. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  980. else
  981. if Thing[2] == "Elec" then
  982. Mesh = Thing[10]
  983. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  984. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  985. else
  986. if Thing[2] == "Disappear" then
  987. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  988. end
  989. end
  990. end
  991. end
  992. end
  993. end
  994. end
  995. end
  996. else
  997. Part.Parent = nil
  998. table.remove(Effects, e)
  999. end
  1000. end
  1001. end
  1002. end
  1003. end
  1004. end
  1005. end
  1006. end
  1007. end
  1008. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement