Advertisement
lolz3456

Untitled

Sep 3rd, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 91.48 KB | None | 0 0
  1. wait(0.016666666666667)
  2. Player = game:GetService("Players").LocalPlayer
  3. Character = Player.Character
  4. PlayerGui = Player.PlayerGui
  5. Backpack = Player.Backpack
  6. Torso = Character.Torso
  7. Head = Character.Head
  8. Humanoid = Character.Humanoid
  9. LeftArm = Character["Left Arm"]
  10. LeftLeg = Character["Left Leg"]
  11. RightArm = Character["Right Arm"]
  12. RightLeg = Character["Right Leg"]
  13. LS = Torso["Left Shoulder"]
  14. LH = Torso["Left Hip"]
  15. RS = Torso["Right Shoulder"]
  16. RH = Torso["Right Hip"]
  17. Face = Head.face
  18. Neck = Torso.Neck
  19. it = Instance.new
  20. attacktype = 1
  21. vt = Vector3.new
  22. cf = CFrame.new
  23. euler = CFrame.fromEulerAnglesXYZ
  24. angles = CFrame.Angles
  25. cloaked = false
  26. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  27. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  28. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  29. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  30. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  31. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  32. RootPart = Character.HumanoidRootPart
  33. RootJoint = RootPart.RootJoint
  34. RootCF = euler(-1.57, 0, 3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb = false
  38. equipped = false
  39. hand = false
  40. MMouse = nil
  41. combo = 0
  42. mana = 0
  43. trispeed = 0.2
  44. attackmode = "none"
  45. local idle = 0
  46. local Anim = "Idle"
  47. local gun = false
  48. local shoot = false
  49. player = nil
  50. mana = 0
  51. mouse = Player:GetMouse()
  52. RSH = nil
  53. RW = Instance.new("Weld")
  54. LW = Instance.new("Weld")
  55. RW.Name = "Right Shoulder"
  56. LW.Name = "Left Shoulder"
  57. LH = Torso["Left Hip"]
  58. RH = Torso["Right Hip"]
  59. TorsoColor = Torso.BrickColor
  60. NoOutline = function(Part)
  61. Part.TopSurface = 10
  62. end
  63.  
  64. player = Player
  65. ch = Character
  66. RSH = ch.Torso["Right Shoulder"]
  67. LSH = ch.Torso["Left Shoulder"]
  68. RSH.Parent = Player.Character.Torso
  69. LSH.Parent = Player.Character.Torso
  70. RW.Name = "Right Shoulder"
  71. RW.Part0 = ch.Torso
  72. RW.C0 = cf(1.5, 0.5, 0)
  73. RW.C1 = cf(0, 0.5, 0)
  74. RW.Part1 = ch["Right Arm"]
  75. RW.Parent = nil
  76. LW.Name = "Left Shoulder"
  77. LW.Part0 = ch.Torso
  78. LW.C0 = cf(-1.5, 0.5, 0)
  79. LW.C1 = cf(0, 0.5, 0)
  80. LW.Part1 = ch["Left Arm"]
  81. LW.Parent = nil
  82. Player = game:GetService("Players").LocalPlayer
  83. Character = Player.Character
  84. Mouse = Player:GetMouse()
  85. m = Instance.new("Model", Character)
  86. local Player = game.Players.localPlayer
  87. local Character = Player.Character
  88. local Humanoid = Character.Humanoid
  89. local mouse = Player:GetMouse()
  90. local LeftArm = Character["Left Arm"]
  91. local RightArm = Character["Right Arm"]
  92. local LeftLeg = Character["Left Leg"]
  93. local RightLeg = Character["Right Leg"]
  94. local Head = Character.Head
  95. local Torso = Character.Torso
  96. local cam = game.Workspace.CurrentCamera
  97. local RootPart = Character.HumanoidRootPart
  98. local equipped = false
  99. local attack = false
  100. local Anim = "Idle"
  101. local idle = 0
  102. local sprint = false
  103. local battlestance = false
  104. local attacktype = 1
  105. local state = "none"
  106. local torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  107. local velocity = RootPart.Velocity.y
  108. local sine = 0
  109. local change = 1
  110. local on = false
  111. local grabbed = false
  112. local skill1 = false
  113. local skill2 = false
  114. local skill3 = false
  115. local skill4 = false
  116. local cooldown1 = 0
  117. local cooldown2 = 0
  118. local cooldown3 = 0
  119. local cooldown4 = 0
  120. local co1 = 0
  121. local co2 = 0
  122. local co3 = 0
  123. local co4 = 0
  124. local inputserv = game:GetService("UserInputService")
  125. local typing = false
  126. local crit = false
  127. local critchance = 2
  128. local critdamageaddmin = 3
  129. local critdamageaddmax = 7
  130. local maxstamina = 100
  131. local stamina = 0
  132. local skill1stam = 0
  133. local skill2stam = 0
  134. local skill3stam = 0
  135. local skill4stam = 0
  136. local recovermana = 3
  137. local mindamage = 5
  138. local maxdamage = 10
  139. local cf = CFrame.new
  140. local mr = math.rad
  141. local angles = CFrame.Angles
  142. local ud = UDim2.new
  143. local c3 = Color3.new
  144. local skillcolorscheme = c3(1, 1, 1)
  145. local defensevalue = 1
  146. local speedvalue = 1
  147. local damagevalue = 1
  148. local cf = CFrame.new
  149. local mr = math.rad
  150. local angles = CFrame.Angles
  151. local ud = UDim2.new
  152. local c3 = Color3.new
  153. local skillcolorscheme = c3(1, 1, 1)
  154. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  155. makeframe = function(par, trans, pos, size, color)
  156. local frame = Instance.new("Frame", par)
  157. frame.BackgroundTransparency = trans
  158. frame.BorderSizePixel = 0
  159. frame.Position = pos
  160. frame.Size = size
  161. frame.BackgroundColor3 = color
  162. return frame
  163. end
  164.  
  165. makelabel = function(par, text)
  166. local label = Instance.new("TextLabel", par)
  167. label.BackgroundTransparency = 1
  168. label.Size = ud(1, 0, 1, 0)
  169. label.Position = ud(0, 0, 0, 0)
  170. label.TextColor3 = c3(255, 255, 255)
  171. label.TextStrokeTransparency = 0
  172. label.FontSize = Enum.FontSize.Size32
  173. label.Font = Enum.Font.SourceSansBold
  174. label.BorderSizePixel = 0
  175. label.TextScaled = true
  176. label.Text = text
  177. end
  178.  
  179. local stats = Instance.new("Folder", Character)
  180. stats.Name = "Stats"
  181. local block = Instance.new("BoolValue", stats)
  182. block.Name = "Block"
  183. block.Value = false
  184. local stun = Instance.new("BoolValue", stats)
  185. stun.Name = "Stun"
  186. stun.Value = false
  187. local defense = Instance.new("NumberValue", stats)
  188. defense.Name = "Defence"
  189. defense.Value = defensevalue
  190. local speed = Instance.new("NumberValue", stats)
  191. speed.Name = "Speed"
  192. speed.Value = speedvalue
  193. local damagea = Instance.new("NumberValue", stats)
  194. damagea.Name = "Damage"
  195. damagea.Value = damagevalue
  196. framesk1 = makeframe(scrn, 0.5, ud(0.13, 0, 0.56, 0), ud(0.08, 0, 0.06, 0), c3(1, 1, 0.5))
  197. bar1 = makeframe(framesk1, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 1, 0.5))
  198. ammolabel = Instance.new("TextLabel", framesk1)
  199. ammolabel.BackgroundTransparency = 1
  200. ammolabel.Size = ud(1, 0, 1, 0)
  201. ammolabel.Position = ud(0, 0, 0, 0)
  202. ammolabel.TextColor3 = c3(255, 255, 255)
  203. ammolabel.TextStrokeTransparency = 0
  204. ammolabel.FontSize = Enum.FontSize.Size8
  205. ammolabel.Font = Enum.Font.SourceSans
  206. ammolabel.BorderSizePixel = 0
  207. ammolabel.TextScaled = true
  208. ammolabel.Text = "Speed [" .. speed.Value .. "]"
  209. framesk2 = makeframe(scrn, 0.5, ud(0.13, 0, 0.63, 0), ud(0.08, 0, 0.06, 0), c3(1, 0.5, 1))
  210. bar2 = makeframe(framesk2, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0.5, 0.25, 0.25))
  211. ammolabel2 = Instance.new("TextLabel", framesk2)
  212. ammolabel2.BackgroundTransparency = 1
  213. ammolabel2.Size = ud(1, 0, 1, 0)
  214. ammolabel2.Position = ud(0, 0, 0, 0)
  215. ammolabel2.TextColor3 = c3(255, 255, 255)
  216. ammolabel2.TextStrokeTransparency = 0
  217. ammolabel2.FontSize = Enum.FontSize.Size8
  218. ammolabel2.Font = Enum.Font.SourceSans
  219. ammolabel2.BorderSizePixel = 0
  220. ammolabel2.TextScaled = true
  221. ammolabel2.Text = "Damage [" .. damagea.Value .. "]"
  222. framesk3 = makeframe(scrn, 0.5, ud(0.13, 0, 0.7, 0), ud(0.08, 0, 0.06, 0), c3(1, 0.5, 1))
  223. bar3 = makeframe(framesk3, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0.25, 0.25, 0.5))
  224. ammolabel3 = Instance.new("TextLabel", framesk3)
  225. ammolabel3.BackgroundTransparency = 1
  226. ammolabel3.Size = ud(1, 0, 1, 0)
  227. ammolabel3.Position = ud(0, 0, 0, 0)
  228. ammolabel3.TextColor3 = c3(255, 255, 255)
  229. ammolabel3.TextStrokeTransparency = 0
  230. ammolabel3.FontSize = Enum.FontSize.Size8
  231. ammolabel3.Font = Enum.Font.SourceSans
  232. ammolabel3.BorderSizePixel = 0
  233. ammolabel3.TextScaled = true
  234. ammolabel3.Text = "Defense [" .. defense.Value .. "]"
  235. animate = Character:findFirstChild("Animate")
  236. animate.Disabled = false
  237. CustomColor = BrickColor.new("Cool yellow")
  238. Colorpart1 = Torso.BrickColor.r
  239. Colorpart2 = Torso.BrickColor.g
  240. Colorpart3 = Torso.BrickColor.b
  241. local weldBetween = function(a, b)
  242. local weldd = Instance.new("ManualWeld")
  243. weldd.Part0 = a
  244. weldd.Part1 = b
  245. weldd.C0 = CFrame.new()
  246. weldd.C1 = b.CFrame:inverse() * a.CFrame
  247. weldd.Parent = a
  248. return weldd
  249. end
  250.  
  251. swait = function(num)
  252. if num == 0 or num == nil then
  253. game:service("RunService").Stepped:wait(0)
  254. else
  255. for i = 0, num do
  256. game:service("RunService").Stepped:wait(0)
  257. end
  258. end
  259. end
  260.  
  261. nooutline = function(part)
  262. part.TopSurface = 10
  263. end
  264.  
  265. part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  266. local fp = it("Part")
  267. fp.formFactor = formfactor
  268. fp.Parent = parent
  269. fp.Reflectance = reflectance
  270. fp.Transparency = transparency
  271. fp.CanCollide = false
  272. fp.Locked = true
  273. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  274. fp.Name = name
  275. fp.Size = size
  276. fp.Position = Character.Torso.Position
  277. nooutline(fp)
  278. fp.Material = material
  279. fp:BreakJoints()
  280. return fp
  281. end
  282.  
  283. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  284. local mesh = it(Mesh)
  285. mesh.Parent = part
  286. if Mesh == "SpecialMesh" then
  287. mesh.MeshType = meshtype
  288. mesh.MeshId = meshid
  289. end
  290. mesh.Offset = offset
  291. mesh.Scale = scale
  292. return mesh
  293. end
  294.  
  295. weld = function(parent, part0, part1, c0, c1)
  296. local weld = it("Weld")
  297. weld.Parent = parent
  298. weld.Part0 = part0
  299. weld.Part1 = part1
  300. weld.C0 = c0
  301. weld.C1 = c1
  302. return weld
  303. end
  304.  
  305. fat = Instance.new("BindableEvent", script)
  306. fat.Name = "Heartbeat"
  307. script:WaitForChild("Heartbeat")
  308. frame = 0.033333333333333
  309. tf = 0
  310. allowframeloss = false
  311. tossremainder = false
  312. lastframe = tick()
  313. script.Heartbeat:Fire()
  314. game:GetService("RunService").Heartbeat:connect(function(s, p)
  315. tf = tf + s
  316. if frame <= tf then
  317. if allowframeloss then
  318. script.Heartbeat:Fire()
  319. lastframe = tick()
  320. else
  321. for i = 1, math.floor(tf / frame) do
  322. script.Heartbeat:Fire()
  323. end
  324. lastframe = tick()
  325. end
  326. if tossremainder then
  327. tf = 0
  328. else
  329. tf = tf - frame * math.floor(tf / frame)
  330. end
  331. end
  332. end
  333. )
  334. if script.Parent.className ~= "HopperBin" then
  335. Tool = Instance.new("HopperBin")
  336. Tool.Parent = Backpack
  337. Tool.Name = "Flying"
  338. script.Parent = Tool
  339. end
  340. Bin = script.Parent
  341. so = function(id, par, vol, pit)
  342. coroutine.resume(coroutine.create(function()
  343. local sou = Instance.new("Sound", par or workspace)
  344. sou.Volume = vol
  345. sou.Pitch = pit or 1
  346. sou.SoundId = id
  347. swait()
  348. sou:play()
  349. game:GetService("Debris"):AddItem(sou, 6)
  350. end
  351. ))
  352. end
  353.  
  354. local CFrameFromTopBack = function(at, top, back)
  355. local right = top:Cross(back)
  356. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  357. end
  358.  
  359. Triangle = function(a, b, c)
  360. local edg1 = c - a:Dot(b - a.unit)
  361. local edg2 = a - b:Dot(c - b.unit)
  362. local edg3 = b - c:Dot(a - c.unit)
  363. if edg1 <= b - a.magnitude and edg1 >= 0 then
  364. a = a
  365. else
  366. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  367.  
  368. if edg2 <= c - b.magnitude and edg2 >= 0 then
  369. a = b
  370. else
  371. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  372.  
  373. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  374.  
  375. if edg3 <= a - c.magnitude and edg3 >= 0 then
  376. a = c
  377. else
  378. assert(false, "unreachable")
  379. end
  380. end
  381. end
  382. local len1 = c - a:Dot(b - a.unit)
  383. local len2 = b - a.magnitude - len1
  384. local width = a + b - a.unit * len1 - c.magnitude
  385. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  386. local list = {}
  387. local TrailColor = "Dark grey"
  388. if len1 > 0.01 then
  389. local w1 = Instance.new("WedgePart", m)
  390. game:GetService("Debris"):AddItem(w1, 5)
  391. w1.Material = "SmoothPlastic"
  392. w1.FormFactor = "Custom"
  393. w1.BrickColor = BrickColor.new(TrailColor)
  394. w1.Transparency = 0
  395. w1.Reflectance = 0
  396. w1.Material = "SmoothPlastic"
  397. w1.CanCollide = false
  398. NoOutline(w1)
  399. local sz = Vector3.new(0.2, width, len1)
  400. w1.Size = sz
  401. local sp = Instance.new("SpecialMesh", w1)
  402. sp.MeshType = "Wedge"
  403. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  404. w1:BreakJoints()
  405. w1.Anchored = true
  406. w1.Parent = workspace
  407. w1.Transparency = 0.7
  408. table.insert(Effects, {w1, "Disappear", 0.01})
  409. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  410. table.insert(list, w1)
  411. end
  412. do
  413. if len2 > 0.01 then
  414. local w2 = Instance.new("WedgePart", m)
  415. game:GetService("Debris"):AddItem(w2, 5)
  416. w2.Material = "SmoothPlastic"
  417. w2.FormFactor = "Custom"
  418. w2.BrickColor = BrickColor.new(TrailColor)
  419. w2.Transparency = 0
  420. w2.Reflectance = 0
  421. w2.Material = "SmoothPlastic"
  422. w2.CanCollide = false
  423. NoOutline(w2)
  424. local sz = Vector3.new(0.2, width, len2)
  425. w2.Size = sz
  426. local sp = Instance.new("SpecialMesh", w2)
  427. sp.MeshType = "Wedge"
  428. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  429. w2:BreakJoints()
  430. w2.Anchored = true
  431. w2.Parent = workspace
  432. w2.Transparency = 0.7
  433. table.insert(Effects, {w2, "Disappear", 0.01})
  434. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  435. table.insert(list, w2)
  436. end
  437. do
  438. return unpack(list)
  439. end
  440. end
  441. end
  442.  
  443. rayCast = function(Pos, Dir, Max, Ignore)
  444. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  445. end
  446.  
  447. clerp = function(a, b, t)
  448. return a:lerp(b, t)
  449. end
  450.  
  451. QuaternionFromCFrame = function(cf)
  452. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  453. local trace = m00 + m11 + m22
  454. if trace > 0 then
  455. local s = math.sqrt(1 + trace)
  456. local recip = 0.5 / s
  457. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  458. else
  459. do
  460. local i = 0
  461. if m00 < m11 then
  462. i = 1
  463. end
  464. if i == 0 and m00 or m11 < m22 then
  465. i = 2
  466. end
  467. if i == 0 then
  468. local s = math.sqrt(m00 - m11 - m22 + 1)
  469. local recip = 0.5 / s
  470. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  471. else
  472. do
  473. if i == 1 then
  474. local s = math.sqrt(m11 - m22 - m00 + 1)
  475. local recip = 0.5 / s
  476. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  477. else
  478. do
  479. if i == 2 then
  480. local s = math.sqrt(m22 - m00 - m11 + 1)
  481. local recip = 0.5 / s
  482. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  483. end
  484. end
  485. end
  486. end
  487. end
  488. end
  489. end
  490. end
  491.  
  492. lerp = function(a, b, t)
  493. return a:lerp(b, t)
  494. end
  495.  
  496. QuaternionSlerp = function(a, b, t)
  497. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  498. local startInterp, finishInterp = nil, nil
  499. if cosTheta >= 0.0001 then
  500. if 1 - cosTheta > 0.0001 then
  501. local theta = math.acos(cosTheta)
  502. local invSinTheta = 1 / math.sin(theta)
  503. startInterp = math.sin((1 - t) * theta) * invSinTheta
  504. finishInterp = math.sin(t * theta) * invSinTheta
  505. else
  506. do
  507. startInterp = 1 - t
  508. finishInterp = t
  509. if 1 + cosTheta > 0.0001 then
  510. local theta = math.acos(-cosTheta)
  511. local invSinTheta = 1 / math.sin(theta)
  512. startInterp = math.sin((t - 1) * theta) * invSinTheta
  513. finishInterp = math.sin(t * theta) * invSinTheta
  514. else
  515. do
  516. startInterp = t - 1
  517. finishInterp = t
  518. return a[1] * (startInterp) + b[1] * finishInterp, a[2] * (startInterp) + b[2] * finishInterp, a[3] * (startInterp) + b[3] * finishInterp, a[4] * (startInterp) + b[4] * finishInterp
  519. end
  520. end
  521. end
  522. end
  523. end
  524. end
  525.  
  526. rayCast = function(Pos, Dir, Max, Ignore)
  527. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  528. end
  529.  
  530. makegui = function(cframe, text)
  531. local a = math.random(-10, 10) / 100
  532. local c = Instance.new("Part")
  533. c.Transparency = 1
  534. Instance.new("BodyGyro").Parent = c
  535. c.Parent = workspace
  536. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  537. local f = Instance.new("BodyPosition")
  538. f.P = 2000
  539. f.D = 100
  540. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  541. f.position = c.Position + Vector3.new(0, 3, 0)
  542. f.Parent = c
  543. game:GetService("Debris"):AddItem(c, 6.5)
  544. c.CanCollide = false
  545. c.Parent = workspace
  546. c.CanCollide = false
  547. local bg = Instance.new("BillboardGui", c)
  548. bg.Adornee = c
  549. bg.Size = UDim2.new(1, 0, 1, 0)
  550. bg.StudsOffset = Vector3.new(0, 0, 0)
  551. bg.AlwaysOnTop = false
  552. local tl = Instance.new("TextLabel", bg)
  553. tl.BackgroundTransparency = 1
  554. tl.Size = UDim2.new(1, 0, 1, 0)
  555. tl.Text = text
  556. tl.Font = "SourceSansBold"
  557. tl.FontSize = "Size42"
  558. if crit == true then
  559. tl.TextColor3 = Color3.new(0.70588235294118, 0, 0)
  560. else
  561. tl.TextColor3 = Color3.new(255, 0.70588235294118, 0.2)
  562. end
  563. tl.TextStrokeTransparency = 0
  564. tl.TextScaled = true
  565. tl.TextWrapped = true
  566. coroutine.wrap(function()
  567. wait(2)
  568. for i = 1, 10 do
  569. fat.Event:wait()
  570. c.Transparency = 1
  571. tl.TextTransparency = tl.TextTransparency + 0.1
  572. end
  573. end
  574. )()
  575. end
  576.  
  577. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock)
  578. if hit.Parent == nil then
  579. return
  580. end
  581. h = hit.Parent:FindFirstChild("Humanoid")
  582. for _,v in pairs(hit.Parent:children()) do
  583. if v:IsA("Humanoid") then
  584. h = v
  585. end
  586. end
  587. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  588. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  589. end
  590. if hit.Parent.className == "Hat" then
  591. hit = hit.Parent.Parent:findFirstChild("Head")
  592. end
  593. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  594. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  595. return
  596. end
  597. blocked = false
  598. block = hit.Parent:findFirstChild("Block")
  599. if block ~= nil then
  600. print(block.className)
  601. if block.className == "NumberValue" and block.Value > 0 then
  602. blocked = true
  603. if decreaseblock == nil then
  604. block.Value = block.Value - 1
  605. end
  606. end
  607. if block.className == "IntValue" and block.Value > 0 then
  608. blocked = true
  609. if decreaseblock ~= nil then
  610. block.Value = block.Value - 1
  611. end
  612. end
  613. end
  614. if blocked == false then
  615. local D = math.random(minim, maxim) * damagea.Value
  616. if h.Parent:FindFirstChild("Stats") then
  617. D = D / h.Parent:FindFirstChild("Stats").Defence.Value
  618. else
  619. end
  620. if not h.Parent:FindFirstChild("Stats") then
  621. do
  622. h.Health = h.Health - D
  623. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)))
  624. local D = math.random(minim, maxim) * damagea.Value
  625. if h.Parent:FindFirstChild("Stats") then
  626. D = D / h.Parent:FindFirstChild("Stats").Defence.Value
  627. else
  628. end
  629. if not h.Parent:FindFirstChild("Stats") then
  630. do
  631. h.Health = h.Health - D / 2
  632. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)))
  633. if Type == "Knockdown" then
  634. humanoid = hit.Parent.Humanoid
  635. humanoid.PlatformStand = true
  636. coroutine.resume(coroutine.create(function(Humanoid)
  637. fat.Event:wait()
  638. Humanoid.PlatformStand = false
  639. end
  640. ), humanoid)
  641. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  642. local bodvol = Instance.new("BodyVelocity")
  643. bodvol.velocity = angle * knockback
  644. bodvol.P = 5000
  645. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  646. bodvol.Parent = hit
  647. rl = Instance.new("BodyAngularVelocity")
  648. rl.P = 3000
  649. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  650. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  651. rl.Parent = hit
  652. game:GetService("Debris"):AddItem(bodvol, 0.5)
  653. game:GetService("Debris"):AddItem(rl, 0.5)
  654. else
  655. do
  656. if Type == "Normal" then
  657. so("http://roblox.com/asset/?id=392592460", hit, 1, math.random(80, 120) / 100)
  658. vp = Instance.new("BodyVelocity")
  659. vp.P = 500
  660. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  661. if KnockbackType == 1 then
  662. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  663. else
  664. if KnockbackType == 2 then
  665. vp.velocity = Property.CFrame.lookVector * knockback
  666. end
  667. end
  668. if knockback > 0 then
  669. vp.Parent = hit.Parent.Torso
  670. end
  671. game:GetService("Debris"):AddItem(vp, 0.5)
  672. else
  673. if Type == "MovementDebuff" then
  674. coroutine.resume(coroutine.create(function()
  675. hit.Parent.Humanoid.WalkSpeed = hit.Parent.Humanoid.WalkSpeed - 0.2
  676. speed.Value = speed.Value + 0.2
  677. Humanoid.WalkSpeed = 16 * speed.Value
  678. wait(1)
  679. hit.Parent.Humanoid.WalkSpeed = hit.Parent.Humanoid.WalkSpeed + 0.2
  680. speed.Value = speed.Value - 0.2
  681. Humanoid.WalkSpeed = 16 * speed.Value
  682. end
  683. ))
  684. vp = Instance.new("BodyVelocity")
  685. vp.P = 500
  686. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  687. if KnockbackType == 1 then
  688. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  689. else
  690. if KnockbackType == 2 then
  691. vp.velocity = Property.CFrame.lookVector * knockback
  692. end
  693. end
  694. if knockback > 0 then
  695. vp.Parent = hit.Parent.Torso
  696. end
  697. game:GetService("Debris"):AddItem(vp, 0.5)
  698. else
  699. if Type == "CurseAura" then
  700. coroutine.resume(coroutine.create(function()
  701. savethewalkspeed = hit.Parent.Humanoid.WalkSpeed
  702. hit.Parent.Humanoid.WalkSpeed = 0
  703. wait(0.25)
  704. hit.Parent.Humanoid.WalkSpeed = savethewalkspeed
  705. end
  706. ))
  707. vp = Instance.new("BodyVelocity")
  708. vp.P = 500
  709. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  710. if KnockbackType == 1 then
  711. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  712. else
  713. if KnockbackType == 2 then
  714. vp.velocity = Property.CFrame.lookVector * knockback
  715. end
  716. end
  717. if knockback > 0 then
  718. vp.Parent = hit.Parent.Torso
  719. end
  720. game:GetService("Debris"):AddItem(vp, 0.5)
  721. else
  722. if Type == "SlashLifeSteal2" then
  723. so("http://www.roblox.com/asset/?id=344936315", hit, 1, math.random(100, 200) / 100)
  724. Humanoid.Health = Humanoid.Health + math.random(2, 3) / 2.5
  725. vp = Instance.new("BodyVelocity")
  726. vp.P = 500
  727. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  728. if KnockbackType == 1 then
  729. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  730. else
  731. if KnockbackType == 2 then
  732. vp.velocity = Property.CFrame.lookVector * knockback
  733. end
  734. end
  735. if knockback > 0 then
  736. vp.Parent = hit.Parent.Torso
  737. end
  738. game:GetService("Debris"):AddItem(vp, 0.5)
  739. else
  740. if Type == "BlackHoleDamage" then
  741. Humanoid.Health = Humanoid.Health + math.random(2, 4) / 5
  742. floatingvelocity = Instance.new("BodyVelocity")
  743. floatingvelocity.Parent = hit.Parent.Torso
  744. floatingvelocity.Velocity = Vector3.new(0, math.random(2.5, 5), 0)
  745. game:GetService("Debris"):AddItem(floatingvelocity, 1)
  746. else
  747. if Type == "BlackHoleDamage2" then
  748. vp = Instance.new("BodyVelocity")
  749. vp.P = 500
  750. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  751. if KnockbackType == 1 then
  752. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  753. else
  754. if KnockbackType == 2 then
  755. vp.velocity = Property.CFrame.lookVector * knockback
  756. end
  757. end
  758. if knockback > 0 then
  759. vp.Parent = hit.Parent.Torso
  760. end
  761. game:GetService("Debris"):AddItem(vp, 0.5)
  762. else
  763. if Type == "Up" then
  764. local bodyVelocity = Instance.new("BodyVelocity")
  765. bodyVelocity.velocity = vt(0, 60, 0)
  766. bodyVelocity.P = 5000
  767. bodyVelocity.maxForce = Vector3.new(8000, 8000, 8000)
  768. bodyVelocity.Parent = hit
  769. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  770. rl = Instance.new("BodyAngularVelocity")
  771. rl.P = 3000
  772. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  773. rl.angularvelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  774. rl.Parent = hit
  775. game:GetService("Debris"):AddItem(rl, 0.5)
  776. else
  777. do
  778. if Type == "Snare" then
  779. wait()
  780. bp = Instance.new("BodyPosition")
  781. bp.P = 2000
  782. bp.D = 100
  783. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  784. bp.position = hit.Parent.Torso.Position
  785. bp.Parent = hit.Parent.Torso
  786. game:GetService("Debris"):AddItem(bp, 1)
  787. else
  788. if Type == "Target" then
  789. so("http://www.roblox.com/asset/?id=199144144", hit, 1, math.random(150, 200) / 100)
  790. vp = Instance.new("BodyVelocity")
  791. vp.P = 500
  792. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  793. if KnockbackType == 1 then
  794. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  795. else
  796. if KnockbackType == 2 then
  797. vp.velocity = Property.CFrame.lookVector * knockback
  798. end
  799. end
  800. if knockback > 0 then
  801. vp.Parent = hit.Parent.Torso
  802. end
  803. game:GetService("Debris"):AddItem(vp, 0.5)
  804. end
  805. end
  806. debounce = Instance.new("BoolValue")
  807. debounce.Name = "DebounceHit"
  808. debounce.Parent = hit.Parent
  809. debounce.Value = true
  810. game:GetService("Debris"):AddItem(debounce, Delay)
  811. c = Instance.new("ObjectValue")
  812. c.Name = "creator"
  813. c.Value = Player
  814. c.Parent = h
  815. game:GetService("Debris"):AddItem(c, 0.5)
  816. CRIT = false
  817. hitDeb = true
  818. AttackPos = 6
  819. end
  820. end
  821. end
  822. end
  823. end
  824. end
  825. end
  826. end
  827. end
  828. end
  829. end
  830. end
  831. end
  832. end
  833. end
  834. end
  835. end
  836.  
  837. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  838. for _,c in pairs(workspace:children()) do
  839. local hum = c:findFirstChild("Humanoid")
  840. if hum ~= nil then
  841. local head = c:findFirstChild("Torso")
  842. if head ~= nil then
  843. local targ = head.Position - Part.Position
  844. local mag = targ.magnitude
  845. if mag <= magni and c.Name ~= Player.Name then
  846. Damagefunc(head, mindam, maxdam, knock, Type, RootPart, 0.2, 1, 3, 1)
  847. end
  848. end
  849. end
  850. end
  851. end
  852.  
  853. Lightning = function(p0, p1, tym, ofs, brickcolor, th, tra, last)
  854. local magz = p0 - p1.magnitude
  855. local curpos = p0
  856. local trz = {-ofs, ofs}
  857. for i = 1, tym do
  858. local li = Instance.new("Part", workspace)
  859. do
  860. li.TopSurface = 0
  861. li.BottomSurface = 0
  862. li.Anchored = true
  863. li.Transparency = tra or 0.4
  864. li.BrickColor = brickcolor
  865. li.formFactor = "Custom"
  866. li.CanCollide = false
  867. li.Size = Vector3.new(th, th, magz / tym)
  868. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  869. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  870. if tym == i then
  871. local magz2 = curpos - p1.magnitude
  872. li.Size = Vector3.new(th, th, magz2)
  873. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  874. else
  875. do
  876. do
  877. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  878. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  879. game.Debris:AddItem(li, last)
  880. coroutine.resume(coroutine.create(function()
  881. while li.Transparency ~= 1 do
  882. for i = 0, 1, last do
  883. fat.Event:wait()
  884. li.Transparency = li.Transparency + 0.1 / last
  885. end
  886. end
  887. end
  888. ))
  889. end
  890. -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  891.  
  892. -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out IF_STMT
  893.  
  894. -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out DO_STMT
  895.  
  896. end
  897. end
  898. end
  899. end
  900. end
  901.  
  902. RainbowLightning = function(p0, p1, tym, ofs, th, tra, last)
  903. local rainbowcolor = BrickColor.new(0)
  904. local magz = p0.magnitude - p1.magnitude
  905. local curpos = p0
  906. local trz = {-ofs, ofs}
  907. for i = 1, tym do
  908. local li = Instance.new("Part", workspace)
  909. do
  910. li.TopSurface = 0
  911. li.BottomSurface = 0
  912. li.Anchored = true
  913. li.Transparency = tra or 0.4
  914. li.BrickColor = rainbowcolor
  915. li.Material = "Neon"
  916. li.formFactor = "Custom"
  917. li.CanCollide = false
  918. li.Size = Vector3.new(th, th, magz / tym)
  919. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  920. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  921. if tym == i then
  922. local magz2 = curpos.magnitude - p1.magnitude
  923. li.Size = Vector3.new(th, th, magz2)
  924. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(-1.57, 0, -magz2 / 2)
  925. else
  926. do
  927. do
  928. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(-1.57, 0, magz / tym / 2)
  929. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  930. game.Debris:AddItem(li, last)
  931. coroutine.resume(coroutine.create(function()
  932. while li.Parent ~= nil do
  933. wait()
  934. rainbowcolor = BrickColor.new(23)
  935. wait()
  936. rainbowcolor = BrickColor.new(107)
  937. wait()
  938. rainbowcolor = BrickColor.new(37)
  939. wait()
  940. rainbowcolor = BrickColor.new(119)
  941. wait()
  942. rainbowcolor = BrickColor.new(24)
  943. wait()
  944. rainbowcolor = BrickColor.new(106)
  945. wait()
  946. rainbowcolor = BrickColor.new(21)
  947. wait()
  948. rainbowcolor = BrickColor.new(104)
  949. end
  950. end
  951. ))
  952. coroutine.resume(coroutine.create(function()
  953. while li.Transparency ~= 1 do
  954. for i = 0, 1, last do
  955. fat.Event:wait()
  956. li.Transparency = li.Transparency + 0.1 / last
  957. li.BrickColor = rainbowcolor
  958. end
  959. end
  960. do
  961. li.Parent = nil
  962. end
  963. end
  964. ))
  965. end
  966. -- DECOMPILER ERROR at PC149: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  967.  
  968. -- DECOMPILER ERROR at PC149: LeaveBlock: unexpected jumping out IF_STMT
  969.  
  970. -- DECOMPILER ERROR at PC149: LeaveBlock: unexpected jumping out DO_STMT
  971.  
  972. end
  973. end
  974. end
  975. end
  976. end
  977.  
  978. JumpEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  979. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  980. prt.Anchored = true
  981. prt.CanCollide = false
  982. prt.CFrame = cframe * angles(math.rad(90), 0, 0)
  983. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  984. game:GetService("Debris"):AddItem(prt, 10)
  985. coroutine.resume(coroutine.create(function(Part, Mesh)
  986. for i = 0, 1, delay do
  987. fat.Event:wait()
  988. Part.CFrame = Part.CFrame
  989. Part.Transparency = i
  990. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  991. end
  992. Part:Destroy()
  993. end
  994. ), prt, msh)
  995. end
  996.  
  997. Shockwave2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  998. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  999. prt.Anchored = true
  1000. prt.CFrame = cframe
  1001. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1002. game:GetService("Debris"):AddItem(prt, 4)
  1003. coroutine.resume(coroutine.create(function(Part, Mesh)
  1004. for i = 0, 1, delay do
  1005. fat.Event:wait()
  1006. Part.CFrame = Part.CFrame
  1007. Part.Transparency = i
  1008. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1009. end
  1010. Part:Destroy()
  1011. end
  1012. ), prt, msh)
  1013. end
  1014.  
  1015. OrbEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1016. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1017. prt.Anchored = true
  1018. prt.CanCollide = false
  1019. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1020. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1021. game:GetService("Debris"):AddItem(prt, 10)
  1022. coroutine.resume(coroutine.create(function(Part, Mesh)
  1023. for i = 0, 1, delay do
  1024. fat.Event:wait()
  1025. Part.CFrame = Part.CFrame
  1026. Part.Transparency = i
  1027. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1028. end
  1029. Part:Destroy()
  1030. end
  1031. ), prt, msh)
  1032. end
  1033.  
  1034. BlockShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1035. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1036. prt.Anchored = true
  1037. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1038. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1039. game:GetService("Debris"):AddItem(prt, 10)
  1040. coroutine.resume(coroutine.create(function(Part, Mesh)
  1041. for i = 0, 1, delay do
  1042. fat.Event:wait()
  1043. Part.CFrame = Part.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1044. Part.Transparency = i
  1045. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1046. end
  1047. Part:Destroy()
  1048. end
  1049. ), prt, msh)
  1050. end
  1051.  
  1052. RainbowBlockShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay)
  1053. local rainbowcolor = BrickColor.new(0)
  1054. local prt = part(3, workspace, "SmoothPlastic", 0, 0, rainbowcolor, "Effect", vt(0.5, 0.5, 0.5))
  1055. prt.Anchored = true
  1056. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1057. prt.Material = "Neon"
  1058. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1059. game:GetService("Debris"):AddItem(prt, 5)
  1060. coroutine.resume(coroutine.create(function()
  1061. while prt.Parent ~= nil do
  1062. wait()
  1063. rainbowcolor = BrickColor.new(23)
  1064. wait()
  1065. rainbowcolor = BrickColor.new(107)
  1066. wait()
  1067. rainbowcolor = BrickColor.new(37)
  1068. wait()
  1069. rainbowcolor = BrickColor.new(119)
  1070. wait()
  1071. rainbowcolor = BrickColor.new(24)
  1072. wait()
  1073. rainbowcolor = BrickColor.new(106)
  1074. wait()
  1075. rainbowcolor = BrickColor.new(21)
  1076. wait()
  1077. rainbowcolor = BrickColor.new(104)
  1078. end
  1079. end
  1080. ))
  1081. coroutine.resume(coroutine.create(function(Part, Mesh)
  1082. for i = 0, 1, delay do
  1083. fat.Event:wait()
  1084. Part.CFrame = Part.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1085. Part.Transparency = i
  1086. Part.BrickColor = rainbowcolor
  1087. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1088. end
  1089. Part:Destroy()
  1090. end
  1091. ), prt, msh)
  1092. end
  1093.  
  1094. RainbowCylinderShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay)
  1095. local rainbowcolor = BrickColor.new(0)
  1096. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1097. prt.Anchored = true
  1098. prt.CFrame = cframe
  1099. prt.Material = "Neon"
  1100. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1101. game:GetService("Debris"):AddItem(prt, 5)
  1102. coroutine.resume(coroutine.create(function()
  1103. while prt.Parent ~= nil do
  1104. wait()
  1105. rainbowcolor = BrickColor.new(23)
  1106. wait()
  1107. rainbowcolor = BrickColor.new(107)
  1108. wait()
  1109. rainbowcolor = BrickColor.new(37)
  1110. wait()
  1111. rainbowcolor = BrickColor.new(119)
  1112. wait()
  1113. rainbowcolor = BrickColor.new(24)
  1114. wait()
  1115. rainbowcolor = BrickColor.new(106)
  1116. wait()
  1117. rainbowcolor = BrickColor.new(21)
  1118. wait()
  1119. rainbowcolor = BrickColor.new(104)
  1120. end
  1121. end
  1122. ))
  1123. coroutine.resume(coroutine.create(function(Part, Mesh)
  1124. for i = 0, 1, delay do
  1125. fat.Event:wait()
  1126. Part.BrickColor = rainbowcolor
  1127. Part.Transparency = i
  1128. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1129. end
  1130. Part:Destroy()
  1131. end
  1132. ), prt, msh)
  1133. end
  1134.  
  1135. RainbowOrbEffect = function(cframe, x1, y1, z1, x2, y2, z2, delay)
  1136. local rainbowcolor = BrickColor.new(0)
  1137. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1138. prt.Anchored = true
  1139. prt.CanCollide = false
  1140. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1141. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1142. game:GetService("Debris"):AddItem(prt, 5)
  1143. coroutine.resume(coroutine.create(function()
  1144. while prt.Parent ~= nil do
  1145. wait()
  1146. rainbowcolor = BrickColor.new(23)
  1147. wait()
  1148. rainbowcolor = BrickColor.new(107)
  1149. wait()
  1150. rainbowcolor = BrickColor.new(37)
  1151. wait()
  1152. rainbowcolor = BrickColor.new(119)
  1153. wait()
  1154. rainbowcolor = BrickColor.new(24)
  1155. wait()
  1156. rainbowcolor = BrickColor.new(106)
  1157. wait()
  1158. rainbowcolor = BrickColor.new(21)
  1159. wait()
  1160. rainbowcolor = BrickColor.new(104)
  1161. end
  1162. end
  1163. ))
  1164. coroutine.resume(coroutine.create(function(Part, Mesh)
  1165. for i = 0, 1, delay do
  1166. fat.Event:wait()
  1167. Part.CFrame = Part.CFrame
  1168. Part.BrickColor = rainbowcolor
  1169. Part.Transparency = i
  1170. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1171. end
  1172. Part:Destroy()
  1173. end
  1174. ), prt, msh)
  1175. end
  1176.  
  1177. RainbowStar = function(cframe, x1, y1, z1, x2, y2, z2, delay)
  1178. local rainbowcolor = BrickColor.new(23)
  1179. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1180. prt.Anchored = true
  1181. prt.CanCollide = false
  1182. prt.CFrame = cframe
  1183. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=120647846", vt(0, 0, 0), vt(x1, y1, z1))
  1184. game:GetService("Debris"):AddItem(prt, 5)
  1185. coroutine.resume(coroutine.create(function()
  1186. while prt.Parent ~= nil do
  1187. wait()
  1188. rainbowcolor = BrickColor.new(23)
  1189. wait()
  1190. rainbowcolor = BrickColor.new(107)
  1191. wait()
  1192. rainbowcolor = BrickColor.new(37)
  1193. wait()
  1194. rainbowcolor = BrickColor.new(119)
  1195. wait()
  1196. rainbowcolor = BrickColor.new(24)
  1197. wait()
  1198. rainbowcolor = BrickColor.new(106)
  1199. wait()
  1200. rainbowcolor = BrickColor.new(21)
  1201. wait()
  1202. rainbowcolor = BrickColor.new(104)
  1203. end
  1204. end
  1205. ))
  1206. coroutine.resume(coroutine.create(function(Part, Mesh)
  1207. for i = 0, 1, delay do
  1208. fat.Event:wait()
  1209. Part.CFrame = Part.CFrame
  1210. Part.BrickColor = rainbowcolor
  1211. Part.Transparency = i
  1212. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1213. end
  1214. Part:Destroy()
  1215. end
  1216. ), prt, msh)
  1217. end
  1218.  
  1219. RainbowSphereShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay)
  1220. local rainbowcolor = BrickColor.new(0)
  1221. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1222. prt.Anchored = true
  1223. prt.CFrame = cframe
  1224. prt.Material = "Neon"
  1225. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1226. game:GetService("Debris"):AddItem(prt, 5)
  1227. coroutine.resume(coroutine.create(function()
  1228. while prt.Parent ~= nil do
  1229. wait()
  1230. rainbowcolor = BrickColor.new(23)
  1231. wait()
  1232. rainbowcolor = BrickColor.new(107)
  1233. wait()
  1234. rainbowcolor = BrickColor.new(37)
  1235. wait()
  1236. rainbowcolor = BrickColor.new(119)
  1237. wait()
  1238. rainbowcolor = BrickColor.new(24)
  1239. wait()
  1240. rainbowcolor = BrickColor.new(106)
  1241. wait()
  1242. rainbowcolor = BrickColor.new(21)
  1243. wait()
  1244. rainbowcolor = BrickColor.new(104)
  1245. end
  1246. end
  1247. ))
  1248. coroutine.resume(coroutine.create(function(Part, Mesh)
  1249. for i = 0, 1, delay do
  1250. fat.Event:wait()
  1251. Part.BrickColor = rainbowcolor
  1252. Part.Transparency = i
  1253. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1254. end
  1255. Part:Destroy()
  1256. end
  1257. ), prt, msh)
  1258. end
  1259.  
  1260. CylinderShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1261. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1262. prt.Anchored = true
  1263. prt.CFrame = cframe
  1264. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1265. game:GetService("Debris"):AddItem(prt, 10)
  1266. coroutine.resume(coroutine.create(function(Part, Mesh)
  1267. for i = 0, 1, delay do
  1268. fat.Event:wait()
  1269. Part.Transparency = i
  1270. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1271. end
  1272. Part:Destroy()
  1273. end
  1274. ), prt, msh)
  1275. end
  1276.  
  1277. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1278. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1279. prt.Anchored = true
  1280. prt.CFrame = cframe
  1281. prt.Material = "Neon"
  1282. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1283. game:GetService("Debris"):AddItem(prt, 10)
  1284. coroutine.resume(coroutine.create(function(Part, Mesh)
  1285. for i = 0, 1, delay do
  1286. fat.Event:wait()
  1287. Part.Transparency = i
  1288. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1289. end
  1290. Part:Destroy()
  1291. end
  1292. ), prt, msh)
  1293. end
  1294.  
  1295. Laser2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1296. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1297. prt.Anchored = true
  1298. prt.CFrame = cframe
  1299. prt.Material = "Neon"
  1300. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1301. game:GetService("Debris"):AddItem(prt, 10)
  1302. coroutine.resume(coroutine.create(function(Part, Mesh)
  1303. for i = 0, 1, delay do
  1304. fat.Event:wait()
  1305. Part.Transparency = i
  1306. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1307. end
  1308. Part:Destroy()
  1309. end
  1310. ), prt, msh)
  1311. end
  1312.  
  1313. Laser3 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1314. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1315. prt.Anchored = true
  1316. prt.CFrame = cframe
  1317. prt.Material = "Neon"
  1318. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1319. game:GetService("Debris"):AddItem(prt, 10)
  1320. coroutine.resume(coroutine.create(function(Part, Mesh)
  1321. for i = 0, 1, delay do
  1322. fat.Event:wait()
  1323. Part.Transparency = i
  1324. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1325. end
  1326. Part:Destroy()
  1327. end
  1328. ), prt, msh)
  1329. end
  1330.  
  1331. SphereShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1332. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1333. prt.Anchored = true
  1334. prt.CFrame = cframe
  1335. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1336. game:GetService("Debris"):AddItem(prt, 10)
  1337. coroutine.resume(coroutine.create(function(Part, Mesh)
  1338. for i = 0, 1, delay do
  1339. fat.Event:wait()
  1340. Part.Transparency = i
  1341. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1342. end
  1343. Part:Destroy()
  1344. end
  1345. ), prt, msh)
  1346. end
  1347.  
  1348. SphereShockwave2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1349. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1350. prt.Anchored = true
  1351. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1352. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1353. game:GetService("Debris"):AddItem(prt, 10)
  1354. coroutine.resume(coroutine.create(function(Part, Mesh)
  1355. for i = 0, 1, delay do
  1356. fat.Event:wait()
  1357. Part.Transparency = i
  1358. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1359. end
  1360. Part:Destroy()
  1361. end
  1362. ), prt, msh)
  1363. end
  1364.  
  1365. Shockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1366. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1367. prt.Anchored = true
  1368. prt.CFrame = cframe
  1369. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1370. game:GetService("Debris"):AddItem(prt, 10)
  1371. coroutine.resume(coroutine.create(function(Part, Mesh)
  1372. for i = 0, 1, delay do
  1373. fat.Event:wait()
  1374. Part.CFrame = Part.CFrame
  1375. Part.Transparency = i
  1376. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1377. end
  1378. Part:Destroy()
  1379. end
  1380. ), prt, msh)
  1381. end
  1382.  
  1383. leftlegangle = 0
  1384. leftlegcframe = 0
  1385. leftlegcframe2 = 0
  1386. leftlegcframe3 = 0
  1387. rightlegangle = 0
  1388. rightlegcframe = 0
  1389. rightlegcframe2 = 0
  1390. rightlegcframe3 = 0
  1391. leftarmangle = 0
  1392. rightarmangle = 0
  1393. rightlegangle2 = 0
  1394. leftlegangle2 = 0
  1395. MMouse = mouse
  1396. canidle = true
  1397. canwalk = true
  1398. holdz = false
  1399. zshooting = false
  1400. gyroenabled = false
  1401. ShotTarget = RootPart
  1402. runningsound = Head.Running
  1403. local robloxidleanimation = Instance.new("Animation", Torso)
  1404. robloxidleanimation.Name = "robloxidleanimation"
  1405. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1406. local floatingaura = Instance.new("Sound", Torso)
  1407. floatingaura.SoundId = "http://www.roblox.com/asset/?id=343063967"
  1408. floatingaura.Volume = 0.25
  1409. floatingaura.Pitch = 0.75
  1410. floatingaura.Looped = true
  1411. gyro = Instance.new("BodyGyro")
  1412. gyro.Parent = nil
  1413. gyro.P = 10000000
  1414. gyro.D = 1000
  1415. gyro.MaxTorque = Vector3.new(0, 10000000, 0)
  1416. Clone = function()
  1417. for _,v in pairs(Torso.Parent:children()) do
  1418. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  1419. local rainbowcolor = BrickColor.new(0)
  1420. do
  1421. n = v:clone()
  1422. n:BreakJoints()
  1423. n.archivable = true
  1424. n.Anchored = true
  1425. n.CanCollide = false
  1426. n.TopSurface = "SmoothNoOutlines"
  1427. n.BottomSurface = "SmoothNoOutlines"
  1428. n.LeftSurface = "SmoothNoOutlines"
  1429. n.RightSurface = "SmoothNoOutlines"
  1430. n.FrontSurface = "SmoothNoOutlines"
  1431. n.BackSurface = "SmoothNoOutlines"
  1432. n.Name = "Trail"
  1433. n.BrickColor = rainbowcolor
  1434. n.Parent = workspace
  1435. n.CFrame = v.CFrame
  1436. for _,v in pairs(n:children()) do
  1437. if v.Name == "face" then
  1438. v:Destroy()
  1439. end
  1440. end
  1441. game:GetService("Debris"):AddItem(n, 2)
  1442. coroutine.resume(coroutine.create(function()
  1443. while n.Parent ~= nil do
  1444. wait()
  1445. rainbowcolor = BrickColor.new(23)
  1446. wait()
  1447. rainbowcolor = BrickColor.new(107)
  1448. wait()
  1449. rainbowcolor = BrickColor.new(37)
  1450. wait()
  1451. rainbowcolor = BrickColor.new(119)
  1452. wait()
  1453. rainbowcolor = BrickColor.new(24)
  1454. wait()
  1455. rainbowcolor = BrickColor.new(106)
  1456. wait()
  1457. rainbowcolor = BrickColor.new(21)
  1458. wait()
  1459. rainbowcolor = BrickColor.new(104)
  1460. end
  1461. end
  1462. ))
  1463. coroutine.resume(coroutine.create(function(ne)
  1464. for i = 1, 80 do
  1465. ne:BreakJoints()
  1466. ne.Transparency = i / 80
  1467. ne.BrickColor = rainbowcolor
  1468. fat.Event:wait()
  1469. end
  1470. ne.Parent = nil
  1471. end
  1472. ), n)
  1473. end
  1474. end
  1475. end
  1476. end
  1477.  
  1478. equipanim = function()
  1479. attack = true
  1480. so("http://roblox.com/asset/?id=367850772", Torso, 1, 0.75)
  1481. speed.Value = speed.Value - 0.4
  1482. Humanoid.WalkSpeed = 16 * speed.Value
  1483. runningsound.Volume = 0
  1484. for i = 0, 1, 0.12 do
  1485. fat.Event:wait()
  1486. Humanoid.CameraOffset = Vector3.new(0, 0 + 3 * i, 0)
  1487. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1488. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1489. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  1490. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  1491. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * i)), 0.3)
  1492. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  1493. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(135), math.rad(0), math.rad(45)), 0.3)
  1494. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(135), math.rad(0), math.rad(-45)), 0.3)
  1495. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1496. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1497. end
  1498. Humanoid.CameraOffset = Vector3.new(0, 3, 0)
  1499. for i = 0, 1, 0.12 do
  1500. fat.Event:wait()
  1501. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1502. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1503. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  1504. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  1505. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1506. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  1507. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(135 - 45 * i), math.rad(0), math.rad(45)), 0.3)
  1508. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(135 - 45 * i), math.rad(0), math.rad(-45)), 0.3)
  1509. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1510. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1511. end
  1512. for i = 0, 1, 0.18 do
  1513. fat.Event:wait()
  1514. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1515. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1516. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1517. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1518. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-45)), 0.3)
  1519. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
  1520. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1521. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1522. end
  1523. so("http://roblox.com/asset/?id=340722848", Torso, 0.5, 2)
  1524. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 1.75)
  1525. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 1, 1, 1, 0.05)
  1526. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 1, 1, 1, 0.05)
  1527. for i = 0, 1, 0.06 do
  1528. fat.Event:wait()
  1529. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1530. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1531. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1532. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1533. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-45)), 0.3)
  1534. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
  1535. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1536. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1537. end
  1538. speed.Value = speed.Value + 0.3
  1539. Humanoid.WalkSpeed = 16 * speed.Value
  1540. floatingaura:Play()
  1541. attack = false
  1542. end
  1543.  
  1544. unequipanim = function()
  1545. attack = true
  1546. gyro.Parent = nil
  1547. gyroenabled = false
  1548. so("http://roblox.com/asset/?id=367850772", Torso, 0.75, 1.25)
  1549. speed.Value = speed.Value - 0.3
  1550. Humanoid.WalkSpeed = 16 * speed.Value
  1551. for i = 0, 1, 0.08 do
  1552. fat.Event:wait()
  1553. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1554. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1555. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  1556. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  1557. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1558. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1559. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(90)), 0.3)
  1560. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-90)), 0.3)
  1561. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1562. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1563. end
  1564. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 0.75)
  1565. for i = 0, 1, 0.06 do
  1566. fat.Event:wait()
  1567. Humanoid.CameraOffset = Vector3.new(0, 3 - 3 * i, 0)
  1568. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1569. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  1570. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  1571. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  1572. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 3 * i) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1573. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1574. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(90 - 70 * i)), 0.3)
  1575. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-90 + 70 * i)), 0.3)
  1576. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1577. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1578. end
  1579. floatingaura:Stop()
  1580. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1581. for i = 0, 1, 0.06 do
  1582. fat.Event:wait()
  1583. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1584. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1585. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1586. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1587. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1588. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1589. end
  1590. runningsound.Volume = 0.5
  1591. speed.Value = speed.Value + 0.4
  1592. Humanoid.WalkSpeed = 16 * speed.Value
  1593. attack = false
  1594. end
  1595.  
  1596. attackone = function()
  1597. attack = true
  1598. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 1)
  1599. for i = 0, 1, 0.2 do
  1600. fat.Event:wait()
  1601. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1602. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  1603. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-60)), 0.3)
  1604. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(135), math.rad(0), math.rad(-45)), 0.3)
  1605. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  1606. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1607. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1608. end
  1609. so("http://roblox.com/asset/?id=340722848", Torso, 0.75, 1.75)
  1610. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.05, 0.05, 0.05, 0.05)
  1611. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1612. startingrefpart.Anchored = true
  1613. startingrefpart.CFrame = RootPart.CFrame * cf(0, 3, -15)
  1614. game:GetService("Debris"):AddItem(startingrefpart, 3)
  1615. RainbowBlockShockwave(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.05)
  1616. MagniDamage(startingrefpart, 20, 10, 15, 10, "Normal")
  1617. for i = 1, math.random(2, 4) do
  1618. RainbowOrbEffect(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.04)
  1619. end
  1620. for i = 0, 1, 0.2 do
  1621. fat.Event:wait()
  1622. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1623. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(30)), 0.3)
  1624. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(45)), 0.3)
  1625. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1626. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1627. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1628. end
  1629. attack = false
  1630. end
  1631.  
  1632. attacktwo = function()
  1633. attack = true
  1634. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 1.25)
  1635. for i = 0, 1, 0.2 do
  1636. fat.Event:wait()
  1637. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1638. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  1639. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(60)), 0.3)
  1640. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3)
  1641. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(135), math.rad(0), math.rad(45)), 0.3)
  1642. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1643. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1644. end
  1645. so("http://roblox.com/asset/?id=340722848", Torso, 0.75, 1.5)
  1646. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.05, 0.05, 0.05, 0.05)
  1647. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1648. startingrefpart.Anchored = true
  1649. startingrefpart.CFrame = RootPart.CFrame * cf(0, 3, -15)
  1650. game:GetService("Debris"):AddItem(startingrefpart, 3)
  1651. RainbowBlockShockwave(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.05)
  1652. MagniDamage(startingrefpart, 20, 10, 15, 10, "Normal")
  1653. for i = 1, math.random(2, 4) do
  1654. RainbowOrbEffect(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.04)
  1655. end
  1656. for i = 0, 1, 0.2 do
  1657. fat.Event:wait()
  1658. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1659. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.3)
  1660. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1661. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-45)), 0.3)
  1662. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1663. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1664. end
  1665. attack = false
  1666. end
  1667.  
  1668. attackthree = function()
  1669. attack = true
  1670. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 0.75)
  1671. for i = 0, 1, 0.2 do
  1672. fat.Event:wait()
  1673. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1674. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1675. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1676. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(15)), 0.3)
  1677. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(45)), 0.3)
  1678. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1679. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1680. end
  1681. for i = 0, 1, 0.2 do
  1682. fat.Event:wait()
  1683. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1684. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1685. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1686. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(5)), 0.3)
  1687. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(45)), 0.3)
  1688. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1689. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1690. end
  1691. for i = 1, 2 do
  1692. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1693. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1694. startingrefpart.Anchored = true
  1695. startingrefpart.CFrame = RootPart.CFrame * cf(math.random(-10, 10), 400, -20 + math.random(-10, 10))
  1696. game:GetService("Debris"):AddItem(startingrefpart, 3)
  1697. local hit, pos = rayCast(startingrefpart.Position, CFrame.new(startingrefpart.Position, startingrefpart.Position - Vector3.new(0, 1, 0)).lookVector, 500, Character)
  1698. if hit ~= nil then
  1699. floor = true
  1700. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1701. refpart.Anchored = true
  1702. refpart.CFrame = cf(pos)
  1703. game:GetService("Debris"):AddItem(refpart, 3)
  1704. MagniDamage(refpart, 10, 10, 15, 0, "Normal")
  1705. so("http://roblox.com/asset/?id=367932544", refpart, 0.5, 1)
  1706. RainbowCylinderShockwave(cf(refpart.Position), 0.1, 0.01, 0.1, 3, 0.01, 3, 0.05)
  1707. for i = 1, math.random(5, 10) do
  1708. RainbowLightning(startingrefpart.Position, refpart.Position, 5, math.random(5, 10), 0.5, 0.5, 2)
  1709. end
  1710. end
  1711. do
  1712. for i = 0, 1, 0.08 do
  1713. fat.Event:wait()
  1714. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  1715. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(-lv.z / 1), math.rad(-lv.x / 1), math.rad(0)), 0.3)
  1716. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1717. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(5)), 0.3)
  1718. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(45)), 0.3)
  1719. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1720. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1721. end
  1722. -- DECOMPILER ERROR at PC846: LeaveBlock: unexpected jumping out DO_STMT
  1723.  
  1724. end
  1725. end
  1726. attack = false
  1727. end
  1728.  
  1729. ChangeMode = function()
  1730. attack = true
  1731. so("http://roblox.com/asset/?id=367850772", Torso, 0.75, math.random(80, 120) / 100)
  1732. for i = 0, 1, 0.06 do
  1733. fat.Event:wait()
  1734. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1735. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1736. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1737. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1738. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(75)), 0.3)
  1739. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-75)), 0.3)
  1740. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1741. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1742. end
  1743. attack = false
  1744. end
  1745.  
  1746. canlaser = true
  1747. canrainstar = true
  1748. LaserShot = function()
  1749. canlaser = false
  1750. local theactualstartingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1751. theactualstartingrefpart.Anchored = true
  1752. theactualstartingrefpart.CFrame = RootPart.CFrame * cf(0, 1000, 0)
  1753. game:GetService("Debris"):AddItem(theactualstartingrefpart, 0.1)
  1754. local spread = Vector3.new(math.random(-10, 10), 0, math.random(-10, 10))
  1755. local MainPos = theactualstartingrefpart.Position
  1756. local MainPos2 = MMouse.Hit.p + spread
  1757. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1758. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10000, ShotTarget.Parent)
  1759. if hit ~= nil then
  1760. local actualstartingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1761. actualstartingrefpart.Anchored = true
  1762. actualstartingrefpart.CFrame = cf(pos)
  1763. game:GetService("Debris"):AddItem(actualstartingrefpart, 0.1)
  1764. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1765. startingrefpart.Anchored = true
  1766. startingrefpart.CFrame = actualstartingrefpart.CFrame * cf(0, 400, 0)
  1767. game:GetService("Debris"):AddItem(startingrefpart, 0.1)
  1768. local hit, pos = rayCast(startingrefpart.Position, CFrame.new(startingrefpart.Position, startingrefpart.Position - Vector3.new(0, 1, 0)).lookVector, 500, Character)
  1769. if hit ~= nil then
  1770. floor = true
  1771. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1772. refpart.Anchored = true
  1773. refpart.CFrame = cf(pos)
  1774. game:GetService("Debris"):AddItem(refpart, 0.1)
  1775. MagniDamage(refpart, 10, 20, 30, 0, "Normal")
  1776. so("http://roblox.com/asset/?id=367932544", refpart, 0.5, math.random(80, 120) / 100)
  1777. RainbowCylinderShockwave(cf(refpart.Position), 18, 0.01, 18, 1, 0.01, 1, 0.05)
  1778. RainbowLightning(startingrefpart.Position, refpart.Position, 5, math.random(5, 10), 6, 0.5, 10)
  1779. end
  1780. end
  1781. do
  1782. wait(0.25)
  1783. canlaser = true
  1784. end
  1785. end
  1786.  
  1787. starcount = 0
  1788. StarRain = function()
  1789. canrainstar = false
  1790. starcount = math.random(1, 8)
  1791. if starcount == 1 or starcount == 2 or starcount == 3 or starcount == 4 or starcount == 5 or starcount == 6 or starcount == 7 then
  1792. startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1793. startingrefpart.Anchored = true
  1794. startingrefpart.CFrame = RootPart.CFrame * cf(math.random(-20, 20), math.random(30, 40), math.random(-20, 20))
  1795. game:GetService("Debris"):AddItem(startingrefpart, 2)
  1796. so("http://roblox.com/asset/?id=367850840", startingrefpart, 0.75, math.random(75, 125) / 100)
  1797. local spread = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  1798. do
  1799. local MainPos = startingrefpart.Position
  1800. local MainPos2 = MMouse.Hit.p + spread
  1801. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1802. local speed = 0.01
  1803. local num = 300
  1804. local rotation = 0
  1805. coroutine.resume(coroutine.create(function()
  1806. repeat
  1807. swait(1)
  1808. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, ShotTarget.Parent)
  1809. --local mag = MainPos - pos.magnitude
  1810. RainbowStar(CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, math.rad(-90), math.rad(rotation)), 10, 10, 10, 0.01, 0.01, 0.01, 0.125)
  1811. MainPos = MainPos + MouseLook.lookVector * speed
  1812. num = num - 1
  1813. rotation = rotation - 5
  1814. coroutine.resume(coroutine.create(function()
  1815. wait(0.25)
  1816. speed = 2
  1817. end
  1818. ))
  1819. if hit ~= nil then
  1820. num = 0
  1821. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1822. refpart.Anchored = true
  1823. refpart.CFrame = cf(pos)
  1824. game:GetService("Debris"):AddItem(refpart, 2)
  1825. RainbowSphereShockwave(cf(refpart.Position), 50, 50, 50, 0.1, 0.1, 0.1, 0.075)
  1826. MagniDamage(refpart, 15, 20, 30, 0, "Normal")
  1827. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(100, 150) / 100)
  1828. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(100, 150) / 100)
  1829. end
  1830. if num <= 0 then
  1831. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1832. refpart.Anchored = true
  1833. refpart.CFrame = cf(pos)
  1834. game:GetService("Debris"):AddItem(refpart, 2)
  1835. RainbowSphereShockwave(cf(refpart.Position), 50, 50, 50, 0.1, 0.1, 0.1, 0.075)
  1836. MagniDamage(refpart, 15, 20, 30, 0, "Normal")
  1837. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(100, 150) / 100)
  1838. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(100, 150) / 100)
  1839. end
  1840. until num <= 0
  1841. end
  1842. ))
  1843. end
  1844. else
  1845. do
  1846. if starcount == 8 then
  1847. startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1848. startingrefpart.Anchored = true
  1849. startingrefpart.CFrame = RootPart.CFrame * cf(math.random(-20, 20), math.random(30, 40), math.random(-20, 20))
  1850. game:GetService("Debris"):AddItem(startingrefpart, 2)
  1851. so("http://roblox.com/asset/?id=367850840", startingrefpart, 0.75, math.random(45, 55) / 100)
  1852. local spread = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  1853. local MainPos = startingrefpart.Position
  1854. local MainPos2 = MMouse.Hit.p + spread
  1855. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1856. local speed = 0.01
  1857. local num = 300
  1858. local rotation = 0
  1859. coroutine.resume(coroutine.create(function()
  1860. repeat
  1861. swait(1)
  1862. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, ShotTarget.Parent)
  1863. local mag = MainPos - pos.magnitude
  1864. RainbowStar(CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, math.rad(-90), math.rad(rotation)), 20, 20, 20, 0.01, 0.01, 0.01, 0.125)
  1865. MainPos = MainPos + MouseLook.lookVector * speed
  1866. num = num - 1
  1867. rotation = rotation - 5
  1868. coroutine.resume(coroutine.create(function()
  1869. wait(0.25)
  1870. speed = 1
  1871. end
  1872. ))
  1873. if hit ~= nil then
  1874. num = 0
  1875. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1876. refpart.Anchored = true
  1877. refpart.CFrame = cf(pos)
  1878. game:GetService("Debris"):AddItem(refpart, 2)
  1879. RainbowSphereShockwave(cf(refpart.Position), 100, 100, 100, 0.1, 0.1, 0.1, 0.075)
  1880. MagniDamage(refpart, 27.5, 40, 60, 0, "Normal")
  1881. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(50, 100) / 100)
  1882. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(50, 100) / 100)
  1883. end
  1884. if num <= 0 then
  1885. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1886. refpart.Anchored = true
  1887. refpart.CFrame = cf(pos)
  1888. game:GetService("Debris"):AddItem(refpart, 2)
  1889. RainbowSphereShockwave(cf(refpart.Position), 100, 100, 100, 0.1, 0.1, 0.1, 0.075)
  1890. MagniDamage(refpart, 27.5, 40, 60, 0, "Normal")
  1891. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(50, 100) / 100)
  1892. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(50, 100) / 100)
  1893. end
  1894. until num <= 0
  1895. end
  1896. ))
  1897. end
  1898. do
  1899. wait(math.random(80, 140) / 100)
  1900. canrainstar = true
  1901. end
  1902. end
  1903. end
  1904. end
  1905.  
  1906. LasersandStars = function()
  1907. holdz = true
  1908. attack = true
  1909. so("http://roblox.com/asset/?id=367850772", Torso, 0.75, math.random(80, 120) / 100)
  1910. speed.Value = speed.Value - 0.5
  1911. Humanoid.WalkSpeed = 16 * speed.Value
  1912. for i = 0, 1, 0.06 do
  1913. fat.Event:wait()
  1914. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1915. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1916. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1917. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1918. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(75)), 0.3)
  1919. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  1920. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1921. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1922. end
  1923. do
  1924. while holdz == true do
  1925. for i = 0, 1, 0.5 do
  1926. fat.Event:wait()
  1927. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  1928. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(-lv.z / 1), math.rad(-lv.x / 1), math.rad(0)), 0.3)
  1929. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1930. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(75)), 0.3)
  1931. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  1932. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1933. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1934. end
  1935. if holdz == false then
  1936. speed.Value = speed.Value + 0.5
  1937. Humanoid.WalkSpeed = 16 * speed.Value
  1938. break
  1939. end
  1940. end
  1941. attack = false
  1942. end
  1943. end
  1944.  
  1945. prepare = function()
  1946. attack = true
  1947. so("http://roblox.com/asset/?id=367850772", Torso, 0.75, math.random(80, 120) / 100)
  1948. Humanoid.WalkSpeed = 16 * speed.Value
  1949. for i = 0, 1, 0.06 do
  1950. fat.Event:wait()
  1951. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1952. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  1953. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1954. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1955. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(75)), 0.3)
  1956. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  1957. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1958. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1959. end
  1960. attack = false
  1961. end
  1962.  
  1963. Teleport = function()
  1964. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1965. refpart.Anchored = true
  1966. refpart.CFrame = Torso.CFrame
  1967. game:GetService("Debris"):AddItem(refpart, 1)
  1968. so("http://roblox.com/asset/?id=367932544", refpart, 0.5, 0.75)
  1969. RainbowBlockShockwave(refpart.CFrame, 2, 2, 2, 2, 2, 2, 0.1)
  1970. Character:MoveTo(MMouse.Hit.p)
  1971. wait()
  1972. so("http://roblox.com/asset/?id=367932544", Torso, 0.5, 1.25)
  1973. RainbowBlockShockwave(Torso.CFrame, 2, 2, 2, 2, 2, 2, 0.1)
  1974. end
  1975.  
  1976. hold = false
  1977. holdx = false
  1978. laserhold = false
  1979. ob1d = function(mouse)
  1980. if attack == false and equipped == true then
  1981. if attack == false and attacktype == 1 then
  1982. attacktype = 1
  1983. StarRain()
  1984. elseif attack == false and attacktype == 2 then
  1985. attacktype = 2
  1986. prepare()
  1987. end
  1988. end
  1989. end
  1990. if holdz == true and equipped == true and gyroenabled == true and canlaser == true then
  1991. laserhold = true
  1992. while laserhold == true do
  1993. LaserShot()
  1994. end
  1995. end
  1996. --end
  1997.  
  1998. ob1u = function(mouse)
  1999. if laserhold == true then
  2000. laserhold = false
  2001. end
  2002. end
  2003.  
  2004. k = function(k)
  2005. if k == "f" and attack == false then
  2006. if equipped == false then
  2007. equipped = true
  2008. RSH.Parent = nil
  2009. LSH.Parent = nil
  2010. RW.Parent = ch.Torso
  2011. LW.Parent = ch.Torso
  2012. animate.Disabled = true
  2013. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2014. idleanimation:Play()
  2015. equipanim()
  2016. coroutine.resume(coroutine.create(function()
  2017. while equipped == true do
  2018. wait(0.1)
  2019. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  2020. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  2021. end
  2022. end
  2023. ))
  2024. else
  2025. do
  2026. if equipped == true then
  2027. equipped = false
  2028. unequipanim()
  2029. swait(0)
  2030. animate.Disabled = false
  2031. RW.Parent = nil
  2032. LW.Parent = nil
  2033. RSH.Parent = player.Character.Torso
  2034. LSH.Parent = player.Character.Torso
  2035. end
  2036. if k == "e" and attack == false and equipped == true then
  2037. if gyro.Parent == RootPart then
  2038. ChangeMode()
  2039. gyro.Parent = nil
  2040. gyroenabled = false
  2041. else
  2042. if gyro.Parent == nil then
  2043. ChangeMode()
  2044. gyro.Parent = RootPart
  2045. gyroenabled = true
  2046. coroutine.resume(coroutine.create(function()
  2047. while gyroenabled == true do
  2048. wait(0.1)
  2049. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  2050. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  2051. end
  2052. end
  2053. ))
  2054. end
  2055. end
  2056. end
  2057. if k == "z" and attack == false and gyroenabled == true then
  2058. LasersandStars()
  2059. end
  2060. if k == "z" and holdz == true and gyroenabled == true then
  2061. holdz = false
  2062. end
  2063. if k == "x" and canrainstar == true and holdz == true and canrainstar == true then
  2064. holdx = true
  2065. while holdx == true do
  2066. StarRain()
  2067. end
  2068. end
  2069. if k == "c" and attack == false and gyroenabled == true and holdz == false then
  2070. Teleport()
  2071. end
  2072. end
  2073. end
  2074. end
  2075. end
  2076.  
  2077. k2 = function(k)
  2078. if k == "x" and equipped == true then
  2079. holdx = false
  2080. end
  2081. end
  2082.  
  2083. k4 = function(k)
  2084. if k == "q" and equipped == true and attacktype == 1 then
  2085. attacktype=2
  2086. elseif k == "q" and equipped == true and attacktype == 2 then
  2087. attacktype=1
  2088. end
  2089. end
  2090.  
  2091. teleportkey = function(k)
  2092. if k == "c" and equipped == true then
  2093. Teleport()
  2094. end
  2095. end
  2096.  
  2097. ztog1 = function(k)
  2098. if k == "z" and equipped == true and attack == false then
  2099. LasersandStars()
  2100. end
  2101. end
  2102.  
  2103. ztog2 = function(k)
  2104. if k == "z" and equipped == true and attack == false and holdz == true then
  2105. holdz = false
  2106. end
  2107. end
  2108.  
  2109. lazer = function(k)
  2110. if k == "x" and equipped == true and attack == false then --and canlaser == true then
  2111. LaserShot()
  2112. end
  2113. end
  2114.  
  2115.  
  2116. s = function(mouse)
  2117. mouse.Button1Down:connect(function()
  2118. ob1d(mouse)
  2119. end
  2120. )
  2121. mouse.Button1Up:connect(function()
  2122. ob1u(mouse)
  2123. end
  2124. )
  2125. mouse.KeyDown:connect(lazer)
  2126. mouse.KeyDown:connect(ztog1)
  2127. mouse.KeyDown:connect(ztog2)
  2128. mouse.KeyDown:connect(teleportkey)
  2129. mouse.KeyDown:connect(k4)
  2130. mouse.KeyDown:connect(k)
  2131. mouse.KeyUp:connect(k2)
  2132. player = Player
  2133. ch = Character
  2134. MMouse = mouse
  2135. end
  2136.  
  2137.  
  2138.  
  2139. ds = function(mouse)
  2140. end
  2141.  
  2142. Bin.Selected:connect(s)
  2143. Bin.Deselected:connect(ds)
  2144. local donum = 0
  2145. local sine = 0
  2146. local change = 1
  2147. local val = 0
  2148. fat.Event:connect(function()
  2149. ammolabel.Text = "Speed [" .. speed.Value .. "]"
  2150. ammolabel2.Text = "Damage [" .. damagea.Value .. "]"
  2151. ammolabel3.Text = "Defense [" .. defense.Value .. "]"
  2152. gyro.CFrame = CFrame.new(Vector3.new(1, 0, 1), cam.CoordinateFrame.p - RootPart.CFrame.p.unit * -100)
  2153. sine = sine + change
  2154. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2155. local velderp = RootPart.Velocity.y
  2156. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2157. if donum >= 0.5 then
  2158. handidle = true
  2159. else
  2160. if donum <= 0 then
  2161. handidle = false
  2162. end
  2163. end
  2164. if handidle == false then
  2165. donum = donum + 0.003
  2166. else
  2167. donum = donum - 0.003
  2168. end
  2169. if equipped == true or equipped == false then
  2170. if attack == false then
  2171. idle = idle + 1
  2172. else
  2173. idle = 0
  2174. end
  2175. if ((idle >= 500 and attack ~= false) or RootPart.Velocity.y > 1) and hitfloor == nil then
  2176. Anim = "Jump"
  2177. if attack == false and equipped == true and gyroenabled == false then
  2178. fat.Event:wait()
  2179. Humanoid.WalkSpeed = 16 * speed.Value
  2180. else
  2181. if attack == false and equipped == true and gyroenabled == true then
  2182. fat.Event:wait()
  2183. Humanoid.WalkSpeed = 16 * speed.Value
  2184. end
  2185. end
  2186. else
  2187. if RootPart.Velocity.y < -1 and hitfloor == nil then
  2188. Anim = "Fall"
  2189. if attack == false and equipped == true and gyroenabled == false then
  2190. fat.Event:wait()
  2191. Humanoid.WalkSpeed = 16 * speed.Value
  2192. else
  2193. if attack == false and equipped == true and gyroenabled == true then
  2194. fat.Event:wait()
  2195. Humanoid.WalkSpeed = 16 * speed.Value
  2196. end
  2197. end
  2198. else
  2199. if torvel<1 and hitfloor~=nil then --torvel.x < 1 and torvel.z < 1 and hitfloor ~= nil then
  2200. Anim = "Idle"
  2201. if attack == false and equipped == true and gyroenabled == false then
  2202. fat.Event:wait()
  2203. Humanoid.WalkSpeed = 16 * speed.Value
  2204. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2205. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  2206. RW.C0 = clerp(RW.C0, CFrame.new(0.75, 0.5 - 0.1 * math.cos(sine / 20), -0.35) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(70), math.rad(80)), 0.3)
  2207. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5 - 0.1 * math.cos(sine / 20), -0.45) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(-60), math.rad(-90)), 0.3)
  2208. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  2209. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  2210. else
  2211. if attack == false and equipped == true and gyroenabled == true then
  2212. fat.Event:wait()
  2213. Humanoid.WalkSpeed = 16 * speed.Value
  2214. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2215. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  2216. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15 + 5 * math.cos(sine / 20)), math.rad(-15), math.rad(30 + 5 * math.cos(sine / 20))), 0.3)
  2217. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15 + 5 * math.cos(sine / 20)), math.rad(15), math.rad(-30 - 5 * math.cos(sine / 20))), 0.3)
  2218. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  2219. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  2220. end
  2221. end
  2222. else
  2223. if torvel>2 and torvel<22 and hitfloor~=nil then --torvel.x < 2 and torvel.z < 2 and hitfloor ~= nil then --RootPart.Velocity.y < 2 or RootPart.Velocity.z > 2 and hitfloor ~= nil then
  2224. Anim = "Walk"
  2225. if attack == false and equipped == true and gyroenabled == false then
  2226. fat.Event:wait()
  2227. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  2228. Humanoid.WalkSpeed = 16 * speed.Value
  2229. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(20 * speed.Value), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(0)), 0.3)
  2230. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0) + Head.RotVelocity.Y / 15), 0.3)
  2231. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20 * speed.Value), math.rad(0), math.rad(20)), 0.3)
  2232. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20 * speed.Value), math.rad(0), math.rad(-20)), 0.3)
  2233. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20 * speed.Value), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2234. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20 * speed.Value), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2235. else
  2236. do
  2237. if attack == false and equipped == true and gyroenabled == true then
  2238. fat.Event:wait()
  2239. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  2240. Humanoid.WalkSpeed = 16 * speed.Value
  2241. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(-lv.z / 1), math.rad(-lv.x / 1), math.rad(0)), 0.3)
  2242. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(lv.z / 1), math.rad(lv.x / 1), math.rad(0)), 0.3)
  2243. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(lv.z / 1), math.rad(0), math.rad(10 + -lv.x / 1)), 0.3)
  2244. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(lv.z / 1), math.rad(0), math.rad(-10 + -lv.x / 1)), 0.3)
  2245. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(lv.z / 1), math.rad(90), math.rad(0)) * angles(math.rad(-5 + lv.x / 1), math.rad(0), math.rad(0)), 0.3)
  2246. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(lv.z / 1), math.rad(-90), math.rad(0)) * angles(math.rad(-5 + -lv.x / 1), math.rad(0), math.rad(0)), 0.3)
  2247. end
  2248. end
  2249. end
  2250. end
  2251. end
  2252. end
  2253. end
  2254. end
  2255. end
  2256. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement