Advertisement
AgentVK

Untitled

Sep 24th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 83.85 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.  
  1437. end
  1438.  
  1439.  
  1440. Spawn(function()
  1441. while wait() do
  1442. Magik(LeftArm)
  1443. end
  1444. end)
  1445.  
  1446. Spawn(function()
  1447. while wait() do
  1448. Magik2(LeftArm)
  1449. end
  1450. end)
  1451.  
  1452.  
  1453. CreateSound = function(id, parent, vol, pit, looped)
  1454. coroutine.resume(coroutine.create(function()
  1455. local sou = Instance.new("Sound", parent or workspace)
  1456. sou.Volume = vol
  1457. sou.Pitch = pit or 1
  1458. sou.SoundId = id
  1459. sou.Looped = looped
  1460. swait()
  1461. sou:play()
  1462. game:GetService("Debris"):AddItem(sou, 6)
  1463. end
  1464. ))
  1465. end
  1466.  
  1467.  
  1468. local getclosest = function(obj, distance)
  1469. local last, lastx = distance + 1, nil
  1470. for i,v in pairs(workspace:GetChildren()) do
  1471. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  1472. local t = v.Torso
  1473. local dist = t.Position - obj.Position.magnitude
  1474. if dist <= distance and dist < last then
  1475. last = dist
  1476. lastx = v
  1477. end
  1478. end
  1479. end
  1480. return lastx
  1481. end
  1482.  
  1483. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1484. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1485. prt.Anchored = true
  1486. prt.CFrame = cframe
  1487. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1488. game:GetService("Debris"):AddItem(prt, 10)
  1489. if Type == 1 or Type == nil then
  1490. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1491. else
  1492. if Type == 2 then
  1493. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1494. end
  1495. end
  1496. end
  1497.  
  1498. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1499. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1500. prt.Anchored = true
  1501. prt.CFrame = cframe
  1502. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1503. game:GetService("Debris"):AddItem(prt, 10)
  1504. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1505. end
  1506.  
  1507. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1508. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1509. prt.Anchored = true
  1510. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  1511. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1512. game:GetService("Debris"):AddItem(prt, 10)
  1513. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1514. end
  1515.  
  1516. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1517. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1518. prt.Anchored = true
  1519. prt.CFrame = cframe
  1520. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1521. game:GetService("Debris"):AddItem(prt, 10)
  1522. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1523. end
  1524.  
  1525. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1526. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1527. prt.Anchored = true
  1528. prt.CFrame = cframe
  1529. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1530. game:GetService("Debris"):AddItem(prt, 10)
  1531. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1532. end
  1533.  
  1534. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1535. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1536. prt.Anchored = true
  1537. prt.CFrame = cframe
  1538. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1539. game:GetService("Debris"):AddItem(prt, 10)
  1540. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1541. end
  1542.  
  1543. DragonEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1544. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  1545. prt.Anchored = true
  1546. prt.CFrame = cframe
  1547. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://51177741", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1548. game:GetService("Debris"):AddItem(prt, 10)
  1549. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1550. end
  1551.  
  1552. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  1553. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1554. prt.Anchored = true
  1555. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1556. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1557. local num = math.random(10, 50) / 1000
  1558. game:GetService("Debris"):AddItem(prt, 10)
  1559. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  1560. end
  1561.  
  1562. attackone = function()
  1563. attack = true
  1564. for i = 0, 1, 0.1 do
  1565. swait()
  1566. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1567. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1568. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  1569. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1570. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1571. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1572. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1573. end
  1574. local con = Hitbox.Touched:connect(function(hit)
  1575. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1576. end
  1577. )
  1578. CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
  1579. for i = 0, 1, 0.1 do
  1580. swait()
  1581. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  1582. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1583. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1584. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
  1585. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1586. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1587. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
  1588. end
  1589. con:disconnect()
  1590. attack = false
  1591. end
  1592.  
  1593. Deathwish = function()
  1594. attack = true
  1595. CreateSound("http://www.roblox.com/asset/?id=231917970", RootPart, 1, 1)
  1596. for i = 0, 1, 0.05 do
  1597. swait()
  1598. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 1, 0.1, 1, 0.09)
  1599. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.08, 1)
  1600. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1601. 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)
  1602. 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)
  1603. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1604. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1605. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1606. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1607. end
  1608. MagniDamage(RootPart, 5599, 1099, 1599, 0, "DarkUp")
  1609. CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1)
  1610. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
  1611. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 2, 0.1, 2, 0.07)
  1612. for i = 0, 1, 0.05 do
  1613. swait()
  1614. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1615. 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)
  1616. 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)
  1617. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
  1618. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1619. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1620. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1621. end
  1622. for i = 0, 1, 0.1 do
  1623. swait()
  1624. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-110)), 0.3)
  1625. 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)
  1626. 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)
  1627. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-80), math.rad(-90)), 0.3)
  1628. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1629. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1630. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1631. end
  1632. MagniDamage(RootPart, 55, 5, 10, -70, "Knockdown")
  1633. CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1.2)
  1634. SphereEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 10, 10, 10, 0.06)
  1635. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
  1636. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 0.5, 1, 0.5, 0.07)
  1637. for i = 0, 1, 0.1 do
  1638. swait()
  1639. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1640. 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)
  1641. 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)
  1642. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1643. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1644. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1645. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1646. end
  1647. attack = false
  1648. end
  1649.  
  1650. ChaosDriver = function()
  1651. attack = true
  1652. for i = 0, 1, 0.05 do
  1653. swait()
  1654. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1655. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1656. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  1657. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1658. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1659. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1660. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1661. end
  1662. CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
  1663. coroutine.resume(coroutine.create(function()
  1664. for i = 1, 5 do
  1665. swait()
  1666. local ef = CreatePart(workspace, "Marble", 0, 1, BrickColor.new("Black"), "Effect", vt())
  1667. ef.Anchored = true
  1668. ef.CFrame = RootPart.CFrame * cf(0, 0, -10 * i)
  1669. MagniDamage(ef, 17, 10, 15, 1, "DarkUp")
  1670. game:GetService("Debris"):AddItem(ef, 0.5)
  1671. CreateSound("http://www.roblox.com/asset/?id=231917784", ef, 1, 0.7)
  1672. 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)
  1673. 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)
  1674. SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1675. SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1676. SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1677. SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1678. end
  1679. end
  1680. ))
  1681. for i = 0, 1, 0.1 do
  1682. swait()
  1683. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1684. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  1685. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1686. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1687. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
  1688. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1689. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1690. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
  1691. end
  1692. attack = false
  1693. end
  1694.  
  1695. attacktwo = function()
  1696. attack = true
  1697. soundn = true
  1698. for i = 0, 1, 0.1 do
  1699. swait()
  1700. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1701. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1702. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
  1703. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1704. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1705. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1706. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1707. end
  1708. local con = Hitbox.Touched:connect(function(hit)
  1709. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1710. end
  1711. )
  1712. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1713. coroutine.resume(coroutine.create(function()
  1714. while soundn do
  1715. wait(0.3)
  1716. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1717. end
  1718. end
  1719. ))
  1720. for i = 0, 1, 0.1 do
  1721. swait()
  1722. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1723. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1724. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1725. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1726. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1727. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1728. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1729. end
  1730. con:disconnect()
  1731. soundn = false
  1732. attack = false
  1733. end
  1734.  
  1735. local soundn = false
  1736. attackthree = function()
  1737. attack = true
  1738. soundn = true
  1739. for i = 0, 1, 0.1 do
  1740. swait()
  1741. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1742. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1743. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
  1744. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1745. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1746. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1747. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1748. end
  1749. local con = Hitbox.Touched:connect(function(hit)
  1750. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1751. end
  1752. )
  1753. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1754. coroutine.resume(coroutine.create(function()
  1755. while soundn do
  1756. wait(0.3)
  1757. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1758. end
  1759. end
  1760. ))
  1761. for i = 0, 1, 0.1 do
  1762. swait()
  1763. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1764. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1765. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1766. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1767. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1768. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1769. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1770. end
  1771. con:disconnect()
  1772. soundn = false
  1773. attack = false
  1774. end
  1775.  
  1776. ThanatosDriver = function()
  1777. attack = true
  1778. for i = 0, 1, 0.1 do
  1779. swait()
  1780. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1781. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1782. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
  1783. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
  1784. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1785. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1786. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1787. end
  1788. local con = Hitbox.Touched:connect(function(hit)
  1789. Damagefunc(Hitbox, hit, 30, 30, 50, "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1790. end
  1791. )
  1792. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 0.7)
  1793. for i = 0, 1, 0.1 do
  1794. swait()
  1795. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1796. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1797. 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)
  1798. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(100)), 0.3)
  1799. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  1800. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(30)), 0.3)
  1801. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
  1802. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1803. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1804. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(170)), 0.2)
  1805. end
  1806. con:disconnect()
  1807. attack = false
  1808. end
  1809.  
  1810. LastResort = function()
  1811. attack = true
  1812. soundn = true
  1813. CreateSound("http://www.roblox.com/asset/?id=233096557", Torso, 1, 1)
  1814. MagniDamage(RootPart, 10, 5, 10, 0, "Knockdown")
  1815. SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1816. SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1817. SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1818. SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1819.  
  1820. RootPart.CFrame = RootPart.CFrame * cf(0, 0, 20)
  1821. for i = 0, 1, 0.1 do
  1822. swait()
  1823. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1824. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1825. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
  1826. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
  1827. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1828. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1829. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1830. end
  1831. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
  1832. coroutine.resume(coroutine.create(function()
  1833. while soundn do
  1834. wait(0.5)
  1835. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
  1836. end
  1837. end
  1838. ))
  1839. for i = 0, 1, 0.1 do
  1840. swait()
  1841. MagniDamage(RootPart, 10, 5, 10, 0, "Normal")
  1842. Torso.Velocity = RootPart.CFrame.lookVector * 100
  1843. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1844. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1845. 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)
  1846. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1847. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1848. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1849. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1850. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1851. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1852. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1853. end
  1854. for i = 0, 1, 0.1 do
  1855. swait()
  1856. MagniDamage(RootPart, 10, 3, 3, 0, "Normal")
  1857. Torso.Velocity = RootPart.CFrame.lookVector * 100
  1858. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1859. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1860. 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)
  1861. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1862. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1863. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1864. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1865. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1866. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1867. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1868. end
  1869. soundn = false
  1870. attack = false
  1871. end
  1872.  
  1873. ob1u = function()
  1874. end
  1875.  
  1876. ob1d = function()
  1877. if attack == false and attacktype == 1 then
  1878. attacktype = 2
  1879. attackone()
  1880. else
  1881. if attack == false and attacktype == 2 then
  1882. attacktype = 3
  1883. attacktwo()
  1884. else
  1885. if attack == false and attacktype == 3 then
  1886. attacktype = 1
  1887. attackthree()
  1888. end
  1889. end
  1890. end
  1891. end
  1892.  
  1893. key = function(k)
  1894. k = k:lower()
  1895. if attack == false and k == "z" and zenabled == true then
  1896. zenabled = false
  1897. coroutine.resume(coroutine.create(function()
  1898. for i = 1, 0, -0.02 do
  1899. swait()
  1900. fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1901. end
  1902. zenabled = true
  1903. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  1904. end
  1905. ))
  1906. ThanatosDriver()
  1907. else
  1908. if attack == false and k == "x" and xenabled == true then
  1909. xenabled = false
  1910. coroutine.resume(coroutine.create(function()
  1911. for i = 1, 0, -0.005 do
  1912. swait()
  1913. fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1914. end
  1915. xenabled = true
  1916. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  1917. end
  1918. ))
  1919. LastResort()
  1920. else
  1921. if attack == false and k == "c" and cenabled == true then
  1922. cenabled = false
  1923. coroutine.resume(coroutine.create(function()
  1924. for i = 1, 0, -0.0025 do
  1925. swait()
  1926. fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1927. end
  1928. cenabled = true
  1929. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  1930. end
  1931. ))
  1932. ChaosDriver()
  1933. else
  1934. if attack == false and k == "v" and venabled == true then
  1935. venabled = false
  1936. coroutine.resume(coroutine.create(function()
  1937. for i = 1, 0, -0.0005 do
  1938. swait()
  1939. fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1940. end
  1941. venabled = true
  1942. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  1943. end
  1944. ))
  1945. Deathwish()
  1946. end
  1947. end
  1948. end
  1949. end
  1950. end
  1951.  
  1952. s = function(mouse)
  1953. mouse.Button1Down:connect(function()
  1954. ob1d(mouse)
  1955. end
  1956. )
  1957. mouse.Button1Up:connect(function()
  1958. ob1u(mouse)
  1959. end
  1960. )
  1961. mouse.KeyDown:connect(key)
  1962. end
  1963.  
  1964. s(mouse)
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971. rs = game:GetService'RunService'
  1972. plrs = game:GetService'Players'
  1973. lp = plrs.LocalPlayer
  1974. c = lp.Character
  1975. root = lp.Character.HumanoidRootPart
  1976. human = c.Humanoid
  1977. FPS = 0
  1978. inf = 0
  1979. opos1 = Vector3.new()
  1980. opos2 = Vector3.new()
  1981. opos3 = Vector3.new()
  1982. waves = Instance.new("Model", c)
  1983. res = Instance.new("Model", c)
  1984.  
  1985. local function b()
  1986. local t=tick();
  1987. local l=t%1*3;
  1988. local t=.5*math.pi*(l%1);
  1989. if l<1 then
  1990. return Color3.new(47,0,32);
  1991. elseif l<2 then
  1992. return Color3.new(47,0,35);
  1993. else
  1994. return Color3.new(0,0,0);
  1995. end;
  1996. end;
  1997. speedParts = function()
  1998. for i = 1, 4 do
  1999. 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)
  2000. local CFramepos = Hitbox.CFrame:toWorldSpace(CFrame.new(pos)).p
  2001. local opos
  2002. if i == 1 then
  2003. opos = opos1
  2004. elseif i == 2 then
  2005. opos = opos2
  2006. else
  2007. opos = opos3
  2008. end
  2009. local e
  2010. if #res:children() <= 3 then
  2011. e = Instance.new("Part")
  2012. else
  2013. e = res:FindFirstChild("Trail")
  2014. end
  2015. e.Parent = waves
  2016. e.Anchored = false
  2017. e.CanCollide = false
  2018. e.Transparency = 0
  2019. e.Material = "Neon"
  2020. e.Name = "Trail"
  2021. e.Color = b(); --Color = a();
  2022. e.Size = Vector3.new(.01, (CFramepos - opos).magnitude, .01)
  2023. e.CFrame = CFrame.new((CFramepos + opos) / 2, opos) * CFrame.Angles(math.pi / 2, 0, 0)
  2024. if i == 1 then
  2025. opos1 = CFramepos
  2026. elseif i == 2 then
  2027. opos2 = CFramepos
  2028. else
  2029. opos3 = CFramepos
  2030. end
  2031. end
  2032. end
  2033.  
  2034. rs.RenderStepped:connect(function()
  2035. FPS = 1 / rs.RenderStepped:wait()
  2036. for i, v in pairs (waves:children()) do
  2037. v.Transparency = v.Transparency + .05 / (FPS / 400)
  2038. if v.Transparency >= .98 then
  2039. v.Transparency = 1
  2040. v.Parent = res
  2041. end
  2042. end
  2043. inf = inf + (30 + root.Velocity.magnitude / 15) / (FPS / 400)
  2044. speedParts()
  2045. end)
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052. while 1 do
  2053. swait()
  2054. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  2055. velocity = RootPart.Velocity.y
  2056. sine = sine + change
  2057. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2058. if equipped == true or equipped == false then
  2059. if 1 < RootPart.Velocity.y and hit == nil then
  2060. Anim = "Jump"
  2061. if attack == false then
  2062. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2063. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  2064. 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)
  2065. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2066. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2067. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2068. end
  2069. else
  2070. if RootPart.Velocity.y < -1 and hit == nil then
  2071. Anim = "Fall"
  2072. if attack == false then
  2073. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  2074. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  2075. 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)
  2076. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2077. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2078. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2079. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  2080. end
  2081. else
  2082. if Torsovelocity.x < 1 and Torsovelocity.z < 1 and hit ~= nil then
  2083. Anim = "Idle"
  2084. if attack == false then
  2085. change = 1
  2086. 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)
  2087. 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)
  2088. 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)
  2089. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  2090. 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)
  2091. 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)
  2092. 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)
  2093. end
  2094. else
  2095. if Torsovelocity.x > 2 and Torsovelocity.z > 2 and hit ~= nil then
  2096. Anim = "Walk"
  2097. if attack == false then
  2098. 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)
  2099. 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)
  2100. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, 0) * angles(math.rad(50), math.rad(0), math.rad(-10)), 0.3)
  2101. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  2102. 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)
  2103. 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)
  2104. 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)
  2105. end
  2106. end
  2107. end
  2108. end
  2109. end
  2110. end
  2111. if 0 < #Effects then
  2112. for e = 1, #Effects do
  2113. if Effects[e] ~= nil then
  2114. local Thing = Effects[e]
  2115. if Thing ~= nil then
  2116. local Part = Thing[1]
  2117. local Mode = Thing[2]
  2118. local Delay = Thing[3]
  2119. local IncX = Thing[4]
  2120. local IncY = Thing[5]
  2121. local IncZ = Thing[6]
  2122. if Thing[1].Transparency <= 1 then
  2123. if Thing[2] == "Block1" then
  2124. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2125. Mesh = Thing[1].Mesh
  2126. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2127. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2128. else
  2129. if Thing[2] == "Block2" then
  2130. Thing[1].CFrame = Thing[1].CFrame
  2131. Mesh = Thing[7]
  2132. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2133. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2134. else
  2135. if Thing[2] == "Cylinder" then
  2136. Mesh = Thing[1].Mesh
  2137. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2138. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2139. else
  2140. if Thing[2] == "Blood" then
  2141. Mesh = Thing[7]
  2142. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2143. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2144. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2145. else
  2146. if Thing[2] == "Elec" then
  2147. Mesh = Thing[1].Mesh
  2148. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2149. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2150. else
  2151. if Thing[2] == "Disappear" then
  2152. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2153. else
  2154. if Thing[2] == "Shatter" then
  2155. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2156. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2157. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2158. Thing[6] = Thing[6] + Thing[5]
  2159. end
  2160. end
  2161. end
  2162. end
  2163. end
  2164. end
  2165. end
  2166. else
  2167. Part.Parent = nil
  2168. table.remove(Effects, e)
  2169. end
  2170. end
  2171. end
  2172. end
  2173. end
  2174. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement