Advertisement
AgentVK

ChronoPugilist

Dec 28th, 2017
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 137.70 KB | None | 0 0
  1. warn'asd'
  2. warn'this is something to do when im busy'
  3. ---- DO NOT CHANGE ANYTHING BELOW IF YOU'RE NOT AN EDITOR
  4. plr = game.Players.LocalPlayer
  5. char = plr.Character
  6. hum = char.Humanoid
  7. local cam = game.Workspace.CurrentCamera
  8. t = char.Torso
  9. h = char.Head
  10. ra = char["Right Arm"]
  11. la = char["Left Arm"]
  12. rl = char["Right Leg"]
  13. ll = char["Left Leg"]
  14. tors = char.Torso
  15. lleg = char["Left Leg"]
  16. root = char.HumanoidRootPart
  17. hed = char.Head
  18. rleg = char["Right Leg"]
  19. rarm = char["Right Arm"]
  20. larm = char["Left Arm"]
  21. it = Instance.new
  22. vt = Vector3.new
  23. bc = BrickColor.new
  24. br = BrickColor.random
  25. it = Instance.new
  26. cf = CFrame.new
  27.  
  28.  
  29. local Unleashed = false
  30.  
  31. local move1name = "This is keystroke class"
  32. local move2name = "You'd better know the moves here"
  33. local move3name = "If you dont, press the key below"
  34. local move4name = "-- > B < --"
  35.  
  36. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  37. local gui = it(GuiType)
  38. gui.Parent = parent
  39. gui.Text = text
  40. gui.BackgroundTransparency = backtrans
  41. gui.BackgroundColor3 = backcol
  42. gui.SizeConstraint = "RelativeXY"
  43. gui.TextXAlignment = "Center"
  44. gui.TextYAlignment = "Center"
  45. gui.Position = pos
  46. gui.Size = size
  47. gui.Font = "SourceSans"
  48. gui.FontSize = "Size14"
  49. gui.TextWrapped = false
  50. gui.TextStrokeTransparency = 0
  51. gui.TextColor = BrickColor.new("White")
  52. return gui
  53. end
  54. ---- GUI set
  55. local maingui = it("GuiMain")
  56. maingui.Parent = plr.PlayerGui
  57. maingui.Name = "CooldownsGUI"
  58. local mframe = it("Frame")
  59. mframe.Parent = maingui
  60. mframe.BackgroundColor3 = Color3.new(255, 255, 255)
  61. mframe.BackgroundTransparency = 1
  62. mframe.BorderColor3 = Color3.new(17, 17, 17)
  63. mframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  64. mframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  65.  
  66. local mainguicolor = BrickColor.new("Lime green").Color
  67.  
  68. hpbar = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.5, 0, -0.515, 0), UDim2.new(1.25, 0, 0.15, 0))
  69. hpbar.ZIndex = 2
  70. hpbar.Font = "Code"
  71. hpbar.BackgroundTransparency = 0.5
  72. hpbar.BorderSizePixel = 0
  73. hpbar.TextScaled = true
  74. hpbar.Text = ""
  75. hpbar.BorderColor3 = Color3.new(0,0,0)
  76. hpbar.TextSize = 24
  77. local hpbarup = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,1,0), UDim2.new(-0.5, 0, -0.515, 0), UDim2.new(0.1, 0, 0.15, 0))
  78. hpbarup.ZIndex = 2
  79. hpbarup.Font = "Code"
  80. hpbarup.BackgroundTransparency = 0
  81. hpbarup.BorderSizePixel = 0
  82. hpbarup.TextScaled = true
  83. hpbarup.Text = ""
  84. hpbarup.BorderColor3 = Color3.new(0,0,0)
  85. hpbarup.TextSize = 24
  86. hptext = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.5, 0, -0.515, 0), UDim2.new(1.25, 0, 0.15, 0))
  87. hptext.ZIndex = 2
  88. hptext.Font = "Arcade"
  89. hptext.TextStrokeTransparency = 0.85
  90. hptext.BackgroundTransparency = 1
  91. hptext.BorderSizePixel = 0
  92. hptext.TextScaled = true
  93. hptext.Text = math.floor(hum.Health).. " / " ..math.floor(hum.MaxHealth)
  94. hptext.BorderColor3 = Color3.new(0,0,0)
  95. hptext.TextSize = 24
  96.  
  97.  
  98. cdbuttonhintZ = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.5, 0, -0.25, 0), UDim2.new(0.25, 0, 0.25, 0))
  99. cdbuttonhintZ.ZIndex = 2
  100. cdbuttonhintZ.Font = "Code"
  101. cdbuttonhintZ.BackgroundTransparency = 0
  102. cdbuttonhintZ.BorderSizePixel = 0.5
  103. cdbuttonhintZ.TextScaled = true
  104. cdbuttonhintZ.Text = "Z"
  105. cdbuttonhintZ.BorderColor3 = Color3.new(0,0,0)
  106. cdbuttonhintZ.TextSize = 24
  107. cdbarZ = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, -0.25, 0), UDim2.new(1, 0, 0.25, 0))
  108. cdbarZ.ZIndex = 2
  109. cdbarZ.Font = "Code"
  110. cdbarZ.BackgroundTransparency = 0.5
  111. cdbarZ.BorderSizePixel = 0
  112. cdbarZ.TextScaled = true
  113. cdbarZ.Text = ""
  114. cdbarZ.BorderColor3 = Color3.new(0,0,0)
  115. cdbarZ.TextSize = 24
  116. local cdbarupZ = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.25, 0, -0.25, 0), UDim2.new(0.1, 0, 0.25, 0))
  117. cdbarupZ.ZIndex = 2
  118. cdbarupZ.Font = "Code"
  119. cdbarupZ.BackgroundTransparency = 0.25
  120. cdbarupZ.BorderSizePixel = 0
  121. cdbarupZ.TextScaled = true
  122. cdbarupZ.Text = ""
  123. cdbarupZ.BorderColor3 = Color3.new(0,0,0)
  124. cdbarupZ.TextSize = 24
  125. cdtextZ = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, -0.25, 0), UDim2.new(1, 0, 0.25, 0))
  126. cdtextZ.ZIndex = 2
  127. cdtextZ.Font = "Code"
  128. cdtextZ.BackgroundTransparency = 1
  129. cdtextZ.BorderSizePixel = 0
  130. cdtextZ.TextScaled = true
  131. cdtextZ.Text = move1name
  132. cdtextZ.BorderColor3 = Color3.new(0,0,0)
  133. cdtextZ.TextSize = 24
  134.  
  135. cdbuttonhintX = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.5, 0, 0.015, 0), UDim2.new(0.25, 0, 0.25, 0))
  136. cdbuttonhintX.ZIndex = 2
  137. cdbuttonhintX.Font = "Code"
  138. cdbuttonhintX.BackgroundTransparency = 0
  139. cdbuttonhintX.BorderSizePixel = 0.5
  140. cdbuttonhintX.TextScaled = true
  141. cdbuttonhintX.Text = "X"
  142. cdbuttonhintX.BorderColor3 = Color3.new(0,0,0)
  143. cdbuttonhintX.TextSize = 24
  144. cdbarX = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.015, 0), UDim2.new(1, 0, 0.25, 0))
  145. cdbarX.ZIndex = 2
  146. cdbarX.Font = "Code"
  147. cdbarX.BackgroundTransparency = 0.5
  148. cdbarX.BorderSizePixel = 0
  149. cdbarX.TextScaled = true
  150. cdbarX.Text = ""
  151. cdbarX.BorderColor3 = Color3.new(0,0,0)
  152. cdbarX.TextSize = 24
  153. local cdbarupX = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.25, 0, 0.015, 0), UDim2.new(0.1, 0, 0.25, 0))
  154. cdbarupX.ZIndex = 2
  155. cdbarupX.Font = "Code"
  156. cdbarupX.BackgroundTransparency = 0.25
  157. cdbarupX.BorderSizePixel = 0
  158. cdbarupX.TextScaled = true
  159. cdbarupX.Text = ""
  160. cdbarupX.BorderColor3 = Color3.new(0,0,0)
  161. cdbarupX.TextSize = 24
  162. cdtextX = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.015, 0), UDim2.new(1, 0, 0.25, 0))
  163. cdtextX.ZIndex = 2
  164. cdtextX.Font = "Code"
  165. cdtextX.BackgroundTransparency = 1
  166. cdtextX.BorderSizePixel = 0
  167. cdtextX.TextScaled = true
  168. cdtextX.Text = move2name
  169. cdtextX.BorderColor3 = Color3.new(0,0,0)
  170. cdtextX.TextSize = 24
  171.  
  172. cdbuttonhintC = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.5, 0, 0.275, 0), UDim2.new(0.25, 0, 0.25, 0))
  173. cdbuttonhintC.ZIndex = 2
  174. cdbuttonhintC.Font = "Code"
  175. cdbuttonhintC.BackgroundTransparency = 0
  176. cdbuttonhintC.BorderSizePixel = 0.5
  177. cdbuttonhintC.TextScaled = true
  178. cdbuttonhintC.Text = "C"
  179. cdbuttonhintC.BorderColor3 = Color3.new(0,0,0)
  180. cdbuttonhintC.TextSize = 24
  181. cdbarC = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.275, 0), UDim2.new(1, 0, 0.25, 0))
  182. cdbarC.ZIndex = 2
  183. cdbarC.Font = "Code"
  184. cdbarC.BackgroundTransparency = 0.5
  185. cdbarC.BorderSizePixel = 0
  186. cdbarC.TextScaled = true
  187. cdbarC.Text = ""
  188. cdbarC.BorderColor3 = Color3.new(0,0,0)
  189. cdbarC.TextSize = 24
  190. local cdbarupC = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.25, 0, 0.275, 0), UDim2.new(0.1, 0, 0.25, 0))
  191. cdbarupC.ZIndex = 2
  192. cdbarupC.Font = "Code"
  193. cdbarupC.BackgroundTransparency = 0.25
  194. cdbarupC.BorderSizePixel = 0
  195. cdbarupC.TextScaled = true
  196. cdbarupC.Text = ""
  197. cdbarupC.BorderColor3 = Color3.new(0,0,0)
  198. cdbarupC.TextSize = 24
  199. cdtextC = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.275, 0), UDim2.new(1, 0, 0.25, 0))
  200. cdtextC.ZIndex = 2
  201. cdtextC.Font = "Code"
  202. cdtextC.BackgroundTransparency = 1
  203. cdtextC.BorderSizePixel = 0
  204. cdtextC.TextScaled = true
  205. cdtextC.Text = move3name
  206. cdtextC.BorderColor3 = Color3.new(0,0,0)
  207. cdtextC.TextSize = 24
  208.  
  209. cdbuttonhintV = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.5, 0, 0.53, 0), UDim2.new(0.25, 0, 0.25, 0))
  210. cdbuttonhintV.ZIndex = 2
  211. cdbuttonhintV.Font = "Code"
  212. cdbuttonhintV.BackgroundTransparency = 0
  213. cdbuttonhintV.BorderSizePixel = 0.5
  214. cdbuttonhintV.TextScaled = true
  215. cdbuttonhintV.Text = "V"
  216. cdbuttonhintV.BorderColor3 = Color3.new(0,0,0)
  217. cdbuttonhintV.TextSize = 24
  218. cdbarV = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.53, 0), UDim2.new(1, 0, 0.25, 0))
  219. cdbarV.ZIndex = 2
  220. cdbarV.Font = "Code"
  221. cdbarV.BackgroundTransparency = 0.5
  222. cdbarV.BorderSizePixel = 0
  223. cdbarV.TextScaled = true
  224. cdbarV.Text = ""
  225. cdbarV.BorderColor3 = Color3.new(0,0,0)
  226. cdbarV.TextSize = 24
  227. local cdbarupV = gui("TextLabel", mframe, "Basic", 0, mainguicolor, UDim2.new(-0.25, 0, 0.53, 0), UDim2.new(0.1, 0, 0.25, 0))
  228. cdbarupV.ZIndex = 2
  229. cdbarupV.Font = "Code"
  230. cdbarupV.BackgroundTransparency = 0.25
  231. cdbarupV.BorderSizePixel = 0
  232. cdbarupV.TextScaled = true
  233. cdbarupV.Text = ""
  234. cdbarupV.BorderColor3 = Color3.new(0,0,0)
  235. cdbarupV.TextSize = 24
  236. cdtextV = gui("TextLabel", mframe, "Basic", 0, Color3.new(0,0,0), UDim2.new(-0.25, 0, 0.53, 0), UDim2.new(1, 0, 0.25, 0))
  237. cdtextV.ZIndex = 2
  238. cdtextV.Font = "Code"
  239. cdtextV.BackgroundTransparency = 1
  240. cdtextV.BorderSizePixel = 0
  241. cdtextV.TextScaled = true
  242. cdtextV.Text = move4name
  243. cdtextV.BorderColor3 = Color3.new(0,0,0)
  244. cdtextV.TextSize = 24
  245.  
  246. local cooldownZ = 0
  247. local cooldownX = 0
  248. local cooldownC = 0
  249. local cooldownV = 0
  250.  
  251. function CameraShake(Times, Power)
  252. coroutine.resume(coroutine.create(function()
  253. FV = Instance.new("BoolValue", Character)
  254. FV.Name = "CameraShake"
  255. for ShakeNum=1,Times do
  256. swait()
  257. local ef=Power
  258. if ef>=1 then
  259. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  260. else
  261. ef=Power*10
  262. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  263. end
  264. end
  265. Humanoid.CameraOffset = Vector3.new(0,0,0)
  266. FV:Destroy()
  267. end))
  268. end
  269.  
  270. CamShake=function(Part,Distan,Power,Times)
  271. local de=Part.Position
  272. for i,v in pairs(workspace:children()) do
  273. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  274. for _,c in pairs(v:children()) do
  275. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  276. local Noob=v.Humanoid
  277. if Noob~=nil then
  278. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  279. --[[local ss=script.CamShake:clone()
  280. ss.Parent=Noob
  281. ss.Power.Value=Power
  282. ss.Times.Value=Times
  283. ss.Disabled=false]]
  284. CameraShake(Times, Power)
  285. end
  286. end
  287. end
  288. end
  289. end
  290. end
  291. end
  292.  
  293. function chatfunc(text,color)
  294. local chat = coroutine.wrap(function()
  295. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  296. Character:FindFirstChild("TalkingBillBoard"):destroy()
  297. end
  298. local naeeym2 = Instance.new("BillboardGui",Character)
  299. naeeym2.Size = UDim2.new(0,100,0,40)
  300. naeeym2.StudsOffset = Vector3.new(0,3,0)
  301. naeeym2.Adornee = Character.Head
  302. naeeym2.Name = "TalkingBillBoard"
  303. local tecks2 = Instance.new("TextLabel",naeeym2)
  304. tecks2.BackgroundTransparency = 1
  305. tecks2.BorderSizePixel = 0
  306. tecks2.Text = ""
  307. if Unleashed == false then
  308. tecks2.Font = "SourceSans"
  309. elseif Unleashed == true then
  310. tecks2.Font = "Antique"
  311. end
  312. tecks2.TextSize = 30
  313. tecks2.TextStrokeTransparency = 0
  314. if Unleashed == false then
  315. tecks2.TextColor3 = color
  316. elseif Unleashed == true then
  317. tecks2.TextColor3 = Color3.new(1,0,0)
  318. end
  319. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  320. tecks2.Size = UDim2.new(1,0,0.5,0)
  321. local tecks3 = Instance.new("TextLabel",naeeym2)
  322. tecks3.BackgroundTransparency = 1
  323. tecks3.BorderSizePixel = 0
  324. tecks3.Text = ""
  325. if Unleashed == false then
  326. tecks3.Font = "SourceSans"
  327. elseif Unleashed == true then
  328. tecks3.Font = "Antique"
  329. end
  330. tecks3.TextSize = 30
  331. tecks3.TextStrokeTransparency = 0
  332. if Unleashed == false then
  333. tecks3.TextColor3 = color
  334. elseif Unleashed == true then
  335. tecks3.TextColor3 = Color3.new(1,0,0)
  336. end
  337. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  338. tecks3.Size = UDim2.new(1,0,0.5,0)
  339. for i = 1,string.len(text),1 do
  340. tecks2.Text = string.sub(text,1,i)
  341. tecks3.Text = string.sub(text,1,i)
  342. wait(0.01)
  343. end
  344. wait(1)
  345. local randomrot = math.random(1,2)
  346. if randomrot == 1 then
  347. for i = 1, 50 do
  348. swait()
  349. tecks2.Rotation = tecks2.Rotation - .75
  350. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  351. tecks2.TextTransparency = tecks2.TextTransparency + .04
  352. tecks3.Rotation = tecks2.Rotation + .75
  353. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  354. tecks3.TextTransparency = tecks2.TextTransparency + .04
  355. end
  356. elseif randomrot == 2 then
  357. for i = 1, 50 do
  358. swait()
  359. tecks2.Rotation = tecks2.Rotation + .75
  360. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  361. tecks2.TextTransparency = tecks2.TextTransparency + .04
  362. tecks3.Rotation = tecks2.Rotation - .75
  363. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  364. tecks3.TextTransparency = tecks2.TextTransparency + .04
  365. end
  366. end
  367. naeeym2:Destroy()
  368. end)
  369. chat()
  370. end
  371.  
  372.  
  373. local Create = LoadLibrary("RbxUtility").Create
  374.  
  375. CFuncs = {
  376. ["Part"] = {
  377. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  378. local Part = Create("Part"){
  379. Parent = Parent,
  380. Reflectance = Reflectance,
  381. Transparency = Transparency,
  382. CanCollide = false,
  383. Locked = true,
  384. BrickColor = BrickColor.new(tostring(BColor)),
  385. Name = Name,
  386. Size = Size,
  387. Material = Material,
  388. }
  389. RemoveOutlines(Part)
  390. return Part
  391. end;
  392. };
  393.  
  394. ["Mesh"] = {
  395. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  396. local Msh = Create(Mesh){
  397. Parent = Part,
  398. Offset = OffSet,
  399. Scale = Scale,
  400. }
  401. if Mesh == "SpecialMesh" then
  402. Msh.MeshType = MeshType
  403. Msh.MeshId = MeshId
  404. end
  405. return Msh
  406. end;
  407. };
  408.  
  409. ["Mesh"] = {
  410. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  411. local Msh = Create(Mesh){
  412. Parent = Part,
  413. Offset = OffSet,
  414. Scale = Scale,
  415. }
  416. if Mesh == "SpecialMesh" then
  417. Msh.MeshType = MeshType
  418. Msh.MeshId = MeshId
  419. end
  420. return Msh
  421. end;
  422. };
  423.  
  424. ["Weld"] = {
  425. Create = function(Parent, Part0, Part1, C0, C1)
  426. local Weld = Create("Weld"){
  427. Parent = Parent,
  428. Part0 = Part0,
  429. Part1 = Part1,
  430. C0 = C0,
  431. C1 = C1,
  432. }
  433. return Weld
  434. end;
  435. };
  436.  
  437. ["Sound"] = {
  438. Create = function(id, par, vol, pit)
  439. coroutine.resume(coroutine.create(function()
  440. local S = Create("Sound"){
  441. Volume = vol,
  442. Pitch = pit or 1,
  443. SoundId = id,
  444. Parent = par or workspace,
  445. }
  446. wait()
  447. S:play()
  448. game:GetService("Debris"):AddItem(S, 10)
  449. end))
  450. end;
  451. };
  452.  
  453. ["LongSound"] = {
  454. Create = function(id, par, vol, pit)
  455. coroutine.resume(coroutine.create(function()
  456. local S = Create("Sound"){
  457. Volume = vol,
  458. Pitch = pit or 1,
  459. SoundId = id,
  460. Parent = par or workspace,
  461. }
  462. wait()
  463. S:play()
  464. game:GetService("Debris"):AddItem(S, 30)
  465. end))
  466. end;
  467. };
  468.  
  469. ["ParticleEmitter"] = {
  470. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  471. local fp = Create("ParticleEmitter"){
  472. Parent = Parent,
  473. Color = ColorSequence.new(Color1, Color2),
  474. LightEmission = LightEmission,
  475. Size = Size,
  476. Texture = Texture,
  477. Transparency = Transparency,
  478. ZOffset = ZOffset,
  479. Acceleration = Accel,
  480. Drag = Drag,
  481. LockedToPart = LockedToPart,
  482. VelocityInheritance = VelocityInheritance,
  483. EmissionDirection = EmissionDirection,
  484. Enabled = Enabled,
  485. Lifetime = LifeTime,
  486. Rate = Rate,
  487. Rotation = Rotation,
  488. RotSpeed = RotSpeed,
  489. Speed = Speed,
  490. VelocitySpread = VelocitySpread,
  491. }
  492. return fp
  493. end;
  494. };
  495.  
  496. CreateTemplate = {
  497.  
  498. };
  499. }
  500.  
  501.  
  502.  
  503. New = function(Object, Parent, Name, Data)
  504. local Object = Instance.new(Object)
  505. for Index, Value in pairs(Data or {}) do
  506. Object[Index] = Value
  507. end
  508. Object.Parent = Parent
  509. Object.Name = Name
  510. return Object
  511. end
  512. local m = Instance.new("Model",char)
  513. local modil = m
  514.  
  515. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  516. local p = Instance.new("Part")
  517. p.TopSurface = 0
  518. p.BottomSurface = 0
  519. p.Parent = parent
  520. p.Size = Vector3.new(0.05,0.05,0.05)
  521. p.Transparency = transparency
  522. p.Reflectance = reflectance
  523. p.CanCollide = false
  524. p.Locked = true
  525. p.BrickColor = brickcolor
  526. p.Material = material
  527. return p
  528. end
  529.  
  530. function CreateMesh(parent,meshtype,x1,y1,z1)
  531. local mesh = Instance.new("SpecialMesh",parent)
  532. mesh.MeshType = meshtype
  533. mesh.Scale = Vector3.new(x1*20,y1*20,z1*20)
  534. return mesh
  535. end
  536.  
  537. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  538. local mesh = Instance.new("SpecialMesh",parent)
  539. mesh.MeshType = "FileMesh"
  540. mesh.MeshId = meshid
  541. mesh.Scale = Vector3.new(x1,y1,z1)
  542. return mesh
  543. end
  544.  
  545.  
  546. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  547. local mesh = Instance.new("SpecialMesh",parent)
  548. mesh.MeshType = "FileMesh"
  549. mesh.MeshId = meshid
  550. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  551. mesh.Scale = Vector3.new(x1,y1,z1)
  552. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  553. return mesh
  554. end
  555.  
  556. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  557. local weld = Instance.new("Weld")
  558. weld.Parent = parent
  559. weld.Part0 = part0
  560. weld.Part1 = part1
  561. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  562. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  563. return weld
  564. end
  565.  
  566.  
  567. local maincolor = BrickColor.new("Lime green")
  568. local maincolor2 = BrickColor.new("Really black")
  569. local maincolor3 = BrickColor.new("Black")
  570. local maincolor4 = BrickColor.new("Camo")
  571.  
  572.  
  573. ---- WEAPON
  574. local larmor = CreateParta(m,1,0,"SmoothPlastic",maincolor2)
  575. CreateWeld(larmor,larm,larmor,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  576. local rarmor = CreateParta(m,1,0,"SmoothPlastic",maincolor2)
  577. CreateWeld(rarmor,rarm,rarmor,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  578. --- main section
  579. local handle = CreateParta(m,0,0,"SmoothPlastic",maincolor2)
  580. CreateMesh(handle,"Brick",0.125,0.125,2)
  581. local swordweld = CreateWeld(handle,rarm,handle,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  582.  
  583. local dia = CreateParta(m,0,0,"SmoothPlastic",maincolor3)
  584. CreateMesh(dia,"Brick",0.25,0.25,0.3)
  585. CreateWeld(dia,handle,dia,0,0,-1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  586. local dia2 = CreateParta(m,0,0,"Neon",maincolor)
  587. CreateMesh(dia2,"Brick",0.215,0.215,0.325)
  588. CreateWeld(dia2,dia,dia2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  589.  
  590. local dib = CreateParta(m,0,0,"SmoothPlastic",maincolor2)
  591. CreateMesh(dib,"Brick",0.185,0.185,0.665)
  592. CreateWeld(dib,handle,dib,0,0,-1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  593. local dib2 = CreateParta(m,0,0,"Neon",maincolor)
  594. CreateMesh(dib2,"Brick",0.155,0.155,0.6715)
  595. CreateWeld(dib2,dib,dib2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  596. local did = CreateParta(m,0,0,"SmoothPlastic",maincolor2)
  597. CreateMesh(did,"Brick",0.185,0.185,0.665)
  598. CreateWeld(did,handle,did,0,0,1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  599. local did2 = CreateParta(m,0,0,"Neon",maincolor)
  600. CreateMesh(did2,"Brick",0.155,0.155,0.6715)
  601. CreateWeld(did2,did,did2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  602. local rig = CreateParta(m,0,0,"Neon",maincolor4)
  603. CreateSpecialGlowMesh(rig,"http://www.roblox.com/asset/?id=15392960",0.1,0.15,0.1)
  604. CreateWeld(rig,dib,rig,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  605. local rig = CreateParta(m,0,0,"Neon",maincolor4)
  606. CreateSpecialGlowMesh(rig,"http://www.roblox.com/asset/?id=15392960",0.1,0.15,0.1)
  607. CreateWeld(rig,dib,rig,0,0,0,math.rad(0),math.rad(0),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  608. local rig = CreateParta(m,0,0,"Neon",maincolor4)
  609. CreateSpecialGlowMesh(rig,"http://www.roblox.com/asset/?id=15392960",0.1,0.15,0.1)
  610. CreateWeld(rig,dib,rig,0,0,0,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  611. local rig = CreateParta(m,0,0,"Neon",maincolor4)
  612. CreateSpecialGlowMesh(rig,"http://www.roblox.com/asset/?id=15392960",0.1,0.15,0.1)
  613. CreateWeld(rig,dib,rig,0,0,0,math.rad(0),math.rad(0),math.rad(270),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  614.  
  615. local rig2 = CreateParta(m,0,0,"Neon",maincolor)
  616. CreateSpecialGlowMesh(rig2,"http://www.roblox.com/asset/?id=15392960",0.3,0.15,0.3)
  617. CreateWeld(rig2,dib,rig2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  618. local rig2 = CreateParta(m,0,0,"Neon",maincolor)
  619. CreateSpecialGlowMesh(rig2,"http://www.roblox.com/asset/?id=15392960",0.3,0.15,0.3)
  620. CreateWeld(rig2,dib,rig2,0,0,0,math.rad(0),math.rad(0),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  621. local rig2 = CreateParta(m,0,0,"Neon",maincolor)
  622. CreateSpecialGlowMesh(rig2,"http://www.roblox.com/asset/?id=15392960",0.3,0.15,0.3)
  623. CreateWeld(rig2,dib,rig2,0,0,0,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  624. local rig2 = CreateParta(m,0,0,"Neon",maincolor)
  625. CreateSpecialGlowMesh(rig2,"http://www.roblox.com/asset/?id=15392960",0.3,0.15,0.3)
  626. CreateWeld(rig2,dib,rig2,0,0,0,math.rad(0),math.rad(0),math.rad(270),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  627.  
  628. local rig3 = CreateParta(m,0,0,"Neon",maincolor)
  629. CreateSpecialGlowMesh(rig3,"http://www.roblox.com/asset/?id=15392960",0.25,0.075,0.25)
  630. CreateWeld(rig3,did,rig3,0,0,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  631. local rig3 = CreateParta(m,0,0,"Neon",maincolor)
  632. CreateSpecialGlowMesh(rig3,"http://www.roblox.com/asset/?id=15392960",0.25,0.075,0.25)
  633. CreateWeld(rig3,did,rig3,0,0,0.5,math.rad(0),math.rad(0),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  634. local rig3 = CreateParta(m,0,0,"Neon",maincolor)
  635. CreateSpecialGlowMesh(rig3,"http://www.roblox.com/asset/?id=15392960",0.25,0.075,0.25)
  636. CreateWeld(rig3,did,rig3,0,0,0.5,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  637. local rig3 = CreateParta(am,0,0,"Neon",maincolor)
  638. CreateSpecialGlowMesh(rig3,"http://www.roblox.com/asset/?id=15392960",0.25,0.075,0.25)
  639. CreateWeld(rig3,did,rig3,0,0,0.5,math.rad(0),math.rad(0),math.rad(270),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  640.  
  641. local orb = CreateParta(m,0,0,"Neon",maincolor4)
  642. CreateMesh(orb,"Sphere",0.25,0.25,0.25)
  643. CreateWeld(orb,did,orb,0,0,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  644. local blade = CreateParta(m,0.5,0,"Glass",maincolor4)
  645. CreateMesh(blade,"Brick",0.05,0.9,1*4)
  646. CreateWeld(blade,handle,blade,0,0,2.5*1.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  647.  
  648. local sumorb = CreateParta(m,1,0,"Neon",maincolor4)
  649. CreateWeld(sumorb,blade,sumorb,0,0,2.15*2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  650.  
  651. local wed = CreateParta(m,0.5,0,"Glass",maincolor4)
  652. CreateMesh(wed,"Wedge",0.05,0.4,0.6)
  653. CreateWeld(wed,handle,wed,0,0.25,-1.75,math.rad(180),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  654. local wed2 = CreateParta(m,0.5,0,"Glass",maincolor4)
  655. CreateMesh(wed2,"Wedge",0.05,0.4,0.6)
  656. CreateWeld(wed2,handle,wed2,0,0.25,-1.75,math.rad(180),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  657.  
  658. local wed = CreateParta(m,0.5,0,"Glass",maincolor4)
  659. CreateMesh(wed,"Wedge",0.05,0.445,1)
  660. CreateWeld(wed,handle,wed,0,-0.2225,6.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  661. local wed2 = CreateParta(m,0.5,0,"Glass",maincolor4)
  662. CreateMesh(wed2,"Wedge",0.05,0.445,1)
  663. CreateWeld(wed2,handle,wed2,0,-0.2225,6.25,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  664. local hitbox = CreateParta(m,1,1,"SmoothPlastic",maincolor4)
  665. hitbox.Size = Vector3.new(0.25,1,5)
  666. CreateWeld(hitbox,blade,hitbox,0,0,0,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  667. ------
  668.  
  669. function RemoveOutlines(part)
  670. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  671. end
  672. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  673. local Part = Create("Part")({
  674. Parent = Parent,
  675. Reflectance = Reflectance,
  676. Transparency = Transparency,
  677. CanCollide = false,
  678. Locked = true,
  679. BrickColor = BrickColor.new(tostring(BColor)),
  680. Name = Name,
  681. Size = Size,
  682. Material = Material
  683. })
  684. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  685. RemoveOutlines(Part)
  686. return Part
  687. end
  688. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  689. local Msh = Create(Mesh)({
  690. Parent = Part,
  691. Offset = OffSet,
  692. Scale = Scale
  693. })
  694. if Mesh == "SpecialMesh" then
  695. Msh.MeshType = MeshType
  696. Msh.MeshId = MeshId
  697. end
  698. return Msh
  699. end
  700. function CreateWeld(Parent, Part0, Part1, C0, C1)
  701. local Weld = Create("Weld")({
  702. Parent = Parent,
  703. Part0 = Part0,
  704. Part1 = Part1,
  705. C0 = C0,
  706. C1 = C1
  707. })
  708. return Weld
  709. end
  710.  
  711. Player=game:GetService("Players").LocalPlayer
  712. Character=Player.Character
  713. PlayerGui=Player.PlayerGui
  714. Backpack=Player.Backpack
  715. Torso=Character.Torso
  716. Head=Character.Head
  717. Humanoid=Character.Humanoid
  718. m=Instance.new('Model',Character)
  719. LeftArm=Character["Left Arm"]
  720. LeftLeg=Character["Left Leg"]
  721. RightArm=Character["Right Arm"]
  722. RightLeg=Character["Right Leg"]
  723. LS=Torso["Left Shoulder"]
  724. LH=Torso["Left Hip"]
  725. RS=Torso["Right Shoulder"]
  726. RH=Torso["Right Hip"]
  727. Face = Head.face
  728. Neck=Torso.Neck
  729. it=Instance.new
  730. attacktype=1
  731. vt=Vector3.new
  732. cf=CFrame.new
  733. euler=CFrame.fromEulerAnglesXYZ
  734. angles=CFrame.Angles
  735. cloaked=false
  736. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  737. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  738. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  739. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  740. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  741. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  742. RootPart=Character.HumanoidRootPart
  743. RootJoint=RootPart.RootJoint
  744. RootCF=euler(-1.57,0,3.14)
  745. attack = false
  746. attackdebounce = false
  747. deb=false
  748. equipped=true
  749. hand=false
  750. MMouse=nil
  751. combo=0
  752. mana=0
  753. trispeed=.2
  754. attackmode='none'
  755. local idle=0
  756. local Anim="Idle"
  757. local Effects={}
  758. local gun=false
  759. local shoot=false
  760. local sine = 0
  761. local change = 1
  762. player=nil
  763.  
  764. mouse=Player:GetMouse()
  765. --save shoulders
  766. RSH, LSH=nil, nil
  767. --welds
  768. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  769. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  770. LH=Torso["Left Hip"]
  771. RH=Torso["Right Hip"]
  772. TorsoColor=Torso.BrickColor
  773. function NoOutline(Part)
  774. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  775. end
  776. player=Player
  777. ch=Character
  778. RSH=ch.Torso["Right Shoulder"]
  779. LSH=ch.Torso["Left Shoulder"]
  780. --
  781. RSH.Parent=nil
  782. LSH.Parent=nil
  783. --
  784. RW.Name="Right Shoulder"
  785. RW.Part0=ch.Torso
  786. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  787. RW.C1=cf(0, 0.5, 0)
  788. RW.Part1=ch["Right Arm"]
  789. RW.Parent=ch.Torso
  790. --
  791. LW.Name="Left Shoulder"
  792. LW.Part0=ch.Torso
  793. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  794. LW.C1=cf(0, 0.5, 0)
  795. LW.Part1=ch["Left Arm"]
  796. LW.Parent=ch.Torso
  797.  
  798. local Stats=Instance.new("BoolValue")
  799. Stats.Name="Stats"
  800. Stats.Parent=Character
  801. local Atk=Instance.new("NumberValue")
  802. Atk.Name="Damage"
  803. Atk.Parent=Stats
  804. Atk.Value=1
  805. local Def=Instance.new("NumberValue")
  806. Def.Name="Defense"
  807. Def.Parent=Stats
  808. Def.Value=1
  809. local Speed=Instance.new("NumberValue")
  810. Speed.Name="Speed"
  811. Speed.Parent=Stats
  812. Speed.Value=1
  813. local Mvmt=Instance.new("NumberValue")
  814. Mvmt.Name="Movement"
  815. Mvmt.Parent=Stats
  816. Mvmt.Value=1
  817.  
  818. local donum=0
  819.  
  820.  
  821. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  822. local fp=it("Part")
  823. fp.formFactor=formfactor
  824. fp.Parent=parent
  825. fp.Reflectance=reflectance
  826. fp.Transparency=transparency
  827. fp.CanCollide=false
  828. fp.Locked=true
  829. fp.BrickColor=brickcolor
  830. fp.Name=name
  831. fp.Size=size
  832. fp.Position=Torso.Position
  833. NoOutline(fp)
  834. fp.Material="SmoothPlastic"
  835. fp:BreakJoints()
  836. return fp
  837. end
  838.  
  839. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  840. local mesh=it(Mesh)
  841. mesh.Parent=part
  842. if Mesh=="SpecialMesh" then
  843. mesh.MeshType=meshtype
  844. if meshid~="nil" then
  845. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  846. end
  847. end
  848. mesh.Offset=offset
  849. mesh.Scale=scale
  850. return mesh
  851. end
  852.  
  853. function weld(parent,part0,part1,c0)
  854. local weld=it("Weld")
  855. weld.Parent=parent
  856. weld.Part0=part0
  857. weld.Part1=part1
  858. weld.C0=c0
  859. return weld
  860. end
  861.  
  862. local Color1=Torso.BrickColor
  863.  
  864. local bodvel=Instance.new("BodyVelocity")
  865. local bg=Instance.new("BodyGyro")
  866.  
  867. function swait(num)
  868. if num==0 or num==nil then
  869. game:service'RunService'.Stepped:wait(0)
  870. else
  871. for i=0,num do
  872. game:service'RunService'.Stepped:wait(0)
  873. end
  874. end
  875. end
  876.  
  877.  
  878. so = function(id,par,vol,pit)
  879. coroutine.resume(coroutine.create(function()
  880. local sou = Instance.new("Sound",par or workspace)
  881. sou.Volume=vol
  882. sou.Pitch=pit or 1
  883. sou.SoundId=id
  884. swait()
  885. sou:play()
  886. game:GetService("Debris"):AddItem(sou,6)
  887. end))
  888. end
  889.  
  890. function clerp(a,b,t)
  891. local qa = {QuaternionFromCFrame(a)}
  892. local qb = {QuaternionFromCFrame(b)}
  893. local ax, ay, az = a.x, a.y, a.z
  894. local bx, by, bz = b.x, b.y, b.z
  895. local _t = 1-t
  896. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  897. end
  898.  
  899. function QuaternionFromCFrame(cf)
  900. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  901. local trace = m00 + m11 + m22
  902. if trace > 0 then
  903. local s = math.sqrt(1 + trace)
  904. local recip = 0.5/s
  905. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  906. else
  907. local i = 0
  908. if m11 > m00 then
  909. i = 1
  910. end
  911. if m22 > (i == 0 and m00 or m11) then
  912. i = 2
  913. end
  914. if i == 0 then
  915. local s = math.sqrt(m00-m11-m22+1)
  916. local recip = 0.5/s
  917. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  918. elseif i == 1 then
  919. local s = math.sqrt(m11-m22-m00+1)
  920. local recip = 0.5/s
  921. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  922. elseif i == 2 then
  923. local s = math.sqrt(m22-m00-m11+1)
  924. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  925. end
  926. end
  927. end
  928.  
  929. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  930. local xs, ys, zs = x + x, y + y, z + z
  931. local wx, wy, wz = w*xs, w*ys, w*zs
  932. local xx = x*xs
  933. local xy = x*ys
  934. local xz = x*zs
  935. local yy = y*ys
  936. local yz = y*zs
  937. local zz = z*zs
  938. 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))
  939. end
  940.  
  941. function QuaternionSlerp(a, b, t)
  942. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  943. local startInterp, finishInterp;
  944. if cosTheta >= 0.0001 then
  945. if (1 - cosTheta) > 0.0001 then
  946. local theta = math.acos(cosTheta)
  947. local invSinTheta = 1/math.sin(theta)
  948. startInterp = math.sin((1-t)*theta)*invSinTheta
  949. finishInterp = math.sin(t*theta)*invSinTheta
  950. else
  951. startInterp = 1-t
  952. finishInterp = t
  953. end
  954. else
  955. if (1+cosTheta) > 0.0001 then
  956. local theta = math.acos(-cosTheta)
  957. local invSinTheta = 1/math.sin(theta)
  958. startInterp = math.sin((t-1)*theta)*invSinTheta
  959. finishInterp = math.sin(t*theta)*invSinTheta
  960. else
  961. startInterp = t-1
  962. finishInterp = t
  963. end
  964. end
  965. 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
  966. end
  967.  
  968. local function CFrameFromTopBack(at, top, back)
  969. local right = top:Cross(back)
  970. return CFrame.new(at.x, at.y, at.z,
  971. right.x, top.x, back.x,
  972. right.y, top.y, back.y,
  973. right.z, top.z, back.z)
  974. end
  975.  
  976. function Triangle(a, b, c)
  977. local edg1 = (c-a):Dot((b-a).unit)
  978. local edg2 = (a-b):Dot((c-b).unit)
  979. local edg3 = (b-c):Dot((a-c).unit)
  980. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  981. a, b, c = a, b, c
  982. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  983. a, b, c = b, c, a
  984. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  985. a, b, c = c, a, b
  986. else
  987. assert(false, "unreachable")
  988. end
  989.  
  990. local len1 = (c-a):Dot((b-a).unit)
  991. local len2 = (b-a).magnitude - len1
  992. local width = (a + (b-a).unit*len1 - c).magnitude
  993.  
  994. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  995.  
  996. local list = {}
  997.  
  998. if len1 > 0.01 then
  999. local w1 = Instance.new('WedgePart', m)
  1000. game:GetService("Debris"):AddItem(w1,5)
  1001. w1.Material = "SmoothPlastic"
  1002. w1.FormFactor = 'Custom'
  1003. w1.BrickColor = BrickColor.new("Really red")
  1004. w1.Transparency = 0
  1005. w1.Reflectance = 0
  1006. w1.Material = "SmoothPlastic"
  1007. w1.CanCollide = false
  1008. local l1 = Instance.new("PointLight",w1)
  1009. l1.Color = Color3.new(170,0,0)
  1010. NoOutline(w1)
  1011. local sz = Vector3.new(0.2, width, len1)
  1012. w1.Size = sz
  1013. local sp = Instance.new("SpecialMesh",w1)
  1014. sp.MeshType = "Wedge"
  1015. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1016. w1:BreakJoints()
  1017. w1.Anchored = true
  1018. w1.Parent = workspace
  1019. w1.Transparency = 0.7
  1020. table.insert(Effects,{w1,"Disappear",.01})
  1021. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1022. table.insert(list,w1)
  1023. end
  1024.  
  1025. if len2 > 0.01 then
  1026. local w2 = Instance.new('WedgePart', m)
  1027. game:GetService("Debris"):AddItem(w2,5)
  1028. w2.Material = "SmoothPlastic"
  1029. w2.FormFactor = 'Custom'
  1030. w2.BrickColor = BrickColor.new("Really red")
  1031. w2.Transparency = 0
  1032. w2.Reflectance = 0
  1033. w2.Material = "SmoothPlastic"
  1034. w2.CanCollide = false
  1035. local l2 = Instance.new("PointLight",w2)
  1036. l2.Color = Color3.new(170,0,0)
  1037. NoOutline(w2)
  1038. local sz = Vector3.new(0.2, width, len2)
  1039. w2.Size = sz
  1040. local sp = Instance.new("SpecialMesh",w2)
  1041. sp.MeshType = "Wedge"
  1042. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1043. w2:BreakJoints()
  1044. w2.Anchored = true
  1045. w2.Parent = workspace
  1046. w2.Transparency = 0.7
  1047. table.insert(Effects,{w2,"Disappear",.01})
  1048. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1049. table.insert(list,w2)
  1050. end
  1051. return unpack(list)
  1052. end
  1053.  
  1054.  
  1055. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1056. if hit.Parent == nil then
  1057. return
  1058. end
  1059. local h = hit.Parent:FindFirstChild("Humanoid")
  1060. for _, v in pairs(hit.Parent:children()) do
  1061. if v:IsA("Humanoid") then
  1062. h = v
  1063. end
  1064. end
  1065. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1066. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1067. return
  1068. end
  1069. local c = Create("ObjectValue")({
  1070. Name = "creator",
  1071. Value = game:service("Players").LocalPlayer,
  1072. Parent = h
  1073. })
  1074. game:GetService("Debris"):AddItem(c, 0.5)
  1075. if HitSound ~= nil and HitPitch ~= nil then
  1076. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1077. end
  1078. local Damage = math.random(minim, maxim)
  1079. local blocked = false
  1080. local block = hit.Parent:findFirstChild("Block")
  1081. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1082. blocked = true
  1083. block.Value = block.Value - 1
  1084. print(block.Value)
  1085. end
  1086. if blocked == false then
  1087. HitHealth = h.Health
  1088. h.Health = h.Health - Damage
  1089. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1090. print("gained kill")
  1091. end
  1092. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1093. else
  1094. h.Health = h.Health - Damage / 2
  1095. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1096. end
  1097. if Type == "Knockdown" then
  1098. local hum = hit.Parent.Humanoid
  1099. hum.PlatformStand = true
  1100. coroutine.resume(coroutine.create(function(HHumanoid)
  1101. swait(1)
  1102. HHumanoid.PlatformStand = false
  1103. end), hum)
  1104. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1105. local bodvol = Create("BodyVelocity")({
  1106. velocity = angle * knockback,
  1107. P = 5000,
  1108. maxForce = Vector3.new(8000, 8000, 8000),
  1109. Parent = hit
  1110. })
  1111. local rl = Create("BodyAngularVelocity")({
  1112. P = 3000,
  1113. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1114. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1115. Parent = hit
  1116. })
  1117. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1118. game:GetService("Debris"):AddItem(rl, 0.5)
  1119. elseif Type == "Normal" then
  1120. local vp = Create("BodyVelocity")({
  1121. P = 500,
  1122. maxForce = Vector3.new(math.huge, 0, math.huge),
  1123. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1124. })
  1125. if knockback > 0 then
  1126. vp.Parent = hit.Parent.Torso
  1127. end
  1128. game:GetService("Debris"):AddItem(vp, 0.5)
  1129. elseif Type == "Up" then
  1130. local bodyVelocity = Create("BodyVelocity")({
  1131. velocity = Vector3.new(0, 20, 0),
  1132. P = 5000,
  1133. maxForce = Vector3.new(8000, 8000, 8000),
  1134. Parent = hit
  1135. })
  1136. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1137. local bodyVelocity = Create("BodyVelocity")({
  1138. velocity = Vector3.new(0, 20, 0),
  1139. P = 5000,
  1140. maxForce = Vector3.new(8000, 8000, 8000),
  1141. Parent = hit
  1142. })
  1143. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1144. elseif Type == "Leech" then
  1145. local hum = hit.Parent.Humanoid
  1146. if hum ~= nil then
  1147. for i = 0, 2 do
  1148. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1149. end
  1150. Humanoid.Health = Humanoid.Health + 10
  1151. end
  1152. elseif Type == "UpKnock" then
  1153. local hum = hit.Parent.Humanoid
  1154. hum.PlatformStand = true
  1155. if hum ~= nil then
  1156. hitr = true
  1157. end
  1158. coroutine.resume(coroutine.create(function(HHumanoid)
  1159. swait(5)
  1160. HHumanoid.PlatformStand = false
  1161. hitr = false
  1162. end), hum)
  1163. local bodyVelocity = Create("BodyVelocity")({
  1164. velocity = Vector3.new(0, 20, 0),
  1165. P = 5000,
  1166. maxForce = Vector3.new(8000, 8000, 8000),
  1167. Parent = hit
  1168. })
  1169. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1170. local bodyVelocity = Create("BodyVelocity")({
  1171. velocity = Vector3.new(0, 20, 0),
  1172. P = 5000,
  1173. maxForce = Vector3.new(8000, 8000, 8000),
  1174. Parent = hit
  1175. })
  1176. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1177. elseif Type == "Snare" then
  1178. local bp = Create("BodyPosition")({
  1179. P = 2000,
  1180. D = 100,
  1181. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1182. position = hit.Parent.Torso.Position,
  1183. Parent = hit.Parent.Torso
  1184. })
  1185. game:GetService("Debris"):AddItem(bp, 1)
  1186. elseif Type == "Slashnare" then
  1187. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1188. for i = 1, math.random(4, 5) do
  1189. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1190. end
  1191. local bp = Create("BodyPosition")({
  1192. P = 2000,
  1193. D = 100,
  1194. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1195. position = hit.Parent.Torso.Position,
  1196. Parent = hit.Parent.Torso
  1197. })
  1198. game:GetService("Debris"):AddItem(bp, 1)
  1199. elseif Type == "Spike" then
  1200. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1201. local bp = Create("BodyPosition")({
  1202. P = 2000,
  1203. D = 100,
  1204. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1205. position = hit.Parent.Torso.Position,
  1206. Parent = hit.Parent.Torso
  1207. })
  1208. game:GetService("Debris"):AddItem(bp, 1)
  1209. elseif Type == "Freeze" then
  1210. local BodPos = Create("BodyPosition")({
  1211. P = 50000,
  1212. D = 1000,
  1213. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1214. position = hit.Parent.Torso.Position,
  1215. Parent = hit.Parent.Torso
  1216. })
  1217. local BodGy = Create("BodyGyro")({
  1218. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1219. P = 20000,
  1220. Parent = hit.Parent.Torso,
  1221. cframe = hit.Parent.Torso.CFrame
  1222. })
  1223. hit.Parent.Torso.Anchored = true
  1224. coroutine.resume(coroutine.create(function(Part)
  1225. swait(1.5)
  1226. Part.Anchored = false
  1227. end), hit.Parent.Torso)
  1228. game:GetService("Debris"):AddItem(BodPos, 3)
  1229. game:GetService("Debris"):AddItem(BodGy, 3)
  1230. end
  1231. local debounce = Create("BoolValue")({
  1232. Name = "DebounceHit",
  1233. Parent = hit.Parent,
  1234. Value = true
  1235. })
  1236. game:GetService("Debris"):AddItem(debounce, Delay)
  1237. c = Instance.new("ObjectValue")
  1238. c.Name = "creator"
  1239. c.Value = Player
  1240. c.Parent = h
  1241. game:GetService("Debris"):AddItem(c, 0.5)
  1242. end
  1243. end
  1244. function ShowDamage(Pos, Text, Time, Color)
  1245. local Rate = 0.03333333333333333
  1246. local Pos = Pos or Vector3.new(0, 0, 0)
  1247. local Text = Text or ""
  1248. local Time = Time or 2
  1249. local Color = Color or Color3.new(1, 0, 1)
  1250. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1251. EffectPart.Anchored = true
  1252. local BillboardGui = Create("BillboardGui")({
  1253. Size = UDim2.new(3, 0, 3, 0),
  1254. Adornee = EffectPart,
  1255. Parent = EffectPart
  1256. })
  1257. local TextLabel = Create("TextLabel")({
  1258. BackgroundTransparency = 1,
  1259. Size = UDim2.new(1, 0, 1, 0),
  1260. Text = Text,
  1261. TextColor3 = Color,
  1262. TextScaled = true,
  1263. Font = Enum.Font.ArialBold,
  1264. Parent = BillboardGui
  1265. })
  1266. game.Debris:AddItem(EffectPart, Time + 0.1)
  1267. EffectPart.Parent = game:GetService("Workspace")
  1268. delay(0, function()
  1269. local Frames = Time / Rate
  1270. for Frame = 1, Frames do
  1271. wait(Rate)
  1272. local Percent = Frame / Frames
  1273. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1274. TextLabel.TextTransparency = Percent
  1275. end
  1276. if EffectPart and EffectPart.Parent then
  1277. EffectPart:Destroy()
  1278. end
  1279. end)
  1280. end
  1281. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1282. for _, c in pairs(workspace:children()) do
  1283. local hum = c:findFirstChild("Humanoid")
  1284. if hum ~= nil then
  1285. local head = c:findFirstChild("Torso")
  1286. if head ~= nil then
  1287. local targ = head.Position - Part.Position
  1288. local mag = targ.magnitude
  1289. if magni >= mag and c.Name ~= Player.Name then
  1290. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1291. end
  1292. end
  1293. end
  1294. end
  1295. end
  1296.  
  1297. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1298. for _, c in pairs(workspace:children()) do
  1299. local hum = c:findFirstChild("Humanoid")
  1300. if hum ~= nil then
  1301. local head = c:findFirstChild("Torso")
  1302. if head ~= nil then
  1303. local targ = head.Position - Part.Position
  1304. local mag = targ.magnitude
  1305. if magni >= mag and c.Name ~= Player.Name then
  1306. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1307. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1308. end
  1309. end
  1310. end
  1311. end
  1312. end
  1313.  
  1314. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1315. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1316. end
  1317.  
  1318. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1319. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1320. prt.Anchored=true
  1321. prt.CFrame=cframe
  1322. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1323. --http://www.roblox.com/asset/?id=4770560
  1324. game:GetService("Debris"):AddItem(prt,2)
  1325. CF=prt.CFrame
  1326. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1327. for i=0,1,0.2 do
  1328. wait()
  1329. Part.CFrame=CF*cf(0,0,-0.4)
  1330. end
  1331. for i=0,1,delay do
  1332. wait()
  1333. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1334. Mesh.Scale=Mesh.Scale
  1335. end
  1336. for i=0,1,0.1 do
  1337. wait()
  1338. Part.Transparency=i
  1339. end
  1340. Part.Parent=nil
  1341. end),prt,msh,CF)
  1342. end
  1343.  
  1344. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1345. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1346. prt.Anchored=true
  1347. prt.Material = "Neon"
  1348. prt.CFrame=cframe
  1349. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1350. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1351. game:GetService("Debris"):AddItem(prt,5)
  1352. coroutine.resume(coroutine.create(function(Part,Mesh)
  1353. for i=0,1,delay do
  1354. swait()
  1355. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1356. Part.Transparency=i
  1357. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1358. end
  1359. Part.Parent=nil
  1360. end),prt,msh)
  1361. end
  1362.  
  1363. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1364. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1365. prt.Anchored=true
  1366. prt.Material = "Neon"
  1367. prt.CFrame=cframe
  1368. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1369. game:GetService("Debris"):AddItem(prt,5)
  1370. coroutine.resume(coroutine.create(function(Part,Mesh)
  1371. local rtype = rottype
  1372. for i=0,1,delay do
  1373. swait()
  1374. if rtype == 1 then
  1375. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1376. elseif rtype == 2 then
  1377. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1378. end
  1379. Part.Transparency=i
  1380. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1381. end
  1382. Part.Parent=nil
  1383. end),prt,msh)
  1384. end
  1385.  
  1386. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1387. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1388. prt.Anchored=true
  1389. prt.CFrame=cframe
  1390. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1391. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1392. game:GetService("Debris"):AddItem(prt,5)
  1393. coroutine.resume(coroutine.create(function(Part,Mesh)
  1394. for i=0,1,delay do
  1395. wait()
  1396. Part.Transparency=i
  1397. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1398. end
  1399. Part.Parent=nil
  1400. end),prt,msh)
  1401. end
  1402.  
  1403. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1404. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1405. prt.Anchored=true
  1406. prt.Material = "Neon"
  1407. prt.CFrame=cframe
  1408. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1409. game:GetService("Debris"):AddItem(prt,5)
  1410. coroutine.resume(coroutine.create(function(Part,Mesh)
  1411. local rtype = rottype
  1412. for i=0,1,delay do
  1413. swait()
  1414. if rtype == 1 then
  1415. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1416. elseif rtype == 2 then
  1417. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1418. end
  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 MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1427. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1428. prt.Anchored=true
  1429. prt.Material = "Neon"
  1430. prt.CFrame=cframe
  1431. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1432. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1433. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1434. game:GetService("Debris"):AddItem(prt,5)
  1435. coroutine.resume(coroutine.create(function(Part,Mesh)
  1436. local rtype = rottype
  1437. for i=0,1,delay do
  1438. swait()
  1439. if rtype == 1 then
  1440. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1441. elseif rtype == 2 then
  1442. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1443. end
  1444. dec.Transparency=i
  1445. dec2.Transparency=i
  1446. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1447. end
  1448. Part.Parent=nil
  1449. end),prt,msh)
  1450. end
  1451.  
  1452. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1453. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1454. prt.Anchored=true
  1455. prt.Material = "Neon"
  1456. prt.CFrame=cframe
  1457. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1458. game:GetService("Debris"):AddItem(prt,5)
  1459. coroutine.resume(coroutine.create(function(Part,Mesh)
  1460. local rtype = rottype
  1461. for i=0,1,delay do
  1462. swait()
  1463. if rtype == 1 then
  1464. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1465. elseif rtype == 2 then
  1466. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1467. end
  1468. prt.Transparency=i
  1469. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1470. end
  1471. Part.Parent=nil
  1472. end),prt,msh)
  1473. end
  1474.  
  1475. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1476. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1477. prt.Anchored=true
  1478. prt.Material = "Neon"
  1479. prt.CFrame=cframe
  1480. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1481. game:GetService("Debris"):AddItem(prt,5)
  1482. coroutine.resume(coroutine.create(function(Part,Mesh)
  1483. local rtype = rottype
  1484. for i=0,1,delay do
  1485. swait()
  1486. if rtype == 1 then
  1487. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1488. elseif rtype == 2 then
  1489. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1490. end
  1491. prt.Transparency=i
  1492. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1493. end
  1494. Part.Parent=nil
  1495. end),prt,msh)
  1496. end
  1497.  
  1498. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1499. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1500. prt.Anchored=true
  1501. prt.Material = "Neon"
  1502. prt.CFrame=cframe
  1503. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1504. game:GetService("Debris"):AddItem(prt,5)
  1505. coroutine.resume(coroutine.create(function(Part,Mesh)
  1506. local rtype = rottype
  1507. for i=0,1,delay do
  1508. swait()
  1509. if rtype == 1 then
  1510. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1511. elseif rtype == 2 then
  1512. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1513. end
  1514. prt.Transparency=i
  1515. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1516. end
  1517. Part.Parent=nil
  1518. end),prt,msh)
  1519. end
  1520.  
  1521. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1522. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1523. prt.Anchored=true
  1524. prt.Material = "Neon"
  1525. prt.CFrame=cframe
  1526. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1527. game:GetService("Debris"):AddItem(prt,5)
  1528. coroutine.resume(coroutine.create(function(Part,Mesh)
  1529. local rtype = rottype
  1530. for i=0,1,delay do
  1531. swait()
  1532. if rtype == 1 then
  1533. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1534. elseif rtype == 2 then
  1535. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1536. end
  1537. prt.Transparency=i
  1538. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1539. end
  1540. Part.Parent=nil
  1541. end),prt,msh)
  1542. end
  1543.  
  1544. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1545. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1546. prt.Anchored=false
  1547. prt.CFrame=cframe
  1548. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1549. local wld=weld(prt,prt,Parent,cframe)
  1550. game:GetService("Debris"):AddItem(prt,5)
  1551. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1552. for i=0,1,delay do
  1553. wait()
  1554. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1555. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1556. Part.Transparency=i
  1557. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1558. end
  1559. Part.Parent=nil
  1560. end),prt,msh,wld)
  1561. end
  1562.  
  1563. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1564. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1565. prt.Anchored=false
  1566. prt.CFrame=cframe
  1567. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1568. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1569. game:GetService("Debris"):AddItem(prt,5)
  1570. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1571. for i=0,1,delay do
  1572. wait()
  1573. Weld.C0=euler(i*20,0,0)
  1574. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1575. Part.Transparency=i
  1576. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1577. end
  1578. Part.Parent=nil
  1579. end),prt,msh,wld)
  1580. end
  1581.  
  1582. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1583. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1584. prt.Anchored=true
  1585. prt.CFrame=cframe
  1586. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1587. game:GetService("Debris"):AddItem(prt,2)
  1588. coroutine.resume(coroutine.create(function(Part,Mesh)
  1589. for i=0,1,delay do
  1590. wait()
  1591. Part.CFrame=Part.CFrame
  1592. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1593. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1594. prt2.Anchored=true
  1595. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1596. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1597. game:GetService("Debris"):AddItem(prt2,2)
  1598. coroutine.resume(coroutine.create(function(Part,Mesh)
  1599. for i=0,1,0.1 do
  1600. wait()
  1601. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1602. end
  1603. Part.Parent=nil
  1604. end),prt2,msh2)
  1605. end
  1606. for i=0,1,delay*2 do
  1607. wait()
  1608. Part.CFrame=Part.CFrame
  1609. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1610. end
  1611. Part.Parent=nil
  1612. end),prt,msh)
  1613. end
  1614.  
  1615. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1616. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1617. prt.Anchored=true
  1618. prt.CFrame=cframe
  1619. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1620. game:GetService("Debris"):AddItem(prt,2)
  1621. coroutine.resume(coroutine.create(function(Part,Mesh)
  1622. for i=0,1,delay do
  1623. wait()
  1624. Part.CFrame=Part.CFrame
  1625. Part.Transparency=i
  1626. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1627. end
  1628. Part.Parent=nil
  1629. end),prt,msh)
  1630. end
  1631.  
  1632. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1633. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1634. prt.Anchored=true
  1635. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1636. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1637. game:GetService("Debris"):AddItem(prt,2)
  1638. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1639. CF=Part.CFrame
  1640. Numbb=0
  1641. randnumb=math.random()/10
  1642. rand1=math.random()/10
  1643. for i=0,1,rand1 do
  1644. wait()
  1645. CF=CF*cf(0,math.random()/2,0)
  1646. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1647. Part.CFrame=CF*euler(Numbb,0,0)
  1648. Part.Transparency=i
  1649. Numbb=Numbb+randnumb
  1650. end
  1651. Part.Parent=nil
  1652. end),prt,CF,Numbb,randnumb)
  1653. end
  1654.  
  1655. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1656. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1657. prt.Anchored=true
  1658. prt.CFrame=cframe
  1659. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1660. game:GetService("Debris"):AddItem(prt,5)
  1661. coroutine.resume(coroutine.create(function(Part,Mesh)
  1662. for i=0,1,delay do
  1663. wait()
  1664. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1665. Part.Transparency=i
  1666. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1667. end
  1668. Part.Parent=nil
  1669. end),prt,msh)
  1670. end
  1671.  
  1672. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1673. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1674. prt.Anchored=true
  1675. prt.CFrame=cframe
  1676. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1677. game:GetService("Debris"):AddItem(prt,2)
  1678. coroutine.resume(coroutine.create(function(Part,Mesh)
  1679. for i=0,1,delay do
  1680. wait()
  1681. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1682. Part.Transparency=i
  1683. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1684. end
  1685. Part.Parent=nil
  1686. end),prt,msh)
  1687. end
  1688.  
  1689. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1690. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1691. prt.Anchored=true
  1692. prt.CFrame=cframe*cf(x,y,z)
  1693. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1694. game:GetService("Debris"):AddItem(prt,5)
  1695. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1696. local num=math.random()
  1697. local num2=math.random(-3,2)+math.random()
  1698. local numm=0
  1699. for i=0,1,delay*2 do
  1700. swait()
  1701. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1702. Part.Transparency=i
  1703. numm=numm+0.01
  1704. end
  1705. Part.Parent=nil
  1706. Mesh.Parent=nil
  1707. end),prt,msh,x,y,z)
  1708. end
  1709.  
  1710. function dmgstart(dmg,what)
  1711. hitcon = what.Touched:connect(function(hit)
  1712. local hum = hit.Parent:FindFirstChild("Humanoid")
  1713. if hum and not hum:IsDescendantOf(Character) then
  1714. hum:TakeDamage(dmg)
  1715. end
  1716. end)
  1717. end
  1718.  
  1719. function dmgstop()
  1720. hitcon:disconnect()
  1721. end
  1722.  
  1723. function Cloak()
  1724. Face.Parent=nil
  1725. cloaked=true
  1726. for _,v in pairs(Torso.Parent:children()) do
  1727. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1728. coroutine.resume(coroutine.create(function()
  1729. for i=0,1,0.2 do
  1730. wait()
  1731. v.Transparency=i
  1732. end
  1733. v.Transparency=1
  1734. end))
  1735. end
  1736. if v.className=="Hat" then
  1737. hatp=v.Handle
  1738. coroutine.resume(coroutine.create(function(derp)
  1739. for i=0,1,0.2 do
  1740. wait()
  1741. derp.Transparency=i
  1742. end
  1743. derp.Transparency=1
  1744. end),hatp)
  1745. end
  1746. end
  1747. for _,v in pairs(m:children()) do
  1748. if v.className=="Part" then
  1749. coroutine.resume(coroutine.create(function()
  1750. for i=0,1,0.2 do
  1751. wait()
  1752. v.Transparency=i
  1753. end
  1754. v.Transparency=1
  1755. end))
  1756. end
  1757. end
  1758. end
  1759.  
  1760. function UnCloak()
  1761. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1762. Face.Parent=Head
  1763. cloaked=false
  1764. for _,v in pairs(Torso.Parent:children()) do
  1765. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1766. coroutine.resume(coroutine.create(function()
  1767. for i=0,1,0.1 do
  1768. wait()
  1769. v.Transparency=v.Transparency-0.1
  1770. end
  1771. v.Transparency=0
  1772. end))
  1773. end
  1774. if v.className=="Hat" then
  1775. hatp=v.Handle
  1776. coroutine.resume(coroutine.create(function(derp)
  1777. for i=0,1,0.1 do
  1778. wait()
  1779. derp.Transparency=derp.Transparency-0.1
  1780. end
  1781. derp.Transparency=0
  1782. end),hatp)
  1783. end
  1784. end
  1785. for _,v in pairs(m:children()) do
  1786. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1787. coroutine.resume(coroutine.create(function()
  1788. for i=0,1,0.1 do
  1789. wait()
  1790. v.Transparency=v.Transparency-0.1
  1791. end
  1792. v.Transparency=0
  1793. end))
  1794. v.Transparency=0
  1795. end
  1796. end
  1797. end
  1798.  
  1799. local origcolor = BrickColor.new("Lime green")
  1800. ---- This section of explosions.
  1801. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1802. local expart = Instance.new("Part",char)
  1803. local expart2 = Instance.new("Part",char)
  1804. local rin = Instance.new("Part",char)
  1805. local rin2 = Instance.new("Part",char)
  1806. local partMesh = Instance.new("SpecialMesh",expart)
  1807. partMesh.MeshType = "Sphere"
  1808. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1809. partMesh2.MeshType = "Sphere"
  1810. local partMesh3 = Instance.new("SpecialMesh",rin)
  1811. partMesh3.MeshType = "Brick"
  1812. local partMesh4 = Instance.new("SpecialMesh",rin2)
  1813. partMesh4.MeshType = "Brick"
  1814. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1815. partMesh.Scale = vt(rad,rad,rad)
  1816. expart.Size = vt(1,1,1)
  1817. expart.Transparency = 0
  1818. expart.Anchored = true
  1819. expart.Material = "Neon"
  1820. expart.BrickColor = bc("White")
  1821. expart.CFrame = par.CFrame
  1822. partMesh2.Scale = vt(rad,rad,rad)
  1823. expart2.Size = vt(1.15,1.15,1.15)
  1824. expart2.Transparency = 0.5
  1825. expart2.Anchored = true
  1826. expart2.Material = "Neon"
  1827. expart2.BrickColor = par.BrickColor
  1828. expart2.CFrame = par.CFrame
  1829. rin.Size = vt(1.15,1.15,1.15)
  1830. rin.Transparency = 1
  1831. rin.Anchored = true
  1832. rin.Material = "Neon"
  1833. rin.BrickColor = par.BrickColor
  1834. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1835. rin2.Size = vt(1.15,1.15,1.15)
  1836. rin2.Transparency = 1
  1837. rin2.Anchored = true
  1838. rin2.Material = "Neon"
  1839. rin2.BrickColor = par.BrickColor
  1840. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1841. partMesh3.Scale = vt(0,1,0)
  1842. partMesh4.Scale = vt(0,1,0)
  1843. local dec2 = Instance.new("Decal", rin)
  1844. dec2.Face = "Top"
  1845. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1846. dec2.Parent = rin
  1847. local dec2b = dec2:Clone()
  1848. dec2b.Face = "Bottom"
  1849. dec2b.Parent = rin
  1850.  
  1851. local dec2a = Instance.new("Decal", rin2)
  1852. dec2a.Face = "Top"
  1853. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1854. dec2a.Parent = rin2
  1855. local dec2ab = dec2a:Clone()
  1856. dec2ab.Face = "Bottom"
  1857. dec2ab.Parent = rin2
  1858. expart.CanCollide = false
  1859. expart2.CanCollide = false
  1860. rin.CanCollide = false
  1861. rin2.CanCollide = false
  1862. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1863. local value = 1*rad/6.5
  1864. for i = 0, 199 do
  1865. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1866. expart.CFrame = expart.CFrame
  1867. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1868. expart2.CFrame = expart.CFrame
  1869. value = value - 0.035*rad/30
  1870. if value < 7.5 then
  1871. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1872. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1873. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1874. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1875. end
  1876. if value < 0 then
  1877. dec2.Transparency = dec2.Transparency + 0.025
  1878. dec2a.Transparency = dec2a.Transparency + 0.025
  1879. dec2b.Transparency = dec2b.Transparency + 0.025
  1880. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1881. expart.Transparency = expart.Transparency + 0.025
  1882. expart2.Transparency = expart2.Transparency + 0.025
  1883. rin.Transparency = rin.Transparency + 0.025
  1884. rin2.Transparency = rin2.Transparency + 0.025
  1885. end
  1886. swait()
  1887. end
  1888. game:GetService("Debris"):AddItem(expart, 1)
  1889. game:GetService("Debris"):AddItem(expart2, 1)
  1890. game:GetService("Debris"):AddItem(rin, 1)
  1891. game:GetService("Debris"):AddItem(rin2, 1)
  1892. end
  1893.  
  1894. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1895. local expart = Instance.new("Part",char)
  1896. local expart2 = Instance.new("Part",char)
  1897. local partMesh = Instance.new("SpecialMesh",expart)
  1898. partMesh.MeshType = "Sphere"
  1899. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1900. partMesh2.MeshType = "Sphere"
  1901. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1902. partMesh.Scale = vt(rad,rad,rad)
  1903. expart.Size = vt(1,1,1)
  1904. expart.Transparency = 0
  1905. expart.Anchored = true
  1906. expart.Material = "Neon"
  1907. expart.BrickColor = bc("White")
  1908. expart.CFrame = par.CFrame
  1909. partMesh2.Scale = vt(rad,rad,rad)
  1910. expart2.Size = vt(1.15,1.15,1.15)
  1911. expart2.Transparency = 0.5
  1912. expart2.Anchored = true
  1913. expart2.Material = "Neon"
  1914. expart2.BrickColor = par.BrickColor
  1915. expart2.CFrame = par.CFrame
  1916. expart.CanCollide = false
  1917. expart2.CanCollide = false
  1918. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1919. local value = 1*rad/6.5
  1920. for i = 0, 75 do
  1921. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1922. expart.CFrame = expart.CFrame
  1923. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1924. expart2.CFrame = expart.CFrame
  1925. value = value - 0.035*rad/5
  1926. if value < 0 then
  1927. value = 0
  1928. expart.Transparency = expart.Transparency + 0.05
  1929. expart2.Transparency = expart2.Transparency + 0.05
  1930. end
  1931. swait()
  1932. end
  1933. game:GetService("Debris"):AddItem(expart, 1)
  1934. game:GetService("Debris"):AddItem(expart2, 1)
  1935. end
  1936.  
  1937. function AreaDanger(rad,par,mindam,maxdam)
  1938. local expart = Instance.new("Part",char)
  1939. local partMesh = Instance.new("SpecialMesh",expart)
  1940. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1941. partMesh.MeshType = "Sphere"
  1942. partMesh.Scale = vt(rad,rad,rad)
  1943. expart.Size = vt(1,1,1)
  1944. expart.Transparency = 0.5
  1945. expart.Anchored = true
  1946. expart.Material = "Neon"
  1947. expart.CanCollide = false
  1948. expart.BrickColor = par.BrickColor
  1949. expart.CFrame = par.CFrame
  1950. local value = 1*rad/5
  1951. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1952. for i = 0, 14 do
  1953. wait()
  1954. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1955. expart.CFrame = expart.CFrame
  1956. value = value - 0.035*rad
  1957. if value < 0 then
  1958. value = 0
  1959. end
  1960. end
  1961. wait(0.25)
  1962. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1963. wait(0.5)
  1964. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1965. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1966. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1967. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1968. for i = 0, 14 do
  1969. wait()
  1970. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1971. expart.CFrame = expart.CFrame
  1972. value = value - 0.035*rad/2
  1973. end
  1974. expart.Transparency = 1
  1975. game:GetService("Debris"):AddItem(expart, 5)
  1976. end
  1977.  
  1978. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1979. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1980. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1981. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1982. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1983. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1984. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1985. for i = 0, 24 do
  1986. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  1987. end
  1988. for i = 0, 24 do
  1989. local expart = Instance.new("Part",char)
  1990. expart.Transparency = 1
  1991. expart.Anchored = true
  1992. expart.CanCollide = false
  1993. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  1994. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  1995. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1996. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  1997. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  1998. for i = 0, 9 do
  1999. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2000. end
  2001. game:GetService("Debris"):AddItem(expart, 2)
  2002. wait(0.1)
  2003. end
  2004. end
  2005.  
  2006. function EXterPlosion(par)
  2007. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2008. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2009. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2010. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2011. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2012. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2013. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2014. for i = 0, 24 do
  2015. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2016. end
  2017. for i = 0, 24 do
  2018. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2019. end
  2020. end
  2021. ----
  2022.  
  2023.  
  2024. function ring(type,pos,scale,value)
  2025. local type = type
  2026. local rng = Instance.new("Part", char)
  2027. rng.Anchored = true
  2028. rng.BrickColor = origcolor
  2029. rng.CanCollide = false
  2030. rng.FormFactor = 3
  2031. rng.Name = "Ring"
  2032. rng.Size = Vector3.new(1, 1, 1)
  2033. rng.Transparency = 0
  2034. rng.TopSurface = 0
  2035. rng.BottomSurface = 0
  2036. rng.CFrame = pos
  2037. local rngm = Instance.new("SpecialMesh", rng)
  2038. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2039. rngm.Scale = scale
  2040. local scaler2 = 1
  2041. if type == "Add" then
  2042. scaler2 = 1*value
  2043. elseif type == "Divide" then
  2044. scaler2 = 1/value
  2045. end
  2046. coroutine.resume(coroutine.create(function()
  2047. for i = 0,10,0.1 do
  2048. swait()
  2049. if type == "Add" then
  2050. scaler2 = scaler2 - 0.01*value
  2051. elseif type == "Divide" then
  2052. scaler2 = scaler2 - 0.01/value
  2053. end
  2054. rng.Transparency = rng.Transparency + 0.01
  2055. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2056. end
  2057. rng:Destroy()
  2058. end))
  2059. end
  2060.  
  2061. function ring2(type,pos,scale,value,color)
  2062. local type = type
  2063. local rng = Instance.new("Part", char)
  2064. rng.Anchored = true
  2065. rng.BrickColor = color
  2066. rng.CanCollide = false
  2067. rng.FormFactor = 3
  2068. rng.Name = "Ring"
  2069. rng.Size = Vector3.new(1, 1, 1)
  2070. rng.Transparency = 0
  2071. rng.TopSurface = 0
  2072. rng.BottomSurface = 0
  2073. rng.CFrame = pos
  2074. local rngm = Instance.new("SpecialMesh", rng)
  2075. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2076. rngm.Scale = scale
  2077. local scaler2 = 1
  2078. if type == "Add" then
  2079. scaler2 = 1*value
  2080. elseif type == "Divide" then
  2081. scaler2 = 1/value
  2082. end
  2083. coroutine.resume(coroutine.create(function()
  2084. for i = 0,10,0.1 do
  2085. swait()
  2086. if type == "Add" then
  2087. scaler2 = scaler2 - 0.01*value
  2088. elseif type == "Divide" then
  2089. scaler2 = scaler2 - 0.01/value
  2090. end
  2091. rng.Transparency = rng.Transparency + 0.01
  2092. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2093. end
  2094. rng:Destroy()
  2095. end))
  2096. end
  2097.  
  2098.  
  2099. function wave(type,pos,scale,value)
  2100. local type = type
  2101. local rng = Instance.new("Part", char)
  2102. rng.Anchored = true
  2103. rng.BrickColor = origcolor
  2104. rng.CanCollide = false
  2105. rng.FormFactor = 3
  2106. rng.Name = "Ring"
  2107. rng.Size = Vector3.new(1, 1, 1)
  2108. rng.Transparency = 0
  2109. rng.TopSurface = 0
  2110. rng.BottomSurface = 0
  2111. rng.CFrame = pos
  2112. local rngm = Instance.new("SpecialMesh", rng)
  2113. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2114. rngm.Scale = scale
  2115. local scaler2 = 1
  2116. if type == "Add" then
  2117. scaler2 = 1*value
  2118. elseif type == "Divide" then
  2119. scaler2 = 1/value
  2120. end
  2121. coroutine.resume(coroutine.create(function()
  2122. for i = 0,10,0.1 do
  2123. swait()
  2124. if type == "Add" then
  2125. scaler2 = scaler2 - 0.01*value
  2126. elseif type == "Divide" then
  2127. scaler2 = scaler2 - 0.01/value
  2128. end
  2129. rng.Transparency = rng.Transparency + 0.01
  2130. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2131. end
  2132. rng:Destroy()
  2133. end))
  2134. end
  2135.  
  2136. function wave2(type,pos,scale,value,color)
  2137. local type = type
  2138. local rng = Instance.new("Part", char)
  2139. rng.Anchored = true
  2140. rng.BrickColor = color
  2141. rng.CanCollide = false
  2142. rng.FormFactor = 3
  2143. rng.Name = "Ring"
  2144. rng.Size = Vector3.new(1, 1, 1)
  2145. rng.Transparency = 0
  2146. rng.TopSurface = 0
  2147. rng.BottomSurface = 0
  2148. rng.CFrame = pos
  2149. local rngm = Instance.new("SpecialMesh", rng)
  2150. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2151. rngm.Scale = scale
  2152. local scaler2 = 1
  2153. if type == "Add" then
  2154. scaler2 = 1*value
  2155. elseif type == "Divide" then
  2156. scaler2 = 1/value
  2157. end
  2158. coroutine.resume(coroutine.create(function()
  2159. for i = 0,10,0.1 do
  2160. swait()
  2161. if type == "Add" then
  2162. scaler2 = scaler2 - 0.01*value
  2163. elseif type == "Divide" then
  2164. scaler2 = scaler2 - 0.01/value
  2165. end
  2166. rng.Transparency = rng.Transparency + 0.01
  2167. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2168. end
  2169. rng:Destroy()
  2170. end))
  2171. end
  2172.  
  2173.  
  2174. function wind(type,pos,scale,value,speed)
  2175. local type = type
  2176. local rng = Instance.new("Part", char)
  2177. rng.Anchored = true
  2178. rng.BrickColor = origcolor
  2179. rng.CanCollide = false
  2180. rng.FormFactor = 3
  2181. rng.Name = "Ring"
  2182. rng.Size = Vector3.new(1, 1, 1)
  2183. rng.Transparency = 0
  2184. rng.TopSurface = 0
  2185. rng.BottomSurface = 0
  2186. rng.CFrame = pos
  2187. local rngm = Instance.new("SpecialMesh", rng)
  2188. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2189. rngm.Scale = scale
  2190. local scaler2 = 1
  2191. if type == "Add" then
  2192. scaler2 = 1*value
  2193. elseif type == "Divide" then
  2194. scaler2 = 1/value
  2195. end
  2196. coroutine.resume(coroutine.create(function()
  2197. for i = 0,10,0.1 do
  2198. swait()
  2199. if type == "Add" then
  2200. scaler2 = scaler2 - 0.01*value
  2201. elseif type == "Divide" then
  2202. scaler2 = scaler2 - 0.01/value
  2203. end
  2204. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2205. rng.Transparency = rng.Transparency + 0.01
  2206. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2207. end
  2208. rng:Destroy()
  2209. end))
  2210. end
  2211.  
  2212. function groundwind(type,pos,scale,value,speed)
  2213. local type = type
  2214. local rng = Instance.new("Part", char)
  2215. rng.Anchored = true
  2216. rng.BrickColor = origcolor
  2217. rng.CanCollide = false
  2218. rng.FormFactor = 3
  2219. rng.Name = "Ring"
  2220. rng.Size = Vector3.new(1, 1, 1)
  2221. rng.Transparency = 0
  2222. rng.TopSurface = 0
  2223. rng.BottomSurface = 0
  2224. rng.CFrame = pos
  2225. local rngm = Instance.new("SpecialMesh", rng)
  2226. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2227. rngm.Scale = scale
  2228. local scaler2 = 1
  2229. if type == "Add" then
  2230. scaler2 = 1*value
  2231. elseif type == "Divide" then
  2232. scaler2 = 1/value
  2233. end
  2234. coroutine.resume(coroutine.create(function()
  2235. for i = 0,10,0.1 do
  2236. swait()
  2237. if type == "Add" then
  2238. scaler2 = scaler2 - 0.01*value
  2239. elseif type == "Divide" then
  2240. scaler2 = scaler2 - 0.01/value
  2241. end
  2242. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2243. rng.Transparency = rng.Transparency + 0.01
  2244. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2245. end
  2246. rng:Destroy()
  2247. end))
  2248. end
  2249.  
  2250. function sphere(type,pos,scale,value)
  2251. local type = type
  2252. local rng = Instance.new("Part", char)
  2253. rng.Anchored = true
  2254. rng.BrickColor = origcolor
  2255. rng.CanCollide = false
  2256. rng.FormFactor = 3
  2257. rng.Name = "Ring"
  2258. rng.Material = "Neon"
  2259. rng.Size = Vector3.new(1, 1, 1)
  2260. rng.Transparency = 0
  2261. rng.TopSurface = 0
  2262. rng.BottomSurface = 0
  2263. rng.CFrame = pos
  2264. local rngm = Instance.new("SpecialMesh", rng)
  2265. rngm.MeshType = "Sphere"
  2266. rngm.Scale = scale
  2267. local scaler2 = 1
  2268. if type == "Add" then
  2269. scaler2 = 1*value
  2270. elseif type == "Divide" then
  2271. scaler2 = 1/value
  2272. end
  2273. coroutine.resume(coroutine.create(function()
  2274. for i = 0,10,0.1 do
  2275. swait()
  2276. if type == "Add" then
  2277. scaler2 = scaler2 - 0.01*value
  2278. elseif type == "Divide" then
  2279. scaler2 = scaler2 - 0.01/value
  2280. end
  2281. rng.Transparency = rng.Transparency + 0.01
  2282. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2283. end
  2284. rng:Destroy()
  2285. end))
  2286. end
  2287.  
  2288. function sphereglass(type,pos,scale,value)
  2289. local type = type
  2290. local rng = Instance.new("Part", char)
  2291. rng.Anchored = true
  2292. rng.BrickColor = origcolor
  2293. rng.CanCollide = false
  2294. rng.FormFactor = 3
  2295. rng.Name = "Ring"
  2296. rng.Material = "Glass"
  2297. rng.Size = Vector3.new(1, 1, 1)
  2298. rng.Transparency = 0
  2299. rng.TopSurface = 0
  2300. rng.BottomSurface = 0
  2301. rng.CFrame = pos
  2302. local rngm = Instance.new("SpecialMesh", rng)
  2303. rngm.MeshType = "Sphere"
  2304. rngm.Scale = scale
  2305. local scaler2 = 1
  2306. if type == "Add" then
  2307. scaler2 = 1*value
  2308. elseif type == "Divide" then
  2309. scaler2 = 1/value
  2310. end
  2311. coroutine.resume(coroutine.create(function()
  2312. for i = 0,10,0.1 do
  2313. swait()
  2314. if type == "Add" then
  2315. scaler2 = scaler2 - 0.01*value
  2316. elseif type == "Divide" then
  2317. scaler2 = scaler2 - 0.01/value
  2318. end
  2319. rng.Transparency = rng.Transparency + 0.01
  2320. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2321. end
  2322. rng:Destroy()
  2323. end))
  2324. end
  2325.  
  2326. function beam(type,pos,scale,value)
  2327. local type = type
  2328. local rng = Instance.new("Part", char)
  2329. rng.Anchored = true
  2330. rng.BrickColor = origcolor
  2331. rng.CanCollide = false
  2332. rng.FormFactor = 3
  2333. rng.Name = "Ring"
  2334. rng.Material = "Neon"
  2335. rng.Size = Vector3.new(1, 1, 1)
  2336. rng.Transparency = 0
  2337. rng.TopSurface = 0
  2338. rng.BottomSurface = 0
  2339. rng.CFrame = pos
  2340. local rngm = Instance.new("SpecialMesh", rng)
  2341. rngm.MeshType = "Sphere"
  2342. rngm.Scale = scale
  2343. rngm.Scale = rngm.Scale + Vector3.new(0,10000,0)
  2344. local scaler2 = 0.5
  2345. if type == "Add" then
  2346. scaler2 = 0.5*value
  2347. elseif type == "Divide" then
  2348. scaler2 = 0.5/value
  2349. end
  2350. coroutine.resume(coroutine.create(function()
  2351. for i = 0,10,0.1 do
  2352. swait()
  2353. if type == "Add" then
  2354. scaler2 = scaler2 - 0.01*value
  2355. elseif type == "Divide" then
  2356. scaler2 = scaler2 - 0.01/value
  2357. end
  2358. rng.Transparency = rng.Transparency + 0.01
  2359. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2360. end
  2361. rng:Destroy()
  2362. end))
  2363. end
  2364. local dashing = false
  2365. local OriginalWalkspeed = hum.WalkSpeed
  2366. local equipped = false
  2367. -- ready to do functions
  2368.  
  2369. ----------- attacks
  2370.  
  2371. function RadiusBurst()
  2372. attack = true
  2373. if Unleashed == false then
  2374. sphereglass("Add",root.CFrame,vt(12.5,12.5,12.5),-0.5)
  2375. CFuncs["Sound"].Create("rbxassetid://260421433", root, 1, 1.25)
  2376. for i = 0,2,0.1 do
  2377. swait()
  2378. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2379. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2380. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2381. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2382. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  2383. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(90)),.3)
  2384. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2385. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20 - 5 * math.cos(sine / 24))),.3)
  2386. end
  2387. elseif Unleashed == true then
  2388. sphereglass("Add",root.CFrame,vt(25,25,25),-0.5)
  2389. CFuncs["Sound"].Create("rbxassetid://260421433", root, 1, 0.85)
  2390. for i = 0,4,0.1 do
  2391. swait()
  2392. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2393. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2394. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2395. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2396. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  2397. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(90)),.3)
  2398. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  2399. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20 - 5 * math.cos(sine / 24))),.3)
  2400. end
  2401. end
  2402. if Unleashed == false then
  2403. CFuncs["Sound"].Create("rbxassetid://231917970", root, 1.25, 1.15)
  2404. for i = 0, 19 do
  2405. sphere("Divide",root.CFrame*CFrame.new(math.random(-25,25),math.random(-3,3),math.random(-25,25)),vt(0,0,0),100)
  2406. end
  2407. sphereglass("Divide",root.CFrame,vt(0,0,0),2.5)
  2408. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(25,25,1),25)
  2409. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(25,25,1),3)
  2410. MagniDamage(root, 25, 10, 12, 0, "Normal")
  2411. elseif Unleashed == true then
  2412. CFuncs["Sound"].Create("rbxassetid://231917970", root, 1.5, 0.75)
  2413. for i = 0, 19 do
  2414. sphere("Divide",root.CFrame*CFrame.new(math.random(-40,40),math.random(-3,3),math.random(-40,40)),vt(0,0,0),100)
  2415. end
  2416. sphereglass("Divide",root.CFrame,vt(0,0,0),1.5)
  2417. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(40,40,1),25)
  2418. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(40,40,1),3)
  2419. MagniDamage(root, 35, 20, 22, 0, "Normal")
  2420. end
  2421. if Unleashed == false then
  2422. for i = 0,1,0.1 do
  2423. swait()
  2424. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2425. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2426. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2427. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2428. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  2429. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(40)),.3)
  2430. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2431. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90 - 5 * math.cos(sine / 24))),.3)
  2432. end
  2433. elseif Unleashed == true then
  2434. for i = 0,1,0.1 do
  2435. swait()
  2436. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2437. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2438. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2439. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2440. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  2441. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(40)),.3)
  2442. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  2443. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90 - 5 * math.cos(sine / 24))),.3)
  2444. end
  2445. end
  2446. attack = false
  2447. end
  2448.  
  2449. function hahaoverusedmove()
  2450. attack = true
  2451. CFuncs["Sound"].Create("rbxassetid://200632370", root, 1,1,1)
  2452. local con = lleg.Touched:connect(function(hit)
  2453. Damagefunc(lleg, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  2454. end)
  2455. for i = 0,3,0.1 do
  2456. swait()
  2457. tors.Velocity = root.CFrame.lookVector*100
  2458. MagicBlock(origcolor,lleg.CFrame,1,1,1,0,0,0,0.05)
  2459. RH.C0=clerp(RH.C0,cf(1,-0.9,-0.15)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(5),math.rad(5)),.3)
  2460. LH.C0=clerp(LH.C0,cf(-1,-1,-0.15)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(-90)),.3)
  2461. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.1)* angles(math.rad(0),math.rad(30),math.rad(-90)),.3)
  2462. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  2463. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.3)
  2464. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-90)), 0.3)
  2465. end
  2466. con:disconnect()
  2467. attack = false
  2468. end
  2469.  
  2470. local IfTheresOrb = false
  2471. local ObjectOrb = "nil"
  2472.  
  2473. function Enlighten()
  2474. attack = true
  2475. IfTheresOrb = true
  2476. if Unleashed == false then
  2477. for i = 0,2,0.1 do
  2478. swait()
  2479. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2480. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2481. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2482. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2483. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2484. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(45)),.3)
  2485. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2486. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-45 - 5 * math.cos(sine / 24))),.3)
  2487. end
  2488. elseif Unleashed == true then
  2489. for i = 0,2,0.1 do
  2490. swait()
  2491. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2492. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2493. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2494. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2495. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2496. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(45)),.3)
  2497. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(30)),.3)
  2498. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-45 - 5 * math.cos(sine / 24))),.3)
  2499. end
  2500. end
  2501. local Orb = Instance.new("Part",char)
  2502. Orb.Anchored = true
  2503. Orb.CanCollide = false
  2504. Orb.Transparency = 0.5
  2505. Orb.Shape = "Ball"
  2506. Orb.Size = Vector3.new(2,2,2)
  2507. if Unleashed == true then
  2508. Orb.Size = Vector3.new(5,5,5)
  2509. end
  2510. Orb.Color = origcolor.Color
  2511. Orb.Material = "Glass"
  2512. Orb.CFrame = root.CFrame + root.CFrame.lookVector*5
  2513. MagicBlock(origcolor,Orb.CFrame,0,0,0,1,1,1,0.05)
  2514. ring("Divide",Orb.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1,1),5)
  2515. for i = 0, 19 do
  2516. sphere("Divide",Orb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),vt(0,0,0),100)
  2517. end
  2518. if Unleashed == false then
  2519. CFuncs["Sound"].Create("rbxassetid://233091161", Orb, 1,1,1)
  2520. elseif Unleashed == true then
  2521. CFuncs["Sound"].Create("rbxassetid://233091161", Orb, 1.5,0.95)
  2522. end
  2523. ObjectOrb = Orb
  2524. if Unleashed == false then
  2525. coroutine.resume(coroutine.create(function()
  2526. while true do
  2527. swait()
  2528. if Orb.Parent ~= nil then
  2529. MagicBlock(origcolor,Orb.CFrame,1.5,1.5,1.5,-0.1,-0.1,-0.1,0.1)
  2530. elseif Orb.Parent == nil then
  2531. break
  2532. end
  2533. end
  2534. end))
  2535. elseif Unleashed == true then
  2536. coroutine.resume(coroutine.create(function()
  2537. while true do
  2538. swait()
  2539. if Orb.Parent ~= nil then
  2540. MagicBlock(origcolor,Orb.CFrame,3.5,3.5,3.5,-0.1,-0.1,-0.1,0.1)
  2541. elseif Orb.Parent == nil then
  2542. break
  2543. end
  2544. end
  2545. end))
  2546. end
  2547. attack = false
  2548. end
  2549.  
  2550. function ExplodeOrb()
  2551. attack = true
  2552. if Unleashed == false then
  2553. for i = 0,2,0.1 do
  2554. swait()
  2555. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2556. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2557. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2558. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2559. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  2560. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(65)),.3)
  2561. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2562. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-65 - 5 * math.cos(sine / 24))),.3)
  2563. end
  2564. elseif Unleashed == true then
  2565. for i = 0,2,0.1 do
  2566. swait()
  2567. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2568. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2569. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2570. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2571. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2572. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(45)),.3)
  2573. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(30)),.3)
  2574. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-45 - 5 * math.cos(sine / 24))),.3)
  2575. end
  2576. end
  2577. if Unleashed == false then
  2578. MagniDamage(ObjectOrb, 15, 10, 15, 0, "Normal")
  2579. elseif Unleashed == true then
  2580. MagniDamage(ObjectOrb, 30, 20, 25, 0, "Normal")
  2581. end
  2582. if Unleashed == false then
  2583. CFuncs["Sound"].Create("rbxassetid://231917845", ObjectOrb, 1,1)
  2584. elseif Unleashed == true then
  2585. CFuncs["Sound"].Create("rbxassetid://231917845", ObjectOrb, 2,0.85)
  2586. end
  2587. if Unleashed == false then
  2588. MagicBlock(origcolor,ObjectOrb.CFrame,0,0,0,2.5,2.5,2.5,0.05)
  2589. ring("Add",ObjectOrb.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1,1),1.25)
  2590. elseif Unleashed == true then
  2591. MagicBlock(origcolor,ObjectOrb.CFrame,0,0,0,5,5,5,0.05)
  2592. ring("Add",ObjectOrb.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1,1),1.65)
  2593. end
  2594. for i = 0, 19 do
  2595. sphere("Divide",ObjectOrb.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)),vt(0,0,0),100)
  2596. end
  2597. ObjectOrb.Transparency = 1
  2598. coroutine.resume(coroutine.create(function()
  2599. wait(1)
  2600. ObjectOrb:Destroy()
  2601. IfTheresOrb = false
  2602. end))
  2603. attack = false
  2604. end
  2605.  
  2606. function SawOrb()
  2607. attack = true
  2608. if Unleashed == false then
  2609. for i = 0,2,0.1 do
  2610. swait()
  2611. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2612. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2613. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2614. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2615. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2616. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(45)),.3)
  2617. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2618. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-45 - 5 * math.cos(sine / 24))),.3)
  2619. end
  2620. elseif Unleashed == true then
  2621. for i = 0,2,0.1 do
  2622. swait()
  2623. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2624. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2625. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2626. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2627. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2628. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(45)),.3)
  2629. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(30)),.3)
  2630. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-45 - 5 * math.cos(sine / 24))),.3)
  2631. end
  2632. end
  2633. local Sawm = Instance.new("Part",char)
  2634. Sawm.Anchored = true
  2635. Sawm.CanCollide = false
  2636. Sawm.Transparency = 0.5
  2637. Sawm.Size = Vector3.new(10,10,0.2)
  2638. if Unleashed == true then
  2639. Sawm.Size = Vector3.new(25,25,0.2)
  2640. end
  2641. Sawm.Color = origcolor.Color
  2642. Sawm.Material = "Glass"
  2643. Sawm.CFrame = ObjectOrb.CFrame*CFrame.Angles(math.rad(90),0,0)
  2644. local con = Sawm.Touched:connect(function(hit)
  2645. if Unleashed == false then
  2646. Damagefunc(Sawm, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  2647. elseif Unleashed == true then
  2648. Damagefunc(Sawm, hit, 20, 22, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  2649. end
  2650. end)
  2651. local meshS = Instance.new("SpecialMesh",Sawm)
  2652. meshS.MeshId = "http://www.roblox.com/asset/?id=74322089"
  2653. meshS.Scale = vt(10,10,1)
  2654. if Unleashed == true then
  2655. meshS.Scale = vt(25,25,0)
  2656. end
  2657. if Unleashed == false then
  2658. ring("Divide",ObjectOrb.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1,1),1)
  2659. elseif Unleashed == true then
  2660. ring("Add",ObjectOrb.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1,1),1.5)
  2661. end
  2662. for i = 0, 19 do
  2663. sphere("Divide",ObjectOrb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),vt(0,0,0),100)
  2664. end
  2665. coroutine.resume(coroutine.create(function()
  2666. if Unleashed == false then
  2667. for i = 0, 99 do
  2668. swait()
  2669. meshS.Scale = meshS.Scale + vt(0.1,0.1,0)
  2670. Sawm.CFrame = Sawm.CFrame*CFrame.Angles(0,0,math.rad(10))
  2671. end
  2672. elseif Unleashed == true then
  2673. for i = 0, 149 do
  2674. swait()
  2675. meshS.Scale = meshS.Scale + vt(0.1,0.1,0)
  2676. Sawm.CFrame = Sawm.CFrame*CFrame.Angles(0,0,math.rad(10))
  2677. end
  2678. end
  2679. con:disconnect()
  2680. for i = 0, 49 do
  2681. swait()
  2682. Sawm.Transparency = Sawm.Transparency + 0.01
  2683. meshS.Scale = meshS.Scale - vt(0.25,0.25,0)
  2684. Sawm.CFrame = Sawm.CFrame*CFrame.Angles(0,0,math.rad(2))
  2685. end
  2686. Sawm:Destroy()
  2687. end))
  2688. ObjectOrb:Destroy()
  2689. IfTheresOrb = false
  2690. if Unleashed == false then
  2691. CFuncs["Sound"].Create("rbxassetid://233091161", Sawm, 1,1.025)
  2692. CFuncs["Sound"].Create("rbxassetid://233091195", Sawm, 0.5,0.9)
  2693. elseif Unleashed == true then
  2694. CFuncs["Sound"].Create("rbxassetid://233091161", Sawm, 1,0.9)
  2695. CFuncs["Sound"].Create("rbxassetid://233091195", Sawm, 1.5,0.75)
  2696. end
  2697. attack = false
  2698. end
  2699.  
  2700. function MoveOrb()
  2701. attack = true
  2702. if Unleashed == false then
  2703. for i = 0,2,0.1 do
  2704. swait()
  2705. ObjectOrb.CFrame = ObjectOrb.CFrame + root.CFrame.lookVector * 1.5
  2706. MagicBlock(origcolor,ObjectOrb.CFrame,0,0,0,1,1,1,0.1)
  2707. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2708. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2709. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2710. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2711. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  2712. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(65)),.3)
  2713. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2714. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-65 - 5 * math.cos(sine / 24))),.3)
  2715. end
  2716. elseif Unleashed == true then
  2717. for i = 0,2,0.1 do
  2718. swait()
  2719. ObjectOrb.CFrame = ObjectOrb.CFrame + root.CFrame.lookVector * 1.25
  2720. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2721. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2722. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2723. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2724. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2725. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(45)),.3)
  2726. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(30)),.3)
  2727. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-45 - 5 * math.cos(sine / 24))),.3)
  2728. end
  2729. end
  2730. attack = false
  2731. end
  2732.  
  2733.  
  2734. function BackOrb()
  2735. attack = true
  2736. if Unleashed == false then
  2737. for i = 0,2,0.1 do
  2738. swait()
  2739. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2740. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2741. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2742. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2743. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  2744. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(65)),.3)
  2745. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2746. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-65 - 5 * math.cos(sine / 24))),.3)
  2747. end
  2748. elseif Unleashed == true then
  2749. for i = 0,2,0.1 do
  2750. swait()
  2751. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2752. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2753. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2754. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2755. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2756. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(45)),.3)
  2757. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(30)),.3)
  2758. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-45 - 5 * math.cos(sine / 24))),.3)
  2759. end
  2760. end
  2761. CFuncs["Sound"].Create("rbxassetid://206083364", ObjectOrb, 1, 1)
  2762. MagicBlock(origcolor,ObjectOrb.CFrame,0,0,0,1,1,1,0.05)
  2763. ring("Divide",ObjectOrb.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1,1),5)
  2764. for i = 0, 19 do
  2765. sphere("Divide",ObjectOrb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),vt(0,0,0),100)
  2766. end
  2767. ObjectOrb.CFrame = root.CFrame + root.CFrame.lookVector * 5
  2768. MagicBlock(origcolor,ObjectOrb.CFrame,0,0,0,1,1,1,0.05)
  2769. ring("Divide",ObjectOrb.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1,1),5)
  2770. for i = 0, 19 do
  2771. sphere("Divide",ObjectOrb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),vt(0,0,0),100)
  2772. end
  2773. attack = false
  2774. end
  2775.  
  2776. function TeleOrb()
  2777. attack = true
  2778. if Unleashed == false then
  2779. for i = 0,2,0.1 do
  2780. swait()
  2781. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2782. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2783. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2784. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2785. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  2786. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(65)),.3)
  2787. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2788. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-65 - 5 * math.cos(sine / 24))),.3)
  2789. end
  2790. elseif Unleashed == true then
  2791. for i = 0,2,0.1 do
  2792. swait()
  2793. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2794. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2795. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2796. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2797. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2798. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(45)),.3)
  2799. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(30)),.3)
  2800. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(-45 - 5 * math.cos(sine / 24))),.3)
  2801. end
  2802. end
  2803. CFuncs["Sound"].Create("rbxassetid://206083364", root, 1, 0.9)
  2804. MagicBlock(origcolor,root.CFrame,0,0,0,1.5,1.5,1.5,0.05)
  2805. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1,1),2.5)
  2806. for i = 0, 19 do
  2807. sphere("Divide",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),vt(0,0,0),100)
  2808. end
  2809. root.CFrame = ObjectOrb.CFrame
  2810. MagicBlock(origcolor,root.CFrame,0,0,0,1.5,1.5,1.5,0.05)
  2811. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1,1),2.5)
  2812. for i = 0, 19 do
  2813. sphere("Divide",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),vt(0,0,0),100)
  2814. end
  2815. attack = false
  2816. end
  2817.  
  2818. function ChronicMirror()
  2819. attack = true
  2820. if Unleashed == false then
  2821. for i = 0,2,0.1 do
  2822. swait()
  2823. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2824. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2825. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2826. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2827. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2828. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(45)),.3)
  2829. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2830. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-45 - 5 * math.cos(sine / 24))),.3)
  2831. end
  2832. elseif Unleashed == true then
  2833. for i = 0,2,0.1 do
  2834. swait()
  2835. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2836. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2837. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2838. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2839. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  2840. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(45)),.3)
  2841. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(20)),.3)
  2842. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-45 - 5 * math.cos(sine / 24))),.3)
  2843. end
  2844. end
  2845. local changedhp = false
  2846. local Doh = Instance.new("Part",char)
  2847. CFuncs["Sound"].Create("rbxassetid://231917813", Doh, 2.5,1)
  2848. Doh.CanCollide = false
  2849. Doh.Anchored = true
  2850. Doh.Transparency = 0.5
  2851. Doh.Size = Vector3.new(25,25,0.5)
  2852. Doh.Color = origcolor.Color
  2853. Doh.Material = "Glass"
  2854. Doh.CFrame = root.CFrame + root.CFrame.lookVector*5
  2855. MagicBlock(origcolor,Doh.CFrame,0,0,0,2,2,2,0.1)
  2856. ring("Add",Doh.CFrame,vt(1,1,1,1),2.5)
  2857. for i = 0, 19 do
  2858. sphere("Divide",Doh.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)),vt(0,0,0),100)
  2859. end
  2860. local thingery = Instance.new("SpecialMesh",Doh)
  2861. thingery.MeshType = "Sphere"
  2862. if Unleashed == false then
  2863. for i = 0,10,0.1 do
  2864. swait()
  2865. Doh.CFrame = root.CFrame + root.CFrame.lookVector*5
  2866. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2867. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2868. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2869. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2870. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  2871. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(65)),.3)
  2872. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2873. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-65 - 5 * math.cos(sine / 24))),.3)
  2874. end
  2875. elseif Unleashed == true then
  2876. for i = 0,10,0.1 do
  2877. swait()
  2878. Doh.CFrame = root.CFrame + root.CFrame.lookVector*5
  2879. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2880. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2881. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2882. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2883. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  2884. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(65)),.3)
  2885. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(20)),.3)
  2886. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-65 - 5 * math.cos(sine / 24))),.3)
  2887. end
  2888. end
  2889. if changedhp == true then
  2890. --[[Doh.Anchored = false
  2891. game:GetService("Debris"):AddItem(Doh, 5)
  2892. local bv = Instance.new("BodyVelocity")
  2893. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2894. bv.velocity = Doh.CFrame.lookVector*50
  2895. bv.Parent = Doh]]--
  2896. end
  2897. attack = false
  2898. if changedhp == false then
  2899. for i = 0, 49 do
  2900. swait()
  2901. thingery.Scale = thingery.Scale - vt(0.02,0.02,0.02)
  2902. end
  2903. end
  2904. end
  2905.  
  2906. function Reflection()
  2907. attack = true
  2908. CFuncs["Sound"].Create("rbxassetid://231917794", root, 1.5,1)
  2909. sphereglass("Add",root.CFrame,vt(25,25,25),-0.5)
  2910. for i = 0,5,0.1 do
  2911. swait()
  2912. swordweld.C1=clerp(swordweld.C1,cf(0,0,2)*angles(math.rad(0),math.rad(90),math.rad(90)),.3)
  2913. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2914. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2915. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  2916. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(-90)),.3)
  2917. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2918. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(-10 - 5 * math.cos(sine / 24))),.3)
  2919. end
  2920. local changedhp = false
  2921. local rl = Instance.new("Part",char)
  2922. rl.CanCollide = false
  2923. rl.Anchored = true
  2924. rl.Transparency = 0.25
  2925. rl.Size = Vector3.new(1,2,1)
  2926. rl.Color = origcolor.Color
  2927. rl.Material = "Glass"
  2928. rl.CFrame = larm.CFrame
  2929. local rr = rl:Clone()
  2930. rr.Parent = char
  2931. rr.CFrame = rarm.CFrame
  2932. local rlh = rl:Clone()
  2933. rlh.Parent = char
  2934. rlh.CFrame = lleg.CFrame
  2935. local rrh = rl:Clone()
  2936. rrh.Parent = char
  2937. rrh.CFrame = rleg.CFrame
  2938. local rt = rl:Clone()
  2939. rt.Parent = char
  2940. rt.Size = Vector3.new(2,2,1)
  2941. rt.CFrame = tors.CFrame
  2942. local rh = rl:Clone()
  2943. rh.Parent = char
  2944. rh.Size = Vector3.new(1,1,1)
  2945. rh.CFrame = hed.CFrame
  2946.  
  2947. coroutine.resume(coroutine.create(function()
  2948. wait(10)
  2949. MagicBlock(origcolor,rt.CFrame,0,0,0,1,1,1,0.025)
  2950. CFuncs["Sound"].Create("rbxassetid://231917788", rt, 1.5,1)
  2951. ring("Add",rt.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),1.5)
  2952. MagniDamage(rt, 15, 10, 12, 0, "Normal")
  2953. rl.Transparency = 1
  2954. rr.Transparency = 1
  2955. rlh.Transparency = 1
  2956. rrh.Transparency = 1
  2957. rt.Transparency = 1
  2958. rh.Transparency = 1
  2959. wait(5)
  2960. rl:Destroy()
  2961. rr:Destroy()
  2962. rlh:Destroy()
  2963. rrh:Destroy()
  2964. rt:Destroy()
  2965. rh:Destroy()
  2966. end))
  2967. MagicBlock(origcolor,root.CFrame,0,0,0,1,1,1,0.1)
  2968. ring("Divide",root.CFrame,vt(1,1,1,1),2.5)
  2969. for i = 0, 19 do
  2970. sphere("Divide",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),vt(0,0,0),100)
  2971. end
  2972. root.CFrame = root.CFrame + root.CFrame.lookVector*75
  2973. MagicBlock(origcolor,root.CFrame,0,0,0,1,1,1,0.05)
  2974. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),1)
  2975. MagniDamage(root, 20, 10, 15, 0, "Normal")
  2976. for i = 0, 19 do
  2977. sphere("Divide",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),vt(0,0,0),100)
  2978. end
  2979. attack = false
  2980. end
  2981.  
  2982. function Crystalline()
  2983. attack = true
  2984. if Unleashed == false then
  2985. for i = 0,3,0.1 do
  2986. swait()
  2987. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  2988. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  2989. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2990. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2991. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2992. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(0)),.3)
  2993. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  2994. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.3)
  2995. end
  2996. elseif Unleashed == true then
  2997. for i = 0,3,0.1 do
  2998. swait()
  2999. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  3000. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  3001. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3002. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3003. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3004. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(0)),.3)
  3005. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  3006. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.3)
  3007. end
  3008. end
  3009. CFuncs["Sound"].Create("rbxassetid://233096557", larmor, 1,1)
  3010. local cryst = Instance.new("Part",char)
  3011. cryst.Anchored = true
  3012. cryst.CanCollide = false
  3013. cryst.Transparency = 0
  3014. cryst.Size = Vector3.new(1,1,1)
  3015. cryst.Color = origcolor.Color
  3016. cryst.Material = "Glass"
  3017. cryst.CFrame = root.CFrame + Vector3.new(0,20,0)
  3018. CFuncs["Sound"].Create("rbxassetid://233096557", larmor, 1,1)
  3019. local remdam = Instance.new("Part",char)
  3020. remdam.Anchored = true
  3021. remdam.CanCollide = false
  3022. remdam.Transparency = 1
  3023. remdam.CFrame = cryst.CFrame - Vector3.new(0,22.5,0)
  3024. if Unleashed == true then
  3025. cryst.CFrame = root.CFrame + Vector3.new(0,40,0)
  3026. remdam.CFrame = cryst.CFrame - Vector3.new(0,42.5,0)
  3027. end
  3028.  
  3029. for i = 0, 19 do
  3030. sphere("Divide",cryst.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)),vt(0,0,0),100)
  3031. end
  3032. if Unleashed == false then
  3033. MagicBlock(origcolor,cryst.CFrame,0,0,0,2,2,2,0.05)
  3034. ring("Divide",cryst.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),1.5)
  3035. elseif Unleashed == true then
  3036. MagicBlock(origcolor,cryst.CFrame,0,0,0,4,4,4,0.05)
  3037. ring("Add",cryst.CFrame*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),1.25)
  3038. end
  3039. --[[local con = Sawm.Touched:connect(function(hit)
  3040. Damagefunc(Sawm, hit, 10, 12, 0, "Normal", RootPart, 0.3, "rbxassetid://153092227", 1)
  3041. end)]]--
  3042. local meshS = Instance.new("SpecialMesh",cryst)
  3043. meshS.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  3044. meshS.Scale = vt(5,12.5,5)
  3045. if Unleashed == true then
  3046. meshS.Scale = vt(10,25,10)
  3047. end
  3048. if Unleashed == false then
  3049. CFuncs["Sound"].Create("rbxassetid://233091161", cryst, 1.5,1)
  3050. elseif Unleashed == true then
  3051. CFuncs["Sound"].Create("rbxassetid://233091161", cryst, 1.5,1.025)
  3052. end
  3053. coroutine.resume(coroutine.create(function()
  3054. for i = 0, 9 do
  3055. wait(1)
  3056. if Unleashed == false then
  3057. MagniDamage(remdam, 20, 8, 12, 0, "Normal")
  3058. CFuncs["Sound"].Create("rbxassetid://231917788", cryst, 0.75,1)
  3059. beam("Divide",cryst.CFrame,vt(1,1,1),10)
  3060. ring("Divide",cryst.CFrame*CFrame.Angles(math.rad(90),0,0) + Vector3.new(0,-22.5,0),vt(1,1,1),1)
  3061. wave("Divide",cryst.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0) + Vector3.new(0,-22.5,0),vt(10,1,10),5)
  3062. elseif Unleashed == true then
  3063. MagniDamage(remdam, 40, 18, 22, 0, "Normal")
  3064. CFuncs["Sound"].Create("rbxassetid://231917788", cryst, 1,0.85)
  3065. beam("Divide",cryst.CFrame,vt(1,1,1),2.5)
  3066. ring("Add",cryst.CFrame*CFrame.Angles(math.rad(90),0,0) + Vector3.new(0,-42.5,0),vt(1,1,1),2.5)
  3067. wave("Divide",cryst.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0) + Vector3.new(0,-42.5,0),vt(10,1,10),2.5)
  3068. end
  3069. end
  3070. for i = 0, 99 do
  3071. swait()
  3072. cryst.Transparency = cryst.Transparency + 0.01
  3073. end
  3074. remdam:Destroy()
  3075. cryst:Destroy()
  3076. end))
  3077.  
  3078. coroutine.resume(coroutine.create(function()
  3079. while true do
  3080. swait()
  3081. if cryst.Parent ~= nil then
  3082. cryst.CFrame = cryst.CFrame*CFrame.Angles(0,math.rad(1),0)
  3083. elseif cryst.Parent == nil then
  3084. break
  3085. end
  3086. end
  3087. end))
  3088. MagicBlock(origcolor,larmor.CFrame,1,1,1,1,1,1,0.1)
  3089. if Unleashed == false then
  3090. for i = 0,1,0.1 do
  3091. swait()
  3092. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  3093. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3094. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3095. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3096. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(0)),.3)
  3097. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  3098. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-150)),.7)
  3099. end
  3100. elseif Unleashed == true then
  3101. for i = 0,3,0.1 do
  3102. swait()
  3103. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  3104. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.3)
  3105. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3106. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3107. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3108. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(0)),.3)
  3109. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.3)
  3110. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-150)),.3)
  3111. end
  3112. end
  3113. attack = false
  3114. end
  3115.  
  3116. function Unleashment()
  3117. hum.WalkSpeed = 0
  3118. attack = true
  3119. for z = 0, 2 do
  3120. for i = 0,2,0.1 do
  3121. swait()
  3122. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  3123. swordweld.C1=clerp(swordweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3124. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3125. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3126. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3127. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(20)),.3)
  3128. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(10)),.3)
  3129. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  3130. end
  3131. for i = 0,2,0.1 do
  3132. swait()
  3133. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  3134. swordweld.C1=clerp(swordweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3135. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3136. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3137. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3138. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.3)
  3139. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(10)),.3)
  3140. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  3141. end
  3142. end
  3143.  
  3144. for i = 0,2,0.1 do
  3145. swait()
  3146. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  3147. swordweld.C1=clerp(swordweld.C1,cf(0,0,2)*angles(math.rad(0),math.rad(90),math.rad(90)),.2)
  3148. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  3149. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3150. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3151. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(-20)),.2)
  3152. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(170)),.2)
  3153. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.2)
  3154. end
  3155.  
  3156. for i, v in pairs(modil:children()) do
  3157. if v:IsA("Part") then
  3158. v.Transparency = 1
  3159. end
  3160. end
  3161. CFuncs["Sound"].Create("rbxassetid://233091161", hitbox, 1.5,0.75)
  3162. sphere("Divide",hitbox.CFrame,vt(10,10,10),10000)
  3163. for i = 0, 19 do
  3164. sphere("Divide",hitbox.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)),vt(0,0,0),100)
  3165. end
  3166. for i = 0,8,0.1 do
  3167. swait()
  3168. swordweld.C1=clerp(swordweld.C1,cf(0,0,2)*angles(math.rad(0),math.rad(90),math.rad(90)),.1)
  3169. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.1)
  3170. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3171. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3172. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  3173. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.65)*angles(math.rad(90),math.rad(0),math.rad(-90)),.1)
  3174. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.65)*angles(math.rad(90),math.rad(0),math.rad(90)),.1)
  3175. end
  3176. Unleashed = true
  3177. origcolor = BrickColor.new("Really red")
  3178. CFuncs["Sound"].Create("rbxassetid://231917970", root, 3.5, 0.85)
  3179. CFuncs["Sound"].Create("rbxassetid://231917970", root, 1.5, 0.35)
  3180. for i = 0, 19 do
  3181. sphere("Divide",root.CFrame*CFrame.new(math.random(-50,50),math.random(-3,3),math.random(-50,50)),vt(0,0,0),100)
  3182. end
  3183. sphereglass("Add",root.CFrame,vt(0,0,0),1)
  3184. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(75,75,1),25)
  3185. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(75,75,1),3)
  3186. MagniDamage(root, 65, 20, 30, 0, "Normal")
  3187. for i = 0,3,0.1 do
  3188. swait()
  3189. swordweld.C1=clerp(swordweld.C1,cf(0,0,2)*angles(math.rad(0),math.rad(90),math.rad(90)),.6)
  3190. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.6)
  3191. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3192. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3193. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.6)
  3194. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3195. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  3196. end
  3197. MagicBlock(origcolor,hitbox.CFrame,1,1,1,1,1,1,0.075)
  3198. attack = false
  3199. hum.WalkSpeed = 16
  3200. end
  3201.  
  3202. function Releasement()
  3203. attack = true
  3204. hum.WalkSpeed = 0
  3205. for i = 0,3,0.1 do
  3206. swait()
  3207. swordweld.C1=clerp(swordweld.C1,cf(0,0,2)*angles(math.rad(0),math.rad(90),math.rad(90)),.6)
  3208. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.6)
  3209. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3210. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3211. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.6)
  3212. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.6)
  3213. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.6)
  3214. end
  3215.  
  3216. CFuncs["Sound"].Create("rbxassetid://231917970", root, 3.5, 0.85)
  3217. CFuncs["Sound"].Create("rbxassetid://231917970", root, 1.5, 0.35)
  3218. for i = 0, 19 do
  3219. sphere("Divide",root.CFrame*CFrame.new(math.random(-25,25),math.random(-3,3),math.random(-25,25)),vt(0,0,0),100)
  3220. end
  3221. sphereglass("Divide",root.CFrame,vt(0,0,0),1.5)
  3222. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(50,50,1),25)
  3223. ring("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),vt(50,50,1),3)
  3224. MagniDamage(root, 45, 10, 25, 0, "Normal")
  3225.  
  3226. Unleashed = false
  3227. origcolor = BrickColor.new("Lime green")
  3228.  
  3229. for i = 0,5,0.1 do
  3230. swait()
  3231. swordweld.C1=clerp(swordweld.C1,cf(0,0,2)*angles(math.rad(0),math.rad(90),math.rad(90)),.1)
  3232. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.1)
  3233. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3234. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3235. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  3236. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.65)*angles(math.rad(90),math.rad(0),math.rad(-90)),.1)
  3237. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.65)*angles(math.rad(90),math.rad(0),math.rad(90)),.1)
  3238. end
  3239.  
  3240. coroutine.resume(coroutine.create(function()
  3241. for i = 0, 9 do
  3242. wait(0.2)
  3243. ring("Add",hitbox.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,1),-0.15)
  3244. end
  3245. end))
  3246.  
  3247. CFuncs["Sound"].Create("rbxassetid://588697034", root, 1, 0.95)
  3248.  
  3249. for i = 0,10,0.1 do
  3250. swait()
  3251. MagicBlock(origcolor,larmor.CFrame,1,1,1,-0.1,-0.1,-0.1,0.075)
  3252. swordweld.C1=clerp(swordweld.C1,cf(0,0,2)*angles(math.rad(0),math.rad(90),math.rad(90)),.2)
  3253. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  3254. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3255. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(-20)),.2)
  3257. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(170)),.2)
  3258. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.2)
  3259. end
  3260.  
  3261. for i, v in pairs(modil:children()) do
  3262. if v:IsA("Part") then
  3263. v.Transparency = 0
  3264. end
  3265. end
  3266. hitbox.Transparency = 1
  3267. sumorb.Transparency = 1
  3268. CFuncs["Sound"].Create("rbxassetid://233091161", hitbox, 1.5,1)
  3269. sphere("Divide",hitbox.CFrame,vt(10,10,10),10000)
  3270. for i = 0, 19 do
  3271. sphere("Divide",hitbox.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)),vt(0,0,0),100)
  3272. end
  3273. attack = false
  3274. hum.WalkSpeed = 16
  3275. end
  3276. ---
  3277.  
  3278. local attacktype = 1
  3279. mouse.Button1Down:connect(function()
  3280. if attack == false and attacktype == 1 then
  3281. attacktype = 2
  3282. --attackone()
  3283. elseif attack == false and attacktype == 2 then
  3284. attacktype = 3
  3285. --attacktwo()
  3286. elseif attack == false and attacktype == 3 then
  3287. attacktype = 4
  3288. --attackthree()
  3289. elseif attack == false and attacktype == 4 then
  3290. attacktype = 1
  3291. --attackfour()
  3292. end
  3293. end)
  3294. mouse.KeyDown:connect(function(k)
  3295. if k == "b" then
  3296. print("Radius Burst: DSAQ")
  3297. print("Chronical Revolver: SAX")
  3298. print("Enlighten Orb: AEQ")
  3299. print("Chronic Mirror: ASDTRQ")
  3300. print("Reflection: STRX")
  3301. print("Crystalline: DSRX")
  3302. print("Unleash/Release: ASDAERQ")
  3303. print("")
  3304. warn("--- REQUIRES ORB")
  3305. print("Explode: AAQ")
  3306. print("Move: ARQ")
  3307. print("Teleport back: ADQ")
  3308. print("Teleport to orb: ASQ")
  3309. print("Saw orb: ATQ")
  3310. end
  3311. end)
  3312. local combo = false
  3313. local input = ""
  3314. mouse.KeyDown:connect(function(k)
  3315. if k == 'd' and attack == false and combo == false or k == 's' and attack == false and combo == false or k == 'a' and attack == false and combo == false then
  3316. coroutine.wrap(function()
  3317. combo = true
  3318. local asd = false
  3319. input = input..k
  3320. print(input)
  3321. for i = 0, 1.5, .1 do
  3322. wait(.1)
  3323. if combo == false then
  3324. asd = true
  3325. break;
  3326. end
  3327. end
  3328. if asd == false then
  3329. if combo == true or input ~= '' then
  3330. combo = false
  3331. input = ''
  3332. end
  3333. end
  3334. end)()
  3335. end
  3336. end)
  3337.  
  3338. local Keys = {
  3339. [48] = "LShift",
  3340. [13] = "Enter",
  3341. [32] = "Space",
  3342. [47] = "RShift",
  3343. [92] = "Backslash",
  3344. [50] = "LCtrl",
  3345. [52] = "LAlt",
  3346. [49] = "RCtrl",
  3347. [51] = "RAlt",
  3348. [8] = "Backspace",
  3349. [45] = "CapsLock"
  3350.  
  3351. }
  3352.  
  3353. local alredused = false
  3354. local alreadyEnded = false
  3355.  
  3356. mouse.KeyDown:connect(function(k)
  3357. if attack == false and combo == true then
  3358. k = string.lower(k)
  3359. if k == 'c' or k == 'e' or k == 'h' or k == 'r' or k == 't' or k == 'n' or k == 'z' or k == 'm' or k == 'w' or k == 'a' or k == 's' or k == 'd' then
  3360. if #input < 8 then
  3361. input = input..k
  3362. print(input)
  3363. end
  3364. elseif k == "q" or k == "x" then
  3365. combo = false
  3366. input = input..k
  3367. print(input)
  3368. warn("kstroke exec: "..input)
  3369. if string.lower(input) == "dsaq" then
  3370. if attack == false then
  3371. if Unleashed == false then
  3372. chatfunc("Radius Burst!",Color3.new(1,1,1))
  3373. elseif Unleashed == true then
  3374. chatfunc("Unleashing Burst!",Color3.new(1,1,1))
  3375. end
  3376. RadiusBurst()
  3377. end
  3378. elseif string.lower(input) == "sax" then
  3379. if attack == false then
  3380. chatfunc("Chronical Revolver!",Color3.new(1,1,1))
  3381. hahaoverusedmove()
  3382. end
  3383. elseif string.lower(input) == "dsrx" then
  3384. if attack == false then
  3385. if Unleashed == false then
  3386. chatfunc("Snap out of it.",Color3.new(1,1,1))
  3387. elseif Unleashed == true then
  3388. chatfunc("Go away.",Color3.new(1,1,1))
  3389. end
  3390. Crystalline()
  3391. end
  3392. elseif string.lower(input) == "asdaerq" then
  3393. if attack == false and Unleashed == false and alredused == false then
  3394. alredused = true
  3395. chatfunc("I can't believe you made me do this...",Color3.new(1,0,0))
  3396. wait(3)
  3397. chatfunc("But, its not over yet...",Color3.new(1,0,0))
  3398. wait(3)
  3399. Unleashment()
  3400. alredused = false
  3401. elseif attack == false and Unleashed == true and alredused == false then
  3402. alredused = true
  3403. chatfunc("Oh, i guess its time to go easy now...",Color3.new(1,0,0))
  3404. wait(3)
  3405. Releasement()
  3406. alredused = false
  3407. end
  3408. elseif string.lower(input) == "asdtrq" then
  3409. if attack == false then
  3410. chatfunc("Not without a trace...",Color3.new(1,1,1))
  3411. ChronicMirror()
  3412. end
  3413. elseif string.lower(input) == "strx" then
  3414. if attack == false then
  3415. if Unleashed == false then
  3416. chatfunc("Reflection!",Color3.new(1,1,1))
  3417. elseif Unleashed == true then
  3418. chatfunc("Deflection.",Color3.new(1,1,1))
  3419. end
  3420. Reflection()
  3421. end
  3422. elseif string.lower(input) == "aeq" then
  3423. if attack == false and IfTheresOrb == false then
  3424. if Unleashed == false then
  3425. chatfunc("Enlighten.",Color3.new(1,1,1))
  3426. elseif Unleashed == true then
  3427. chatfunc("Dimmer.",Color3.new(1,1,1))
  3428. end
  3429. Enlighten()
  3430. elseif attack == false and IfTheresOrb == true then
  3431. chatfunc("I already had an orb...",Color3.new(1,1,1))
  3432. end
  3433. elseif string.lower(input) == "aaq" then
  3434. if attack == false and IfTheresOrb == true then
  3435. if Unleashed == false then
  3436. chatfunc("Explode!",Color3.new(1,1,1))
  3437. elseif Unleashed == true then
  3438. chatfunc("Outpulse.",Color3.new(1,1,1))
  3439. end
  3440. ExplodeOrb()
  3441. elseif attack == false and IfTheresOrb == false then
  3442. chatfunc("No orb...",Color3.new(1,1,1))
  3443. end
  3444. elseif string.lower(input) == "arq" then
  3445. if attack == false and IfTheresOrb == true then
  3446. chatfunc("Move...",Color3.new(1,1,1))
  3447. MoveOrb()
  3448. elseif attack == false and IfTheresOrb == false then
  3449. chatfunc("I've forgotten about it.",Color3.new(1,1,1))
  3450. end
  3451. elseif string.lower(input) == "adq" then
  3452. if attack == false and IfTheresOrb == true then
  3453. chatfunc("Get over here...",Color3.new(1,1,1))
  3454. BackOrb()
  3455. elseif attack == false and IfTheresOrb == false then
  3456. chatfunc("What was i thinking?",Color3.new(1,1,1))
  3457. end
  3458. elseif string.lower(input) == "asq" then
  3459. if attack == false and IfTheresOrb == true then
  3460. chatfunc("Teleport!",Color3.new(1,1,1))
  3461. TeleOrb()
  3462. elseif attack == false and IfTheresOrb == false then
  3463. chatfunc("I can't teleport without an orb...",Color3.new(1,1,1))
  3464. end
  3465. elseif string.lower(input) == "asq" then
  3466. if attack == false and IfTheresOrb == true then
  3467. chatfunc("Teleport!",Color3.new(1,1,1))
  3468. TeleOrb()
  3469. elseif attack == false and IfTheresOrb == false then
  3470. chatfunc("I can't teleport without an orb...",Color3.new(1,1,1))
  3471. end
  3472. elseif string.lower(input) == "atq" then
  3473. if attack == false and IfTheresOrb == true then
  3474. if Unleashed == false then
  3475. chatfunc("How about a little graze?",Color3.new(1,1,1))
  3476. elseif Unleashed == true then
  3477. chatfunc("I hope you couldn't survive this.",Color3.new(1,1,1))
  3478. end
  3479. SawOrb()
  3480. elseif attack == false and IfTheresOrb == false then
  3481. chatfunc("I forgot, i forgot.",Color3.new(1,1,1))
  3482. end
  3483. end
  3484. input = ''
  3485. end
  3486. end
  3487. end)
  3488. Humanoid.Animator.Parent = nil
  3489. idleanim=.4
  3490. while true do
  3491. swait()
  3492. hptext.Text = math.floor(hum.Health).. " / " ..math.floor(hum.MaxHealth)
  3493. if hum.Health <= 100 then
  3494. hpbarup:TweenSize(UDim2.new(hum.Health/80,0,0.15,0),nil,1,0.4,true)
  3495. end
  3496. cdbarupZ:TweenSize(UDim2.new(cooldownZ/100,0,0.25,0),nil,1,0.4,true)
  3497. cdbarupX:TweenSize(UDim2.new(cooldownX/100,0,0.25,0),nil,1,0.4,true)
  3498. cdbarupC:TweenSize(UDim2.new(cooldownC/100,0,0.25,0),nil,1,0.4,true)
  3499. cdbarupV:TweenSize(UDim2.new(cooldownV/100,0,0.25,0),nil,1,0.4,true)
  3500. if hum.Health < 50 and hum.Health > 25 then
  3501. hpbarup.BackgroundColor3 = Color3.new(1,1,0)
  3502. elseif hum.Health >= 50 then
  3503. hpbarup.BackgroundColor3 = Color3.new(0,1,0)
  3504. elseif hum.Health <= 25 then
  3505. hpbarup.BackgroundColor3 = Color3.new(1,0,0)
  3506. end
  3507. if cooldownZ <= 100 then
  3508. cooldownZ = cooldownZ + 1
  3509. end
  3510. if cooldownX <= 100 then
  3511. cooldownX = cooldownX + 1
  3512. end
  3513. if cooldownC <= 100 then
  3514. cooldownC = cooldownC + 1
  3515. end
  3516. if cooldownV <= 100 then
  3517. cooldownV = cooldownV + 1
  3518. end
  3519. if Unleashed == true then
  3520. MagicBlock(origcolor,larmor.CFrame,2,2,2,-0.1,-0.1,-0.1,0.075)
  3521. MagicBlock(origcolor,rarmor.CFrame,2,2,2,-0.1,-0.1,-0.1,0.075)
  3522. end
  3523. sine = sine + change
  3524. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3525. local velderp=RootPart.Velocity.y
  3526. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3527. if equipped==true or equipped==false then
  3528. if attack==false then
  3529. idle=idle+1
  3530. else
  3531. idle=0
  3532. end
  3533. if idle>=500 then
  3534. if attack==false then
  3535. --Sheath()
  3536. end
  3537. end
  3538. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3539. Anim="Jump"
  3540. if attack==false then
  3541. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3542. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3543. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3544. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3545. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3546. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3547. end
  3548. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3549. Anim="Fall"
  3550. if attack==false then
  3551. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3552. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3553. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3554. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3555. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3556. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3557. end
  3558. elseif torvel<1 and hitfloor~=nil then
  3559. Anim="Idle"
  3560. if attack==false then
  3561. if Unleashed == false then
  3562. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.1)
  3563. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.1)
  3564. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3565. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
  3566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.1)
  3567. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(80 + 10 * math.cos(sine / 24)),math.rad(0),math.rad(20)),.1)
  3568. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10 - 5 * math.cos(sine / 24))),.1)
  3569. elseif Unleashed == true then
  3570. swordweld.C1=clerp(swordweld.C1,cf(0,0.75,-0.5)*angles(math.rad(-60),math.rad(0),math.rad(-20)),.1)
  3571. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.1)
  3572. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.1)
  3573. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3574. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 5 * math.cos(sine / 24)),math.rad(0),math.rad(0)),.1)
  3575. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(0),math.rad(10 + 5 * math.cos(sine / 24))),.1)
  3576. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-5),math.rad(0),math.rad(-10 - 5 * math.cos(sine / 24))),.1)
  3577. end
  3578. end
  3579. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3580. Anim="Walk"
  3581. if attack==false then
  3582. if Unleashed == false then
  3583. swordweld.C1=clerp(swordweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3584. RH.C0=clerp(RH.C0,cf(1,-0.85 - 0.15 * math.cos(sine / 3),-0.15 - 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  3585. LH.C0=clerp(LH.C0,cf(-1,-0.85 + 0.15 * math.cos(sine / 3),-0.15 + 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  3586. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 3))*angles(math.rad(5),math.rad(0),math.rad(-5 - 5 * math.cos(sine / 6))),.1)
  3587. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(5 + 5 * math.cos(sine / 6))),.1)
  3588. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 1 * math.cos(sine / 6)),math.rad(-20 - 10 * math.cos(sine / 6)),math.rad(10)),.1)
  3589. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 75 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  3590. elseif Unleashed == true then
  3591. swordweld.C1=clerp(swordweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3592. RH.C0=clerp(RH.C0,cf(1,-0.85 - 0.15 * math.cos(sine / 3),-0.15 - 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  3593. LH.C0=clerp(LH.C0,cf(-1,-0.85 + 0.15 * math.cos(sine / 3),-0.15 + 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  3594. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 3))*angles(math.rad(5),math.rad(0),math.rad(0 - 12.5 * math.cos(sine / 6))),.1)
  3595. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 12.5 * math.cos(sine / 6))),.1)
  3596. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 75 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  3597. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 75 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  3598. end
  3599. end
  3600. elseif torvel>=22 and hitfloor~=nil then
  3601. Anim="Run"
  3602. if attack==false then
  3603. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  3604. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  3605. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  3606. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3607. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  3608. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  3609. end
  3610. end
  3611. end
  3612. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement