Advertisement
memberhero

Giant Fidget Spinner script

Dec 1st, 2017
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 82.65 KB | None | 0 0
  1. wait(1)
  2. folder = Instance.new("Folder")
  3. folder.Name = "Remotes"
  4. folder.Parent = game.ReplicatedStorage
  5. event = Instance.new("RemoteEvent")
  6. event.Name = "HealthEvent"
  7. event.Parent = folder
  8. local Character = game.Players.localPlayer.Character
  9. local Humanoid=Character.Humanoid
  10. script.Parent=nil
  11. wait()
  12. if Character:FindFirstChild"Animate" then
  13. Character.Animate:Destroy()
  14. end--[[Thanks to NightOwlAce for giving me permission to do stuff to his Halcyon.]]--
  15. wait(1/60)
  16. Player = game.Players.LocalPlayer
  17. Character = Player.Character
  18. PlayerGui = Player.PlayerGui
  19. Backpack = Player.Backpack
  20. Torso = Character.Torso
  21. Head = Character.Head
  22. Humanoid = Character.Humanoid
  23. LeftArm = Character["Left Arm"]
  24. LeftLeg = Character["Left Leg"]
  25. RightArm = Character["Right Arm"]
  26. RightLeg = Character["Right Leg"]
  27. Character = Player.Character
  28. PlayerGui = Player.PlayerGui
  29. Backpack = Player.Backpack
  30. Torso = Character.Torso
  31. Head = Character.Head
  32. Humanoid = Character.Humanoid
  33. LeftArm = Character["Left Arm"]
  34. LeftLeg = Character["Left Leg"]
  35. RightArm = Character["Right Arm"]
  36. RightLeg = Character["Right Leg"]
  37. LS = Torso["Left Shoulder"]
  38. LH = Torso["Left Hip"]
  39. RS = Torso["Right Shoulder"]
  40. RH = Torso["Right Hip"]
  41. Neck = Torso.Neck
  42. attacktype = 1
  43. vt = Vector3.new
  44. cf = CFrame.new
  45. euler = CFrame.fromEulerAnglesXYZ
  46. angles = CFrame.Angles
  47. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  48. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  49. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  50. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  51. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  52. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  53. RootPart = Character.HumanoidRootPart
  54. RootJoint = RootPart.RootJoint
  55. RootCF = euler(-1.57, 0, 3.14)
  56. attack = false
  57. equipped = true
  58. local Anim = "Idle"
  59. local Effects = {}
  60. cam = workspace.CurrentCamera
  61. ZTarget = nil
  62. RocketTarget = nil
  63. local RbxUtility = LoadLibrary("RbxUtility")
  64. local Create = RbxUtility.Create
  65. local m = Create("Model"){
  66. Parent = Character,
  67. Name = "WeaponModel",
  68. }
  69. mouse = Player:GetMouse()
  70. RSH, LSH = nil, nil
  71. LH = Torso["Left Hip"]
  72. RH = Torso["Right Hip"]
  73. RSH = Torso["Right Shoulder"]
  74. LSH = Torso["Left Shoulder"]
  75.  
  76. RSH.Parent = nil
  77. LSH.Parent = nil
  78.  
  79. RW = Create("Motor"){
  80. Name = "Right Shoulder",
  81. Part0 = Torso ,
  82. C0 = cf(1.5, 0.5, 0),
  83. C1 = cf(0, 0.5, 0),
  84. Part1 = RightArm ,
  85. Parent = Torso ,
  86. }
  87.  
  88. LW = Create("Motor"){
  89. Name = "Left Shoulder",
  90. Part0 = Torso ,
  91. C0 = cf(-1.5, 0.5, 0),
  92. C1 = cf(0, 0.5, 0) ,
  93. Part1 = LeftArm ,
  94. Parent = Torso ,
  95. }
  96. if Humanoid:findFirstChild("Animator")then
  97. Humanoid:findFirstChild("Animator"):Destroy()
  98. end
  99.  
  100. local co1 = 14--how long it will take for skill to cooldown
  101. local co2 = 15
  102. local co3 = 22
  103. local co4 = 30
  104.  
  105. local cooldown1 = 0
  106. local cooldown2 = 0
  107. local cooldown3 = 0
  108. local cooldown4 = 0
  109.  
  110. local maxEnergy = 100
  111. local Energy = 0--Energy you start out with
  112. local skill1stam = 20--how much Energy is needed for a skill
  113. local skill2stam = 25
  114. local skill3stam = 30
  115. local skill4stam = 50
  116. local recovermana = 3--how much mana per second
  117.  
  118. TorsoColor=Torso.BrickColor
  119. Colorpart1=Torso.BrickColor.r
  120. Colorpart2=Torso.BrickColor.g
  121. Colorpart3=Torso.BrickColor.b
  122.  
  123. local colorscheme2 = Color3.new(Colorpart1,Colorpart2,Colorpart3)
  124.  
  125. local skillcolorscheme = Color3.new(1,1,1)
  126.  
  127. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  128. function makeframe(par, trans, pos, size, color)
  129. local frame = Instance.new('Frame', par)
  130. frame.BackgroundTransparency = trans
  131. frame.BorderSizePixel = 0
  132. frame.Position = pos
  133. frame.Size = size
  134. frame.BackgroundColor3 = color
  135. return frame
  136. end
  137. function makelabel(par, text)
  138. local label = Instance.new('TextLabel', par)
  139. label.BackgroundTransparency = 1
  140. label.Size = UDim2.new(1, 0, 1, 0)
  141. label.Position = UDim2.new(0, 0, 0, 0)
  142. label.TextColor3 = Color3.new(255, 255, 255)
  143. label.TextStrokeTransparency = 0
  144. label.FontSize = Enum.FontSize.Size32
  145. label.Font = Enum.Font.SourceSansBold
  146. label.BorderSizePixel = 0
  147. label.TextScaled = true
  148. label.Text = text
  149. end
  150. framesk1 = makeframe(scrn, .5, UDim2.new(.23, 0, .93, 0), UDim2.new(.26, 0, .06, 0), colorscheme2)
  151. framesk2 = makeframe(scrn, .5, UDim2.new(.5, 0, .93, 0), UDim2.new(.26, 0, .06, 0), colorscheme2)
  152. framesk3 = makeframe(scrn, .5, UDim2.new(.5, 0, .86, 0), UDim2.new(.26, 0, .06, 0), colorscheme2)
  153. framesk4 = makeframe(scrn, .5, UDim2.new(.23, 0, .86, 0), UDim2.new(.26, 0, .06, 0), colorscheme2)
  154. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  155. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  156. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  157. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  158. text1 = makelabel(framesk1, '[C] Energy Wave')
  159. text2 = makelabel(framesk2, '[V] Energy Laser')
  160. text3 = makelabel(framesk3, "[X] Energy Burst")
  161. text4 = makelabel(framesk4, '[Z] Energy Shots')
  162. Energybar = makeframe(scrn, .5, UDim2.new(.23, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Really black").Color)
  163. Energycover = makeframe(Energybar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Cyan").Color)
  164. Energytext = makelabel(Energybar, 'Energy')
  165. healthbar = makeframe(scrn, .5, UDim2.new(.5, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Really black").Color)
  166. healthcover = makeframe(healthbar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Lime green").Color)
  167. healthtext = makelabel(healthbar, 'Health')
  168.  
  169. local stats=Instance.new('Folder',Character)
  170. stats.Name='Stats'
  171. local block=Instance.new('BoolValue',stats)
  172. block.Name='Block'
  173. block.Value=false
  174. local stun=Instance.new('BoolValue',stats)
  175. stun.Name='Stun'
  176. stun.Value=false
  177. local defense=Instance.new('NumberValue',stats)
  178. defense.Name='Defence'
  179. defense.Value=1
  180. local speed=Instance.new('NumberValue',stats)
  181. speed.Name='Speed'
  182. speed.Value=1
  183. local damagea=Instance.new('NumberValue',stats)
  184. damagea.Name='Damage'
  185. damagea.Value=1
  186.  
  187. function NoOutline(Part)
  188. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  189. end
  190.  
  191. function swait(num)
  192. if num == 0 or num == nil then
  193. game:service'RunService'.RenderStepped:wait(0)
  194. else
  195. for i = 0, num do
  196. game:service'RunService'.RenderStepped:wait(0)
  197. end
  198. end
  199. end
  200.  
  201. function nooutline(part)
  202. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  203. end
  204.  
  205. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  206. local fp = Create("Part"){
  207. formFactor = formfactor,
  208. Parent = parent,
  209. Reflectance = reflectance,
  210. Transparency = transparency,
  211. CanCollide = false,
  212. Locked = true,
  213. BrickColor = BrickColor.new(tostring(brickcolor)),
  214. Name = name,
  215. Size = size,
  216. Position = Character.Torso.Position,
  217. Material = material,
  218. }
  219. nooutline(fp)
  220. return fp
  221. end
  222.  
  223. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  224. local Msh = Create(Mesh){
  225. Parent = part,
  226. Offset = offset,
  227. Scale = scale,
  228. }
  229. if Mesh == "SpecialMesh" then
  230. Msh.MeshType = meshtype
  231. Msh.MeshId = meshid
  232. end
  233. return Msh
  234. end
  235.  
  236. function weld(parent, part0, part1, c0, c1)
  237. local Weld = Create("Weld"){
  238. Parent = parent,
  239. Part0 = part0,
  240. Part1 = part1,
  241. C0 = c0,
  242. C1 = c1,
  243. }
  244. return Weld
  245. end
  246.  
  247.  
  248. local function CFrameFromTopBack(at, top, back)
  249. local right = top:Cross(back)
  250. return CFrame.new(at.x, at.y, at.z,
  251. right.x, top.x, back.x,
  252. right.y, top.y, back.y,
  253. right.z, top.z, back.z)
  254. end
  255.  
  256. function Triangle(a, b, c)
  257. local edg1 = (c - a):Dot((b - a).unit)
  258. local edg2 = (a - b):Dot((c - b).unit)
  259. local edg3 = (b - c):Dot((a - c).unit)
  260. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  261. a, b, c = a, b, c
  262. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  263. a, b, c = b, c, a
  264. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  265. a, b, c = c, a, b
  266. else
  267. assert(false, "unreachable")
  268. end
  269.  
  270. local len1 = (c - a):Dot((b - a).unit)
  271. local len2 = (b - a).magnitude - len1
  272. local width = (a + (b - a).unit * len1 - c).magnitude
  273.  
  274. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  275.  
  276. local list = {}
  277.  
  278. local Color = BrickColor.new("Dark stone grey")
  279.  
  280. if len1 > 0.01 then
  281. local w1 = Create('WedgePart', m){
  282. Material = "SmoothPlastic",
  283. FormFactor = 'Custom',
  284. BrickColor = Color,
  285. Transparency = 0,
  286. Reflectance = 0,
  287. Material = "SmoothPlastic",
  288. CanCollide = false,
  289. Anchored = true,
  290. Parent = workspace,
  291. Transparency = 0.3,
  292. }
  293. game:GetService("Debris"):AddItem(w1, 5)
  294. NoOutline(w1)
  295. local sz = Vector3.new(0.2, width, len1)
  296. w1.Size = sz
  297. local sp = Create("SpecialMesh"){
  298. Parent = w1,
  299. MeshType = "Wedge",
  300. Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
  301. }
  302. w1:BreakJoints()
  303. table.insert(Effects, {
  304. w1,
  305. "Disappear",
  306. .03
  307. })
  308. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  309. table.insert(list, w1)
  310. end
  311. if len2 > 0.01 then
  312. local w2 = Create('WedgePart', m){
  313. Material = "SmoothPlastic",
  314. FormFactor = 'Custom',
  315. BrickColor = Color,
  316. Transparency = 0,
  317. Reflectance = 0,
  318. Material = "SmoothPlastic",
  319. CanCollide = false,
  320. Anchored = true,
  321. Parent = workspace,
  322. Transparency = 0.3,
  323. }
  324. game:GetService("Debris"):AddItem(w2, 5)
  325. NoOutline(w2)
  326. local sz = Vector3.new(0.2, width, len2)
  327. w2.Size = sz
  328. local sp = Create("SpecialMesh"){
  329. Parent = w2,
  330. MeshType = "Wedge",
  331. Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
  332. }
  333. w2:BreakJoints()
  334. table.insert(Effects, {
  335. w2,
  336. "Disappear",
  337. .03
  338. })
  339. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  340. table.insert(list, w2)
  341. end
  342. return unpack(list)
  343. end
  344.  
  345. function so(id, par, vol, pit)
  346. coroutine.resume(coroutine.create(function()
  347. local sou = Instance.new("Sound", par or workspace)
  348. sou.Volume = vol
  349. sou.Pitch = pit or 1
  350. sou.SoundId = Sounds[id].Id or id
  351. swait(1)
  352. sou:play()
  353. swait(6)
  354. sou:Remove()
  355. end))
  356. end
  357.  
  358. function clerp(a, b, t)
  359. local qa = {
  360. QuaternionFromCFrame(a)
  361. }
  362. local qb = {
  363. QuaternionFromCFrame(b)
  364. }
  365. local ax, ay, az = a.x, a.y, a.z
  366. local bx, by, bz = b.x, b.y, b.z
  367. local _t = 1 - t
  368. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  369. end
  370. local clerp = CFrame.new().lerp
  371.  
  372. function QuaternionFromCFrame(cf)
  373. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  374. local trace = m00 + m11 + m22
  375. if trace > 0 then
  376. local s = math.sqrt(1 + trace)
  377. local recip = 0.5 / s
  378. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  379. else
  380. local i = 0
  381. if m11 > m00 then
  382. i = 1
  383. end
  384. if m22 > (i == 0 and m00 or m11) then
  385. i = 2
  386. end
  387. if i == 0 then
  388. local s = math.sqrt(m00 - m11 - m22 + 1)
  389. local recip = 0.5 / s
  390. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  391. elseif i == 1 then
  392. local s = math.sqrt(m11 - m22 - m00 + 1)
  393. local recip = 0.5 / s
  394. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  395. elseif i == 2 then
  396. local s = math.sqrt(m22 - m00 - m11 + 1)
  397. local recip = 0.5 / s
  398. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  399. end
  400. end
  401. end
  402.  
  403. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  404. local xs, ys, zs = x + x, y + y, z + z
  405. local wx, wy, wz = w * xs, w * ys, w * zs
  406. local xx = x * xs
  407. local xy = x * ys
  408. local xz = x * zs
  409. local yy = y * ys
  410. local yz = y * zs
  411. local zz = z * zs
  412. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  413. end
  414.  
  415. function QuaternionSlerp(a, b, t)
  416. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  417. local startInterp, finishInterp;
  418. if cosTheta >= 0.0001 then
  419. if (1 - cosTheta) > 0.0001 then
  420. local theta = math.acos(cosTheta)
  421. local invSinTheta = 1 / math.sin(theta)
  422. startInterp = math.sin((1 - t) * theta) * invSinTheta
  423. finishInterp = math.sin(t * theta) * invSinTheta
  424. else
  425. startInterp = 1 - t
  426. finishInterp = t
  427. end
  428. else
  429. if (1 + cosTheta) > 0.0001 then
  430. local theta = math.acos(-cosTheta)
  431. local invSinTheta = 1 / math.sin(theta)
  432. startInterp = math.sin((t - 1) * theta) * invSinTheta
  433. finishInterp = math.sin(t * theta) * invSinTheta
  434. else
  435. startInterp = t - 1
  436. finishInterp = t
  437. end
  438. end
  439. 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
  440. end
  441.  
  442. Asset = "http://www.roblox.com/asset/?id="
  443.  
  444. Sounds = {
  445. Hit1 = {
  446. Id = Asset..(199149137)
  447. },
  448. Hit2 = {
  449. Id = Asset..(199149186)
  450. },
  451. Hit3 = {
  452. Id = Asset..(199149221)
  453. },
  454. Hit4 = {
  455. Id = Asset..(199149235)
  456. },
  457. Slash1 = {
  458. Id = Asset..(161006195)
  459. },
  460. Slash2 = {
  461. Id = Asset..(161006212)
  462. },
  463. Fire = {
  464. Id = Asset..(168413145)
  465. },
  466. Beam = {
  467. Id = Asset..(278596476)
  468. },
  469. Appear = {
  470. Id = Asset..(200633077)
  471. },
  472. Disappear = {
  473. Id = Asset..(200633029)
  474. },
  475. }
  476.  
  477. --[[ContentProvider = game:GetService("ContentProvider")
  478. for _, v in pairs(Sounds) do
  479. ContentProvider:Preload(v.Id)
  480. end]]--
  481.  
  482. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  483. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  484. end
  485.  
  486. function makegui(cframe, text)
  487. local a = math.random(-10, 10) / 100
  488. local c = Instance.new("Part",workspace)
  489. c.Transparency = 1
  490. Instance.new("BodyGyro").Parent = c
  491. c.Parent = workspace
  492. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  493. local f = Instance.new("BodyPosition")
  494. f.P = 2000
  495. f.D = 100
  496. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  497. f.position = c.Position + Vector3.new(0, 3, 0)
  498. f.Parent = c
  499. game:GetService("Debris"):AddItem(c, .5 + 6)
  500. c.CanCollide = false
  501. c.Parent = workspace
  502. c.CanCollide = false
  503. local bg = Instance.new('BillboardGui', c)
  504. bg.Adornee = c
  505. bg.Size = UDim2.new(1, 0, 1, 0)
  506. bg.StudsOffset = Vector3.new(0, 0, 0)
  507. bg.AlwaysOnTop = false
  508. local tl = Instance.new('TextLabel', bg)
  509. tl.BackgroundTransparency = 1
  510. tl.Size = UDim2.new(1, 0, 1, 0)
  511. tl.Text = text
  512. tl.Font = 'SourceSansBold'
  513. tl.FontSize = 'Size42'
  514. if crit == true then
  515. tl.TextColor3 = Color3.new(180 / 255, 0, 0)
  516. else
  517. tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
  518. end
  519. tl.TextStrokeTransparency = 0
  520. tl.TextScaled = true
  521. tl.TextWrapped = true
  522. coroutine.wrap(function()
  523. wait(2)
  524. for i = 1, 10 do
  525. swait(1)
  526. c.Transparency = 1
  527. tl.TextTransparency = tl.TextTransparency + .1
  528. end
  529. end)()
  530. end
  531.  
  532. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  533. if hit.Parent==nil then
  534. return
  535. end
  536. h=hit.Parent:FindFirstChild("Humanoid")
  537. for _,v in pairs(hit.Parent:children()) do
  538. if v:IsA("Humanoid") then
  539. h=v
  540. end
  541. end
  542. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  543. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  544. end
  545. if hit.Parent.className=="Hat" then
  546. hit=hit.Parent.Parent:findFirstChild("Head")
  547. end
  548. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  549. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  550. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  551. return
  552. end]]
  553. -- hs(hit,1.2)
  554. c=Instance.new("ObjectValue")
  555. c.Name="creator"
  556. c.Value=game:service("Players").LocalPlayer
  557. c.Parent=h
  558. game:GetService("Debris"):AddItem(c,.5)
  559. Damage=math.random(minim,maxim)
  560. -- h:TakeDamage(Damage)
  561. blocked=false
  562. block=hit.Parent:findFirstChild("Block")
  563. if block~=nil then
  564. print(block.className)
  565. if block.className=="NumberValue" then
  566. if block.Value>0 then
  567. blocked=true
  568. if decreaseblock==nil then
  569. block.Value=block.Value-1
  570. end
  571. end
  572. end
  573. if block.className=="IntValue" then
  574. if block.Value>0 then
  575. blocked=true
  576. if decreaseblock~=nil then
  577. block.Value=block.Value-1
  578. end
  579. end
  580. end
  581. end
  582. if blocked==false then
  583. local D = math.random(minim, maxim)*damagea.Value
  584. if h.Parent:FindFirstChild('Stats') then
  585. D=D/h.Parent:FindFirstChild('Stats').Defence.Value
  586. elseif not h.Parent:FindFirstChild('Stats') then
  587. D=D
  588. end
  589. h.Health=h.Health-D
  590. makegui(hit.Parent.Head.CFrame,tostring(math.floor(D+.5)))
  591. --showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
  592. else
  593. local D = math.random(minim, maxim)*damagea.Value
  594. if h.Parent:FindFirstChild('Stats') then
  595. D=D/h.Parent:FindFirstChild('Stats').Defence.Value
  596. elseif not h.Parent:FindFirstChild('Stats') then
  597. D=D
  598. end
  599. h.Health=h.Health-(D/2)
  600. makegui(hit.Parent.Head.CFrame,tostring(math.floor(D+.5)))
  601. --showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  602. end
  603. if Type=="Knockdown" then
  604. hum=hit.Parent.Humanoid
  605. hum.PlatformStand=true
  606. coroutine.resume(coroutine.create(function(HHumanoid)
  607. swait(1)
  608. HHumanoid.PlatformStand=false
  609. end),hum)
  610. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  611. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  612. local bodvol=Instance.new("BodyVelocity")
  613. bodvol.velocity=angle*knockback
  614. bodvol.P=5000
  615. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  616. bodvol.Parent=hit
  617. rl=Instance.new("BodyAngularVelocity")
  618. rl.P=3000
  619. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  620. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  621. rl.Parent=hit
  622. game:GetService("Debris"):AddItem(bodvol,.5)
  623. game:GetService("Debris"):AddItem(rl,.5)
  624. elseif Type=="Normal" then
  625. so("Hit1",hit,1,math.random(150,200)/100)
  626. vp=Instance.new("BodyVelocity")
  627. vp.P=500
  628. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  629. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  630. if KnockbackType==1 then
  631. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  632. elseif KnockbackType==2 then
  633. vp.velocity=Property.CFrame.lookVector*knockback
  634. end
  635. if knockback>0 then
  636. vp.Parent=hit.Parent.Torso
  637. end
  638. game:GetService("Debris"):AddItem(vp,.5)
  639. elseif Type=="Up" then
  640. local bodyVelocity=Instance.new("BodyVelocity")
  641. bodyVelocity.velocity=vt(0,60,0)
  642. bodyVelocity.P=5000
  643. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  644. bodyVelocity.Parent=hit
  645. game:GetService("Debris"):AddItem(bodyVelocity,1)
  646. rl=Instance.new("BodyAngularVelocity")
  647. rl.P=3000
  648. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  649. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  650. rl.Parent=hit
  651. game:GetService("Debris"):AddItem(rl,.5)
  652. elseif Type=="Snare" then
  653. bp=Instance.new("BodyPosition")
  654. bp.P=2000
  655. bp.D=100
  656. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  657. bp.position=hit.Parent.Torso.Position
  658. bp.Parent=hit.Parent.Torso
  659. game:GetService("Debris"):AddItem(bp,1)
  660. elseif Type=="Target" then
  661. if Targetting==false then
  662. ZTarget=hit.Parent.Torso
  663. coroutine.resume(coroutine.create(function(Part)
  664. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  665. swait(5)
  666. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  667. end),ZTarget)
  668. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  669. targetgui=Instance.new("BillboardGui")
  670. targetgui.Parent=ZTarget
  671. targetgui.Size=UDim2.new(10,100,10,100)
  672. targ=Instance.new("ImageLabel")
  673. targ.Parent=targetgui
  674. targ.BackgroundTransparency=1
  675. targ.Image="rbxassetid://4834067"
  676. targ.Size=UDim2.new(1,0,1,0)
  677. cam.CameraType="Scriptable"
  678. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  679. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  680. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  681. Targetting=true
  682. RocketTarget=ZTarget
  683. for i=1,Property do
  684. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  685. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  686. swait(1)
  687. end
  688. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  689. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  690. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  691. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  692. end
  693. Targetting=false
  694. RocketTarget=nil
  695. targetgui.Parent=nil
  696. cam.CameraType="Custom"
  697. end
  698. end
  699. debounce=Instance.new("BoolValue")
  700. debounce.Name="DebounceHit"
  701. debounce.Parent=hit.Parent
  702. debounce.Value=true
  703. game:GetService("Debris"):AddItem(debounce,Delay)
  704. c=Instance.new("ObjectValue")
  705. c.Name="creator"
  706. c.Value=Player
  707. c.Parent=h
  708. game:GetService("Debris"):AddItem(c,.5)
  709. CRIT=false
  710. hitDeb=true
  711. AttackPos=6
  712. end
  713. end
  714.  
  715. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  716. for _,c in pairs(workspace:children()) do
  717. local hum=c:findFirstChild("Humanoid")
  718. if hum~=nil then
  719. local head=c:findFirstChild("Torso")
  720. if head~=nil then
  721. local targ=head.Position-Part.Position
  722. local mag=targ.magnitude
  723. if mag<=magni and c.Name~=Player.Name then
  724. Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3,1)
  725. end
  726. end
  727. end
  728. end
  729. end
  730.  
  731. Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, TorsoColor, "Handle", Vector3.new(1.20000005, 0.200000003, 1.20000005))
  732. Handleweld = weld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0396080017, -4.09992504, 0.0598115921, 1, -7.6153174e-011, -2.01268858e-006, 8.22890089e-011, 1, 3.084431e-006, 2.01269063e-006, -3.084431e-006, 1))
  733. mesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.660000086, 1))
  734. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.44000006, 0.200000003, 1.44000006))
  735. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.14984131e-005, 1.62124634e-005, -1.04904175e-005, 1, 1.23146328e-011, 1.07286201e-006, -1.13079598e-011, 1, -1.07284109e-006, -1.07285791e-006, 1.07284109e-006, 1))
  736. mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  737. Layer2Handle = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Layer2Handle", Vector3.new(0.480000019, 0.200000003, 0.480001062))
  738. Layer2Handleweld = weld(m, Handle, Layer2Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000301361084, 2.28881836e-005, -0.000202178955, 1, 2.70082467e-007, -1.75730406e-006, -2.70091959e-007, 1, -8.66388018e-006, 1.7573052e-006, 8.66388655e-006, 1))
  739. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, TorsoColor, "Part", Vector3.new(0.480000019, 0.200000003, 0.720000625))
  740. Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.14984131e-005, -9.53674316e-007, -2.8800478, 0.999997914, -1.93837602e-011, -1.48245363e-008, 3.90257063e-011, 1, -7.13953341e-011, 1.48336312e-008, 8.91304808e-011, 0.999997914))
  741. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  742. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, TorsoColor, "Part", Vector3.new(0.480000019, 0.200000003, 0.720000625))
  743. Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.19616699e-005, -3.24249268e-005, 2.87992668, 0.999985158, 2.87014509e-012, -1.48093022e-008, 5.66184322e-011, 1, -5.45696821e-012, 1.48470463e-008, 8.04902811e-011, 0.999985158))
  744. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  745. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.480000019, 0.200000003, 5.04000092))
  746. Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.33514404e-005, -9.53674316e-007, -0.0001039505, 0.999987781, -7.77617137e-011, -1.49125299e-008, 1.16872789e-010, 1, -1.96905603e-010, 1.493936e-008, 2.51930032e-010, 0.999987781))
  747. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  748. mesh("BlockMesh", Layer2Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  749. Layer3Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, TorsoColor, "Layer3Handle", Vector3.new(0.720000029, 0.720000029, 0.200000003))
  750. Layer3Handleweld = weld(m, Handle, Layer3Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000802993774, -0.000151634216, 3.05175781e-005, 0.999999404, 4.16033836e-005, 1.96785777e-006, 1.96798396e-006, -2.12107511e-006, -0.999999404, -4.16014955e-005, 1, -2.12118243e-006))
  751. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  752. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316e-007, -0.840223312, 3.5397892, 4.89614176e-005, 5.0135186e-006, 0.999999762, -0.999999046, 1.22189522e-005, 4.8959475e-005, -1.22783813e-005, -0.999998689, 5.01443719e-006))
  753. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  754. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  755. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000864028931, -6.00814819e-005, -3.59964466, -0.999999404, 9.70068322e-006, 3.31623378e-005, 3.31642768e-005, 4.86649742e-006, 1, 9.70056226e-006, 0.999999404, -4.86679755e-006))
  756. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  757. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  758. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.76565552e-005, -0.840137482, 3.54048443, -3.42451713e-005, -5.10578684e-006, -0.99999994, -0.999998927, -1.21146441e-005, 3.4243305e-005, -1.2144611e-005, 0.999998927, -5.10543578e-006))
  759. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  760. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  761. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000713348389, -2.76565552e-005, -3.6005826, -0.999993503, -9.68569748e-006, 5.00400529e-005, -5.00420938e-005, -4.89724516e-006, -0.999999881, 9.62627109e-006, -0.999993503, 4.89690592e-006))
  762. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  763. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  764. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-006, -0.838525772, 3.54048347, 3.57801182e-005, 5.10578639e-006, 0.99999994, 0.999999046, 1.0341405e-005, -3.57782446e-005, -1.03266702e-005, 0.999998927, -5.10551126e-006))
  765. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  766. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  767. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.7220459e-006, -0.84022522, 3.53960228, -3.45465851e-005, -1.12046393e-006, -1, 5.82638359e-006, -0.999999225, 1.12023974e-006, -0.999999225, -5.82638404e-006, 3.45446933e-005))
  768. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  769. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  770. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.86102295e-006, -0.839550018, 3.53951263, 3.41143859e-005, 1.04596313e-006, 1, -6.24368704e-006, 0.999999225, -1.04572723e-006, -0.999999225, -6.24369022e-006, 3.41124942e-005))
  771. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  772. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  773. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000238418579, -9.53674316e-006, -3.59959984, 6.28840098e-006, -0.999999225, 1.09042128e-006, -3.40994848e-005, -1.09065854e-006, -1, 0.999999225, 6.2884028e-006, -3.4097593e-005))
  774. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  775. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.19999998807907, TorsoColor, "Part", Vector3.new(0.480000019, 0.480000019, 0.200000003))
  776. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 3.81469727e-006, 0.999998808, 4.0078163e-011, 1.9098958e-009, 4.0078163e-011, 0.999998808, 2.42152964e-011, 1.9098958e-009, 2.42152964e-011, 1))
  777. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(3.58200026, 3.58200002, 2.9532001))
  778. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  779. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.00543213e-005, -0.838380814, 3.53930187, -4.74264707e-005, -5.02687499e-006, -0.999999762, 0.999999046, -1.03116026e-005, -4.74245317e-005, -1.0311428e-005, -0.999998808, 5.02768307e-006))
  780. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  781. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Really black", "Part", Vector3.new(0.480000019, 0.480000019, 0.200000003))
  782. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.999998808, 4.0078163e-011, 1.9098958e-009, 4.0078163e-011, 0.999998808, 2.42152964e-011, 1.9098958e-009, 2.42152964e-011, 1))
  783. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(3.60000014, 3.60000014, 3.60000014))
  784. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  785. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-006, -0.839694977, 3.53992653, -3.91442991e-005, -8.80631774e-007, -0.999993026, 2.27987925e-006, 0.999991357, -8.80696462e-007, 0.999997556, -2.29477519e-006, -3.92767397e-005))
  786. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  787. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  788. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000235557556, -2.38418579e-005, -3.60028458, 1.50501114e-006, -0.999997199, 8.35720812e-007, 3.47488422e-005, 8.35786693e-007, 1, -0.999997199, -1.50502308e-006, 3.47468304e-005))
  789. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  790. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  791. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.28881836e-005, -0.840080261, 3.54010582, 3.91591857e-005, 8.0613512e-007, 0.999993026, -2.25008012e-006, -0.999991, 8.06197477e-007, 0.999997556, -2.29477519e-006, -3.92916445e-005))
  792. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  793. HitboxA = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxA", Vector3.new(0.200000003, 2.48000002, 0.840000391))
  794. HitboxAweld = weld(m, Layer3Handle, HitboxA, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-6.67572021e-006, -0.039557457, 3.53951645, 3.44422551e-005, 1.04596529e-006, 1, -5.90090622e-006, 0.999999225, -1.04573905e-006, -0.999999225, -5.90090895e-006, 3.44403634e-005))
  795. HitboxB = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxB", Vector3.new(0.200000003, 2.48000026, 0.840000391))
  796. HitboxBweld = weld(m, Layer3Handle, HitboxB, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316e-007, -0.0402240753, 3.5397892, 4.89614176e-005, 5.0135186e-006, 0.999999762, -0.999999046, 1.22189522e-005, 4.8959475e-005, -1.22783813e-005, -0.999998689, 5.01443719e-006))
  797. HitboxC = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxC", Vector3.new(0.200000003, 2.28000021, 0.840000391))
  798. HitboxCweld = weld(m, Layer3Handle, HitboxC, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.76565552e-005, 0.0598621368, 3.54048443, -3.42451713e-005, -5.10578684e-006, -0.99999994, -0.999998927, -1.21146441e-005, 3.4243305e-005, -1.2144611e-005, 0.999998927, -5.10543578e-006))
  799. mesh("SpecialMesh", HitboxC, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  800. HitboxD = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxD", Vector3.new(0.200000003, 2.28000021, 0.840000391))
  801. HitboxDweld = weld(m, Layer3Handle, HitboxD, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.28881836e-005, 0.0599050522, 3.54010582, 3.91591857e-005, 8.0613512e-007, 0.999993026, -2.25008012e-006, -0.999991, 8.06197477e-007, 0.999997556, -2.29477519e-006, -3.92916445e-005))
  802. mesh("SpecialMesh", HitboxD, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  803. mesh("SpecialMesh", Layer3Handle, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6, 6, -1.21799994))
  804.  
  805. for i,v in pairs(Character:GetChildren()) do
  806. if v:IsA'Model' then
  807. for _,c in pairs(v:GetChildren()) do
  808. if c:IsA'Part' then
  809. c.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
  810. end
  811. end
  812. end
  813. end
  814.  
  815. local Lite = Create("PointLight"){
  816. Parent = Handle,
  817. Color = TorsoColor.Color,
  818. Shadows = true,
  819. Range = 20,
  820. Brightness = 0.5,
  821. }
  822.  
  823. local Spin = Create("Sound"){
  824. Parent = Handle,
  825. SoundId = "rbxassetid://143301643",
  826. Volume = 1,
  827. Pitch = 1,
  828. Looped = true,
  829. }
  830.  
  831. local Spin2 = Create("Sound"){
  832. Parent = Handle,
  833. SoundId = "rbxassetid://149560784",
  834. Volume = .7,
  835. Pitch = .8,
  836. Looped = true,
  837. }
  838.  
  839. local MoosicIGuess = Create("Sound"){
  840. Parent = Handle,
  841. SoundId = "rbxassetid://171856985",
  842. Volume = 1,
  843. Pitch = 1,
  844. Looped = true,
  845. }
  846.  
  847. local Footsteps = Create("Sound"){
  848. Parent = Torso,
  849. SoundId = "rbxassetid://336401972",
  850. Volume = 1,
  851. Pitch = 1*(Humanoid.WalkSpeed/16),
  852. Looped = true,
  853. }
  854.  
  855. Head.Running:Destroy()
  856.  
  857. --MoosicIGuess:Play()
  858.  
  859. Spin:Play()
  860.  
  861. Spin2:Play()
  862.  
  863. local particleemitter = Instance.new("ParticleEmitter", Layer3Handle)
  864. particleemitter.VelocitySpread = 180
  865. particleemitter.Lifetime = NumberRange.new(1)
  866. particleemitter.Speed = NumberRange.new(3)
  867. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 0.2)})
  868. particleemitter.Rotation = NumberRange.new(100)
  869. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.1, 0.5), NumberSequenceKeypoint.new(1, 1)})
  870. particleemitter.LightEmission = 1
  871. particleemitter.Texture = "rbxassetid://263433152"
  872. particleemitter.Color = ColorSequence.new(Color3.new(Colorpart1, Colorpart2, Colorpart3), Color3.new(Colorpart1, Colorpart2, Colorpart3))
  873.  
  874. function Reappear()
  875. for _, i in pairs(m:children()) do
  876. if i.Name == "Layer3Handle" then
  877. Part.Transparency = 1
  878. coroutine.resume(coroutine.create(function(Part)
  879. for i = 0, 1, 0.1 do
  880. swait(1)
  881. Part.Transparency = i
  882. end
  883. Part.Transparency = 0.5
  884. end), i)
  885. end
  886. end
  887. end
  888.  
  889. function Disappear()
  890. for _, i in pairs(m:children()) do
  891. if i.Name == "Layer3Handle" then
  892. Part.Transparency = .5
  893. coroutine.resume(coroutine.create(function(Part)
  894. for i = 0, 1, 0.1 do
  895. swait(1)
  896. Part.Transparency = i
  897. end
  898. Part.Transparency = 1
  899. end), i)
  900. end
  901. end
  902. end
  903.  
  904. function attackone()
  905. attack = true
  906. con1 = HitboxA.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  907. con2 = HitboxB.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  908. con3 = HitboxC.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  909. con4 = HitboxD.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  910. Reappear()
  911. for i = 0, 1, 0.1 do
  912. swait(1)
  913. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  914. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(50)), .3)
  915. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
  916. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  917. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(5, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  918. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  919. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  920. end
  921. so("Slash1", Handle, 1, 1)
  922. for i = 0, 1, 0.1 do
  923. swait(1)
  924. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .5)
  925. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), .5)
  926. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-30)), 0.5)
  927. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  928. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-2, -4, -8) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  929. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  930. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  931. end
  932. Disappear()
  933. con1:disconnect()
  934. con2:disconnect()
  935. con3:disconnect()
  936. con4:disconnect()
  937. attack = false
  938. end
  939.  
  940. function attacktwo()
  941. attack = true
  942. con1 = HitboxA.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  943. con2 = HitboxB.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  944. con3 = HitboxC.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  945. con4 = HitboxD.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  946. Reappear()
  947. for i = 0, 1, 0.1 do
  948. swait(1)
  949. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  950. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  951. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.7, -.5) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  952. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  953. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  954. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  955. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  956. end
  957. so("Slash2", Handle, 1, 1.2)
  958. for i = 0, 1, 0.2 do
  959. swait(1)
  960. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  961. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
  962. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.5)
  963. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.5)
  964. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -8) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  965. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  966. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  967. end
  968. con1:disconnect()
  969. con2:disconnect()
  970. con3:disconnect()
  971. con4:disconnect()
  972. for i = 0, 1, 0.2 do
  973. swait(1)
  974. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  975. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
  976. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.5)
  977. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.5)
  978. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -8) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  979. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  980. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  981. end
  982. Disappear()
  983. attack = false
  984. end
  985.  
  986. function attackthree()
  987. attack = true
  988. con1 = HitboxA.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  989. con2 = HitboxB.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  990. con3 = HitboxC.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  991. con4 = HitboxD.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  992. Reappear()
  993. for i = 0, 1, 0.1 do
  994. swait(1)
  995. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  996. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  997. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.8, -.5) * angles(math.rad(120), math.rad(0), math.rad(-30)), 0.3)
  998. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  999. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-10, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1000. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1001. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1002. end
  1003. so("Slash1", Handle, 1, 1.2)
  1004. for i = 0, 1, 0.1 do
  1005. swait(1)
  1006. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .5)
  1007. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(50)), .5)
  1008. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(30)), 0.5)
  1009. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  1010. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -5, -10) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1011. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1012. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1013. end
  1014. Disappear()
  1015. con1:disconnect()
  1016. con2:disconnect()
  1017. con3:disconnect()
  1018. con4:disconnect()
  1019. attack = false
  1020. end
  1021.  
  1022. function attackfour()
  1023. attack = true
  1024. con1 = HitboxA.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  1025. con2 = HitboxB.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  1026. con3 = HitboxC.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  1027. con4 = HitboxD.Touched:connect(function(hit) Damagefunc(hit,4,5,5,"Normal",RootPart,.2,1) end)
  1028. Reappear()
  1029. for i = 0, 1, 0.1 do
  1030. swait(1)
  1031. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1032. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(50)), .3)
  1033. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.3)
  1034. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(165), math.rad(-15), math.rad(75)), 0.3)
  1035. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(6, -3.5, -6) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1036. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1037. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1038. end
  1039. so("Slash1", Handle, 1, 0.8)
  1040. for i = 0, 1, 0.15 do
  1041. swait(1)
  1042. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50+280*i)), .5)
  1043. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), .5)
  1044. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(-45)), 0.5)
  1045. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-45), math.rad(-75)), 0.5)
  1046. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-6, -3.5, -6) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1047. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1048. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1049. end
  1050. for i = 0, 1, 0.1 do
  1051. swait(1)
  1052. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1053. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1054. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.3)
  1055. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-15), math.rad(-75)), 0.3)
  1056. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-9, -3.5, -1.5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1057. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1058. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1059. end
  1060. Disappear()
  1061. con1:disconnect()
  1062. con2:disconnect()
  1063. con3:disconnect()
  1064. con4:disconnect()
  1065. attack = false
  1066. end
  1067.  
  1068. --local hovering = false
  1069.  
  1070. local Hover = false
  1071.  
  1072. --local Animator = Humanoid.Animator
  1073.  
  1074. function OnHover()
  1075. so("Appear",Handle,1,1)
  1076. attack = true
  1077. Energy = Energy-10
  1078. -- Animator.Parent = nil
  1079. -- Character.Animate.Disabled = true
  1080. Hover = true
  1081. Humanoid.Jump=true
  1082. --Humanoid.JumpPower = 0
  1083. Humanoid.CameraOffset = Vector3.new(0, 3.5, 0)
  1084. speed.Value = 1.3
  1085. Reappear()
  1086. attack = false
  1087. end
  1088.  
  1089. function OffHover()
  1090. so("Disappear",Handle,1,1)
  1091. attack = true
  1092. -- Animator.Parent = Humanoid
  1093. -- Character.Animate.Disabled = false
  1094. Hover = false
  1095. Humanoid.Jump=true
  1096. Humanoid.JumpPower = 50
  1097. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1098. speed.Value = 1
  1099. Disappear()
  1100. attack = false
  1101. end
  1102.  
  1103. function CylinderEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1104. local prt=part(3,Character,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1105. prt.Anchored=true
  1106. prt.CFrame=cframe
  1107. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1108. game:GetService("Debris"):AddItem(prt,5)
  1109. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1110. end
  1111.  
  1112. RocketTarget = RootPart
  1113. function ShootCannon(asd)
  1114. local MainPos=asd.Position
  1115. local MainPos2=mouse.Hit.p
  1116. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  1117. num=30
  1118. coroutine.resume(coroutine.create(function()
  1119. repeat
  1120. wait()
  1121. local hit,pos = rayCast(MainPos,MouseLook.lookVector,10,RocketTarget.Parent)
  1122. local mag=(MainPos-pos).magnitude
  1123. CylinderEffect(TorsoColor,CFrame.new((MainPos+pos)/2,pos)*angles(1.57,0,0),3,mag*5,3,1.5,0,1.5,0.1)
  1124. MainPos=MainPos+(MouseLook.lookVector*10)
  1125. num=num-1
  1126. if hit~=nil then
  1127. num=0
  1128. local ref=part(3,workspace,"Neon",0,1,TorsoColor,"Reference",vt())
  1129. ref.Anchored=true
  1130. ref.CFrame=cf(pos)
  1131. MagniDamage(ref,12,5,7,10,"Normal")
  1132. game:GetService("Debris"):AddItem(ref,5)
  1133. end
  1134. until num<=0
  1135. end))
  1136. end
  1137.  
  1138. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  1139. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1140. prt.Anchored = true
  1141. prt.CFrame = cframe
  1142. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1143. coroutine.resume(coroutine.create(function()
  1144. for i = 0, 1, 0.05 do
  1145. wait()
  1146. prt.Transparency = i
  1147. msh.Scale = msh.Scale + vt(x2, y2, z2)
  1148. end
  1149. prt.Parent = nil
  1150. end))
  1151. end
  1152.  
  1153. function BlockEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1154. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
  1155. prt.Anchored=true
  1156. prt.CFrame=cframe
  1157. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1158. game:GetService("Debris"):AddItem(prt,5)
  1159. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  1160. end
  1161.  
  1162. function FireProjectiles()
  1163. attack = true
  1164. so("Appear",Handle,1,1)
  1165. Reappear()
  1166. for i = 0,1,0.1 do
  1167. swait(1)
  1168. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .25)
  1169. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .25)
  1170. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-15)), 0.25)
  1171. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(-30)), 0.25)
  1172. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 7.5, -5) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  1173. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1174. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1175. end
  1176. speed.Value = 0.5
  1177. for i = 1,6 do
  1178. ShootCannon(Handle)
  1179. BlockEffect(TorsoColor,Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
  1180. so("Beam",Handle,1,1.5)
  1181. for i = 0,1,0.1 do
  1182. swait(1)
  1183. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25)
  1184. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .25)
  1185. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(15)), 0.25)
  1186. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, 0.5) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.25)
  1187. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 7.5, -5-2*i) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  1188. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1189. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1190. end
  1191. end
  1192. Disappear()
  1193. so("Disappear",Handle,1,1)
  1194. speed.Value = 1
  1195. attack = false
  1196. end
  1197.  
  1198. function EnergyBurst()
  1199. attack = true
  1200. so("Appear",Handle,1,1)
  1201. for i = 0,1,0.1 do
  1202. swait(1)
  1203. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1204. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1205. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1206. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1207. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(10, -4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1208. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1209. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1210. end
  1211. Reappear()
  1212. so("Slash1", Handle, 1, 1.2)
  1213. for i = 0,1,0.1 do
  1214. swait(1)
  1215. BlockEffect(TorsoColor,Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
  1216. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), .3)
  1217. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  1218. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1219. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-50)), 0.3)
  1220. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(15, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1221. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1222. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1223. end
  1224. Disappear()
  1225. so("Disappear",Handle,1,1)
  1226. so("Fire", Handle, 1, 1.2)
  1227. so("Fire", Handle, 1, .8)
  1228. MagniDamage(Handle,24,8,14,10,"Normal")
  1229. BlastEffect(TorsoColor, Handle.CFrame, .1, .1, .1, 1, 1, 1)
  1230. for i = 1,5 do
  1231. BlockEffect(TorsoColor,Handle.CFrame,1,1,1,5,5,5,0.05)
  1232. end
  1233. for i = 0,1,0.15 do
  1234. swait(1)
  1235. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1236. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1237. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1238. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1239. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(10, -4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1240. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1241. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1242. end
  1243. attack = false
  1244. end
  1245.  
  1246. function WaveEffect(Part,cframe1,cframe2,Damage,Size)
  1247. coroutine.resume(coroutine.create(function()
  1248. local wave=part(1,workspace,"Neon",0,0,TorsoColor,"Effect",vt(3,3,10))
  1249. wave.Anchored=true
  1250. wave.CFrame=Part.CFrame*cframe1
  1251. so("Beam",wave,1,1.3)
  1252. MagniDamage(wave,12,6,15,10,"Normal")
  1253. local Msh = Create("SpecialMesh"){
  1254. Parent = wave,
  1255. MeshType = "Sphere"
  1256. }
  1257. BlockEffect(TorsoColor,wave.CFrame,1,1,1,3,3,3,0.05)
  1258. local PE1 = Create("ParticleEmitter"){
  1259. Parent = wave,
  1260. Color = ColorSequence.new(TorsoColor.Color),
  1261. Transparency = NumberSequence.new(.5),
  1262. Size = NumberSequence.new(1),
  1263. Texture = "rbxassetid://249270319",
  1264. Lifetime = NumberRange.new(1),
  1265. Rate = 50,
  1266. VelocitySpread = 180,
  1267. Rotation = NumberRange.new(0),
  1268. Speed = NumberRange.new(5),
  1269. LightEmission = 1,
  1270. }
  1271. for i=0,1,0.2 do
  1272. wait()
  1273. local dir = wave.CFrame.lookVector*-1
  1274. local pos = rayCast(wave.Position,dir,5,Character)
  1275. wave.CFrame=wave.CFrame*cframe2
  1276. Effects[#Effects+1]={wave,"Cylinder",0.01,.03,.03,.03}
  1277. end
  1278. end))
  1279. end
  1280.  
  1281. function Wave()
  1282. attack = true
  1283. Reappear()
  1284. so("Appear",Handle,1,.8)
  1285. for i = 0, 1, 0.025 do
  1286. swait(1)
  1287. BlockEffect(TorsoColor,Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1288. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1289. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1290. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1291. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1292. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  1293. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1294. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1295. end
  1296. so("Slash2",Handle,1,.4)
  1297. speed.Value = 0
  1298. local inc=-10
  1299. for i=1,8 do
  1300. WaveEffect(Torso,CFrame.new(0,-5,inc)*CFrame.fromEulerAnglesXYZ(-2,0,1.57),CFrame.new(0,0,0.8),10,5)
  1301. inc=inc-7
  1302. end
  1303. for i = 0, 1, 0.1 do
  1304. swait(1)
  1305. BlockEffect(TorsoColor,Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1306. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .75)
  1307. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .75)
  1308. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.5) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.75)
  1309. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-50)), 0.75)
  1310. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -10) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.75)
  1311. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.75)
  1312. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.75)
  1313. end
  1314. speed.Value = 1
  1315. Disappear()
  1316. so("Disappear",Handle,1,.8)
  1317. attack = false
  1318. end
  1319.  
  1320. function LaserBarrage(Prt,Parent)
  1321. attack=true
  1322. --so("BeamLockon",Prt,1,1)
  1323. local efprt=part(3,Parent,"Neon",0,0.5,TorsoColor,"Effect",vt(5,5,5))
  1324. efprt.Anchored=true
  1325. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  1326. local spread=vt(0,0,0)
  1327. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  1328. game:GetService("Debris"):AddItem(Part,6)
  1329. local TheHit=mouse.Hit.p
  1330. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
  1331. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  1332. so("Elec",Prt,0.2,1)
  1333. local tefprt=part(3,workspace,"Neon",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1334. tefprt.CFrame=cf(pos)
  1335. MagicCircle(TorsoColor,cf(pos),5,5,5,5,5,5,0.04)
  1336. so("Elec",tefprt,0.3,1)
  1337. MagniDamage(tefprt,12,7,17,10,"Normal")
  1338. game:GetService("Debris"):AddItem(tefprt,3)
  1339. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  1340. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  1341. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  1342. end
  1343. end
  1344. local mag=(Prt.Position-pos).magnitude
  1345. MagicCylinder(TorsoColor,Part.CFrame,1,mag*5,1,5,5,5,0.05)
  1346. Part.Parent=nil
  1347. end),efprt,efmsh,spread)
  1348. end
  1349.  
  1350. function SuperLaser()
  1351. attack = true
  1352. so("Appear",Handle,1,0.5)
  1353. speed.Value = 0.25
  1354. Reappear()
  1355. for i = 0,1,0.15 do
  1356. swait(1)
  1357. BlockEffect(TorsoColor,Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1358. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1359. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), .5)
  1360. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(50)), 0.5)
  1361. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(-50)), 0.5)
  1362. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1363. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1364. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1365. end
  1366. for i=1,3 do
  1367. for i = 0,1,0.05 do
  1368. swait(1)
  1369. BlockEffect(TorsoColor,Handle.CFrame*cf(0,1,0),.1,.1,.1,1,1,1,0.05)
  1370. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1371. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), .5)
  1372. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(50)), 0.5)
  1373. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(-50)), 0.5)
  1374. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 10, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  1375. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1376. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1377. end
  1378. LaserBarrage(Handle,Character)
  1379. so("Beam",Handle,1,0.8)
  1380. end
  1381. for i = 0,1,0.1 do
  1382. swait(1)
  1383. BlockEffect(TorsoColor,Handle.CFrame*cf(0,1,0),.1,.1,.1,1,1,1,0.05)
  1384. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1385. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), .5)
  1386. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(50)), 0.5)
  1387. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(-50)), 0.5)
  1388. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 10, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  1389. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1390. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1391. end
  1392. Disappear()
  1393. so("Disappear",Handle,1,.7)
  1394. for i = 0,1,0.1 do
  1395. swait(1)
  1396. BlockEffect(TorsoColor,Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1397. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1398. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), .5)
  1399. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(50)), 0.5)
  1400. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(-50)), 0.5)
  1401. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1402. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1403. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1404. end
  1405. speed.Value = 1
  1406. attack = false
  1407. end
  1408.  
  1409. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1410. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1411. prt.Anchored=true
  1412. prt.CFrame=cframe
  1413. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1414. game:GetService("Debris"):AddItem(prt,2)
  1415. coroutine.resume(coroutine.create(function(Part,Mesh)
  1416. for i=0,1,delay do
  1417. swait(1)
  1418. Part.CFrame=Part.CFrame
  1419. Part.Transparency=i
  1420. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1421. end
  1422. Part.Parent=nil
  1423. end),prt,msh)
  1424. end
  1425.  
  1426. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1427. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1428. prt.Anchored=true
  1429. prt.CFrame=cframe
  1430. prt.CanCollide = false
  1431. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1432. game:GetService("Debris"):AddItem(prt,2)
  1433. coroutine.resume(coroutine.create(function(Part,Mesh)
  1434. for i=0,1,delay do
  1435. swait(1)
  1436. Part.CFrame=Part.CFrame
  1437. Part.Transparency=i
  1438. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1439. end
  1440. Part.Parent=nil
  1441. end),prt,msh)
  1442. end
  1443.  
  1444. mouse.Button1Down:connect(function()
  1445. if attack == false and Hover == false and attacktype == 1 then
  1446. attacktype = 2
  1447. attackone()
  1448. elseif attack == false and Hover == false and attacktype == 2 then
  1449. attacktype = 3
  1450. attacktwo()
  1451. elseif attack == false and Hover == false and attacktype == 3 then
  1452. attacktype = 4
  1453. attackthree()
  1454. elseif attack == false and Hover == false and attacktype == 4 then
  1455. attacktype = 1
  1456. attackfour()
  1457. end
  1458. coroutine.resume(coroutine.create(function()
  1459. for i=1,50 do
  1460. if attack==false then
  1461. swait(1)
  1462. end
  1463. end
  1464. if attack==false then
  1465. attacktype=1
  1466. end
  1467. end))
  1468. end)
  1469.  
  1470. function subtractEnergy(k)
  1471. if Energy>=k then
  1472. Energy=Energy-k
  1473. end
  1474. end
  1475.  
  1476. holdr=false
  1477.  
  1478. mouse.KeyDown:connect(function(k)
  1479. k = k:lower()
  1480. if attack == false and k == 'e' and Hover == false and Energy>=25 then
  1481. Hover = true
  1482. OnHover()
  1483. while Hover == true and Energy>=0 do
  1484. swait(1)
  1485. Energy = Energy-(2/10)
  1486. BlockEffect(TorsoColor,cf(Handle.Position),.1,.1,.1,0.5,0.5,0.5,0.05)
  1487. end
  1488. elseif attack == false and k == 'e' and Hover == true then
  1489. Hover = false
  1490. OffHover()
  1491. end
  1492. if Energy<=0 then
  1493. Hover = false
  1494. OffHover()
  1495. end
  1496. if attack == false and k == 'z' and Hover == false and cooldown1 >= co1 and Energy>=skill1stam then
  1497. subtractEnergy(skill1stam)
  1498. cooldown1=0
  1499. FireProjectiles()
  1500. elseif attack == false and k == 'x' and Hover == false and cooldown2 >= co2 and Energy>=skill2stam then
  1501. subtractEnergy(skill2stam)
  1502. cooldown2=0
  1503. EnergyBurst()
  1504. elseif attack == false and k == 'c' and Hover == false and cooldown3 >= co3 and Energy>=skill3stam then
  1505. subtractEnergy(skill3stam)
  1506. cooldown3=0
  1507. Wave()
  1508. elseif attack == false and k == 'v' and Hover == false and cooldown4 >= co4 and Energy>=skill4stam then
  1509. subtractEnergy(skill4stam)
  1510. cooldown4=0
  1511. SuperLaser()
  1512. end
  1513. end)
  1514.  
  1515. mouse.KeyDown:connect(function(k)
  1516. end)
  1517.  
  1518. function updateskills()
  1519. if cooldown1 <= co1 then
  1520. cooldown1 = cooldown1 + 1 / 30
  1521. end
  1522. if cooldown2 <= co2 then
  1523. cooldown2 = cooldown2 + 1 / 30
  1524. end
  1525. if cooldown3 <= co3 then
  1526. cooldown3 = cooldown3 + 1 / 30
  1527. end
  1528. if cooldown4 <= co4 then
  1529. cooldown4 = cooldown4 + 1 / 30
  1530. end
  1531. if Energy<=skill1stam then
  1532. bar4.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1533. else
  1534. bar4.BackgroundColor3=skillcolorscheme
  1535. end
  1536. if Energy<=skill2stam then
  1537. bar3.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1538. else
  1539. bar3.BackgroundColor3=skillcolorscheme
  1540. end
  1541. if Energy<=skill3stam then
  1542. bar1.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1543. else
  1544. bar1.BackgroundColor3=skillcolorscheme
  1545. end
  1546. if Energy<=skill4stam then
  1547. bar2.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1548. else
  1549. bar2.BackgroundColor3=skillcolorscheme
  1550. end
  1551. if Energy <= maxEnergy then
  1552. Energy = Energy + recovermana / 30
  1553. end
  1554. end
  1555.  
  1556. local sine = 0
  1557. local change = 1
  1558. local val = 0
  1559. local idle = 0
  1560. local donum = 0
  1561. local donum2 = 0
  1562.  
  1563. while true do
  1564. swait(1)
  1565. Humanoid.WalkSpeed = 16*speed.Value
  1566. updateskills()
  1567. healthcover:TweenSize(UDim2.new(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
  1568. Energycover:TweenSize(UDim2.new(1 * (Energy / maxEnergy), 0, 1, 0), 'Out', 'Quad', .5)
  1569. bar4:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  1570. bar3:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  1571. bar1:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  1572. bar2:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  1573. sine = sine + change
  1574. torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1575. velderp = RootPart.Velocity.y
  1576. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1577. if equipped == true or equipped == false then
  1578. if attack == false then
  1579. idle = idle + 1
  1580. else
  1581. idle = 0
  1582. end
  1583. if idle >= 500 then
  1584. if attack == false then
  1585. end
  1586. end
  1587. if donum2 >= .5 then
  1588. handidle = true
  1589. elseif donum2 <= 0 then
  1590. handidle = false
  1591. end
  1592. if handidle == false then
  1593. donum2 = donum2 + 0.003
  1594. else
  1595. donum2 = donum2 - 0.003
  1596. end
  1597. donum = donum + 0.003
  1598. if RootPart.Velocity.y > 1 and hitfloor == nil then
  1599. Anim = "Jump"
  1600. if attack == false and Hover == false then
  1601. Footsteps:Stop()
  1602. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1603. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1604. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1605. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1606. RH.C0 = clerp(RH.C0, cf(1, -.8, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  1607. LH.C0 = clerp(LH.C0, cf(-1, -1, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
  1608. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20*math.cos(sine/60))), 0.3)
  1609. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1610. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1611. elseif attack == false and Hover == true then
  1612. Footsteps:Stop()
  1613. Humanoid.JumpPower = 0
  1614. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1615. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1616. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1617. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1618. RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  1619. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(2), math.rad(0), math.rad(0)), .3)
  1620. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1621. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1622. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1623. end
  1624. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1625. Anim = "Fall"
  1626. if attack == false and Hover == false then
  1627. Footsteps:Stop()
  1628. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1629. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1630. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1631. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1632. RH.C0 = clerp(RH.C0, cf(1, -.7, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  1633. LH.C0 = clerp(LH.C0, cf(-1, -.9, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
  1634. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20*math.cos(sine/60))), 0.3)
  1635. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1636. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1637. elseif attack == false and Hover == true then
  1638. Footsteps:Stop()
  1639. Humanoid.JumpPower = 0
  1640. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1641. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1642. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1643. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1644. RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  1645. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(2), math.rad(0), math.rad(0)), .3)
  1646. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1647. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1648. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1649. end
  1650. elseif torvel < 1 and hitfloor ~= nil then
  1651. Anim = "Idle"
  1652. change = 1
  1653. if attack == false and Hover == false then
  1654. Footsteps:Stop()
  1655. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1+0.1*math.cos(sine/7)) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1656. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5+2.5*math.cos(sine/7))+ -math.sin(sine/7)/14, math.rad(0), math.rad(30)), .3)
  1657. RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.4-0.1*math.cos(sine/7)+ math.sin(sine/7)/14, -.7) * angles(math.rad(85), math.rad(0+2.5*math.cos(sine/7)), math.rad(-70)), 0.3)
  1658. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.4-0.1*math.cos(sine/7)+ math.sin(sine/7)/14, -.3) * angles(math.rad(70), math.rad(0-2.5*math.cos(sine/7)), math.rad(70)), 0.3)
  1659. RH.C0 = clerp(RH.C0, cf(1, -0.9-0.1*math.cos(sine/7), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1660. LH.C0 = clerp(LH.C0, cf(-1, -0.9-0.1*math.cos(sine/7), 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1661. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20*math.cos(sine/60))), 0.3)
  1662. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1663. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1664. elseif attack == true and Hover == false then
  1665. Footsteps:Stop()
  1666. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1667. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1668. elseif attack == false and Hover == true then
  1669. Footsteps:Stop()
  1670. Humanoid.JumpPower = 0
  1671. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5+0.2*math.cos(sine/15)) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1672. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10+3.5*math.cos(sine/15))-math.sin(sine/15)/15, math.rad(0), math.rad(0)), .3)
  1673. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1674. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1675. RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  1676. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(2), math.rad(0), math.rad(0)), .3)
  1677. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1678. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1679. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1680. end
  1681. elseif torvel > 2 and hitfloor ~= nil then
  1682. Anim = "Walk"
  1683. if attack == false and Hover == false then
  1684. change = 1
  1685. Footsteps:Play()
  1686. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0+0.1*(Humanoid.WalkSpeed/16)*math.cos(sine/1.75)) * angles(math.rad(10), math.rad(0)+RootPart.RotVelocity.Y/45, math.rad(5*(Humanoid.WalkSpeed/16)*math.cos(sine/3.5))), .3)
  1687. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-5*(Humanoid.WalkSpeed/16)*math.cos(sine/3.5))+Head.RotVelocity.Y/15), .3)
  1688. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(45*(Humanoid.WalkSpeed/16) * math.cos(sine / 3.5)), math.rad(0), math.rad(5)), 0.3)
  1689. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-45*(Humanoid.WalkSpeed/16) * math.cos(sine / 3.5)), math.rad(0), math.rad(-5)), 0.3)
  1690. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-45*(Humanoid.WalkSpeed/16) * math.cos(sine / 3.5)), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1691. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(45*(Humanoid.WalkSpeed/16) * math.cos(sine / 3.5)), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1692. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20*math.cos(sine/60))), 0.3)
  1693. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1694. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1695. elseif attack == true and Hover == false then
  1696. Footsteps:Play()
  1697. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-45*(Humanoid.WalkSpeed/16) * math.cos(sine / 3.5)), math.rad(90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3)
  1698. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(45*(Humanoid.WalkSpeed/16) * math.cos(sine / 3.5)), math.rad(-90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3)
  1699. elseif attack == false and Hover == true then
  1700. Footsteps:Stop()
  1701. Humanoid.JumpPower = 0
  1702. change = 1
  1703. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5+0.2*math.cos(sine/15)) * angles(math.rad(30-3.5*math.cos(sine/15)), math.rad(0)+RootPart.RotVelocity.Y/15, math.rad(0)), .3)
  1704. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-15-3.5*math.cos(sine/15))-math.sin(sine/15)/15, math.rad(0), math.rad(0)+Head.RotVelocity.Y/15), .3)
  1705. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.45, 0) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1706. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.45, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1707. RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1708. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  1709. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1710. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .008, math.rad(0)), 0.3)
  1711. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .009, math.rad(0)), 0.3)
  1712. end
  1713. end
  1714. end
  1715. if #Effects > 0 then
  1716. for e = 1, #Effects do
  1717. if Effects[e] ~= nil then
  1718. local Thing = Effects[e]
  1719. if Thing ~= nil then
  1720. local Part = Thing[1]
  1721. local Mode = Thing[2]
  1722. local Delay = Thing[3]
  1723. local IncX = Thing[4]
  1724. local IncY = Thing[5]
  1725. local IncZ = Thing[6]
  1726. if Thing[1].Transparency <= 1 then
  1727. if Thing[2] == "Block1" then
  1728. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1729. Mesh = Thing[1].Mesh
  1730. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1731. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1732. elseif Thing[2] == "Cylinder" then
  1733. Mesh = Thing[1].Mesh
  1734. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1735. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1736. elseif Thing[2] == "Blood" then
  1737. Mesh = Thing[7]
  1738. Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
  1739. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1740. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1741. elseif Thing[2] == "Elec" then
  1742. Mesh = Thing[1].Mesh
  1743. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1744. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1745. elseif Thing[2] == "Disappear" then
  1746. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1747. end
  1748. else
  1749. Part.Parent = nil
  1750. table.remove(Effects, e)
  1751. end
  1752. end
  1753. end
  1754. end
  1755. end
  1756. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement