Advertisement
OofNoob

Minix15/Pain again

Mar 13th, 2018
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.54 KB | None | 0 0
  1. --custom chat by tomonaoboys (it will be my 2nd custom chat which has uploaded)
  2. function chatfunc(text)
  3. spawn(function()
  4. local rs=game:service'RunService'.RenderStepped
  5. local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
  6. local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart
  7. local s=Instance.new("Sound",Character)s.SoundId="rbxassetid://418252437"s.Volume=2
  8. if Character:FindFirstChild("cht")then Character.cht:Destroy()end
  9. local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffset=Vector3.new(0,4.5,0)b.Name="cht"
  10. local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0)
  11. local texts={}
  12. for i=1,snum do
  13. texts[i]=Instance.new("TextLabel",b)
  14. texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30
  15. texts[i].Text=text:sub(i,i)texts[i].Position=UDim2.new((i-1)/snum,0,.3,0)texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(255, 255, 0)
  16. texts[i].TextStrokeTransparency=1 texts[i].Font="Antique"texts[i].TextScaled=1 texts[i].TextTransparency=1
  17. end
  18. for i=1,#texts do
  19. if texts[i].Parent then
  20. texts[i].TextTransparency=0 texts[i].Rotation=math.random(-30,30)texts[i].TextStrokeTransparency=.6
  21. end
  22. if texts[i].Text~=" "then s:Play()end
  23. sw(3)
  24. end
  25. sw(60)
  26. for i=1,#texts do
  27. if texts[i].Parent then texts[i].Text="~"texts[i].Rotation=0 end
  28. end
  29. s.Volume=1 s.SoundId="rbxassetid://138093550"s:Play()s.Ended:connect(function()s:Destroy()b:Destroy()end)
  30. game:service'Debris':AddItem(b,5)
  31. end)
  32. end
  33. game:service'Players'.LocalPlayer.Chatted:connect(function(msg)chatfunc(game:service("Chat"):FilterStringAsync(msg,game:service'Players'.LocalPlayer,game:service'Players'.LocalPlayer))
  34. end)
  35. --//====================================================\\--
  36. --|| CREATED BY SHACKLUSTER
  37. --\\====================================================//--
  38.  
  39.  
  40.  
  41. wait(0.2)
  42.  
  43.  
  44.  
  45. Player = game:GetService("Players").LocalPlayer
  46. PlayerGui = Player.PlayerGui
  47. Cam = workspace.CurrentCamera
  48. Backpack = Player.Backpack
  49. Character = Player.Character
  50. Humanoid = Character.Humanoid
  51. Mouse = Player:GetMouse()
  52. RootPart = Character["HumanoidRootPart"]
  53. Torso = Character["Torso"]
  54. Head = Character["Head"]
  55. RightArm = Character["Right Arm"]
  56. LeftArm = Character["Left Arm"]
  57. RightLeg = Character["Right Leg"]
  58. LeftLeg = Character["Left Leg"]
  59. RootJoint = RootPart["RootJoint"]
  60. Neck = Torso["Neck"]
  61. RightShoulder = Torso["Right Shoulder"]
  62. LeftShoulder = Torso["Left Shoulder"]
  63. RightHip = Torso["Right Hip"]
  64. LeftHip = Torso["Left Hip"]
  65. local sick = Instance.new("Sound",Character)
  66. sick.SoundId = "rbxassetid://277784505"
  67. sick.Looped = true
  68. sick.Pitch = 1
  69. sick.Volume = 1
  70. sick:Play()
  71. NUMBEROPARTS = 16
  72.  
  73. local naeeym2 = Instance.new("BillboardGui",Character)
  74. naeeym2.AlwaysOnTop = true
  75. naeeym2.Size = UDim2.new(5,35,2,35)
  76. naeeym2.StudsOffset = Vector3.new(0,3,0)
  77. naeeym2.Adornee = Character.Head
  78. naeeym2.Name = "Name"
  79. --naeeym2.PlayerToHideFrom = Player
  80. naeeym2.MaxDistance = 200
  81. local tecks2 = Instance.new("TextLabel",naeeym2)
  82. tecks2.BackgroundTransparency = 1
  83. tecks2.TextScaled = true
  84. tecks2.BorderSizePixel = 0
  85. tecks2.Text = "Miniix15/ Pain"
  86. tecks2.Font = "SciFi"
  87. tecks2.TextSize = 30
  88. tecks2.TextStrokeTransparency = 0
  89. tecks2.TextColor3 = Color3.new(255, 255, 0)
  90. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  91. tecks2.Size = UDim2.new(1,0,0.5,0)
  92. tecks2.Parent = naeeym2
  93.  
  94. IT = Instance.new
  95. CF = CFrame.new
  96. VT = Vector3.new
  97. RAD = math.rad
  98. C3 = Color3.new
  99. UD2 = UDim2.new
  100. BRICKC = BrickColor.new
  101. ANGLES = CFrame.Angles
  102. EULER = CFrame.fromEulerAnglesXYZ
  103. COS = math.cos
  104. ACOS = math.acos
  105. SIN = math.sin
  106. ASIN = math.asin
  107. ABS = math.abs
  108. MRANDOM = math.random
  109. FLOOR = math.floor
  110.  
  111. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  112. local NEWMESH = IT(MESH)
  113. if MESH == "SpecialMesh" then
  114. NEWMESH.MeshType = MESHTYPE
  115. if MESHID ~= "nil" and MESHID ~= "" then
  116. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  117. end
  118. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  119. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  120. end
  121. end
  122. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  123. NEWMESH.Scale = SCALE
  124. NEWMESH.Parent = PARENT
  125. return NEWMESH
  126. end
  127.  
  128. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  129. local NEWPART = IT("Part")
  130. NEWPART.formFactor = FORMFACTOR
  131. NEWPART.Reflectance = REFLECTANCE
  132. NEWPART.Transparency = TRANSPARENCY
  133. NEWPART.CanCollide = false
  134. NEWPART.Locked = true
  135. NEWPART.Anchored = true
  136. if ANCHOR == false then
  137. NEWPART.Anchored = false
  138. end
  139. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  140. NEWPART.Name = NAME
  141. NEWPART.Size = SIZE
  142. NEWPART.Position = Torso.Position
  143. NEWPART.Material = MATERIAL
  144. NEWPART:BreakJoints()
  145. NEWPART.Parent = PARENT
  146. return NEWPART
  147. end
  148.  
  149. --//=================================\\
  150. --|| CUSTOMIZATION
  151. --\\=================================//
  152.  
  153. Player_Size = 1 --Size of the player.
  154. Animation_Speed = 3
  155. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  156.  
  157. local Speed = 16
  158. local Effects2 = {}
  159.  
  160. --//=================================\\
  161. --|| END OF CUSTOMIZATION
  162. --\\=================================//
  163.  
  164. local function weldBetween(a, b)
  165. local weldd = Instance.new("ManualWeld")
  166. weldd.Part0 = a
  167. weldd.Part1 = b
  168. weldd.C0 = CFrame.new()
  169. weldd.C1 = b.CFrame:inverse() * a.CFrame
  170. weldd.Parent = a
  171. return weldd
  172. end
  173.  
  174. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  175. local acs = Instance.new("Part")
  176. acs.CanCollide = false
  177. acs.Anchored = false
  178. acs.Size = Vector3.new(0,0,0)
  179. acs.CFrame = attachmentpart.CFrame
  180. acs.Parent = Character
  181. acs.BrickColor = color
  182. local meshs = Instance.new("SpecialMesh")
  183. meshs.MeshId = mesh
  184. meshs.TextureId = texture
  185. meshs.Parent = acs
  186. meshs.Scale = scale
  187. meshs.Offset = offset
  188. weldBetween(attachmentpart,acs)
  189. end
  190.  
  191. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  192. if TYPE == "Gem" then
  193. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  194. acs.Anchored = false
  195. acs.CanCollide = false
  196. acs.CFrame = PART.CFrame
  197. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  198. weldBetween(PART,acs)
  199. elseif TYPE == "Skull" then
  200. local acs = CreatePart(3, Character, "Marble", 0, 0, "Pearl", "Part", VT(0,0,0))
  201. acs.Anchored = false
  202. acs.CanCollide = false
  203. acs.CFrame = PART.CFrame
  204. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  205. weldBetween(PART,acs)
  206. elseif TYPE == "Eye" then
  207. local acs = CreatePart(3, Character, "Neon", 0, 0, "Navy blue", "Part", VT(0,0,0))
  208. acs.Anchored = false
  209. acs.CanCollide = false
  210. acs.CFrame = PART.CFrame
  211. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  212. weldBetween(PART,acs)
  213. end
  214. end
  215.  
  216. --//=================================\\
  217. --|| USEFUL VALUES
  218. --\\=================================//
  219.  
  220. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  221. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  222. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  223. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  224. local CHANGEDEFENSE = 0
  225. local CHANGEDAMAGE = 0
  226. local CHANGEMOVEMENT = 0
  227. local ANIM = "Idle"
  228. local ATTACK = false
  229. local EQUIPPED = false
  230. local HOLD = false
  231. local COMBO = 1
  232. local Rooted = false
  233. local SINE = 0
  234. local KEYHOLD = false
  235. local CHANGE = 2 / Animation_Speed
  236. local WALKINGANIM = false
  237. local WALK = 0
  238. local VALUE1 = false
  239. local VALUE2 = false
  240. local ROBLOXIDLEANIMATION = IT("Animation")
  241. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  242. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  243. --ROBLOXIDLEANIMATION.Parent = Humanoid
  244. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  245. WEAPONGUI.Name = "Weapon GUI"
  246. local Weapon = IT("Model")
  247. Weapon.Name = "Adds"
  248. local Effects = IT("Folder", Weapon)
  249. Effects.Name = "Effects"
  250. local ANIMATOR = Humanoid.Animator
  251. local ANIMATE = Character.Animate
  252. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  253. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  254. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  255. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  256. local UNANCHOR = true
  257.  
  258. local SKILLTEXTCOLOR = C3(255, 255, 0)
  259.  
  260. --//=================================\\
  261. --\\=================================//
  262.  
  263.  
  264. --//=================================\\
  265. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  266. --\\=================================//
  267.  
  268. ArtificialHB = Instance.new("BindableEvent", script)
  269. ArtificialHB.Name = "ArtificialHB"
  270.  
  271. script:WaitForChild("ArtificialHB")
  272.  
  273. frame = Frame_Speed
  274. tf = 0
  275. allowframeloss = false
  276. tossremainder = false
  277. lastframe = tick()
  278. script.ArtificialHB:Fire()
  279.  
  280. game:GetService("RunService").Heartbeat:connect(function(s, p)
  281. tf = tf + s
  282. if tf >= frame then
  283. if allowframeloss then
  284. script.ArtificialHB:Fire()
  285. lastframe = tick()
  286. else
  287. for i = 1, math.floor(tf / frame) do
  288. script.ArtificialHB:Fire()
  289. end
  290. lastframe = tick()
  291. end
  292. if tossremainder then
  293. tf = 0
  294. else
  295. tf = tf - frame * math.floor(tf / frame)
  296. end
  297. end
  298. end)
  299.  
  300. --//=================================\\
  301. --\\=================================//
  302.  
  303.  
  304.  
  305.  
  306.  
  307. --//=================================\\
  308. --|| SOME FUNCTIONS
  309. --\\=================================//
  310.  
  311. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  312. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  313. end
  314.  
  315. function PositiveAngle(NUMBER)
  316. if NUMBER >= 0 then
  317. NUMBER = 0
  318. end
  319. return NUMBER
  320. end
  321.  
  322. function NegativeAngle(NUMBER)
  323. if NUMBER <= 0 then
  324. NUMBER = 0
  325. end
  326. return NUMBER
  327. end
  328.  
  329. function Swait(NUMBER)
  330. if NUMBER == 0 or NUMBER == nil then
  331. ArtificialHB.Event:wait()
  332. else
  333. for i = 1, NUMBER do
  334. ArtificialHB.Event:wait()
  335. end
  336. end
  337. end
  338.  
  339. function QuaternionFromCFrame(cf)
  340. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  341. local trace = m00 + m11 + m22
  342. if trace > 0 then
  343. local s = math.sqrt(1 + trace)
  344. local recip = 0.5 / s
  345. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  346. else
  347. local i = 0
  348. if m11 > m00 then
  349. i = 1
  350. end
  351. if m22 > (i == 0 and m00 or m11) then
  352. i = 2
  353. end
  354. if i == 0 then
  355. local s = math.sqrt(m00 - m11 - m22 + 1)
  356. local recip = 0.5 / s
  357. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  358. elseif i == 1 then
  359. local s = math.sqrt(m11 - m22 - m00 + 1)
  360. local recip = 0.5 / s
  361. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  362. elseif i == 2 then
  363. local s = math.sqrt(m22 - m00 - m11 + 1)
  364. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  365. end
  366. end
  367. end
  368.  
  369. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  370. local xs, ys, zs = x + x, y + y, z + z
  371. local wx, wy, wz = w * xs, w * ys, w * zs
  372. local xx = x * xs
  373. local xy = x * ys
  374. local xz = x * zs
  375. local yy = y * ys
  376. local yz = y * zs
  377. local zz = z * zs
  378. 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))
  379. end
  380.  
  381. function QuaternionSlerp(a, b, t)
  382. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  383. local startInterp, finishInterp;
  384. if cosTheta >= 0.0001 then
  385. if (1 - cosTheta) > 0.0001 then
  386. local theta = ACOS(cosTheta)
  387. local invSinTheta = 1 / SIN(theta)
  388. startInterp = SIN((1 - t) * theta) * invSinTheta
  389. finishInterp = SIN(t * theta) * invSinTheta
  390. else
  391. startInterp = 1 - t
  392. finishInterp = t
  393. end
  394. else
  395. if (1 + cosTheta) > 0.0001 then
  396. local theta = ACOS(-cosTheta)
  397. local invSinTheta = 1 / SIN(theta)
  398. startInterp = SIN((t - 1) * theta) * invSinTheta
  399. finishInterp = SIN(t * theta) * invSinTheta
  400. else
  401. startInterp = t - 1
  402. finishInterp = t
  403. end
  404. end
  405. 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
  406. end
  407.  
  408. function Clerp(a, b, t)
  409. local qa = {QuaternionFromCFrame(a)}
  410. local qb = {QuaternionFromCFrame(b)}
  411. local ax, ay, az = a.x, a.y, a.z
  412. local bx, by, bz = b.x, b.y, b.z
  413. local _t = 1 - t
  414. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  415. end
  416.  
  417. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  418. local frame = IT("Frame")
  419. frame.BackgroundTransparency = TRANSPARENCY
  420. frame.BorderSizePixel = BORDERSIZEPIXEL
  421. frame.Position = POSITION
  422. frame.Size = SIZE
  423. frame.BackgroundColor3 = COLOR
  424. frame.BorderColor3 = BORDERCOLOR
  425. frame.Name = NAME
  426. frame.Parent = PARENT
  427. return frame
  428. end
  429.  
  430. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  431. local label = IT("TextLabel")
  432. label.BackgroundTransparency = 1
  433. label.Size = UD2(1, 0, 1, 0)
  434. label.Position = UD2(0, 0, 0, 0)
  435. label.TextColor3 = TEXTCOLOR
  436. label.TextStrokeTransparency = STROKETRANSPARENCY
  437. label.TextTransparency = TRANSPARENCY
  438. label.FontSize = TEXTFONTSIZE
  439. label.Font = TEXTFONT
  440. label.BorderSizePixel = BORDERSIZEPIXEL
  441. label.TextScaled = false
  442. label.Text = TEXT
  443. label.Name = NAME
  444. label.Parent = PARENT
  445. return label
  446. end
  447.  
  448. function NoOutlines(PART)
  449. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  450. end
  451.  
  452.  
  453. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  454. local NEWWELD = IT(TYPE)
  455. NEWWELD.Part0 = PART0
  456. NEWWELD.Part1 = PART1
  457. NEWWELD.C0 = C0
  458. NEWWELD.C1 = C1
  459. NEWWELD.Parent = PARENT
  460. return NEWWELD
  461. end
  462.  
  463. function CreateSound(ID, PARENT, VOLUME, PITCH)
  464. local NEWSOUND = nil
  465. coroutine.resume(coroutine.create(function()
  466. NEWSOUND = IT("Sound", PARENT)
  467. NEWSOUND.Volume = VOLUME
  468. NEWSOUND.Pitch = PITCH
  469. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  470. Swait()
  471. NEWSOUND:play()
  472. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  473. end))
  474. return NEWSOUND
  475. end
  476.  
  477. function CFrameFromTopBack(at, top, back)
  478. local right = top:Cross(back)
  479. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  480. end
  481.  
  482. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  483. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  484. local mesh = IT("SpecialMesh",wave)
  485. mesh.MeshType = "FileMesh"
  486. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  487. mesh.Scale = SIZE
  488. wave.CFrame = CFRAME
  489. coroutine.resume(coroutine.create(function(PART)
  490. for i = 1, WAIT do
  491. Swait()
  492. mesh.Scale = mesh.Scale + GROW
  493. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  494. if DOESROT == true then
  495. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  496. end
  497. wave.Transparency = wave.Transparency + (0.5/WAIT)
  498. if wave.Transparency > 0.99 then
  499. wave:remove()
  500. end
  501. end
  502. end))
  503. end
  504.  
  505. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  506. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  507. local mesh = IT("SpecialMesh",wave)
  508. mesh.MeshType = "FileMesh"
  509. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  510. mesh.Scale = SIZE
  511. wave.CFrame = CFRAME
  512. coroutine.resume(coroutine.create(function(PART)
  513. for i = 1, WAIT do
  514. Swait()
  515. mesh.Scale = mesh.Scale + GROW
  516. if DOESROT == true then
  517. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  518. end
  519. wave.Transparency = wave.Transparency + (0.5/WAIT)
  520. if wave.Transparency > 0.99 then
  521. wave:remove()
  522. end
  523. end
  524. end))
  525. end
  526.  
  527. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  528. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  529. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  530. wave.CFrame = CFRAME
  531. coroutine.resume(coroutine.create(function(PART)
  532. for i = 1, WAIT do
  533. Swait()
  534. mesh.Scale = mesh.Scale * GROW
  535. wave.Transparency = wave.Transparency + (0.5/WAIT)
  536. if wave.Transparency > 0.99 then
  537. wave:remove()
  538. end
  539. end
  540. end))
  541. end
  542.  
  543. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  544. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  545. local mesh = IT("SpecialMesh",wave)
  546. mesh.MeshType = "Sphere"
  547. mesh.Scale = SIZE
  548. mesh.Offset = VT(0,0,0)
  549. wave.CFrame = CFRAME
  550. coroutine.resume(coroutine.create(function(PART)
  551. for i = 1, WAIT do
  552. Swait()
  553. mesh.Scale = mesh.Scale + GROW
  554. wave.Transparency = wave.Transparency + (1/WAIT)
  555. if wave.Transparency > 0.99 then
  556. wave:remove()
  557. end
  558. end
  559. end))
  560. end
  561.  
  562. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  563. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  564. local mesh = IT("BlockMesh",wave)
  565. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  566. coroutine.resume(coroutine.create(function(PART)
  567. for i = 1, WAIT do
  568. Swait()
  569. mesh.Scale = mesh.Scale + GROW
  570. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  571. wave.Transparency = wave.Transparency + (1/WAIT)
  572. if wave.Transparency > 0.99 then
  573. wave:remove()
  574. end
  575. end
  576. end))
  577. end
  578.  
  579. function MakeForm(PART,TYPE)
  580. if TYPE == "Cyl" then
  581. local MSH = IT("CylinderMesh",PART)
  582. elseif TYPE == "Ball" then
  583. local MSH = IT("SpecialMesh",PART)
  584. MSH.MeshType = "Sphere"
  585. elseif TYPE == "Wedge" then
  586. local MSH = IT("SpecialMesh",PART)
  587. MSH.MeshType = "Wedge"
  588. end
  589. end
  590.  
  591. function CheckTableForString(Table, String)
  592. for i, v in pairs(Table) do
  593. if string.find(string.lower(String), string.lower(v)) then
  594. return true
  595. end
  596. end
  597. return false
  598. end
  599.  
  600. function CheckIntangible(Hit)
  601. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  602. if Hit and Hit.Parent then
  603. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  604. return true
  605. end
  606. end
  607. return false
  608. end
  609.  
  610. Debris = game:GetService("Debris")
  611.  
  612. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  613. local Direction = CFrame.new(StartPos, Vec).lookVector
  614. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  615. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  616. if RayHit and CheckIntangible(RayHit) then
  617. if DelayIfHit then
  618. wait()
  619. end
  620. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  621. end
  622. return RayHit, RayPos, RayNormal
  623. end
  624.  
  625. function turnto(position)
  626. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  627. end
  628.  
  629. --//=================================\\
  630. --|| WEAPON CREATION
  631. --\\=================================//
  632.  
  633. function GloballyWeldTo(Part,WhatModelToWeld)
  634. for _, c in pairs(WhatModelToWeld:GetChildren()) do
  635. if c.ClassName == "Part" then
  636. weldBetween(c,Part)
  637. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  638. end
  639. end
  640. end
  641.  
  642. local ORBHOLDER = IT("Model",Weapon)
  643. ORBHOLDER.Name = "Zen orbs"
  644.  
  645. local Orbs = {}
  646. local AvailableOrbs = {}
  647. local ORBCOUNT = 16
  648. for i = 1, ORBCOUNT do
  649. local POSITION = RootPart.CFrame*ANGLES(RAD(0),RAD(0),RAD(i*(360/ORBCOUNT)))*CF(0,2.5,1.5).p
  650. local Part = CreatePart(3, ORBHOLDER, "Neon", 0, 0, "Electric blue", "Zen orb "..i, VT(1,1,1),false)
  651. MakeForm(Part,"Ball")
  652. local grav = Instance.new("BodyPosition",Part)
  653. grav.P = 20000
  654. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  655. grav.position = POSITION
  656. grav.Name = "GravityForce"
  657. grav.D = 1400
  658. local VALUE = IT("NumberValue",Part)
  659. VALUE.Name = "ItemValue"
  660. VALUE.Value = i
  661. table.insert(Orbs,{Part,grav})
  662. table.insert(AvailableOrbs,Part)
  663. end
  664.  
  665. local BONES = IT("Model",Character)
  666. BONES.Name = "Internal skeleton"
  667.  
  668. --Internal skeleton--
  669.  
  670. local BONE = IT("Model",BONES)
  671. BONE.Name = "Right Arm"
  672. local LIMB = RightArm
  673. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
  674. BONE2.CFrame = LIMB.CFrame*CF(0,0.8,0)
  675. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  676. BONE2.CFrame = LIMB.CFrame*CF(0,0.4,0)
  677. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  678. BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
  679. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  680. BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,0)
  681. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
  682. BONE2.CFrame = LIMB.CFrame*CF(0,-0.8,0)
  683. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.6,1.75,0.6),false)
  684. BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
  685. GloballyWeldTo(LIMB,BONE)
  686. --LIMB.Transparency = 1
  687.  
  688. local BONE = IT("Model",BONES)
  689. BONE.Name = "Left Arm"
  690. local LIMB = LeftArm
  691. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
  692. BONE2.CFrame = LIMB.CFrame*CF(0,0.8,0)
  693. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  694. BONE2.CFrame = LIMB.CFrame*CF(0,0.4,0)
  695. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  696. BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
  697. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  698. BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,0)
  699. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
  700. BONE2.CFrame = LIMB.CFrame*CF(0,-0.8,0)
  701. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.6,1.75,0.6),false)
  702. BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
  703. GloballyWeldTo(LIMB,BONE)
  704. --LIMB.Transparency = 1
  705.  
  706. local BONE = IT("Model",BONES)
  707. BONE.Name = "Right Leg"
  708. local LIMB = RightLeg
  709. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
  710. BONE2.CFrame = LIMB.CFrame*CF(0,0.8,0)
  711. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  712. BONE2.CFrame = LIMB.CFrame*CF(0,0.4,0)
  713. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  714. BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
  715. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  716. BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,0)
  717. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
  718. BONE2.CFrame = LIMB.CFrame*CF(0,-0.8,0)
  719. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.6,1.75,0.6),false)
  720. BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
  721. GloballyWeldTo(LIMB,BONE)
  722. --LIMB.Transparency = 1
  723.  
  724. local BONE = IT("Model",BONES)
  725. BONE.Name = "Left Leg"
  726. local LIMB = LeftLeg
  727. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
  728. BONE2.CFrame = LIMB.CFrame*CF(0,0.8,0)
  729. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  730. BONE2.CFrame = LIMB.CFrame*CF(0,0.4,0)
  731. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  732. BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
  733. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
  734. BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,0)
  735. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
  736. BONE2.CFrame = LIMB.CFrame*CF(0,-0.8,0)
  737. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.6,1.75,0.6),false)
  738. BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
  739. GloballyWeldTo(LIMB,BONE)
  740. ---LIMB.Transparency = 1
  741.  
  742. local BONE = IT("Model",BONES)
  743. BONE.Name = "Torso"
  744. local LIMB = Torso
  745.  
  746. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.9),false)
  747. BONE2.CFrame = LIMB.CFrame*CF(0,-0.85,0)
  748.  
  749. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
  750. BONE2.CFrame = LIMB.CFrame*CF(0,0.8,0.35)
  751. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
  752. BONE2.CFrame = LIMB.CFrame*CF(0,0.8,-0.35)
  753. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
  754. BONE2.CFrame = LIMB.CFrame*CF(0,0.5,0.35)
  755. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
  756. BONE2.CFrame = LIMB.CFrame*CF(0,0.5,-0.35)
  757. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
  758. BONE2.CFrame = LIMB.CFrame*CF(0,0.2,0.35)
  759. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
  760. BONE2.CFrame = LIMB.CFrame*CF(0,0.2,-0.35)
  761. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
  762. BONE2.CFrame = LIMB.CFrame*CF(0,-0.1,0.35)
  763. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
  764. BONE2.CFrame = LIMB.CFrame*CF(0,-0.1,-0.35)
  765. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
  766. BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,0.35)
  767. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
  768. BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,-0.35)
  769. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
  770. BONE2.CFrame = LIMB.CFrame*CF(0.9,0.8,0)
  771. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
  772. BONE2.CFrame = LIMB.CFrame*CF(-0.9,0.8,0)
  773. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
  774. BONE2.CFrame = LIMB.CFrame*CF(0.9,0.5,0)
  775. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
  776. BONE2.CFrame = LIMB.CFrame*CF(-0.9,0.5,0)
  777. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
  778. BONE2.CFrame = LIMB.CFrame*CF(0.9,0.2,0)
  779. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
  780. BONE2.CFrame = LIMB.CFrame*CF(-0.9,0.2,0)
  781. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
  782. BONE2.CFrame = LIMB.CFrame*CF(0.9,-0.1,0)
  783. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
  784. BONE2.CFrame = LIMB.CFrame*CF(-0.9,-0.1,0)
  785. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
  786. BONE2.CFrame = LIMB.CFrame*CF(0.9,-0.4,0)
  787. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
  788. BONE2.CFrame = LIMB.CFrame*CF(-0.9,-0.4,0)
  789.  
  790. local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.3,1.8,0.3),false)
  791. BONE2.CFrame = LIMB.CFrame*CF(0,0.1,0.32)
  792. GloballyWeldTo(LIMB,BONE)
  793. --LIMB.Transparency = 1
  794.  
  795. local BONE = IT("Model",BONES)
  796. BONE.Name = "Head"
  797. local SKULL = IT("Part",BONE)
  798. SKULL.CFrame = Head.CFrame
  799. SKULL.Color = C3(0.75,0.75,0.75)
  800. CreateMesh("SpecialMesh", SKULL, "FileMesh", "4770583", "", VT(2.1, 2.8, 2.1), VT(0,0,0))
  801. SKULL.Size = Head.Size
  802. SKULL.Name = "Skull"
  803. SKULL.Size = VT(1,1,1)
  804. weldBetween(Head,SKULL)
  805.  
  806. ---------------------
  807.  
  808. Weapon.Parent = Character
  809.  
  810. for _, r in pairs(Character:GetChildren()) do
  811. r.Changed:connect(function()
  812. for _, c in pairs(BONES:GetChildren()) do
  813. if Character:FindFirstChild(c.Name) == nil then
  814. for _, e in pairs(c:GetChildren()) do
  815. e.Anchored = true
  816. end
  817. end
  818. end
  819. end)
  820. end
  821.  
  822. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  823. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  824. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  825.  
  826. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Zen arrows [3]", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 1")
  827. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Zen castle [5]", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 2")
  828. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Zen outbreak [ALL]", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 3")
  829.  
  830. --//=================================\\
  831. --|| DAMAGE FUNCTIONS
  832. --\\=================================//
  833.  
  834. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  835. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  836. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  837. local BODYGYRO = IT("BodyGyro", STATPART)
  838. local BODYPOSITION = IT("BodyPosition", STATPART)
  839. BODYPOSITION.P = 2000
  840. BODYPOSITION.D = 100
  841. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  842. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  843. game:GetService("Debris"):AddItem(STATPART ,5)
  844. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  845. BILLBOARDGUI.Adornee = STATPART
  846. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  847. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  848. BILLBOARDGUI.AlwaysOnTop = false
  849. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  850. TEXTLABEL.BackgroundTransparency = 1
  851. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  852. TEXTLABEL.Text = TEXT
  853. TEXTLABEL.Font = "SciFi"
  854. TEXTLABEL.FontSize="Size42"
  855. TEXTLABEL.TextColor3 = COLOR
  856. TEXTLABEL.TextStrokeTransparency = 1
  857. TEXTLABEL.TextScaled = true
  858. TEXTLABEL.TextWrapped = true
  859. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  860. if LABELTYPE == "Normal" then
  861. for i = 1, 30 do
  862. Swait()
  863. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  864. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  865. end
  866. elseif LABELTYPE == "Debuff" then
  867. for i = 1, 30 do
  868. Swait()
  869. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  870. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  871. end
  872. elseif LABELTYPE == "Shock" then
  873. local ORIGIN = STATPART.Position
  874. for i = 1, 30 do
  875. Swait()
  876. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  877. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  878. end
  879. end
  880. THEPART.Parent = nil
  881. end),STATPART, BODYPOSITION, TEXTLABEL)
  882. end
  883.  
  884. --//=================================\\
  885. --|| DAMAGING
  886. --\\=================================//
  887.  
  888. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  889. local defence = Instance.new("BoolValue",Humanoid.Parent)
  890. defence.Name = ("HitBy"..Player.Name)
  891. game:GetService("Debris"):AddItem(defence, 0.001)
  892. if Humanoid.Health ~= 0 then
  893. local CritChance = MRANDOM(1,100)
  894. if CritChance < CritRate + 1 then
  895. Damage = Damage*CritMultiplier
  896. end
  897. if Damage > Humanoid.Health then
  898. Damage = math.ceil(Humanoid.Health)
  899. if Damage == 0 then
  900. Damage = 0.1
  901. end
  902. end
  903. Humanoid.Health = Humanoid.Health - Damage
  904. if Humanoid.Parent:FindFirstChild("Head") then
  905. if CritChance < CritRate + 1 then
  906. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  907. else
  908. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
  909. end
  910. end
  911. end
  912. end
  913.  
  914. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  915. local dmg = math.random(min,max)
  916. for i,v in ipairs(workspace:GetChildren()) do
  917. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  918. local body = v:GetChildren()
  919. for part = 1, #body do
  920. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  921. if(body[part].Position - position).Magnitude < radius then
  922. if v.ClassName == "Model" then
  923. if v:FindFirstChildOfClass("Humanoid") then
  924. if CanBeDodgedByJumping == true then
  925. if body[part].Position.Y < position.Y+5 then
  926. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  927. end
  928. else
  929. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  930. end
  931. local bv = Instance.new("BodyVelocity")
  932. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  933. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  934. bv.Parent = body[part]
  935. Debris:AddItem(bv,0.2)
  936. end
  937. end
  938. end
  939. end
  940. end
  941. end
  942. if v:FindFirstChild("HitBy"..Player.Name) then
  943. v:FindFirstChild("HitBy"..Player.Name):remove()
  944. end
  945. end
  946. end
  947.  
  948. --//=================================\\
  949. --|| ATTACK FUNCTIONS AND STUFF
  950. --\\=================================//
  951.  
  952. function Dissapear()
  953. for i = 1, 10 do
  954. Swait()
  955. for _, c in pairs(Character:GetChildren()) do
  956. if c.ClassName == "Part" then
  957. c.Transparency = c.Transparency + 0.1
  958. elseif c.ClassName == "Accessory" or c.ClassName == "Hat" then
  959. c.Handle.Transparency = c.Handle.Transparency + 0.1
  960. end
  961. end
  962. end
  963. end
  964.  
  965. function Appear()
  966. for i = 1, 10 do
  967. Swait()
  968. for _, c in pairs(Character:GetChildren()) do
  969. if c.ClassName == "Part" then
  970. c.Transparency = c.Transparency - 0.1
  971. elseif c.ClassName == "Accessory" or c.ClassName == "Hat" then
  972. c.Handle.Transparency = c.Handle.Transparency - 0.1
  973. end
  974. end
  975. end
  976. end
  977.  
  978. function OrbFade(Orb,FadeInOrOut)
  979. if FadeInOrOut == "In" then
  980. for i = 1, 10 do
  981. Swait()
  982. Orb.Transparency = Orb.Transparency + 0.1
  983. end
  984. elseif FadeInOrOut == "Out" then
  985. for i = 1, 10 do
  986. Swait()
  987. Orb.Transparency = Orb.Transparency - 0.1
  988. end
  989. end
  990. end
  991.  
  992. function ClickAttack()
  993. if #AvailableOrbs > 0 then
  994. Swait()
  995. local ORB = AvailableOrbs[MRANDOM(1,#AvailableOrbs)]
  996. local NUMBER = ORB.ItemValue.Value
  997. table.remove(AvailableOrbs,NUMBER)
  998. table.remove(Orbs,NUMBER)
  999. ATTACK = true
  1000. Rooted = false
  1001. local POS = Mouse.Hit.p
  1002. ORB.GravityForce.position = POS
  1003. if COMBO == 1 then
  1004. COMBO = 2
  1005. for i=0, 0.3, 0.1 / Animation_Speed do
  1006. Swait()
  1007. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.75 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.2 / Animation_Speed)
  1008. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(-90)), 0.2 / Animation_Speed)
  1009. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1010. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, 0) * ANGLES(RAD(35), RAD(0), RAD(15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1011. RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(90), RAD(-5), RAD(40)), 0.2 / Animation_Speed)
  1012. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(90), RAD(25), RAD(-35)), 0.2 / Animation_Speed)
  1013. end
  1014. elseif COMBO == 2 then
  1015. COMBO = 1
  1016. for i=0, 0.3, 0.1 / Animation_Speed do
  1017. Swait()
  1018. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.75 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.2 / Animation_Speed)
  1019. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(90)), 0.2 / Animation_Speed)
  1020. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1021. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, 0) * ANGLES(RAD(90), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1022. RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(90), RAD(-5), RAD(40)), 0.2 / Animation_Speed)
  1023. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(90), RAD(25), RAD(-35)), 0.2 / Animation_Speed)
  1024. end
  1025. end
  1026. coroutine.resume(coroutine.create(function()
  1027. local DIST = nil
  1028. repeat
  1029. Swait()
  1030. DIST = (POS - ORB.Position).Magnitude
  1031. until DIST < 1
  1032. CreateSound("314970772", ORB, 3, 2)
  1033. for i = 1, 15 do
  1034. Slice(0.3,15,ORB.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Pearl",1.15)
  1035. end
  1036. AoEDamage(ORB.Position,10,15,22,5,2,2,false)
  1037. MagicSphere(VT(0,0,0),15,ORB.CFrame,"Pearl",VT(1,1,1))
  1038. OrbFade(ORB,"In")
  1039. Swait(200)
  1040. ORB.CFrame = Torso.CFrame
  1041. ORB.GravityForce.Position = Torso.Position
  1042. ORB.Transparency = 0
  1043. table.insert(AvailableOrbs,ORB)
  1044. table.insert(Orbs,{ORB,ORB.GravityForce})
  1045. end))
  1046. ATTACK = false
  1047. Rooted = false
  1048. end
  1049. end
  1050.  
  1051. function ZenArrow()
  1052. if #AvailableOrbs >= 3 then
  1053. ATTACK = true
  1054. VALUE1 = true
  1055. Rooted = true
  1056. local COLLECTEDORBS = {}
  1057. coroutine.resume(coroutine.create(function()
  1058. for i = 1, 3 do
  1059. local ORB = AvailableOrbs[MRANDOM(1,#AvailableOrbs)]
  1060. local NUMBER = ORB.ItemValue.Value
  1061. table.remove(AvailableOrbs,NUMBER)
  1062. table.remove(Orbs,NUMBER)
  1063. table.insert(COLLECTEDORBS,ORB)
  1064. MagicSphere(VT(0,0,0),15,ORB.CFrame,"Pearl",VT(0.3,0.3,0.3))
  1065. Swait(5)
  1066. end
  1067. end))
  1068. for i = 1, 50 do
  1069. Swait()
  1070. turnto(Mouse.Hit.p)
  1071. end
  1072. coroutine.resume(coroutine.create(function()
  1073. local STARTPOS = RootPart.CFrame*CF(0,0,-3)
  1074. for e = 1, #COLLECTEDORBS do
  1075. if COLLECTEDORBS[e]~=nil then
  1076. local Thing=COLLECTEDORBS[e]
  1077. if Thing~=nil then
  1078. local Part=Thing
  1079. Part.GravityForce.Position = RootPart.CFrame*CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(e*(360/#COLLECTEDORBS)))*CF(0,1.5,-3).p
  1080. end
  1081. end
  1082. end
  1083. Swait(80)
  1084. for i = 1, 50 do
  1085. Swait()
  1086. MagicBlock(0.5,15,STARTPOS,"Pearl",VT(0.3,0.3,0.3))
  1087. end
  1088. for i = 1, 30 do
  1089. Swait()
  1090. MagicBlock(0.5,15,STARTPOS,"Pearl",VT(0.3,0.3,0.3))
  1091. coroutine.resume(coroutine.create(function()
  1092. local FIRE = CreatePart(3, Effects, "Neon", 0, 0, "Pearl", "Arrow", VT(0.05,0.05,2))
  1093. FIRE.CFrame = STARTPOS*CF(0,0,-0.25)*ANGLES(RAD(MRANDOM(-2,2)),RAD(MRANDOM(-25,25)),RAD(0))
  1094. for i = 1, 150 do
  1095. Swait()
  1096. --Slice(0.2,15,FIRE.CFrame*CF(0,-0.25,-1.5)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS[MRANDOM(1,#COLORS)],1.15)
  1097. FIRE.CFrame = FIRE.CFrame*CF(0,0,-2)
  1098. local HIT = Raycast(FIRE.Position, FIRE.CFrame.lookVector, 3, Character)
  1099. if HIT ~= nil then
  1100. break
  1101. end
  1102. end
  1103. CreateSound("314970772", FIRE, 3, 2)
  1104. FIRE.Transparency = 1
  1105. Debris:AddItem(FIRE,5)
  1106. for i = 1, 15 do
  1107. Slice(0.2,15,FIRE.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Pearl",1.15)
  1108. end
  1109. AoEDamage(FIRE.Position,5,35,42,5,2,2,false)
  1110. MagicSphere(VT(0,0,0),15,FIRE.CFrame,"Pearl",VT(0.5,0.5,0.5))
  1111. end))
  1112. end
  1113. Swait(150)
  1114. for e = 1, #COLLECTEDORBS do
  1115. if COLLECTEDORBS[e]~=nil then
  1116. local Thing=COLLECTEDORBS[e]
  1117. if Thing~=nil then
  1118. table.insert(AvailableOrbs,Thing)
  1119. table.insert(Orbs,{Thing,Thing.GravityForce})
  1120. end
  1121. end
  1122. end
  1123. print(#AvailableOrbs)
  1124. end))
  1125. Swait(100)
  1126. ATTACK = false
  1127. Rooted = false
  1128. VALUE1 = false
  1129. end
  1130. end
  1131.  
  1132. function ZenCastle()
  1133. if #AvailableOrbs >= 5 then
  1134. ATTACK = true
  1135. VALUE1 = true
  1136. Rooted = false
  1137. local COLLECTEDORBS = {}
  1138. for i = 1, 5 do
  1139. local ORB = AvailableOrbs[MRANDOM(1,#AvailableOrbs)]
  1140. local NUMBER = ORB.ItemValue.Value
  1141. table.remove(AvailableOrbs,NUMBER)
  1142. table.remove(Orbs,NUMBER)
  1143. table.insert(COLLECTEDORBS,ORB)
  1144. MagicSphere(VT(0,0,0),15,ORB.CFrame,"Pearl",VT(0.3,0.3,0.3))
  1145. Swait(5)
  1146. end
  1147. coroutine.resume(coroutine.create(function()
  1148. for e = 1, #COLLECTEDORBS do
  1149. if COLLECTEDORBS[e]~=nil then
  1150. local Thing=COLLECTEDORBS[e]
  1151. if Thing~=nil then
  1152. local Part=Thing
  1153. Part.GravityForce.Position = RootPart.CFrame*CF(0,0,0)*ANGLES(RAD(90),RAD(0),RAD(e*(360/#COLLECTEDORBS)))*CF(0,15,0).p
  1154. end
  1155. end
  1156. end
  1157. Swait(80)
  1158. for i = 1, 50 do
  1159. Swait()
  1160. for e = 1, #COLLECTEDORBS do
  1161. if COLLECTEDORBS[e]~=nil then
  1162. local Thing=COLLECTEDORBS[e]
  1163. if Thing~=nil then
  1164. local Part=Thing
  1165. Part.Size = Part.Size * 1.03
  1166. MagicSphere(VT(0,0,0),15,CF(Part.Position),"Pearl",VT(0.02,8,0.02))
  1167. end
  1168. end
  1169. end
  1170. end
  1171. for e = 1, #COLLECTEDORBS do
  1172. if COLLECTEDORBS[e]~=nil then
  1173. local Thing=COLLECTEDORBS[e]
  1174. if Thing~=nil then
  1175. local Part=Thing
  1176. local BOOM = Part:Clone()
  1177. BOOM.Parent = Effects
  1178. CreateSound("314970772", BOOM, 3, 1.7)
  1179. coroutine.resume(coroutine.create(function()
  1180. for i = 1, 50 do
  1181. Swait()
  1182. BOOM.Size = BOOM.Size * 0.9
  1183. end
  1184. BOOM.Transparency = 1
  1185. Debris:AddItem(BOOM,2)
  1186. end))
  1187. for i = 1, 25 do
  1188. Slice(0.7,25,Part.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Pearl",1.05)
  1189. end
  1190. AoEDamage(Part.Position,25,15,22,5,2,2,false)
  1191. MagicSphere(VT(0,0,0),15,Part.CFrame,"Pearl",VT(3,3,3))
  1192. Part.Size = VT(1,1,1)
  1193. CreateSwirl(VT(35,0,35),35,CF(Part.Position),true,4,"Pearl",VT(0.2,1,0.2))
  1194. end
  1195. end
  1196. end
  1197. Swait(25)
  1198. for e = 1, #COLLECTEDORBS do
  1199. if COLLECTEDORBS[e]~=nil then
  1200. local Thing=COLLECTEDORBS[e]
  1201. if Thing~=nil then
  1202. table.insert(AvailableOrbs,Thing)
  1203. table.insert(Orbs,{Thing,Thing.GravityForce})
  1204. end
  1205. end
  1206. end
  1207. print(#AvailableOrbs)
  1208. end))
  1209. ATTACK = false
  1210. Rooted = false
  1211. VALUE1 = false
  1212. end
  1213. end
  1214.  
  1215. function ZenOutbreak()
  1216. if #AvailableOrbs == 16 then
  1217. local COLLECTEDORBS = AvailableOrbs
  1218. Orbs = {}
  1219. AvailableOrbs = {}
  1220. ATTACK = true
  1221. Rooted = true
  1222. for i=0, 1, 0.1 / Animation_Speed do
  1223. Swait()
  1224. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.75 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1225. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1226. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1227. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, 0) * ANGLES(RAD(90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1228. RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(90), RAD(-5), RAD(40)), 0.2 / Animation_Speed)
  1229. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(90), RAD(25), RAD(-35)), 0.2 / Animation_Speed)
  1230. end
  1231. for e = 1, #COLLECTEDORBS do
  1232. if COLLECTEDORBS[e]~=nil then
  1233. local Thing=COLLECTEDORBS[e]
  1234. if Thing~=nil then
  1235. local Part=Thing
  1236. Part.GravityForce.Position = Torso.Position
  1237. end
  1238. end
  1239. end
  1240. Swait(100)
  1241. Dissapear()
  1242. for e = 1, #COLLECTEDORBS do
  1243. if COLLECTEDORBS[e]~=nil then
  1244. local Thing=COLLECTEDORBS[e]
  1245. if Thing~=nil then
  1246. local Part=Thing
  1247. MagicSphere(VT(0,0,0),65,Part.CFrame,"Pearl",VT(0.3,0.3,0.3))
  1248. MagicSphere(VT(0.2,0.2,0.2),150,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Pearl",VT(0.005,0.005,1),0)
  1249. MagicSphere(VT(0.2,0.2,0.2),150,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Pearl",VT(0.005,0.005,1),0)
  1250. OrbFade(Thing,"In")
  1251. end
  1252. end
  1253. end
  1254. for i = 1, 25 do
  1255. Slice(0.7,65,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Pearl",1.05)
  1256. end
  1257. local SOUND = CreateSound("314970772", RootPart, 10, 1)
  1258. CreateSound("414517163", RootPart, 10, 1)
  1259. IT("EchoSoundEffect",SOUND)
  1260. AoEDamage(RootPart.Position,125,85,125,5,2,2,false)
  1261. MagicSphere(VT(0,0,0),55,RootPart.CFrame,"Pearl",VT(3,3,3))
  1262. MagicSphere(VT(0.3,0.3,0.3),45,RootPart.CFrame,"Really black",VT(3,3,3))
  1263. CreateSwirl(VT(85,0,85),35,CF(RootPart.Position),true,-4,"Pearl",VT(0.2,3,0.2))
  1264. CreateSwirl(VT(100,0,100),65,CF(RootPart.Position),true,4,"Pearl",VT(0.2,3,0.2))
  1265. CreateTornado(VT(0,100,0),true,-2,65,CF(RootPart.Position),"Pearl",VT(2,0,2))
  1266. Swait(300)
  1267. Appear()
  1268. coroutine.resume(coroutine.create(function()
  1269. Swait(250)
  1270. for _, c in pairs(ORBHOLDER:GetChildren()) do
  1271. if c.ClassName == "Part" then
  1272. c.CFrame = Torso.CFrame
  1273. c.GravityForce.Position = Torso.Position
  1274. c.Transparency = 0
  1275. table.insert(AvailableOrbs,c)
  1276. table.insert(Orbs,{c,c.GravityForce})
  1277. Swait(75)
  1278. end
  1279. end
  1280. end))
  1281. ATTACK = false
  1282. Rooted = false
  1283. end
  1284. end
  1285.  
  1286. function Taunt()
  1287. if #AvailableOrbs > 0 then
  1288. Swait()
  1289. local ORB = AvailableOrbs[MRANDOM(1,#AvailableOrbs)]
  1290. local NUMBER = ORB.ItemValue.Value
  1291. table.remove(AvailableOrbs,NUMBER)
  1292. table.remove(Orbs,NUMBER)
  1293. ATTACK = true
  1294. Rooted = true
  1295. CreateSound("649634100", Torso, 10, 0.8)
  1296. for i=0, 3, 0.1 / Animation_Speed do
  1297. Swait()
  1298. ORB.GravityForce.position = Torso.CFrame*CF(0,1,-2).p
  1299. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.75 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1300. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1301. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1302. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1303. RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(90), RAD(-5), RAD(40)), 0.2 / Animation_Speed)
  1304. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(90), RAD(25), RAD(-35)), 0.2 / Animation_Speed)
  1305. end
  1306. coroutine.resume(coroutine.create(function()
  1307. table.insert(AvailableOrbs,ORB)
  1308. table.insert(Orbs,{ORB,ORB.GravityForce})
  1309. end))
  1310. ATTACK = false
  1311. Rooted = false
  1312. end
  1313. end
  1314.  
  1315. --//=================================\\
  1316. --|| ASSIGN THINGS TO KEYS
  1317. --\\=================================//
  1318.  
  1319. function MouseDown(Mouse)
  1320. if ATTACK == false then
  1321. ClickAttack()
  1322. end
  1323. end
  1324.  
  1325. function MouseUp(Mouse)
  1326. HOLD = false
  1327. end
  1328.  
  1329. function KeyDown(Key)
  1330. KEYHOLD = true
  1331. if Key == "z" and ATTACK == false then
  1332. ZenArrow()
  1333. end
  1334.  
  1335. if Key == "b" and ATTACK == false then
  1336. ZenCastle()
  1337. end
  1338.  
  1339. if Key == "c" and ATTACK == false then
  1340. ZenOutbreak()
  1341. end
  1342.  
  1343. if Key == "t" and ATTACK == false then
  1344. Taunt()
  1345. end
  1346. end
  1347.  
  1348. function KeyUp(Key)
  1349. KEYHOLD = false
  1350. end
  1351.  
  1352. Mouse.Button1Down:connect(function(NEWKEY)
  1353. MouseDown(NEWKEY)
  1354. end)
  1355. Mouse.Button1Up:connect(function(NEWKEY)
  1356. MouseUp(NEWKEY)
  1357. end)
  1358. Mouse.KeyDown:connect(function(NEWKEY)
  1359. KeyDown(NEWKEY)
  1360. end)
  1361. Mouse.KeyUp:connect(function(NEWKEY)
  1362. KeyUp(NEWKEY)
  1363. end)
  1364.  
  1365. --//=================================\\
  1366. --\\=================================//
  1367.  
  1368.  
  1369. function unanchor()
  1370. if UNANCHOR == true then
  1371. g = Character:GetChildren()
  1372. for i = 1, #g do
  1373. if g[i].ClassName == "Part" then
  1374. g[i].Anchored = false
  1375. end
  1376. end
  1377. end
  1378. end
  1379.  
  1380.  
  1381. --//=================================\\
  1382. --|| WRAP THE WHOLE SCRIPT UP
  1383. --\\=================================//
  1384.  
  1385. Humanoid.Changed:connect(function(Jump)
  1386. if Jump == "Jump" and (Disable_Jump == true) then
  1387. Humanoid.Jump = false
  1388. end
  1389. end)
  1390.  
  1391. Humanoid.HipHeight = 1
  1392. local Part = CreatePart(3, Character, "Neon", 0, 0, "Pearl", "Eon", VT(0.1,0.2,0.1),false)
  1393. CreateWeldOrSnapOrMotor("Weld", Head, Head, Part, CF(-0.2, 0.2, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1394. MakeForm(Part,"Ball")
  1395. local Part = CreatePart(3, Character, "Neon", 0, 0, "Pearl", "Eon", VT(0.1,0.2,0.1),false)
  1396. CreateWeldOrSnapOrMotor("Weld", Head, Head, Part, CF(0.2, 0.2, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1397. MakeForm(Part,"Ball")
  1398.  
  1399. Speed = 25
  1400.  
  1401. while true do
  1402. Swait()
  1403. ANIMATE.Parent = nil
  1404. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1405. IDLEANIMATION:Play()
  1406. SINE = SINE + CHANGE
  1407. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1408. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1409. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1410. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1411. ANIM = "Levitate"
  1412. if ATTACK == false or VALUE1 == true then
  1413. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.75 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1414. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1415. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1416. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, 0) * ANGLES(RAD(35), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1417. RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(90), RAD(-5), RAD(40)), 0.2 / Animation_Speed)
  1418. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(90), RAD(25), RAD(-35)), 0.2 / Animation_Speed)
  1419. end
  1420. unanchor()
  1421. Humanoid.MaxHealth = "inf"
  1422. Humanoid.Health = "inf"
  1423. if Rooted == false then
  1424. Disable_Jump = false
  1425. Humanoid.WalkSpeed = Speed
  1426. elseif Rooted == true then
  1427. Disable_Jump = true
  1428. Humanoid.WalkSpeed = 0
  1429. end
  1430. if Head:FindFirstChild("face") then
  1431. Head.face:remove()
  1432. end
  1433. if Head:FindFirstChildOfClass("Sound") then
  1434. Head:FindFirstChildOfClass("Sound"):remove()
  1435. end
  1436. q = Character:GetChildren()
  1437. for u = 1, #q do
  1438. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1439. if q[u].Handle:FindFirstChild("FaceFrontAttachment") then
  1440. q[u].Handle.Transparency = 1
  1441. end
  1442. elseif q[u].ClassName == "CharacterMesh" then
  1443. q[u]:remove()
  1444. end
  1445. end
  1446. for _, c in pairs(ORBHOLDER:GetChildren()) do
  1447. c.Name = "IN USE"
  1448. end
  1449. if #Orbs>0 then
  1450. for e=1,#Orbs do
  1451. if Orbs[e]~=nil then
  1452. local Thing=Orbs[e]
  1453. if Thing~=nil then
  1454. local Part=Thing[1]
  1455. local Force=Thing[2]
  1456. Part.ItemValue.Value = e
  1457. Part.Anchored = false
  1458. Part.Parent = ORBHOLDER
  1459. Part.Name = e
  1460. Force.Position = Torso.CFrame*CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(e*(360/#Orbs)))*CF(0,3.5,1.5).p
  1461. end
  1462. end
  1463. end
  1464. end
  1465. end
  1466.  
  1467. --//=================================\\
  1468. --\\=================================//
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474. --//====================================================\\--
  1475. --|| END OF SCRIPT
  1476. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement