Advertisement
AgentVK

Untitled

Sep 24th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 83.83 KB | None | 0 0
  1. local time = tick()
  2.  
  3. local plr = game:GetService("Players").LocalPlayer
  4. local mouse,char = plr:GetMouse(),plr.Character
  5.  
  6. local amountGhosts = 5
  7.  
  8. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  9.  
  10. local toggle,cd,mcd = false,false,false
  11. local ghosts = {}
  12. local temptab = {}
  13.  
  14. char:WaitForChild("Animate"):Destroy()
  15. char.Humanoid:WaitForChild("Animator"):Destroy()
  16.  
  17. local state = "idle"
  18.  
  19. local gt = false
  20.  
  21. local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit
  22. gyro.MaxTorque = Vector3.new(0,0,0)
  23. gyro.D = 0
  24. gyro.P = 100000000
  25.  
  26.  
  27. local wCol = BrickColor.new("Really red")
  28. local wCol2 = BrickColor.new("Really black")
  29. local gCol = BrickColor.new("Toothpaste")
  30. local gCol2 = BrickColor.new("Institutional white")
  31.  
  32. function searchAll(m,clear)
  33. if clear then
  34. if clear == true then
  35. for i,v in pairs(temptab) do
  36. table.remove(temptab,1)
  37. end
  38. end
  39. end
  40. for i,v in pairs(m:GetChildren()) do
  41. if v then
  42. local s = v:Clone()
  43. for _,b in pairs(s:GetChildren()) do
  44. b:Destroy()
  45. end
  46. if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then
  47. if s.Name ~= "HumanoidRootPart" then
  48. s.Anchored = true
  49. s.CanCollide = false
  50. s.Transparency = 0.95
  51. s.TopSurface = "Smooth"
  52. s.BottomSurface = "Smooth"
  53. s.FrontSurface = "Smooth"
  54. s.RightSurface = "Smooth"
  55. s.BackSurface = "Smooth"
  56. s.LeftSurface = "Smooth"
  57. if s.Material ~= Enum.Material.Neon then
  58. if gt == true then
  59. s.BrickColor = wCol2
  60. else
  61. s.BrickColor = gCol2
  62. end
  63. else
  64. if gt == true then
  65. s.BrickColor = wCol
  66. else
  67. s.BrickColor = gCol
  68. end
  69. end
  70. for _,c in pairs(v:GetChildren()) do
  71. if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then
  72. c:Clone().Parent = s
  73. end
  74. end
  75. local objValue = Instance.new("ObjectValue",s)
  76. objValue.Name = "Target"
  77. objValue.Value = v
  78. table.insert(temptab,s)
  79. end
  80. --elseif s:IsA("CharacterMesh") then
  81. --table.insert(temptab,s)
  82. end
  83. --searchAll(v)
  84. end
  85. end
  86. return temptab
  87. end
  88.  
  89. function CreateGhost()
  90. local ghost = Instance.new("Model",game.Workspace)
  91. searchAll(char,true)
  92. ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name
  93. --Instance.new("Humanoid",ghost)
  94. for i,v in pairs(temptab) do
  95. v:Clone().Parent = ghost
  96. end
  97. table.insert(ghosts,ghost)
  98. end
  99.  
  100. function ClearGhosts()
  101. for i,v in pairs(ghosts) do
  102. v:Destroy()
  103. end
  104. for i,v in pairs(ghosts) do
  105. table.remove(ghosts,1)
  106. end
  107. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  108. if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then
  109. v:Destroy()
  110. end
  111. end
  112. end
  113.  
  114. Instance.new("ForceField",char).Visible = false
  115.  
  116. local e1 = Instance.new("Part",char)
  117. e1.Size = Vector3.new(0.2,0.2,0.2)
  118. e1.TopSurface = "Smooth"
  119. e1.BottomSurface = "Smooth"
  120. e1.Material = "Neon"
  121. e1.Transparency = 1
  122. e1.Anchored = true
  123. e1.CanCollide = false
  124. e1.BrickColor = gCol
  125. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6)
  126. local em1 = Instance.new("SpecialMesh",e1)
  127. em1.MeshType = "Sphere"
  128. local e2 = Instance.new("Part",char)
  129. e2.Size = Vector3.new(0.2,0.2,0.2)
  130. e2.TopSurface = "Smooth"
  131. e2.BottomSurface = "Smooth"
  132. e2.Transparency = 1
  133. e2.Material = "Neon"
  134. e2.Anchored = true
  135. e2.CanCollide = false
  136. e2.BrickColor = gCol
  137. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6)
  138. local em2 = Instance.new("SpecialMesh",e2)
  139. em2.MeshType = "Sphere"
  140.  
  141. toggle = true
  142. for i=1,amountGhosts do
  143. CreateGhost()
  144. end
  145. char.Parent = game:GetService("Workspace").CurrentCamera
  146. char:FindFirstChild("Head").Transparency = 1
  147. char:FindFirstChild("Torso").Transparency = 1
  148. char:FindFirstChild("Right Arm").Transparency = 1
  149. char:FindFirstChild("Left Arm").Transparency = 1
  150. char:FindFirstChild("Right Leg").Transparency = 1
  151. char:FindFirstChild("Left Leg").Transparency = 1
  152. for i,v in pairs(char:GetChildren()) do
  153. if v:IsA("Accessory") then
  154. v:FindFirstChild("Handle").Transparency = 1
  155. end
  156. end
  157. char:FindFirstChild("Head"):FindFirstChild("face"):Destroy()
  158.  
  159. local p1 = Instance.new("Part",workspace)
  160. local m1 = Instance.new("SpecialMesh",p1)
  161. m1.MeshType = "Sphere"
  162. m1.Scale = Vector3.new(5,5,5)
  163. p1.Size = Vector3.new(1,1,1)
  164. p1.Anchored = true
  165. p1.CanCollide = false
  166. p1.TopSurface = "Smooth"
  167. p1.BottomSurface = "Smooth"
  168. p1.BrickColor = gCol
  169. p1.Material = "Neon"
  170. local p2 = Instance.new("Part",workspace)
  171. local m2 = Instance.new("SpecialMesh",p2)
  172. m2.MeshType = "Sphere"
  173. m2.Scale = Vector3.new(8,8,8)
  174. p2.Size = Vector3.new(1,1,1)
  175. p2.Anchored = true
  176. p2.CanCollide = false
  177. p2.TopSurface = "Smooth"
  178. p2.BottomSurface = "Smooth"
  179. p2.BrickColor = gCol2
  180. p2.Material = "Neon"
  181. local p3 = Instance.new("Part",workspace)
  182. local m3 = Instance.new("BlockMesh",p3)
  183. m3.Scale = Vector3.new(7,7,7)
  184. p3.Size = Vector3.new(1,1,1)
  185. p3.Transparency = 0.4
  186. p3.Anchored = true
  187. p3.CanCollide = false
  188. p3.TopSurface = "Smooth"
  189. p3.BottomSurface = "Smooth"
  190. p3.BrickColor = gCol
  191. p3.Material = "Neon"
  192. local p4 = Instance.new("Part",workspace)
  193. local m4 = Instance.new("BlockMesh",p4)
  194. m4.Scale = Vector3.new(10,10,10)
  195. p4.Size = Vector3.new(1,1,1)
  196. p4.Transparency = 0.4
  197. p4.Anchored = true
  198. p4.CanCollide = false
  199. p4.TopSurface = "Smooth"
  200. p4.BottomSurface = "Smooth"
  201. p4.BrickColor = gCol2
  202. p4.Material = "Neon"
  203. local currentframe = 0
  204. local frmR
  205.  
  206. frmR = game:GetService("RunService").RenderStepped:connect(function()
  207. currentframe = currentframe + 1
  208. if currentframe < 1*60 then
  209. p1.CFrame = char:WaitForChild("Torso").CFrame
  210. p2.CFrame = char:WaitForChild("Torso").CFrame
  211. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  212. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  213. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  214. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  215. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  216. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  217. p1.Transparency = p1.Transparency + (1/(1*60))
  218. p2.Transparency = p2.Transparency + (1/(1*60))
  219. p3.Transparency = p3.Transparency + (1/(1*60))
  220. p4.Transparency = p4.Transparency + (1/(1*60))
  221. else
  222. p1:Destroy()
  223. p2:Destroy()
  224. p3:Destroy()
  225. p4:Destroy()
  226. frmR:disconnect()
  227. end
  228. end)
  229.  
  230. char.Humanoid.MaxHealth = math.huge
  231. wait()
  232. char.Humanoid.Health = math.huge
  233.  
  234. --[[mouse.KeyDown:connect(function(key)
  235. if key == "r" then
  236. print("R!")
  237. if cd == false then
  238. print("No cooldown!")
  239. cd = true
  240. if toggle == false then
  241. print("Entering godmode")
  242. toggle = true
  243. Instance.new("ForceField",char)
  244. for i=1,amountGhosts do
  245. CreateGhost()
  246. end
  247. char.Parent = game:GetService("Workspace").CurrentCamera
  248. char:FindFirstChild("Head").Transparency = 1
  249. char:FindFirstChild("Torso").Transparency = 1
  250. char:FindFirstChild("Right Arm").Transparency = 1
  251. char:FindFirstChild("Left Arm").Transparency = 1
  252. char:FindFirstChild("Right Leg").Transparency = 1
  253. char:FindFirstChild("Left Leg").Transparency = 1
  254. for i,v in pairs(char:GetChildren()) do
  255. if v:IsA("Accessory") then
  256. v:FindFirstChild("Handle").Transparency = 1
  257. end
  258. end
  259. else
  260. print("Exiting godmode")
  261. toggle = false
  262. for i,v in pairs(ghosts) do
  263. v:Destroy()
  264. end
  265. char.Parent = game:GetService("Workspace")
  266. char:FindFirstChild("ForceField"):Destroy()
  267. char:FindFirstChild("Head").Transparency = 0
  268. char:FindFirstChild("Torso").Transparency = 0
  269. char:FindFirstChild("Right Arm").Transparency = 0
  270. char:FindFirstChild("Left Arm").Transparency = 0
  271. char:FindFirstChild("Right Leg").Transparency = 0
  272. char:FindFirstChild("Left Leg").Transparency = 0
  273. for i,v in pairs(char:GetChildren()) do
  274. if v:IsA("Accessory") then
  275. v:FindFirstChild("Handle").Transparency = 0
  276. end
  277. end
  278. end
  279. cd = false
  280. end
  281. end
  282. end)]]
  283.  
  284. mouse.KeyDown:connect(function(key)
  285. spawn(function()
  286. if key == "f" and toggle == true and mcd == false then
  287. if #ghosts < amountGhosts then
  288. print(#ghosts.."<")
  289. mcd = true
  290.  
  291. ClearGhosts()
  292.  
  293. for i=1,amountGhosts do
  294. CreateGhost()
  295. end
  296. local p1 = Instance.new("Part",workspace)
  297. local m1 = Instance.new("SpecialMesh",p1)
  298. m1.MeshType = "Sphere"
  299. m1.Scale = Vector3.new(7,7,7)
  300. p1.Size = Vector3.new(1,1,1)
  301. p1.Anchored = true
  302. p1.CanCollide = false
  303. p1.TopSurface = "Smooth"
  304. p1.BottomSurface = "Smooth"
  305. if gt == false then
  306. p1.BrickColor = gCol
  307. else
  308. p1.BrickColor = wCol
  309. end
  310. p1.Material = "Neon"
  311. local p2 = Instance.new("Part",workspace)
  312. local m2 = Instance.new("SpecialMesh",p2)
  313. m2.MeshType = "Sphere"
  314. m2.Scale = Vector3.new(9,9,9)
  315. p2.Size = Vector3.new(1,1,1)
  316. p2.Anchored = true
  317. p2.CanCollide = false
  318. p2.TopSurface = "Smooth"
  319. p2.BottomSurface = "Smooth"
  320. if gt == false then
  321. p2.BrickColor = gCol2
  322. else
  323. p2.BrickColor = wCol2
  324. end
  325. p2.Material = "Neon"
  326. local currentframe = 0
  327. local frmR
  328.  
  329. frmR = game:GetService("RunService").RenderStepped:connect(function()
  330. currentframe = currentframe + 1
  331. if currentframe < 0.25*60 then
  332. p1.CFrame = char:WaitForChild("Torso").CFrame
  333. p2.CFrame = char:WaitForChild("Torso").CFrame
  334. p1.Transparency = p1.Transparency + (1/(0.25*60))
  335. p2.Transparency = p2.Transparency + (1/(0.25*60))
  336. else
  337. p1:Destroy()
  338. p2:Destroy()
  339. mcd = false
  340. frmR:disconnect()
  341. end
  342. end)
  343. else
  344. mcd = true
  345.  
  346. ClearGhosts()
  347.  
  348. local p1 = Instance.new("Part",workspace)
  349. local m1 = Instance.new("SpecialMesh",p1)
  350. m1.MeshType = "Sphere"
  351. m1.Scale = Vector3.new(7,7,7)
  352. p1.Size = Vector3.new(1,1,1)
  353. p1.Anchored = true
  354. p1.CanCollide = false
  355. p1.TopSurface = "Smooth"
  356. p1.BottomSurface = "Smooth"
  357. if gt == false then
  358. p1.BrickColor = gCol
  359. else
  360. p1.BrickColor = wCol
  361. end
  362. p1.Material = "Neon"
  363. local p2 = Instance.new("Part",workspace)
  364. local m2 = Instance.new("SpecialMesh",p2)
  365. m2.MeshType = "Sphere"
  366. m2.Scale = Vector3.new(9,9,9)
  367. p2.Size = Vector3.new(1,1,1)
  368. p2.Anchored = true
  369. p2.CanCollide = false
  370. p2.TopSurface = "Smooth"
  371. p2.BottomSurface = "Smooth"
  372. if gt == false then
  373. p2.BrickColor = gCol2
  374. else
  375. p2.BrickColor = wCol2
  376. end
  377. p2.Material = "Neon"
  378. local currentframe = 0
  379. local frmR
  380.  
  381. frmR = game:GetService("RunService").RenderStepped:connect(function()
  382. currentframe = currentframe + 1
  383. if currentframe < 0.25*60 then
  384. p1.CFrame = char:WaitForChild("Torso").CFrame
  385. p2.CFrame = char:WaitForChild("Torso").CFrame
  386. p1.Transparency = p1.Transparency + (1/(0.25*60))
  387. p2.Transparency = p2.Transparency + (1/(0.25*60))
  388. else
  389. p1:Destroy()
  390. p2:Destroy()
  391. mcd = false
  392. frmR:disconnect()
  393. end
  394. end)
  395. end
  396. elseif key == "g" and toggle == true and mcd == false then
  397. if gt == true then
  398. gt = false
  399. local p1 = Instance.new("Part",workspace)
  400. local m1 = Instance.new("SpecialMesh",p1)
  401. m1.MeshType = "Sphere"
  402. m1.Scale = Vector3.new(5,5,5)
  403. p1.Size = Vector3.new(1,1,1)
  404. p1.Anchored = true
  405. p1.CanCollide = false
  406. p1.TopSurface = "Smooth"
  407. p1.BottomSurface = "Smooth"
  408. p1.BrickColor = gCol
  409. p1.Material = "Neon"
  410. local p2 = Instance.new("Part",workspace)
  411. local m2 = Instance.new("SpecialMesh",p2)
  412. m2.MeshType = "Sphere"
  413. m2.Scale = Vector3.new(8,8,8)
  414. p2.Size = Vector3.new(1,1,1)
  415. p2.Anchored = true
  416. p2.CanCollide = false
  417. p2.TopSurface = "Smooth"
  418. p2.BottomSurface = "Smooth"
  419. p2.BrickColor = gCol2
  420. p2.Material = "Neon"
  421. local p3 = Instance.new("Part",workspace)
  422. local m3 = Instance.new("BlockMesh",p3)
  423. m3.Scale = Vector3.new(7,7,7)
  424. p3.Size = Vector3.new(1,1,1)
  425. p3.Transparency = 0.4
  426. p3.Anchored = true
  427. p3.CanCollide = false
  428. p3.TopSurface = "Smooth"
  429. p3.BottomSurface = "Smooth"
  430. p3.BrickColor = gCol
  431. p3.Material = "Neon"
  432. local p4 = Instance.new("Part",workspace)
  433. local m4 = Instance.new("BlockMesh",p4)
  434. m4.Scale = Vector3.new(10,10,10)
  435. p4.Size = Vector3.new(1,1,1)
  436. p4.Transparency = 0.4
  437. p4.Anchored = true
  438. p4.CanCollide = false
  439. p4.TopSurface = "Smooth"
  440. p4.BottomSurface = "Smooth"
  441. p4.BrickColor = gCol2
  442. p4.Material = "Neon"
  443.  
  444. ClearGhosts()
  445.  
  446. for i=1,amountGhosts do
  447. CreateGhost()
  448. end
  449.  
  450. local currentframe = 0
  451. local frmR
  452.  
  453. frmR = game:GetService("RunService").RenderStepped:connect(function()
  454. currentframe = currentframe + 1
  455. if currentframe < 1*60 then
  456. p1.CFrame = char:WaitForChild("Torso").CFrame
  457. p2.CFrame = char:WaitForChild("Torso").CFrame
  458. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  459. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  460. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  461. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  462. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  463. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  464. p1.Transparency = p1.Transparency + (1/(1*60))
  465. p2.Transparency = p2.Transparency + (1/(1*60))
  466. p3.Transparency = p3.Transparency + (1/(1*60))
  467. p4.Transparency = p4.Transparency + (1/(1*60))
  468. else
  469. p1:Destroy()
  470. p2:Destroy()
  471. p3:Destroy()
  472. p4:Destroy()
  473. frmR:disconnect()
  474. end
  475. end)
  476. else
  477. gt = true
  478. local p1 = Instance.new("Part",workspace)
  479. local m1 = Instance.new("SpecialMesh",p1)
  480. m1.MeshType = "Sphere"
  481. m1.Scale = Vector3.new(5,5,5)
  482. p1.Size = Vector3.new(1,1,1)
  483. p1.Anchored = true
  484. p1.CanCollide = false
  485. p1.TopSurface = "Smooth"
  486. p1.BottomSurface = "Smooth"
  487. p1.BrickColor = wCol
  488. p1.Material = "Neon"
  489. local p2 = Instance.new("Part",workspace)
  490. local m2 = Instance.new("SpecialMesh",p2)
  491. m2.MeshType = "Sphere"
  492. m2.Scale = Vector3.new(8,8,8)
  493. p2.Size = Vector3.new(1,1,1)
  494. p2.Anchored = true
  495. p2.CanCollide = false
  496. p2.TopSurface = "Smooth"
  497. p2.BottomSurface = "Smooth"
  498. p2.BrickColor = wCol2
  499. p2.Material = "Neon"
  500. local p3 = Instance.new("Part",workspace)
  501. local m3 = Instance.new("BlockMesh",p3)
  502. m3.Scale = Vector3.new(7,7,7)
  503. p3.Size = Vector3.new(1,1,1)
  504. p3.Transparency = 0.4
  505. p3.Anchored = true
  506. p3.CanCollide = false
  507. p3.TopSurface = "Smooth"
  508. p3.BottomSurface = "Smooth"
  509. p3.BrickColor = wCol
  510. p3.Material = "Neon"
  511. local p4 = Instance.new("Part",workspace)
  512. local m4 = Instance.new("BlockMesh",p4)
  513. m4.Scale = Vector3.new(10,10,10)
  514. p4.Size = Vector3.new(1,1,1)
  515. p4.Transparency = 0.4
  516. p4.Anchored = true
  517. p4.CanCollide = false
  518. p4.TopSurface = "Smooth"
  519. p4.BottomSurface = "Smooth"
  520. p4.BrickColor = wCol2
  521. p4.Material = "Neon"
  522.  
  523. ClearGhosts()
  524.  
  525. for i=1,amountGhosts do
  526. CreateGhost()
  527. end
  528.  
  529. local currentframe = 0
  530. local frmR
  531.  
  532. frmR = game:GetService("RunService").RenderStepped:connect(function()
  533. currentframe = currentframe + 1
  534. if currentframe < 1*60 then
  535. p1.CFrame = char:WaitForChild("Torso").CFrame
  536. p2.CFrame = char:WaitForChild("Torso").CFrame
  537. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  538. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  539. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  540. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  541. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  542. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  543. p1.Transparency = p1.Transparency + (1/(1*60))
  544. p2.Transparency = p2.Transparency + (1/(1*60))
  545. p3.Transparency = p3.Transparency + (1/(1*60))
  546. p4.Transparency = p4.Transparency + (1/(1*60))
  547. else
  548. p1:Destroy()
  549. p2:Destroy()
  550. p3:Destroy()
  551. p4:Destroy()
  552. frmR:disconnect()
  553. end
  554. end)
  555. end
  556. end
  557. end)
  558. end)
  559.  
  560. local frm = 0
  561.  
  562. local toRemove = {}
  563.  
  564. game:GetService("RunService").RenderStepped:connect(function()
  565. frm = frm + 1
  566. if char.Parent == game:GetService("Workspace").CurrentCamera then
  567.  
  568. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55)
  569. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55)
  570.  
  571. local delay = 0.9
  572.  
  573. for i,v in pairs(ghosts) do
  574. for _,b in pairs(v:GetChildren()) do
  575. if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then
  576. b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay)
  577. end
  578. end
  579. delay = delay - (0.5/(#ghosts+1))
  580. end
  581.  
  582. --[[if math.floor(frm/8) == frm/8 then
  583. local isub = 0
  584. for i,v in pairs(ghosts) do
  585. if #v:GetChildren() < 6 then
  586. v:Destroy()
  587. table.remove(ghosts,i - isub)
  588. isub = isub + 1
  589. CreateGhost()
  590. end
  591. end
  592. end]]
  593. end
  594.  
  595. --Animation states
  596.  
  597. local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4)
  598. local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true)
  599.  
  600. if state ~= "busy" then
  601. if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
  602. state = "idle"
  603. elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then
  604. state = "running"
  605. --[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then
  606. state = "falling"
  607. elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then
  608. state = "jumping"]]
  609. end
  610. char.Humanoid.WalkSpeed = 32
  611. char.Humanoid.JumpPower = 70
  612. end
  613.  
  614. --Actual animations
  615.  
  616. if state == "idle" then
  617. char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(80 + math.cos(tick())*4),math.rad(180),math.rad(0)),0.06)
  618. char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
  619. char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
  620. char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.43 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
  621. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(-15 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
  622. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
  623. elseif state == "running" then
  624. char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(65 + math.cos(tick())*4),math.rad(180),math.rad(-char.HumanoidRootPart.RotVelocity.Y*10)),0.06)
  625. char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
  626. char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
  627. char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.70 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(50 + math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
  628. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(-35 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
  629. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
  630. end
  631. end)
  632.  
  633. char.Humanoid.Died:connect(function()
  634. toggle = false
  635.  
  636. ClearGhosts()
  637.  
  638. char.Parent = game.Workspace
  639. char.Parent = game:GetService("Workspace")
  640. char:FindFirstChild("ForceField"):Destroy()
  641. char:FindFirstChild("Head").Transparency = 0
  642. char:FindFirstChild("Torso").Transparency = 0
  643. char:FindFirstChild("Right Arm").Transparency = 0
  644. char:FindFirstChild("Left Arm").Transparency = 0
  645. char:FindFirstChild("Right Leg").Transparency = 0
  646. char:FindFirstChild("Left Leg").Transparency = 0
  647. for i,v in pairs(char:GetChildren()) do
  648. if v:IsA("Accessory") then
  649. v:FindFirstChild("Handle").Transparency = 0
  650. end
  651. end
  652. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  653. plr:LoadCharacter()
  654. end)
  655.  
  656. local msgidGlob = 0
  657. local state = true
  658. local font = "Arcade"
  659. local tcol = Color3.fromRGB(255,217,0)
  660. local tscol = Color3.fromRGB(0,0,0)
  661. local fsiz = 28
  662. local tr = true
  663. local tsr = false
  664. local fade = 2
  665.  
  666. local p = Instance.new("Part",game.Workspace)
  667. p.Size = Vector3.new(0.2,0.2,0.2)
  668. p.Transparency = 1
  669. p.Anchored = true
  670. p.CanCollide = false
  671. p.Name = "Msg"
  672. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  673.  
  674. local r = 255
  675. local b = 0
  676. local g = 0
  677.  
  678. plr.Chatted:connect(function(c)
  679. msgidGlob = msgidGlob + 1
  680. local curMsgId = msgidGlob
  681. if string.lower(c) == "!disable" then
  682. state = false
  683. elseif string.lower(c) == "!enable" then
  684. state = true
  685. elseif string.lower(string.sub(c,1,6)) == "!font " then
  686. local old = font
  687. font = string.sub(c,7,#c) or old
  688. elseif string.lower(string.sub(c,1,8)) == "!tcolor " then
  689. if string.lower(string.sub(c,9,#c)) == "rainbow" then
  690. tr = true
  691. else
  692. tr = false
  693. local old = tcol
  694. tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old
  695. end
  696. elseif string.lower(string.sub(c,1,9)) == "!tscolor " then
  697. if string.sub(c,10,#c) == "rainbow" then
  698. tsr = true
  699. else
  700. tsr = false
  701. local old = tscol
  702. tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old
  703. end
  704. elseif string.lower(string.sub(c,1,6)) == "!size " then
  705. local old = fsiz
  706. fsiz = string.sub(c,7,#c) or old
  707. elseif string.lower(string.sub(c,1,6)) == "!fade " then
  708. local old = fade
  709. fade = string.sub(c,7,#c) or old
  710. end
  711. if plr.Character and state == true then
  712. if plr.Character:FindFirstChild("Head") then
  713. for i,v in pairs(p:GetChildren()) do
  714. if v:IsA("BillboardGui") and v.Name == "J2CMSG" then
  715. v:Destroy()
  716. end
  717. end
  718. local bbgui = Instance.new("BillboardGui",p)
  719. bbgui.Name = "J2CMSG"
  720. bbgui.AlwaysOnTop = true
  721. bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0)
  722. bbgui.Size = UDim2.new(0.2,0,0.14,0)
  723. local tl = Instance.new("TextLabel",bbgui)
  724. tl.BackgroundTransparency = 1
  725. tl.BorderSizePixel = 0
  726. tl.Size = UDim2.new(1,0,10,0)
  727. tl.Position = UDim2.new(0,0,-5,0)
  728. tl.Font = font or "SciFi"
  729. tl.FontSize = "Size"..fsiz or "Size36"
  730. tl.TextColor3 = tcol
  731. tl.TextScaled = false
  732. tl.TextWrapped = false
  733. tl.TextStrokeColor3 = tscol
  734. tl.TextStrokeTransparency = 0
  735.  
  736. game:GetService("RunService").RenderStepped:connect(function()
  737. if tr then
  738. if tl.Parent ~= nil then
  739. tl.TextColor3 = Color3.fromRGB(r,g,b)
  740. end
  741. end
  742. end)
  743.  
  744. for i=1,#c do
  745. if msgidGlob == curMsgId then
  746. tl.Text = string.sub(c,1,i)
  747. if string.sub(c,i,i) ~= " " then
  748. local s = Instance.new("Sound",p)
  749. s.SoundId = "rbxassetid://418252437"
  750. s.Volume = 1
  751. s.Pitch = 1
  752. s:Play()
  753. game.Debris:AddItem(s,2)
  754. end
  755. wait()
  756. end
  757. end
  758. wait(fade)
  759. if msgidGlob == curMsgId then
  760. for i=1,10 do
  761. if msgidGlob == curMsgId then
  762. tl.TextTransparency = tl.TextTransparency + 0.1
  763. tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
  764. tl.Position = tl.Position + UDim2.new(0,0,0,-3)
  765. wait()
  766. end
  767. end
  768. if msgidGlob == curMsgId then
  769. bbgui:Destroy()
  770. end
  771. end
  772. end
  773. end
  774. end)
  775.  
  776. coroutine.resume(coroutine.create(function()
  777. while wait() do
  778. for i=0,255,10 do g = i wait() end
  779. for i=255,0,-10 do r = i wait() end
  780. for i=0,255,10 do b = i wait() end
  781. for i=255,0,-10 do g = i wait() end
  782. for i=0,255,10 do r = i wait() end
  783. for i=255,0,-10 do b = i wait() end
  784. end
  785. end))
  786.  
  787. game:GetService("RunService").RenderStepped:connect(function()
  788. if p.Parent ~= nil then
  789. p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16)
  790. else
  791. p = Instance.new("Part",game.Workspace)
  792. p.Size = Vector3.new(0.2,0.2,0.2)
  793. p.Transparency = 1
  794. p.Anchored = true
  795. p.CanCollide = false
  796. p.Name = "Msg"
  797. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  798. end
  799. end)
  800.  
  801. print("Ghost loaded! Time elapsed: "..tick() - time)
  802.  
  803.  
  804.  
  805.  
  806. wait(0.016666666666667)
  807. Effects = {}
  808. local Player = game.Players.localPlayer
  809. local Character = Player.Character
  810. local Humanoid = Character.Humanoid
  811. local mouse = Player:GetMouse()
  812. local m = Instance.new("Model", Character)
  813. m.Name = "WeaponModel"
  814. local LeftArm = Character["Left Arm"]
  815. local RightArm = Character["Right Arm"]
  816. local LeftLeg = Character["Left Leg"]
  817. local RightLeg = Character["Right Leg"]
  818. local Head = Character.Head
  819. local Torso = Character.Torso
  820. local cam = game.Workspace.CurrentCamera
  821. local RootPart = Character.HumanoidRootPart
  822. local RootJoint = RootPart.RootJoint
  823. local equipped = false
  824. local attack = false
  825. local Anim = "Idle"
  826. local idle = 0
  827. local attacktype = 1
  828. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  829. local velocity = RootPart.Velocity.y
  830. local sine = 0
  831. local change = 1
  832. local grabbed = false
  833. local cf = CFrame.new
  834. local mr = math.rad
  835. local angles = CFrame.Angles
  836. local ud = UDim2.new
  837. local vt = Vector3.new
  838. local c3 = Color3.new
  839. local mana = 0
  840. local mananum = 0
  841. local it = Instance.new
  842. local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  843. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  844. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  845. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  846. xenabled = true
  847. cenabled = true
  848. venabled = true
  849. zenabled = true
  850. RSH = nil
  851. RW = Instance.new("Weld")
  852. LW = Instance.new("Weld")
  853. RH = Torso["Right Hip"]
  854. LH = Torso["Left Hip"]
  855. RSH = Torso["Right Shoulder"]
  856. LSH = Torso["Left Shoulder"]
  857. RSH.Parent = nil
  858. LSH.Parent = nil
  859. RW.Name = "RW"
  860. RW.Part0 = Torso
  861. RW.C0 = cf(1.5, 0.5, 0)
  862. RW.C1 = cf(0, 0.5, 0)
  863. RW.Part1 = RightArm
  864. RW.Parent = Torso
  865. LW.Name = "LW"
  866. LW.Part0 = Torso
  867. LW.C0 = cf(-1.5, 0.5, 0)
  868. LW.C1 = cf(0, 0.5, 0)
  869. LW.Part1 = LeftArm
  870. LW.Parent = Torso
  871. clerp = function(a, b, t)
  872. return a:lerp(b, t)
  873. end
  874.  
  875.  
  876. ----------------------------------------------------
  877. z = Instance.new("Sound", Character)
  878. z.SoundId = "rbxassetid://428255459"--
  879. z.Looped = true
  880. z.Pitch = 1
  881. z.Volume = 1
  882. wait(.1)
  883. z:Play()
  884. ----------------------------------------------------
  885.  
  886. ArtificialHB = Instance.new("BindableEvent", script)
  887. ArtificialHB.Name = "Heartbeat"
  888. script:WaitForChild("Heartbeat")
  889. frame = 0.016666666666667
  890. tf = 0
  891. allowframeloss = false
  892. tossremainder = false
  893. lastframe = tick()
  894. script.Heartbeat:Fire()
  895. game:GetService("RunService").Heartbeat:connect(function(s, p)
  896. tf = tf + s
  897. if frame <= tf then
  898. if allowframeloss then
  899. script.Heartbeat:Fire()
  900. lastframe = tick()
  901. else
  902. for i = 1, math.floor(tf / frame) do
  903. script.Heartbeat:Fire()
  904. end
  905. lastframe = tick()
  906. end
  907. if tossremainder then
  908. tf = 0
  909. else
  910. tf = tf - frame * math.floor(tf / frame)
  911. end
  912. end
  913. end
  914. )
  915. swait = function(num)
  916. if num == 0 or num == nil then
  917. ArtificialHB.Event:wait()
  918. else
  919. for i = 0, num do
  920. ArtificialHB.Event:wait()
  921. end
  922. end
  923. end
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930. Magik = function(part)
  931. Spawn(function()
  932. local function lerp(a,b,c)
  933. return a+(b-a)*c
  934. end
  935. local function rndRange(rng)
  936. return math.random(-rng*1000,rng*1000)/1000
  937. end
  938. local magik = Instance.new("Part", part)
  939. magik.Anchored = true
  940. magik.Locked = true
  941. magik.Material = "Neon"
  942. magik.FormFactor = "Custom"
  943. magik.Size = Vector3.new(1.2, 1.2, 1.2)
  944. magik.TopSurface = "Smooth"
  945. magik.BottomSurface = "Smooth"
  946. magik.Transparency = 0
  947. magik.CanCollide = false
  948.  
  949. magik.BrickColor = BrickColor.new("Royal purple")
  950.  
  951. local mr = math.rad
  952. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  953. local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  954. magik.CFrame = cf
  955. for i = 0, 1, .05 do
  956. local newTrans = lerp(.8, 1, i)
  957. local ns = lerp(1,1.2,i)
  958. magik.Transparency = newTrans
  959. magik.Size = Vector3.new(ns,ns,ns)
  960. magik.CFrame = cf
  961. wait()
  962. end
  963. magik:Destroy()
  964. wait()
  965. end)
  966. end
  967. ----------------------------------------------------
  968. Magik2 = function(part)
  969. Spawn(function()
  970. local function lerp(a,b,c)
  971. return a+(b-a)*c
  972. end
  973. local function rndRange(rng)
  974. return math.random(-rng*1000,rng*1000)/1000
  975. end
  976. local magik2 = Instance.new("Part",part)
  977. magik2.Anchored = true
  978. magik2.Locked = true
  979. magik2.FormFactor = "Custom"
  980. magik2.Size = Vector3.new(1.2, 1.2, 1.2)
  981. magik2.TopSurface = "Smooth"
  982. magik2.BottomSurface = "Smooth"
  983. magik2.Transparency = 0
  984. magik2.Material = "Neon"
  985. magik2.CanCollide = false
  986.  
  987.  
  988. magik2.BrickColor = BrickColor.new("Really black")
  989.  
  990.  
  991. local mr = math.rad
  992. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  993. local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  994. magik2.CFrame = cf
  995. for i = 0, 1, .05 do
  996. local newTrans = lerp(.8, 1, i)
  997. local ns = lerp(1,1.2,i)
  998. magik2.Transparency = newTrans
  999. magik2.Size = Vector3.new(ns,ns,ns)
  1000. magik2.CFrame = cf
  1001. wait()
  1002. end
  1003. magik2:Destroy()
  1004. end)
  1005. end
  1006.  
  1007.  
  1008.  
  1009. Spawn(function()
  1010. while wait(.1) do
  1011. Magik(RightArm)
  1012. end
  1013. end)
  1014.  
  1015. Spawn(function()
  1016. while wait(.1) do
  1017. Magik2(RightArm)
  1018. end
  1019. end)
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028. FloatPart = function()
  1029. local Part = Instance.new('Part',Torso)
  1030. Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
  1031. Part.Anchored = true
  1032. Part.Material = 'Neon'
  1033. Part.CanCollide = false
  1034. Part.BrickColor = BrickColor.new(PrimaryColor)
  1035. local Mesh = Instance.new('SpecialMesh',Part)
  1036. Mesh.Scale = Vector3.new(4,4,.2)
  1037. Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
  1038. Mesh.VertexColor = Vector3.new(0,170,255)
  1039. spawn(function()
  1040. for i = 1,30 do
  1041. Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
  1042. Part.Transparency = Part.Transparency + .035
  1043. game["Run Service"].RenderStepped:wait()
  1044. end
  1045. Part:Destroy()
  1046. end)
  1047. end;
  1048.  
  1049. DubPart = function()
  1050. local Part = Instance.new('Part',Torso)
  1051. Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
  1052. Part.Anchored = true
  1053. Part.CanCollide = false
  1054. Part.Material = 'Neon'
  1055. Part.BrickColor = BrickColor.new(SecondaryColor)
  1056. local Mesh = Instance.new('SpecialMesh',Part)
  1057. Mesh.Scale = Vector3.new(7,7,.2)
  1058. Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
  1059. Mesh.VertexColor = Vector3.new(0,170,255)
  1060. spawn(function()
  1061. for i = 1,30 do
  1062. Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
  1063. Part.Transparency = Part.Transparency + .035
  1064. game["Run Service"].RenderStepped:wait()
  1065. end
  1066. Part:Destroy()
  1067. end)
  1068. end;
  1069.  
  1070. Fade = function(Item,t)
  1071. spawn(function()
  1072. for i = 1,20 do
  1073. Item.Transparency = Item.Transparency + .05
  1074. if t then
  1075. wait(t)
  1076. else
  1077. wait()
  1078. end
  1079. end
  1080. Item:Destroy()
  1081. end)
  1082. end
  1083.  
  1084. Particle = function(PrimaryColor)
  1085. local Part = Instance.new('Part',Torso)
  1086. Part.BrickColor = BrickColor.new(PrimaryColor)
  1087. Part.Anchored = true
  1088. Part.Transparency = .3
  1089. Part.CanCollide = false
  1090. Part.CFrame = Torso.CFrame * CFrame.new(math.random(-10,10),math.random(-15,15),math.random(-10,10)) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random())
  1091. local Mesh = Instance.new('BlockMesh',Part)
  1092. Mesh.Scale = Vector3.new(.05,.1,.1)
  1093. spawn(function()
  1094. for i = 1,40 do
  1095. Part.Transparency = Part.Transparency + .0125
  1096. Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0)
  1097. game["Run Service"].RenderStepped:wait()
  1098. end
  1099. Part:Destroy()
  1100. end)
  1101. end;
  1102.  
  1103. --[[spawn(function()
  1104. while wait() do
  1105. wait(.05)
  1106. FloatPart()
  1107. wait(.08)
  1108. FloatPart()
  1109. wait(.05)
  1110. DubPart()
  1111. wait(.08)
  1112. end
  1113. end)]]
  1114.  
  1115. game["Run Service"].RenderStepped:connect(function(_)
  1116. Particle("Royal purple")
  1117. Particle("Really black")
  1118. --Character['HumanoidRootPart'].C1 = Character['HumanoidRootPart'].C1 * CFrame.new(0,Height+math.sin(tick())/150,0)
  1119. end)
  1120.  
  1121.  
  1122.  
  1123. particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
  1124. local fp = it("ParticleEmitter")
  1125. fp.Parent = parent
  1126. fp.Color = cs(col1, col2)
  1127. fp.LightEmission = lightemis
  1128. fp.Size = size
  1129. fp.Texture = texture
  1130. fp.Transparency = transparency
  1131. fp.ZOffset = zoffset
  1132. fp.Acceleration = accel
  1133. fp.Drag = drag
  1134. fp.LockedToPart = ltp
  1135. fp.VelocityInheritance = velinher
  1136. fp.EmissionDirection = emisdir
  1137. fp.Enabled = enabled
  1138. fp.Lifetime = lifetime
  1139. fp.Rate = rate
  1140. fp.Rotation = rotation
  1141. fp.RotSpeed = rotspeed
  1142. fp.Speed = speed
  1143. fp.VelocitySpread = velspread
  1144. return fp
  1145. end
  1146.  
  1147.  
  1148.  
  1149.  
  1150. local fengui = it("GuiMain")
  1151. fengui.Parent = Player.PlayerGui
  1152. fengui.Name = "WeaponGUI"
  1153. local fenframe1 = it("TextLabel")
  1154. fenframe1.Parent = fengui
  1155. fenframe1.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  1156. fenframe1.BackgroundTransparency = 0.3
  1157. fenframe1.BorderSizePixel = 5
  1158. fenframe1.BorderColor3 = Color3.new(1, 1, 1)
  1159. fenframe1.Size = UDim2.new(0.05, 0, 0.1, 0)
  1160. fenframe1.Position = UDim2.new(0.325, 0, 0.7, 0)
  1161. fenframe1.Text = "Z"
  1162. fenframe1.TextWrapped = true
  1163. fenframe1.FontSize = 7
  1164. fenframe1.TextColor3 = Color3.new(1, 1, 1)
  1165. local fenframe1a = it("TextLabel")
  1166. fenframe1a.Parent = fengui
  1167. fenframe1a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  1168. fenframe1a.BackgroundTransparency = 0.3
  1169. fenframe1a.BorderSizePixel = 5
  1170. fenframe1a.BorderColor3 = Color3.new(1, 1, 1)
  1171. fenframe1a.Size = UDim2.new(0.05, 0, 0.1, 0)
  1172. fenframe1a.Position = UDim2.new(0.325, 0, 0.7, 0)
  1173. fenframe1a.Text = ""
  1174. local fenframe2 = it("TextLabel")
  1175. fenframe2.Parent = fengui
  1176. fenframe2.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  1177. fenframe2.BackgroundTransparency = 0.3
  1178. fenframe2.BorderSizePixel = 5
  1179. fenframe2.BorderColor3 = Color3.new(1, 1, 1)
  1180. fenframe2.Size = UDim2.new(0.05, 0, 0.1, 0)
  1181. fenframe2.Position = UDim2.new(0.425, 0, 0.7, 0)
  1182. fenframe2.Text = "X"
  1183. fenframe2.TextWrapped = true
  1184. fenframe2.FontSize = 7
  1185. fenframe2.TextColor3 = Color3.new(1, 1, 1)
  1186. local fenframe2a = it("TextLabel")
  1187. fenframe2a.Parent = fengui
  1188. fenframe2a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  1189. fenframe2a.BackgroundTransparency = 0.3
  1190. fenframe2a.BorderSizePixel = 5
  1191. fenframe2a.BorderColor3 = Color3.new(1, 1, 1)
  1192. fenframe2a.Size = UDim2.new(0.05, 0, 0.1, 0)
  1193. fenframe2a.Position = UDim2.new(0.425, 0, 0.7, 0)
  1194. fenframe2a.Text = ""
  1195. local fenframe3 = it("TextLabel")
  1196. fenframe3.Parent = fengui
  1197. fenframe3.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  1198. fenframe3.BackgroundTransparency = 0.3
  1199. fenframe3.BorderSizePixel = 5
  1200. fenframe3.BorderColor3 = Color3.new(1, 1, 1)
  1201. fenframe3.Size = UDim2.new(0.05, 0, 0.1, 0)
  1202. fenframe3.Position = UDim2.new(0.525, 0, 0.7, 0)
  1203. fenframe3.Text = "C"
  1204. fenframe3.TextWrapped = true
  1205. fenframe3.FontSize = 7
  1206. fenframe3.TextColor3 = Color3.new(1, 1, 1)
  1207. local fenframe3a = it("TextLabel")
  1208. fenframe3a.Parent = fengui
  1209. fenframe3a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  1210. fenframe3a.BackgroundTransparency = 0.3
  1211. fenframe3a.BorderSizePixel = 5
  1212. fenframe3a.BorderColor3 = Color3.new(1, 1, 1)
  1213. fenframe3a.Size = UDim2.new(0.05, 0, 0.1, 0)
  1214. fenframe3a.Position = UDim2.new(0.525, 0, 0.7, 0)
  1215. fenframe3a.Text = ""
  1216. local fenframe4 = it("TextLabel")
  1217. fenframe4.Parent = fengui
  1218. fenframe4.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  1219. fenframe4.BackgroundTransparency = 0.3
  1220. fenframe4.BorderSizePixel = 5
  1221. fenframe4.BorderColor3 = Color3.new(1, 1, 1)
  1222. fenframe4.Size = UDim2.new(0.05, 0, 0.1, 0)
  1223. fenframe4.Position = UDim2.new(0.625, 0, 0.7, 0)
  1224. fenframe4.Text = "V"
  1225. fenframe4.TextWrapped = true
  1226. fenframe4.FontSize = 7
  1227. fenframe4.TextColor3 = Color3.new(1, 1, 1)
  1228. local fenframe4a = it("TextLabel")
  1229. fenframe4a.Parent = fengui
  1230. fenframe4a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  1231. fenframe4a.BackgroundTransparency = 0.3
  1232. fenframe4a.BorderSizePixel = 5
  1233. fenframe4a.BorderColor3 = Color3.new(1, 1, 1)
  1234. fenframe4a.Size = UDim2.new(0.05, 0, 0.1, 0)
  1235. fenframe4a.Position = UDim2.new(0.625, 0, 0.7, 0)
  1236. fenframe4a.Text = ""
  1237. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  1238. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  1239. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  1240. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  1241. local RbxUtility = LoadLibrary("RbxUtility")
  1242. local Create = RbxUtility.Create
  1243. RemoveOutlines = function(part)
  1244. part.TopSurface = 10
  1245. end
  1246.  
  1247. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1248. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1249. RemoveOutlines(Part)
  1250. return Part
  1251. end
  1252.  
  1253. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1254. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1255. if Mesh == "SpecialMesh" then
  1256. Msh.MeshType = MeshType
  1257. Msh.MeshId = MeshId
  1258. end
  1259. return Msh
  1260. end
  1261.  
  1262. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  1263. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1264. return Weld
  1265. end
  1266.  
  1267. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1268. if hit.Parent == nil then
  1269. return
  1270. end
  1271. local h = hit.Parent:FindFirstChild("Humanoid")
  1272. for _,v in pairs(hit.Parent:children()) do
  1273. if v:IsA("Humanoid") then
  1274. h = v
  1275. end
  1276. end
  1277. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1278. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1279. return
  1280. end
  1281. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1282. game:GetService("Debris"):AddItem(c, 0.5)
  1283. if HitSound ~= nil and HitPitch ~= nil then
  1284. CreateSound(HitSound, hit, 1, HitPitch)
  1285. end
  1286. local Damage = math.random(minim, maxim)
  1287. local blocked = false
  1288. local block = hit.Parent:findFirstChild("Block")
  1289. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1290. blocked = true
  1291. block.Value = block.Value - 1
  1292. print(block.Value)
  1293. end
  1294. if blocked == false then
  1295. HitHealth = h.Health
  1296. h.Health = h.Health - Damage
  1297. if mana < 100 then
  1298. mana = mana + math.random(5, 10)
  1299. end
  1300. if mana > 100 then
  1301. mana = 100
  1302. end
  1303. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Lost Soul" then
  1304. end
  1305. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1306. else
  1307. h.Health = h.Health - Damage / 2
  1308. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1309. end
  1310. if Type == "Knockdown" then
  1311. local hum = hit.Parent.Humanoid
  1312. hum.PlatformStand = true
  1313. coroutine.resume(coroutine.create(function(HHumanoid)
  1314. swait(1)
  1315. HHumanoid.PlatformStand = false
  1316. end
  1317. ), hum)
  1318. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1319. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1320. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1321. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1322. game:GetService("Debris"):AddItem(rl, 0.5)
  1323. else
  1324. do
  1325. if Type == "Normal" then
  1326. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  1327. if knockback > 0 then
  1328. vp.Parent = hit.Parent.Torso
  1329. end
  1330. game:GetService("Debris"):AddItem(vp, 0.5)
  1331. else
  1332. do
  1333. if Type == "Up" then
  1334. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1335. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1336. else
  1337. do
  1338. if Type == "DarkUp" then
  1339. coroutine.resume(coroutine.create(function()
  1340. for i = 0, 1, 0.1 do
  1341. swait()
  1342. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  1343. end
  1344. end
  1345. ))
  1346. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1347. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1348. else
  1349. do
  1350. if Type == "Snare" then
  1351. local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1352. game:GetService("Debris"):AddItem(bp, 1)
  1353. else
  1354. do
  1355. if Type == "Freeze" then
  1356. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1357. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1358. hit.Parent.Torso.Anchored = true
  1359. coroutine.resume(coroutine.create(function(Part)
  1360. swait(1.5)
  1361. Part.Anchored = false
  1362. end
  1363. ), hit.Parent.Torso)
  1364. game:GetService("Debris"):AddItem(BodPos, 3)
  1365. game:GetService("Debris"):AddItem(BodGy, 3)
  1366. end
  1367. do
  1368. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1369. game:GetService("Debris"):AddItem(debounce, Delay)
  1370. c = Instance.new("ObjectValue")
  1371. c.Name = "creator"
  1372. c.Value = Player
  1373. c.Parent = h
  1374. game:GetService("Debris"):AddItem(c, 0.5)
  1375. end
  1376. end
  1377. end
  1378. end
  1379. end
  1380. end
  1381. end
  1382. end
  1383. end
  1384. end
  1385. end
  1386. end
  1387. end
  1388.  
  1389. ShowDamage = function(Pos, Text, Time, Color)
  1390. local Rate = 0.033333333333333
  1391. if not Pos then
  1392. local Pos = Vector3.new(0, 0, 0)
  1393. end
  1394. local Text = Text or ""
  1395. local Time = Time or 2
  1396. if not Color then
  1397. local Color = Color3.new(1, 0, 1)
  1398. end
  1399. local EffectPart = CreatePart(workspace, "Marble", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  1400. EffectPart.Anchored = true
  1401. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1402. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1403. game.Debris:AddItem(EffectPart, Time + 0.1)
  1404. EffectPart.Parent = game:GetService("Workspace")
  1405. delay(0, function()
  1406. local Frames = Time / Rate
  1407. for Frame = 1, Frames do
  1408. wait(Rate)
  1409. local Percent = Frame / Frames
  1410. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1411. TextLabel.TextTransparency = Percent
  1412. end
  1413. if EffectPart and EffectPart.Parent then
  1414. EffectPart:Destroy()
  1415. end
  1416. end
  1417. )
  1418. end
  1419.  
  1420. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1421. for _,c in pairs(workspace:children()) do
  1422. local hum = c:findFirstChild("Humanoid")
  1423. if hum ~= nil then
  1424. local head = c:findFirstChild("Torso")
  1425. if head ~= nil then
  1426. local targ = head.Position - Part.Position
  1427. local mag = targ.magnitude
  1428. if mag <= magni and c.Name ~= Player.Name then
  1429. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  1430. end
  1431. end
  1432. end
  1433. end
  1434. end
  1435.  
  1436. Spawn(function()
  1437. while wait() do
  1438. Magik(LeftArm)
  1439. end
  1440. end)
  1441.  
  1442. Spawn(function()
  1443. while wait() do
  1444. Magik2(LeftArm)
  1445. end
  1446. end)
  1447.  
  1448.  
  1449. CreateSound = function(id, parent, vol, pit, looped)
  1450. coroutine.resume(coroutine.create(function()
  1451. local sou = Instance.new("Sound", parent or workspace)
  1452. sou.Volume = vol
  1453. sou.Pitch = pit or 1
  1454. sou.SoundId = id
  1455. sou.Looped = looped
  1456. swait()
  1457. sou:play()
  1458. game:GetService("Debris"):AddItem(sou, 6)
  1459. end
  1460. ))
  1461. end
  1462.  
  1463.  
  1464. local getclosest = function(obj, distance)
  1465. local last, lastx = distance + 1, nil
  1466. for i,v in pairs(workspace:GetChildren()) do
  1467. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  1468. local t = v.Torso
  1469. local dist = t.Position - obj.Position.magnitude
  1470. if dist <= distance and dist < last then
  1471. last = dist
  1472. lastx = v
  1473. end
  1474. end
  1475. end
  1476. return lastx
  1477. end
  1478.  
  1479. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1480. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1481. prt.Anchored = true
  1482. prt.CFrame = cframe
  1483. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1484. game:GetService("Debris"):AddItem(prt, 10)
  1485. if Type == 1 or Type == nil then
  1486. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1487. else
  1488. if Type == 2 then
  1489. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1490. end
  1491. end
  1492. end
  1493.  
  1494. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1495. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1496. prt.Anchored = true
  1497. prt.CFrame = cframe
  1498. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1499. game:GetService("Debris"):AddItem(prt, 10)
  1500. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1501. end
  1502.  
  1503. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1504. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1505. prt.Anchored = true
  1506. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  1507. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1508. game:GetService("Debris"):AddItem(prt, 10)
  1509. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1510. end
  1511.  
  1512. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1513. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1514. prt.Anchored = true
  1515. prt.CFrame = cframe
  1516. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1517. game:GetService("Debris"):AddItem(prt, 10)
  1518. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1519. end
  1520.  
  1521. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1522. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1523. prt.Anchored = true
  1524. prt.CFrame = cframe
  1525. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1526. game:GetService("Debris"):AddItem(prt, 10)
  1527. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1528. end
  1529.  
  1530. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1531. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1532. prt.Anchored = true
  1533. prt.CFrame = cframe
  1534. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1535. game:GetService("Debris"):AddItem(prt, 10)
  1536. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1537. end
  1538.  
  1539. DragonEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1540. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1541. prt.Anchored = true
  1542. prt.CFrame = cframe
  1543. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://51177741", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1544. game:GetService("Debris"):AddItem(prt, 10)
  1545. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1546. end
  1547.  
  1548. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  1549. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1550. prt.Anchored = true
  1551. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1552. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1553. local num = math.random(10, 50) / 1000
  1554. game:GetService("Debris"):AddItem(prt, 10)
  1555. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  1556. end
  1557.  
  1558. attackone = function()
  1559. attack = true
  1560. for i = 0, 1, 0.1 do
  1561. swait()
  1562. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1563. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1564. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  1565. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1566. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1567. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1568. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1569. end
  1570. local con = Hitbox.Touched:connect(function(hit)
  1571. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1572. end
  1573. )
  1574. CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
  1575. for i = 0, 1, 0.1 do
  1576. swait()
  1577. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  1578. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1579. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1580. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
  1581. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1582. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1583. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
  1584. end
  1585. con:disconnect()
  1586. attack = false
  1587. end
  1588.  
  1589. Deathwish = function()
  1590. attack = true
  1591. CreateSound("http://www.roblox.com/asset/?id=231917970", RootPart, 1, 1)
  1592. for i = 0, 1, 0.05 do
  1593. swait()
  1594. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 1, 0.1, 1, 0.09)
  1595. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.08, 1)
  1596. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1597. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
  1598. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  1599. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1600. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1601. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1602. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1603. end
  1604. MagniDamage(RootPart, 5599, 1099, 1599, 0, "DarkUp")
  1605. CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1)
  1606. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
  1607. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 2, 0.1, 2, 0.07)
  1608. for i = 0, 1, 0.05 do
  1609. swait()
  1610. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1611. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
  1612. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  1613. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
  1614. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1615. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1616. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1617. end
  1618. for i = 0, 1, 0.1 do
  1619. swait()
  1620. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-110)), 0.3)
  1621. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(100)), 0.3)
  1622. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  1623. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-80), math.rad(-90)), 0.3)
  1624. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1625. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1626. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1627. end
  1628. MagniDamage(RootPart, 55, 5, 10, -70, "Knockdown")
  1629. CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1.2)
  1630. SphereEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 10, 10, 10, 0.06)
  1631. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
  1632. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 0.5, 1, 0.5, 0.07)
  1633. for i = 0, 1, 0.1 do
  1634. swait()
  1635. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1636. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(50)), 0.3)
  1637. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  1638. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1639. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1640. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1641. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1642. end
  1643. attack = false
  1644. end
  1645.  
  1646. ChaosDriver = function()
  1647. attack = true
  1648. for i = 0, 1, 0.05 do
  1649. swait()
  1650. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1651. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1652. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  1653. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1654. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1655. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1656. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1657. end
  1658. CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
  1659. coroutine.resume(coroutine.create(function()
  1660. for i = 1, 5 do
  1661. swait()
  1662. local ef = CreatePart(workspace, "Marble", 0, 1, BrickColor.new("Black"), "Effect", vt())
  1663. ef.Anchored = true
  1664. ef.CFrame = RootPart.CFrame * cf(0, 0, -10 * i)
  1665. MagniDamage(ef, 17, 10, 15, 1, "DarkUp")
  1666. game:GetService("Debris"):AddItem(ef, 0.5)
  1667. CreateSound("http://www.roblox.com/asset/?id=231917784", ef, 1, 0.7)
  1668. DragonEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 170, 5, 0, -10, 0, 0.07)
  1669. DragonEffect(BrickColor.new("Magenta"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 150, 5, 0, -10, 0, 0.07)
  1670. SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1671. SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1672. SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1673. SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1674. end
  1675. end
  1676. ))
  1677. for i = 0, 1, 0.1 do
  1678. swait()
  1679. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1680. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  1681. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1682. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1683. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
  1684. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1685. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1686. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
  1687. end
  1688. attack = false
  1689. end
  1690.  
  1691. attacktwo = function()
  1692. attack = true
  1693. soundn = true
  1694. for i = 0, 1, 0.1 do
  1695. swait()
  1696. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1697. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1698. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
  1699. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1700. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1701. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1702. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1703. end
  1704. local con = Hitbox.Touched:connect(function(hit)
  1705. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1706. end
  1707. )
  1708. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1709. coroutine.resume(coroutine.create(function()
  1710. while soundn do
  1711. wait(0.3)
  1712. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1713. end
  1714. end
  1715. ))
  1716. for i = 0, 1, 0.1 do
  1717. swait()
  1718. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1719. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1720. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1721. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1722. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1723. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1724. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1725. end
  1726. con:disconnect()
  1727. soundn = false
  1728. attack = false
  1729. end
  1730.  
  1731. local soundn = false
  1732. attackthree = function()
  1733. attack = true
  1734. soundn = true
  1735. for i = 0, 1, 0.1 do
  1736. swait()
  1737. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1738. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1739. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
  1740. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1741. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1742. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1743. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1744. end
  1745. local con = Hitbox.Touched:connect(function(hit)
  1746. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1747. end
  1748. )
  1749. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1750. coroutine.resume(coroutine.create(function()
  1751. while soundn do
  1752. wait(0.3)
  1753. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1754. end
  1755. end
  1756. ))
  1757. for i = 0, 1, 0.1 do
  1758. swait()
  1759. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1760. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1761. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1762. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1763. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1764. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1765. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1766. end
  1767. con:disconnect()
  1768. soundn = false
  1769. attack = false
  1770. end
  1771.  
  1772. ThanatosDriver = function()
  1773. attack = true
  1774. for i = 0, 1, 0.1 do
  1775. swait()
  1776. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1777. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1778. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
  1779. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
  1780. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1781. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1782. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1783. end
  1784. local con = Hitbox.Touched:connect(function(hit)
  1785. Damagefunc(Hitbox, hit, 30, 30, 50, "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1786. end
  1787. )
  1788. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 0.7)
  1789. for i = 0, 1, 0.1 do
  1790. swait()
  1791. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1792. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1793. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(-90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  1794. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(100)), 0.3)
  1795. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  1796. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(30)), 0.3)
  1797. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
  1798. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1799. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1800. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(170)), 0.2)
  1801. end
  1802. con:disconnect()
  1803. attack = false
  1804. end
  1805.  
  1806. LastResort = function()
  1807. attack = true
  1808. soundn = true
  1809. CreateSound("http://www.roblox.com/asset/?id=233096557", Torso, 1, 1)
  1810. MagniDamage(RootPart, 10, 5, 10, 0, "Knockdown")
  1811. SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1812. SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1813. SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1814. SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1815.  
  1816. RootPart.CFrame = RootPart.CFrame * cf(0, 0, 20)
  1817. for i = 0, 1, 0.1 do
  1818. swait()
  1819. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1820. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1821. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
  1822. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
  1823. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1824. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1825. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1826. end
  1827. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
  1828. coroutine.resume(coroutine.create(function()
  1829. while soundn do
  1830. wait(0.5)
  1831. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
  1832. end
  1833. end
  1834. ))
  1835. for i = 0, 1, 0.1 do
  1836. swait()
  1837. MagniDamage(RootPart, 10, 5, 10, 0, "Normal")
  1838. Torso.Velocity = RootPart.CFrame.lookVector * 100
  1839. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1840. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1841. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  1842. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1843. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1844. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1845. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1846. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1847. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1848. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1849. end
  1850. for i = 0, 1, 0.1 do
  1851. swait()
  1852. MagniDamage(RootPart, 10, 3, 3, 0, "Normal")
  1853. Torso.Velocity = RootPart.CFrame.lookVector * 100
  1854. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1855. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1856. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  1857. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1858. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1859. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1860. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1861. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1862. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1863. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1864. end
  1865. soundn = false
  1866. attack = false
  1867. end
  1868.  
  1869. ob1u = function()
  1870. end
  1871.  
  1872. ob1d = function()
  1873. if attack == false and attacktype == 1 then
  1874. attacktype = 2
  1875. attackone()
  1876. else
  1877. if attack == false and attacktype == 2 then
  1878. attacktype = 3
  1879. attacktwo()
  1880. else
  1881. if attack == false and attacktype == 3 then
  1882. attacktype = 1
  1883. attackthree()
  1884. end
  1885. end
  1886. end
  1887. end
  1888.  
  1889. key = function(k)
  1890. k = k:lower()
  1891. if attack == false and k == "z" and zenabled == true then
  1892. zenabled = false
  1893. coroutine.resume(coroutine.create(function()
  1894. for i = 1, 0, -0.02 do
  1895. swait()
  1896. fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1897. end
  1898. zenabled = true
  1899. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  1900. end
  1901. ))
  1902. ThanatosDriver()
  1903. else
  1904. if attack == false and k == "x" and xenabled == true then
  1905. xenabled = false
  1906. coroutine.resume(coroutine.create(function()
  1907. for i = 1, 0, -0.005 do
  1908. swait()
  1909. fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1910. end
  1911. xenabled = true
  1912. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  1913. end
  1914. ))
  1915. LastResort()
  1916. else
  1917. if attack == false and k == "c" and cenabled == true then
  1918. cenabled = false
  1919. coroutine.resume(coroutine.create(function()
  1920. for i = 1, 0, -0.0025 do
  1921. swait()
  1922. fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1923. end
  1924. cenabled = true
  1925. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  1926. end
  1927. ))
  1928. ChaosDriver()
  1929. else
  1930. if attack == false and k == "v" and venabled == true then
  1931. venabled = false
  1932. coroutine.resume(coroutine.create(function()
  1933. for i = 1, 0, -0.0005 do
  1934. swait()
  1935. fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1936. end
  1937. venabled = true
  1938. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  1939. end
  1940. ))
  1941. Deathwish()
  1942. end
  1943. end
  1944. end
  1945. end
  1946. end
  1947.  
  1948. s = function(mouse)
  1949. mouse.Button1Down:connect(function()
  1950. ob1d(mouse)
  1951. end
  1952. )
  1953. mouse.Button1Up:connect(function()
  1954. ob1u(mouse)
  1955. end
  1956. )
  1957. mouse.KeyDown:connect(key)
  1958. end
  1959.  
  1960. s(mouse)
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967. rs = game:GetService'RunService'
  1968. plrs = game:GetService'Players'
  1969. lp = plrs.LocalPlayer
  1970. c = lp.Character
  1971. root = lp.Character.HumanoidRootPart
  1972. human = c.Humanoid
  1973. FPS = 0
  1974. inf = 0
  1975. opos1 = Vector3.new()
  1976. opos2 = Vector3.new()
  1977. opos3 = Vector3.new()
  1978. waves = Instance.new("Model", c)
  1979. res = Instance.new("Model", c)
  1980.  
  1981. local function b()
  1982. local t=tick();
  1983. local l=t%1*3;
  1984. local t=.5*math.pi*(l%1);
  1985. if l<1 then
  1986. return Color3.new(47,0,32);
  1987. elseif l<2 then
  1988. return Color3.new(47,0,35);
  1989. else
  1990. return Color3.new(0,0,0);
  1991. end;
  1992. end;
  1993. speedParts = function()
  1994. for i = 1, 4 do
  1995. local pos = Vector3.new(math.sin(math.rad(inf + 360 * i)) * 2, math.sin(math.rad(inf + 260 * i) + math.pi / 2) * 2, -Hitbox.Velocity / 5) * (math.sin(tick()) + 2)
  1996. local CFramepos = Hitbox.CFrame:toWorldSpace(CFrame.new(pos)).p
  1997. local opos
  1998. if i == 1 then
  1999. opos = opos1
  2000. elseif i == 2 then
  2001. opos = opos2
  2002. else
  2003. opos = opos3
  2004. end
  2005. local e
  2006. if #res:children() <= 3 then
  2007. e = Instance.new("Part")
  2008. else
  2009. e = res:FindFirstChild("Trail")
  2010. end
  2011. e.Parent = waves
  2012. e.Anchored = false
  2013. e.CanCollide = false
  2014. e.Transparency = 0
  2015. e.Material = "Neon"
  2016. e.Name = "Trail"
  2017. e.Color = b(); --Color = a();
  2018. e.Size = Vector3.new(.01, (CFramepos - opos).magnitude, .01)
  2019. e.CFrame = CFrame.new((CFramepos + opos) / 2, opos) * CFrame.Angles(math.pi / 2, 0, 0)
  2020. if i == 1 then
  2021. opos1 = CFramepos
  2022. elseif i == 2 then
  2023. opos2 = CFramepos
  2024. else
  2025. opos3 = CFramepos
  2026. end
  2027. end
  2028. end
  2029.  
  2030. rs.RenderStepped:connect(function()
  2031. FPS = 1 / rs.RenderStepped:wait()
  2032. for i, v in pairs (waves:children()) do
  2033. v.Transparency = v.Transparency + .05 / (FPS / 400)
  2034. if v.Transparency >= .98 then
  2035. v.Transparency = 1
  2036. v.Parent = res
  2037. end
  2038. end
  2039. inf = inf + (30 + root.Velocity.magnitude / 15) / (FPS / 400)
  2040. speedParts()
  2041. end)
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048. while 1 do
  2049. swait()
  2050. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  2051. velocity = RootPart.Velocity.y
  2052. sine = sine + change
  2053. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2054. if equipped == true or equipped == false then
  2055. if 1 < RootPart.Velocity.y and hit == nil then
  2056. Anim = "Jump"
  2057. if attack == false then
  2058. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2059. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  2060. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
  2061. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2062. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2063. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2064. end
  2065. else
  2066. if RootPart.Velocity.y < -1 and hit == nil then
  2067. Anim = "Fall"
  2068. if attack == false then
  2069. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  2070. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  2071. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
  2072. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2073. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2074. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2075. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  2076. end
  2077. else
  2078. if Torsovelocity.x < 1 and Torsovelocity.z < 1 and hit ~= nil then
  2079. Anim = "Idle"
  2080. if attack == false then
  2081. change = 1
  2082. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(20), math.rad(-20), math.rad(-80)), 0.3)
  2083. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(80)), 0.3)
  2084. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  2085. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  2086. RH.C0 = clerp(RH.C0, cf(1, -1.2 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), 0.3)
  2087. LH.C0 = clerp(LH.C0, cf(-1.3, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
  2088. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(70 - 1 * math.cos((sine) / 9)), math.rad(70)), 0.3)
  2089. end
  2090. else
  2091. if Torsovelocity.x > 2 and Torsovelocity.z > 2 and hit ~= nil then
  2092. Anim = "Walk"
  2093. if attack == false then
  2094. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(10), math.rad(-5), math.rad(-30)), 0.3)
  2095. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(30)), 0.3)
  2096. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, 0) * angles(math.rad(50), math.rad(0), math.rad(-10)), 0.3)
  2097. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  2098. RH.C0 = clerp(RH.C0, cf(1, -1, 0 + 0.5 * math.cos((sine) / 5)) * RHCF * angles(math.rad(0), math.rad(0), math.rad(10 - 50 * math.cos((sine) / 5))), 0.3)
  2099. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5 - 0.5 * math.cos((sine) / 5)) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10 - 50 * math.cos((sine) / 5))), 0.3)
  2100. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(50 - 1 * math.cos((sine) / 9)), math.rad(120)), 0.3)
  2101. end
  2102. end
  2103. end
  2104. end
  2105. end
  2106. end
  2107. if 0 < #Effects then
  2108. for e = 1, #Effects do
  2109. if Effects[e] ~= nil then
  2110. local Thing = Effects[e]
  2111. if Thing ~= nil then
  2112. local Part = Thing[1]
  2113. local Mode = Thing[2]
  2114. local Delay = Thing[3]
  2115. local IncX = Thing[4]
  2116. local IncY = Thing[5]
  2117. local IncZ = Thing[6]
  2118. if Thing[1].Transparency <= 1 then
  2119. if Thing[2] == "Block1" then
  2120. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2121. Mesh = Thing[1].Mesh
  2122. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2123. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2124. else
  2125. if Thing[2] == "Block2" then
  2126. Thing[1].CFrame = Thing[1].CFrame
  2127. Mesh = Thing[7]
  2128. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2129. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2130. else
  2131. if Thing[2] == "Cylinder" then
  2132. Mesh = Thing[1].Mesh
  2133. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2134. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2135. else
  2136. if Thing[2] == "Blood" then
  2137. Mesh = Thing[7]
  2138. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2139. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2140. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2141. else
  2142. if Thing[2] == "Elec" then
  2143. Mesh = Thing[1].Mesh
  2144. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2145. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2146. else
  2147. if Thing[2] == "Disappear" then
  2148. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2149. else
  2150. if Thing[2] == "Shatter" then
  2151. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2152. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2153. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2154. Thing[6] = Thing[6] + Thing[5]
  2155. end
  2156. end
  2157. end
  2158. end
  2159. end
  2160. end
  2161. end
  2162. else
  2163. Part.Parent = nil
  2164. table.remove(Effects, e)
  2165. end
  2166. end
  2167. end
  2168. end
  2169. end
  2170. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement