Advertisement
zed_isJayTheLionJR

UnKiIlable v4

Jun 19th, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local ContentProvider = game:GetService("ContentProvider")
  2.  
  3. local function LoadAssets(AssetList)
  4. -- Takes an asset list and preloads it. Will not wait for them to load.
  5.  
  6. for _, AssetId in pairs(AssetList) do
  7. ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
  8. end
  9. end
  10.  
  11. LoadAssets({11442510,30956707})
  12. local Gibs = game.Workspace
  13.  
  14. function Kill(Character)
  15. Character.Humanoid.Health = 0
  16. local poo = Instance.new("IntValue",Character)
  17. poo.Name = "haha nope"
  18. local svch = Character
  19. local hum = Character:findFirstChild("Humanoid")
  20. Character.Archivable = true
  21. local chrclone = Character:clone()
  22. Character.Archivable = false
  23.  
  24. local ch = chrclone:GetChildren()
  25. local i
  26. for i = 1,#ch do
  27. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  28. ch[i]:remove()
  29. end
  30. end
  31. local function Scan(ch)
  32. local e
  33. for e = 1,#ch do
  34. Scan(ch[e]:GetChildren())
  35. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  36. ch[e]:remove()
  37. end
  38. end
  39. end
  40. Scan(chrclone:GetChildren())
  41.  
  42. local hum2 = chrclone:findFirstChild("Humanoid")
  43.  
  44.  
  45. if hum2 ~= nil then
  46. hum2.Name = "Humanoid2"
  47. hum2.PlatformStand = true
  48. hum2.Sit = true
  49. hum2.MaxHealth = 0
  50. hum2.Health = 0
  51. end
  52.  
  53. local ch = Character:GetChildren()
  54. local i
  55. for i = 1,#ch do
  56. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  57. ch[i]:remove()
  58. end
  59. end
  60.  
  61. wait(0.2)
  62.  
  63. local ch = Character:GetChildren()
  64. local i
  65. for i = 1,#ch do
  66. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  67. ch[i]:remove()
  68. end
  69. end
  70. Character = chrclone
  71. local Torso = Character.Torso
  72. local movevector = Vector3.new()
  73.  
  74. if Torso then
  75. local Head = Character:FindFirstChild("Head")
  76. local Limb = Character:FindFirstChild("Right Arm")
  77. if Limb then
  78.  
  79. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  80. local Joint = Instance.new("Glue")
  81. Joint.Name = "RightShoulder"
  82. Joint.Part0 = Torso
  83. Joint.Part1 = Limb
  84. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  85. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  86. Joint.Parent = Torso
  87.  
  88. local B = Instance.new("Part")
  89. B.TopSurface = 0
  90. B.BottomSurface = 0
  91. B.formFactor = "Symmetric"
  92. B.Size = Vector3.new(1, 1, 1)
  93. B.Transparency = 1
  94. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  95. B.Parent = Character
  96. local W = Instance.new("Weld")
  97. W.Part0 = Limb
  98. W.Part1 = B
  99. W.C0 = CFrame.new(0, -0.5, 0)
  100. W.Parent = Limb
  101.  
  102. end
  103. local Limb = Character:FindFirstChild("Left Arm")
  104. if Limb then
  105.  
  106. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  107. local Joint = Instance.new("Glue")
  108. Joint.Name = "LeftShoulder"
  109. Joint.Part0 = Torso
  110. Joint.Part1 = Limb
  111. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  112. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  113. Joint.Parent = Torso
  114.  
  115. local B = Instance.new("Part")
  116. B.TopSurface = 0
  117. B.BottomSurface = 0
  118. B.formFactor = "Symmetric"
  119. B.Size = Vector3.new(1, 1, 1)
  120. B.Transparency = 1
  121. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  122. B.Parent = Character
  123. local W = Instance.new("Weld")
  124. W.Part0 = Limb
  125. W.Part1 = B
  126. W.C0 = CFrame.new(0, -0.5, 0)
  127. W.Parent = Limb
  128.  
  129. end
  130. local Limb = Character:FindFirstChild("Right Leg")
  131. if Limb then
  132.  
  133. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  134. local Joint = Instance.new("Glue")
  135. Joint.Name = "RightHip"
  136. Joint.Part0 = Torso
  137. Joint.Part1 = Limb
  138. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  139. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  140. Joint.Parent = Torso
  141.  
  142. local B = Instance.new("Part")
  143. B.TopSurface = 0
  144. B.BottomSurface = 0
  145. B.formFactor = "Symmetric"
  146. B.Size = Vector3.new(1, 1, 1)
  147. B.Transparency = 1
  148. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  149. B.Parent = Character
  150. local W = Instance.new("Weld")
  151. W.Part0 = Limb
  152. W.Part1 = B
  153. W.C0 = CFrame.new(0, -0.5, 0)
  154. W.Parent = Limb
  155.  
  156. end
  157. local Limb = Character:FindFirstChild("Left Leg")
  158. if Limb then
  159.  
  160. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  161. local Joint = Instance.new("Glue")
  162. Joint.Name = "LeftHip"
  163. Joint.Part0 = Torso
  164. Joint.Part1 = Limb
  165. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  166. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  167. Joint.Parent = Torso
  168.  
  169. local B = Instance.new("Part")
  170. B.TopSurface = 0
  171. B.BottomSurface = 0
  172. B.formFactor = "Symmetric"
  173. B.Size = Vector3.new(1, 1, 1)
  174. B.Transparency = 1
  175. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  176. B.Parent = Character
  177. local W = Instance.new("Weld")
  178. W.Part0 = Limb
  179. W.Part1 = B
  180. W.C0 = CFrame.new(0, -0.5, 0)
  181. W.Parent = Limb
  182.  
  183. end
  184. --[
  185. local Bar = Instance.new("Part")
  186. Bar.TopSurface = 0
  187. Bar.BottomSurface = 0
  188. Bar.formFactor = "Symmetric"
  189. Bar.Size = Vector3.new(1, 1, 1)
  190. Bar.Transparency = 1
  191. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  192. Bar.Parent = Character
  193. local Weld = Instance.new("Weld")
  194. Weld.Part0 = Torso
  195. Weld.Part1 = Bar
  196. Weld.C0 = CFrame.new(0, 0.5, 0)
  197. Weld.Parent = Torso
  198. --]]
  199. end
  200. Character.Parent = Gibs
  201. game.Debris:AddItem(Character, 12)
  202. if movevector ~= Vector3.new() then
  203. for i = 1,10 do
  204. wait()
  205. Torso.Velocity = Vector3.new(0,0,-100)
  206. Head.Velocity = movevector * 200
  207. end
  208. end
  209. local duh = Torso
  210. ee = Instance.new("Part")
  211. ee.Anchored = false
  212. ee.CanCollide = false
  213. ee.Parent = duh
  214. ee.Transparency =1
  215. ee.Size = Vector3.new(0.15, 0.15, 0.15)
  216. wee = Instance.new("Weld")
  217. wee.Parent = duh
  218. wee.Part0 = duh
  219. wee.Part1 = ee
  220. wee.C0 = CFrame.new(0, 1, 0)
  221. ge = Instance.new('ParticleEmitter')
  222. ge.Parent = ee
  223. ge.Texture = "rbxassetid://29712167"
  224. ge.Size = NumberSequence.new(0.2,0.05)
  225. ge.Acceleration = Vector3.new(0, -20, 0)
  226. ge.Rate = 100000
  227. ge.Speed = NumberRange.new(7,8)
  228. ge.Lifetime = NumberRange.new(3,4)
  229. ge.VelocitySpread = 10
  230. ge.VelocityInheritance = 0.3
  231. ea = Instance.new("Part")
  232. ea.Anchored = false
  233. ea.CanCollide = false
  234. ea.Parent = Character.Head
  235. ea.Transparency =1
  236. ea.Size = Vector3.new(0.15, 0.15, 0.15)
  237. wea = Instance.new("Weld")
  238. wea.Parent = Character.Head
  239. wea.Part0 = Character.Head
  240. wea.Part1 = ea
  241. wea.C0 = CFrame.new(0, -0.7, 0)
  242. ga = Instance.new('ParticleEmitter')
  243. ga.Parent = ea
  244. ga.Texture = "rbxassetid://29712167"
  245. ga.Size = NumberSequence.new(0.2,0.05)
  246. ga.Acceleration = Vector3.new(0, -20, 0)
  247. ga.Rate = 100000
  248. ga.Speed = NumberRange.new(7,8)
  249. ga.Lifetime = NumberRange.new(3,4)
  250. ga.VelocitySpread = 10
  251. ga.VelocityInheritance = 0.3
  252. ga.EmissionDirection = Enum.NormalId.Bottom
  253. end
  254.  
  255. local plr = game.Players.LocalPlayer
  256. local chr = plr.Character
  257. local mouse = plr:GetMouse()
  258. local intro = coroutine.wrap(function()
  259. local gui = Instance.new('ScreenGui',plr.PlayerGui)
  260. gui.Name = "Intro"
  261. local fr = Instance.new('Frame',gui)
  262. fr.Size = UDim2.new(0.4,0,0,0)
  263. fr.Position = UDim2.new(0.3,0,-0.1,0)
  264. fr.BorderColor3 = Color3.fromRGB(198, 45, 45)
  265. fr.BorderSizePixel = 5
  266. fr.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  267. local title = Instance.new('TextLabel',fr)
  268. title.Size = UDim2.new(1,0,0.4,0)
  269. title.Position = UDim2.new(0,0,0.1,0)
  270. title.BackgroundTransparency = 1
  271. title.TextColor3 = Color3.fromRGB(198, 45, 45)
  272. title.TextScaled = true
  273. title.Text = 'Deadpool Script'
  274. local desc = Instance.new('TextLabel',fr)
  275. desc.Size = UDim2.new(1,0,0.5,0)
  276. desc.Position = UDim2.new(0,0,0.5,0)
  277. desc.BackgroundTransparency = 1
  278. desc.TextColor3 = Color3.fromRGB(198, 45, 45)
  279. desc.TextScaled = true
  280. desc.Text = ''
  281. wait(1)
  282. fr:TweenSize(UDim2.new(0.4,0,0.5,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,2)
  283. wait(2)
  284. local str = 'Hotkey to equip katana is N. Use Z to stab and X to slice heads off. Created by mustardfoot.'
  285. local leng = string.len(str)
  286. for i = 1,leng do
  287. desc.Text = string.sub(str,1,i)
  288. wait()
  289. end
  290. wait(2)
  291. fr:TweenSize(UDim2.new(0.4,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,0.8)
  292. wait(2)
  293. gui:Destroy()
  294. end)
  295. intro()
  296.  
  297.  
  298. wait(2)
  299. local tors = chr.Torso
  300. chr.Head.Transparency = 1
  301. for i,v in pairs(chr:GetChildren()) do
  302. if v.ClassName == "CharacterMesh" then
  303. v:Destroy()
  304. end
  305. end
  306. local humroot = chr.HumanoidRootPart:Clone()
  307. local torsclone = tors:Clone()
  308. local anim = chr.Animate:Clone()
  309. local hum = chr.Humanoid:Clone()
  310. local head = chr.Head:Clone()
  311. local neck = chr.Torso.Neck:Clone()
  312. local rightarm = chr["Right Arm"]:Clone()
  313. local leftarm = chr["Left Arm"]:Clone()
  314. local leftleg = chr["Left Leg"]:Clone()
  315. local rightleg = chr["Right Leg"]:Clone()
  316. local rightshoulder = tors["Right Shoulder"]:Clone()
  317. local leftshoulder = tors["Left Shoulder"]:Clone()
  318. local righthip = tors["Right Hip"]:Clone()
  319. local lefthip = tors["Left Hip"]:Clone()
  320. local shirt = nil
  321. local pants = nil
  322. local hats = {}
  323. local lastpos = CFrame.new(0,0,0)
  324. local on = true
  325. local doing = false
  326. local stabbing = false
  327. local slicing = false
  328. local toolz = Instance.new('Tool',plr.Backpack)
  329. toolz.Name = "Katana"
  330. toolz.RequiresHandle = false
  331. toolz.CanBeDropped = false
  332. local partz = Instance.new('Part',toolz)
  333. partz.Size = Vector3.new(0.2,0.2,3)
  334. partz.CanCollide = false
  335. local meshz = Instance.new('SpecialMesh',partz)
  336. meshz.MeshId = 'rbxassetid://11442510'
  337. meshz.TextureId = 'rbxassetid://30956707'
  338. meshz.VertexColor = Vector3.new(0,0,0)
  339.  
  340. toolz.Equipped:connect(function(mouse)
  341. if chr:FindFirstChild('Right Arm') then
  342. local weld = Instance.new('Weld',partz)
  343. weld.Part0 = partz
  344. weld.Part1 = chr["Right Arm"]
  345. weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
  346. end
  347. mouse.KeyDown:connect(function(key)
  348. if doing == false then
  349. if key == 'z' then
  350. if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
  351. doing = true
  352. local weld = Instance.new('Weld',chr["Right Arm"])
  353. weld.Part0 = chr["Right Arm"]
  354. weld.Part1 = chr.Torso
  355. weld.C0 = CFrame.new(-1.5,0,0)
  356. for i=1,25 do
  357. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,1,0.9)*CFrame.Angles(math.pi/2.5,0,-math.pi/2.5),i/25)
  358. wait()
  359. end
  360. wait()
  361. stabbing = true
  362. for i=1,10 do
  363. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/4,0,-math.pi/6),i/10)
  364. wait()
  365. end
  366. wait()
  367. for i=1,25 do
  368. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/25)
  369. wait()
  370. end
  371. chr["Right Arm"]:Destroy()
  372. doing = false
  373. stabbing = false
  374. end
  375. elseif key == 'x' then
  376. if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
  377. doing = true
  378. local weld = Instance.new('Weld',chr["Right Arm"])
  379. weld.Part0 = chr["Right Arm"]
  380. weld.Part1 = chr.Torso
  381. weld.C0 = CFrame.new(-1.5,0,0)
  382. for i=1,25 do
  383. weld.C0 = weld.C0:lerp(CFrame.new(-0.5,0.7,-0.5)*CFrame.Angles(math.pi/8,math.pi/1,math.pi/1.5),i/25)
  384. wait()
  385. end
  386. wait()
  387. slicing = true
  388. for i=1,5 do
  389. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/8,0,-math.pi/4),i/5)
  390. wait()
  391. end
  392. wait()
  393. for i=1,12.5 do
  394. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/12.5)
  395. wait()
  396. end
  397. chr["Right Arm"]:Destroy()
  398. doing = false
  399. slicing = false
  400. end
  401. end
  402. end
  403. end)
  404. end)
  405.  
  406. partz.Touched:connect(function(hit)
  407. if hit.Parent:FindFirstChild('Humanoid') and stabbing and hit.Parent ~= chr then
  408. hit.Parent.Humanoid.Health = 0
  409. elseif hit.Parent:FindFirstChild('heck') == nil and slicing then
  410. local he = Instance.new('IntValue',hit.Parent)
  411. he.Name = "heck"
  412. Kill(hit.Parent)
  413. end
  414. end)
  415.  
  416. toolz.Unequipped:connect(function(mouse)
  417. if partz:FindFirstChildOfClass('Weld') then
  418. partz:FindFirstChildOfClass('Weld'):Destroy()
  419. end
  420. end)
  421. toolz.AncestryChanged:connect(function(child, parent)
  422. if parent ~= chr and parent ~= plr.Backpack then
  423. wait()
  424. toolz.Parent = plr.Backpack
  425. end
  426. end)
  427.  
  428. mouse.KeyDown:connect(function(key)
  429. if key == "n" then
  430. wait()
  431. toolz:Equip()
  432. end
  433. end)
  434. if chr:FindFirstChildOfClass('Shirt') then
  435. shirt = chr:FindFirstChildOfClass('Shirt'):Clone()
  436. end
  437. if chr:FindFirstChildOfClass('Pants') then
  438. pants = chr:FindFirstChildOfClass('Pants'):Clone()
  439. end
  440. for i,v in pairs(chr:GetChildren()) do
  441. if v.ClassName == "Accessory" then
  442. table.insert(hats,v:Clone())
  443. end
  444. end
  445. local rootjoint = chr.HumanoidRootPart.RootJoint:Clone()
  446. chr.Humanoid:Destroy()
  447. local gui = Instance.new('ScreenGui')
  448. gui.Parent = game.Players.LocalPlayer.PlayerGui
  449. gui.Name = "Deadpool"
  450. gui.ResetOnSpawn = false
  451. local frame = Instance.new('Frame',gui)
  452. frame.Size = UDim2.new(0.2,0,0.2,0)
  453. frame.Position = UDim2.new(0,0,0.9,0)
  454. frame.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  455. frame.BorderSizePixel = 4
  456. frame.BorderColor3 = Color3.fromRGB(198, 45, 45)
  457. frame.Active = true
  458. frame.Draggable = true
  459. local txt = Instance.new('TextLabel',frame)
  460. txt.Text = "Demon Gui"
  461. txt.TextColor3 = Color3.fromRGB(198, 45, 45)
  462. txt.Size = UDim2.new(1,0,0.3,0)
  463. txt.TextScaled = true
  464. txt.BackgroundTransparency = 1
  465. local but = Instance.new('TextButton',frame)
  466. but.Text = "Toggle Suit"
  467. but.TextColor3 = Color3.fromRGB(38, 38, 38)
  468. but.Size = UDim2.new(0.7,0,0.3,0)
  469. but.Position = UDim2.new(0.15,0,0.5,0)
  470. but.BorderSizePixel = 0
  471. but.TextScaled = true
  472. but.BackgroundColor3 = Color3.fromRGB(198, 45, 45)
  473. but.MouseButton1Down:connect(function()
  474. on = not on
  475. end)
  476. game:GetService('RunService').Stepped:connect(function()
  477. if chr.Parent == nil then
  478. chr.RobloxLocked = false
  479. chr.Parent = game.Workspace
  480. end
  481. if chr:FindFirstChildOfClass('Humanoid') == nil then
  482. hum:Clone().Parent = chr
  483. chr.Animate:Destroy()
  484. anim:Clone().Parent = chr
  485. end
  486. if chr:FindFirstChild('HumanoidRootPart') == nil then
  487. humroot:Clone().Parent = chr
  488. humroot.CFrame = lastpos
  489. chr.Humanoid:Destroy()
  490. hum:Clone().Parent = chr
  491. chr.Animate:Destroy()
  492. anim:Clone().Parent = chr
  493. chr.HumanoidRootPart.RootJoint:Destroy()
  494. end
  495. if chr:FindFirstChild('Torso') == nil then
  496. chr.Humanoid:Destroy()
  497. local tor = tors:Clone()
  498. tor.Parent = chr
  499. hum:Clone().Parent = chr
  500. chr.Animate:Destroy()
  501. anim:Clone().Parent = chr
  502. end
  503. if chr.HumanoidRootPart:FindFirstChild('RootJoint') == nil then
  504. local rtj = rootjoint:Clone()
  505. rtj.Parent = chr.HumanoidRootPart
  506. rtj.Part0 = chr.HumanoidRootPart
  507. rtj.Part1 = chr.Torso
  508. end
  509. if chr:FindFirstChild('Head') == nil then
  510. chr.Humanoid:Destroy()
  511. head:Clone().Parent = chr
  512. hum:Clone().Parent = chr
  513. chr.Animate:Destroy()
  514. anim:Clone().Parent = chr
  515. end
  516. if chr.Torso:FindFirstChild('Neck') == nil then
  517. chr.Humanoid:Destroy()
  518. local hec = neck:Clone()
  519. hec.Parent = chr.Torso
  520. hec.Part0 = chr.Torso
  521. hec.Part1 = chr.Head
  522. hum:Clone().Parent = chr
  523. chr.Animate:Destroy()
  524. anim:Clone().Parent = chr
  525. end
  526. if chr:FindFirstChild('Right Leg') == nil then
  527. rightleg:Clone().Parent = chr
  528. local fi = righthip:Clone()
  529. fi.Parent = chr.Torso
  530. fi.Part0 = chr.Torso
  531. fi.Part1 = chr["Right Leg"]
  532. end
  533. if chr:FindFirstChild('Right Arm') == nil then
  534. rightarm:Clone().Parent = chr
  535. local fi = rightshoulder:Clone()
  536. fi.Parent = chr.Torso
  537. fi.Part0 = chr.Torso
  538. fi.Part1 = chr["Right Arm"]
  539. end
  540. if chr:FindFirstChild('Left Leg') == nil then
  541. leftleg:Clone().Parent = chr
  542. local fi = lefthip:Clone()
  543. fi.Parent = chr.Torso
  544. fi.Part0 = chr.Torso
  545. fi.Part1 = chr["Left Leg"]
  546. end
  547. if chr:FindFirstChild('Left Arm') == nil then
  548. leftarm:Clone().Parent = chr
  549. local fi = leftshoulder:Clone()
  550. fi.Parent = chr.Torso
  551. fi.Part0 = chr.Torso
  552. fi.Part1 = chr["Left Arm"]
  553. end
  554. for i,v in pairs(chr:GetChildren()) do
  555. if v.Name == "Mask" or v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "Pants" or v.Name == "KatanaHolder" then
  556. v:Destroy()
  557. end
  558. end
  559. chr.Humanoid.Health = chr.Humanoid.MaxHealth
  560. if partz:FindFirstChild('Weld') == nil and toolz.Parent == chr then
  561. local weld = Instance.new('Weld',partz)
  562. weld.Part0 = partz
  563. weld.Part1 = chr["Right Arm"]
  564. weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
  565. end
  566. lastpos = chr.HumanoidRootPart.CFrame
  567. local kat = Instance.new('Part',chr)
  568. kat.Size = Vector3.new(0.4,3,0.2)
  569. kat.Name = "KatanaHolder"
  570. kat.Material = Enum.Material.SmoothPlastic
  571. kat.BrickColor = BrickColor.new('Really black')
  572. kat.CanCollide = false
  573. local we = Instance.new('Weld',kat)
  574. we.Part0 = kat
  575. we.Part1 = chr.Torso
  576. we.C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,0,0.5)
  577. if on == true then
  578. local shirt = Instance.new('Shirt',chr)
  579. shirt.ShirtTemplate = 'rbxassetid://1159325231'
  580. local pants = Instance.new('Pants',chr)
  581. pants.PantsTemplate = 'rbxassetid://787069171'
  582. else
  583. chr.Head.Transparency = 0
  584. if shirt ~= nil then
  585. shirt:Clone().Parent = chr
  586. end
  587. if pants ~= nil then
  588. pants:Clone().Parent = chr
  589. end
  590. for i,v in pairs(hats) do
  591. v:Clone().Parent = chr
  592. end
  593. end
  594. end)
  595.  
  596. wait()
  597. script.Name = "_.:| E-Shield |:._"
  598. --script.Parent = _EShield_
  599. local LocalPlayer = game:service'Players'.LocalPlayer
  600. local b, Platform = nil
  601. local PlayerOnly = false
  602. local Touched = {}
  603. local Mouse = LocalPlayer:GetMouse()
  604. local ShiftDown, CtrlDown, MouseDown, Mouse2Down, MouseDeb, Mouse2Tick = false, false, false, false, false, 0
  605.  
  606. function Create()
  607. if b then pcall(function() b:Destroy() end) end
  608. if Platform then pcall(function() Platform:Destroy() end) end
  609. local t = LocalPlayer.Character:FindFirstChild("Torso")
  610. local posit = Vector3.new(0, 50, 0)
  611. if t then posit = t.Position end
  612. Platform = Instance.new("Part")
  613. Platform.formFactor = "Custom"
  614. Platform.Size = Vector3.new(10, 1, 10)
  615. Platform.Transparency = 1
  616. Platform.Anchored = true
  617. Platform.CanCollide = true
  618. b = Instance.new("Part", game:service'Workspace')
  619. b.Position = posit
  620. b.Shape = "Block"
  621. b.Transparency = 1
  622. b.Anchored = true
  623. b.Reflectance = 0
  624. b.Size = Mouse2Down and Vector3.new(25, 25, 25) or Vector3.new(15, 15, 15)
  625. b.Color = Mouse2Down and Color3.new(0, 0, 0) or Color3.new(0, 0, 0)
  626. b.TopSurface = "Smooth"
  627. b.BottomSurface = "Smooth"
  628. b.Locked = true
  629. b.CanCollide = false
  630. b.Changed:connect(function(w)
  631. if w == "Parent" then
  632. Create()
  633. end
  634. end)
  635. b.Touched:connect(function(obj)
  636. if obj.Name ~= "WillNotBeRemoved" and not TouchedStatus(obj) and not obj:IsDescendantOf(LocalPlayer.Character) and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) and obj.Name ~= "Base" and obj.className == "Part" then
  637. table.insert(Touched, obj)
  638. if PlayerOnly then
  639. if GetPlayer(obj) then
  640. Destroying(obj)
  641. end
  642. else
  643. Destroying(obj)
  644. end
  645. end
  646. end)
  647. end
  648.  
  649. function GetRecursiveChildren(Parent)
  650. local ret = {}
  651. for i, v in pairs(Parent:GetChildren()) do
  652. if #v:GetChildren() > 0 then
  653. local childs = GetRecursiveChildren(v)
  654. for i1, v1 in pairs(childs) do
  655. ret[#ret + 1] = v1
  656. end
  657. end
  658. ret[#ret + 1] = v
  659. end
  660. return ret
  661. end
  662.  
  663. function GetPlayer(Target)
  664. for _,v in pairs(game:service'Players':GetPlayers()) do
  665. if v.Character ~= nil and Target:IsDescendantOf(v.Character) then
  666. return v
  667. end
  668. end
  669. return nil
  670. end
  671.  
  672. function TouchedStatus(Target)
  673. for _,v in pairs(Touched) do
  674. if v == Target then
  675. return true
  676. end
  677. end
  678. return false
  679. end
  680.  
  681. function Destroying(obj)
  682. local ran, err = coroutine.resume(coroutine.create(function()
  683. if not Mouse2Down then
  684. obj:BreakJoints()
  685. obj.CanCollide = false
  686. obj.Anchored = false
  687. obj.formFactor = "Custom"
  688. obj.Size = obj.Size * Vector3.new(math.random(), math.random(), math.random())
  689. local bp = Instance.new("BodyPosition")
  690. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  691. bp.Parent = obj
  692. local X, Y, Z = nil, nil, nil
  693. coroutine.wrap(function()
  694. while obj and obj.Parent do
  695. X, Y, Z = math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)
  696. wait(0.3)
  697. end
  698. end)()
  699. coroutine.wrap(function()
  700. while obj and obj.Parent do
  701. bp.position = LocalPlayer.Character.Torso.Position + Vector3.new(X, Y, Z)
  702. wait()
  703. end
  704. end)()
  705. coroutine.wrap(function()
  706. local transp = 0
  707. for i = 1, 50 do
  708. transp = transp + 0.02
  709. obj.Transparency = transp
  710. wait(0.05)
  711. end
  712. game:service'Debris':AddItem(obj, 0)
  713. end)()
  714. elseif Mouse2Down then
  715. local selbox = Instance.new("SelectionBox", obj)
  716. selbox.Adornee = obj
  717. selbox.Color = BrickColor.new("Really red")
  718. selbox.Transparency = 0
  719. wait(2)
  720. coroutine.wrap(function()
  721. local transp = 0
  722. local Size, Position = obj.Size, obj.Position
  723. local brickTable = {}
  724. game:service'Debris':AddItem(obj, 0)
  725. for i = 1, math.random(2, 4) do
  726. local x, y, z = math.random(), math.random(), math.random()
  727. local Brick = Instance.new("Part")
  728. Brick.Name = "WillNotBeRemoved"
  729. Brick.Parent = game:service'Workspace'
  730. Brick.BrickColor = BrickColor.new("White")
  731. Brick.Size = Size * Vector3.new(x, y, z)
  732. Brick.CFrame = CFrame.new(Position) * CFrame.Angles( x * 180, y * 180, z * 180)
  733. Brick.Locked = true
  734. Brick.Anchored = false
  735. Brick.CanCollide = false
  736. local Selection = Instance.new("SelectionBox", Brick)
  737. Selection.Adornee = Brick
  738. Selection.Color = BrickColor.new("White")
  739. Selection.Transparency = 0
  740. local BodyVelo = Instance.new("BodyVelocity", Brick)
  741. BodyVelo.maxForce = Vector3.new(1/0, 1/0, 1/0)
  742. BodyVelo.velocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  743. brickTable[#brickTable + 1] = {Brick, Selection}
  744. end
  745. for i = 1, 50 do
  746. transp = transp + 0.02
  747. for i1, v in pairs(brickTable) do
  748. v[1].Transparency = transp
  749. v[2].Transparency = transp
  750. end
  751. wait(0.05)
  752. end
  753. --for i, v in pairs(brickTable) do game:service'Debris':AddItem(v[1], 0) game:service'Debris':AddItem(v[2], 0) end
  754. end)()
  755. end
  756. end))
  757. if not ran then print(".:| EShield |:. " .. err) end
  758. end
  759.  
  760. Create()
  761.  
  762. Mouse.Button1Down:connect(function()
  763. MouseDown = true
  764. end)
  765.  
  766. Mouse.Button1Up:connect(function()
  767. MouseDown = false
  768. end)
  769.  
  770. Mouse.KeyDown:connect(function(key)
  771. local key = type(key) == "string" and key:lower() or ""
  772. if key == "r" then
  773. print = function() end
  774. script:Destroy()
  775. for i, v in pairs(getfenv()) do pcall(function() v:Destroy() end) getfenv()[i] = nil end
  776. end
  777. end)
  778.  
  779. Mouse.Button2Down:connect(function()
  780. if not Mouse2Down then
  781. Mouse2Tick = tick()
  782. Mouse2Down = true
  783. coroutine.wrap(function()
  784. for i = 1.1, 0, -0.1 do if Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
  785. for i = 0, 1.1, 0.1 do if Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
  786. end)()
  787. coroutine.wrap(function()
  788. for i = 15, 25 do if Mouse2Down then b.Size = Vector3.new(i, i, i) b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position) end wait(0.05) end
  789. end)()
  790. end
  791. end)
  792.  
  793. Mouse.Button2Up:connect(function()
  794. if Mouse2Down then
  795. if math.floor(tick() - Mouse2Tick) > 1 then
  796. Mouse2Down = false
  797. coroutine.wrap(function()
  798. for i = 1.1, 0, -0.1 do if not Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
  799. for i = 0, 1.1, 0.1 do if not Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
  800. end)()
  801. coroutine.wrap(function()
  802. for i = 25, 15, -1 do if not Mouse2Down then b.Size = Vector3.new(i, i, i) b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position) end wait(0.05) end
  803. end)()
  804. end
  805. end
  806. end)
  807.  
  808. Mouse.KeyDown:connect(function(key)
  809. if key == "0" then
  810. ShiftDown = true
  811. elseif key == "1" or key == "2" then
  812. CtrlDown = true
  813. end
  814. end)
  815.  
  816. Mouse.KeyUp:connect(function(key)
  817. if key == "0" then
  818. ShiftDown = false
  819. elseif key == "1" or key == "2" then
  820. CtrlDown = false
  821. end
  822. end)
  823.  
  824. coroutine.wrap(function()
  825. while wait(0.05) do
  826. for i = 0.2, 0.8, 0.1 do
  827. b.Transparency = i
  828. wait(0.05)
  829. end
  830. for i = 0.7, 0.1, -0.1 do
  831. b.Transparency = i
  832. wait(0.05)
  833. end
  834. end
  835. end)()
  836.  
  837. game:service'RunService'.Stepped:connect(function()
  838. coroutine.resume(coroutine.create(function()
  839. b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  840. end))
  841. coroutine.resume(coroutine.create(function()
  842. for i, v in pairs(Touched) do
  843. if v.Parent == nil or v == nil then
  844. table.remove(Touched, i)
  845. end
  846. end
  847. end))
  848. coroutine.resume(coroutine.create(function()
  849. local Height = LocalPlayer.Character.Torso.CFrame.y - 3.5
  850. if ShiftDown then
  851. Height = Height - 0.25
  852. if CtrlDown then
  853. Height = Height - 0.75
  854. end
  855. end
  856. local TargetCFrame = LocalPlayer.Character.Torso.CFrame
  857. local TargetAngle = LocalPlayer.Character.Torso.CFrame.lookVector
  858. Platform.Parent = game:service'Workspace'.CurrentCamera
  859. Platform.CFrame = CFrame.new(TargetCFrame.x, Height, TargetCFrame.z)
  860. Platform.CanCollide = true
  861. LocalPlayer.Character.Torso.CFrame = TargetCFrame * CFrame.new(0, -(TargetCFrame.y) + Height + 3.5, 0)
  862. end))
  863. coroutine.resume(coroutine.create(function()
  864. if LocalPlayer.Parent ~= nil then
  865. for i, v in pairs(GetRecursiveChildren(LocalPlayer.Character)) do
  866. if v.className == "Part" then v.CanCollide = false end
  867. end
  868. end
  869. end))
  870. coroutine.resume(coroutine.create(function()
  871. if MouseDown and not MouseDeb and not Mouse2Down then
  872. MouseDeb = true
  873. coroutine.wrap(function() wait(1) MouseDeb = false end)()
  874. local dist = Instance.new("Part")
  875. dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  876. dist.formFactor = "Custom"
  877. dist.Shape = "Ball"
  878. dist.Name = "WillNotBeRemoved"
  879. dist.Transparency = 0
  880. dist.Reflectance = 0.1
  881. dist.Size = Vector3.new(10, 10, 10)
  882. dist.BrickColor = BrickColor.new("New Yeller")
  883. dist.TopSurface = "Smooth"
  884. dist.Anchored = true
  885. dist.BottomSurface = "Smooth"
  886. dist.Locked = true
  887. dist.CanCollide = false
  888. dist.Parent = game:service'Workspace'
  889. dist.Touched:connect(function(obj)
  890. coroutine.resume(coroutine.create(function()
  891. local Player = GetPlayer(obj)
  892. if Player and Player ~= LocalPlayer and Player.Character and Player.Character:FindFirstChild("Torso") then
  893. local BV = Instance.new("BodyVelocity", Player.Character.Torso)
  894. BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
  895. BV.velocity = ((LocalPlayer.Character.Torso.Position - Player.Character.Torso.Position).unit * -50)
  896. game:service'Debris':AddItem(BV, 1)
  897. elseif not Player and obj ~= b and obj.Name ~= "Base" and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) then
  898. obj:BreakJoints()
  899. obj.Anchored = false
  900. obj.CanCollide = false
  901. local BV = Instance.new("BodyVelocity", obj)
  902. BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
  903. BV.velocity = ((LocalPlayer.Character.Torso.Position - obj.Position).unit * -50)
  904. game:service'Debris':AddItem(BV, 1)
  905. end
  906. end))
  907. end)
  908. coroutine.wrap(function()
  909. for i = 1, 100 do
  910. dist.Transparency = dist.Transparency + 0.01
  911. dist.Size = dist.Size + Vector3.new(1, 1, 1)
  912. dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
  913. wait()
  914. end
  915. game:service'Debris':AddItem(dist, 0)
  916. end)()
  917. end
  918. end))
  919. end)
  920.  
  921.  
  922. wait(0.2)
  923. Player = game:GetService("Players").LocalPlayer
  924. PlayerGui = Player.PlayerGui
  925. Cam = workspace.CurrentCamera
  926. Backpack = Player.Backpack
  927. Character = Player.Character
  928. Humanoid = Character.Humanoid
  929. Mouse = Player:GetMouse()
  930. RootPart = Character.HumanoidRootPart
  931. Torso = Character.Torso
  932. Head = Character.Head
  933. RightArm = Character["Right Arm"]
  934. LeftArm = Character["Left Arm"]
  935. RightLeg = Character["Right Leg"]
  936. LeftLeg = Character["Left Leg"]
  937. RootJoint = RootPart.RootJoint
  938. Neck = Torso.Neck
  939. RightShoulder = Torso["Right Shoulder"]
  940. LeftShoulder = Torso["Left Shoulder"]
  941. RightHip = Torso["Right Hip"]
  942. LeftHip = Torso["Left Hip"]
  943. local LastBolt
  944. local LightningBolts = {}
  945. local GunPoint
  946. IT = Instance.new
  947. CF = CFrame.new
  948. VT = Vector3.new
  949. RAD = math.rad
  950. C3 = Color3.new
  951. UD2 = UDim2.new
  952. BRICKC = BrickColor.new
  953. ANGLES = CFrame.Angles
  954. EULER = CFrame.fromEulerAnglesXYZ
  955. COS = math.cos
  956. ACOS = math.acos
  957. SIN = math.sin
  958. ASIN = math.asin
  959. ABS = math.abs
  960. MRANDOM = math.random
  961. FLOOR = math.floor
  962. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  963. local NEWMESH = IT(MESH)
  964. if MESH == "SpecialMesh" then
  965. NEWMESH.MeshType = MESHTYPE
  966. if MESHID ~= "nil" and MESHID ~= "" then
  967. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  968. end
  969. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  970. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  971. end
  972. end
  973. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  974. NEWMESH.Scale = SCALE
  975. NEWMESH.Parent = PARENT
  976. return NEWMESH
  977. end
  978. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  979. local NEWPART = IT("Part")
  980. NEWPART.formFactor = FORMFACTOR
  981. NEWPART.Reflectance = REFLECTANCE
  982. NEWPART.Transparency = TRANSPARENCY
  983. NEWPART.CanCollide = false
  984. NEWPART.Locked = true
  985. NEWPART.Anchored = true
  986. if ANCHOR == false then
  987. NEWPART.Anchored = false
  988. end
  989. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  990. NEWPART.Name = NAME
  991. NEWPART.Size = SIZE
  992. NEWPART.Position = Torso.Position
  993. NEWPART.Material = MATERIAL
  994. NEWPART:BreakJoints()
  995. NEWPART.Parent = PARENT
  996. return NEWPART
  997. end
  998. Player_Size = 1
  999. Animation_Speed = 3
  1000. Frame_Speed = 0.016666666666666666
  1001. local Speed = 16
  1002. local Effects2 = {}
  1003. local weldBetween = function(a, b)
  1004. local weldd = Instance.new("ManualWeld")
  1005. weldd.Part0 = a
  1006. weldd.Part1 = b
  1007. weldd.C0 = CFrame.new()
  1008. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1009. weldd.Parent = a
  1010. return weldd
  1011. end
  1012. function createaccessory(attachmentpart, mesh, texture, scale, offset, color)
  1013. local acs = Instance.new("Part")
  1014. acs.CanCollide = false
  1015. acs.Anchored = false
  1016. acs.Size = Vector3.new(0, 0, 0)
  1017. acs.CFrame = attachmentpart.CFrame
  1018. acs.Parent = Character
  1019. acs.BrickColor = color
  1020. local meshs = Instance.new("SpecialMesh")
  1021. meshs.MeshId = mesh
  1022. meshs.TextureId = texture
  1023. meshs.Parent = acs
  1024. meshs.Scale = scale
  1025. meshs.Offset = offset
  1026. weldBetween(attachmentpart, acs)
  1027. end
  1028. function createbodypart(TYPE, COLOR, PART, OFFSET, SIZE)
  1029. if TYPE == "Gem" then
  1030. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0, 0, 0))
  1031. acs.Anchored = false
  1032. acs.CanCollide = false
  1033. acs.CFrame = PART.CFrame
  1034. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  1035. weldBetween(PART, acs)
  1036. elseif TYPE == "Skull" then
  1037. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0, 0, 0))
  1038. acs.Anchored = false
  1039. acs.CanCollide = false
  1040. acs.CFrame = PART.CFrame
  1041. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  1042. weldBetween(PART, acs)
  1043. elseif TYPE == "Eye" then
  1044. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0, 0, 0))
  1045. acs.Anchored = false
  1046. acs.CanCollide = false
  1047. acs.CFrame = PART.CFrame
  1048. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  1049. weldBetween(PART, acs)
  1050. end
  1051. end
  1052. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1053. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1054. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1055. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1056. local CHANGEDEFENSE = 0
  1057. local CHANGEDAMAGE = 0
  1058. local CHANGEMOVEMENT = 0
  1059. local ANIM = "Idle"
  1060. local ATTACK = false
  1061. local EQUIPPED = false
  1062. local HOLD = false
  1063. local COMBO = 1
  1064. local Rooted = false
  1065. local SINE = 0
  1066. local KEYHOLD = false
  1067. local CHANGE = 2 / Animation_Speed
  1068. local WALKINGANIM = false
  1069. local WALK = 0
  1070. local VALUE1 = false
  1071. local VALUE2 = false
  1072. local ROBLOXIDLEANIMATION = IT("Animation")
  1073. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1074. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1075. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  1076. WEAPONGUI.Name = "Weapon GUI"
  1077. local Weapon = IT("Model")
  1078. Weapon.Name = "Adds"
  1079. local Delete = IT("Model", Character)
  1080. Delete.Name = "Those who must be banished."
  1081. local Effects = IT("Folder", Weapon)
  1082. Effects.Name = "Effects"
  1083. local ANIMATOR = Humanoid.Animator
  1084. local ANIMATE = Character.Animate
  1085. local HITPLAYERSOUNDS = {
  1086. "263032172",
  1087. "263032182",
  1088. "263032200",
  1089. "263032221",
  1090. "263032252",
  1091. "263033191"
  1092. }
  1093. local HITARMORSOUNDS = {
  1094. "199149321",
  1095. "199149338",
  1096. "199149367",
  1097. "199149409",
  1098. "199149452"
  1099. }
  1100. local HITWEAPONSOUNDS = {
  1101. "199148971",
  1102. "199149025",
  1103. "199149072",
  1104. "199149109",
  1105. "199149119"
  1106. }
  1107. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  1108. local UNANCHOR = true
  1109. local SKILLTEXTCOLOR = C3(1, 0, 0)
  1110. ArtificialHB = Instance.new("BindableEvent", script)
  1111. ArtificialHB.Name = "ArtificialHB"
  1112. script:WaitForChild("ArtificialHB")
  1113. frame = Frame_Speed
  1114. tf = 0
  1115. allowframeloss = false
  1116. tossremainder = false
  1117. lastframe = tick()
  1118. script.ArtificialHB:Fire()
  1119. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1120. tf = tf + s
  1121. if tf >= frame then
  1122. if allowframeloss then
  1123. script.ArtificialHB:Fire()
  1124. lastframe = tick()
  1125. else
  1126. for i = 1, math.floor(tf / frame) do
  1127. script.ArtificialHB:Fire()
  1128. end
  1129. lastframe = tick()
  1130. end
  1131. if tossremainder then
  1132. tf = 0
  1133. else
  1134. tf = tf - frame * math.floor(tf / frame)
  1135. end
  1136. end
  1137. end)
  1138. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1139. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1140. end
  1141. function PositiveAngle(NUMBER)
  1142. if NUMBER >= 0 then
  1143. NUMBER = 0
  1144. end
  1145. return NUMBER
  1146. end
  1147. function NegativeAngle(NUMBER)
  1148. if NUMBER <= 0 then
  1149. NUMBER = 0
  1150. end
  1151. return NUMBER
  1152. end
  1153. function Swait(NUMBER)
  1154. if NUMBER == 0 or NUMBER == nil then
  1155. ArtificialHB.Event:wait()
  1156. else
  1157. for i = 1, NUMBER do
  1158. ArtificialHB.Event:wait()
  1159. end
  1160. end
  1161. end
  1162. function QuaternionFromCFrame(cf)
  1163. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1164. local trace = m00 + m11 + m22
  1165. if trace > 0 then
  1166. local s = math.sqrt(1 + trace)
  1167. local recip = 0.5 / s
  1168. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1169. else
  1170. local i = 0
  1171. if m00 < m11 then
  1172. i = 1
  1173. end
  1174. if m22 > (i == 0 and m00 or m11) then
  1175. i = 2
  1176. end
  1177. if i == 0 then
  1178. local s = math.sqrt(m00 - m11 - m22 + 1)
  1179. local recip = 0.5 / s
  1180. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1181. elseif i == 1 then
  1182. local s = math.sqrt(m11 - m22 - m00 + 1)
  1183. local recip = 0.5 / s
  1184. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1185. elseif i == 2 then
  1186. local s = math.sqrt(m22 - m00 - m11 + 1)
  1187. local recip = 0.5 / s
  1188. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1189. end
  1190. end
  1191. end
  1192. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1193. local xs, ys, zs = x + x, y + y, z + z
  1194. local wx, wy, wz = w * xs, w * ys, w * zs
  1195. local xx = x * xs
  1196. local xy = x * ys
  1197. local xz = x * zs
  1198. local yy = y * ys
  1199. local yz = y * zs
  1200. local zz = z * zs
  1201. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  1202. end
  1203. function QuaternionSlerp(a, b, t)
  1204. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1205. local startInterp, finishInterp
  1206. if cosTheta >= 1.0E-4 then
  1207. if 1 - cosTheta > 1.0E-4 then
  1208. local theta = ACOS(cosTheta)
  1209. local invSinTheta = 1 / SIN(theta)
  1210. startInterp = SIN((1 - t) * theta) * invSinTheta
  1211. finishInterp = SIN(t * theta) * invSinTheta
  1212. else
  1213. startInterp = 1 - t
  1214. finishInterp = t
  1215. end
  1216. elseif 1 + cosTheta > 1.0E-4 then
  1217. local theta = ACOS(-cosTheta)
  1218. local invSinTheta = 1 / SIN(theta)
  1219. startInterp = SIN((t - 1) * theta) * invSinTheta
  1220. finishInterp = SIN(t * theta) * invSinTheta
  1221. else
  1222. startInterp = t - 1
  1223. finishInterp = t
  1224. end
  1225. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  1226. end
  1227. function Clerp(a, b, t)
  1228. local qa = {
  1229. QuaternionFromCFrame(a)
  1230. }
  1231. local qb = {
  1232. QuaternionFromCFrame(b)
  1233. }
  1234. local ax, ay, az = a.x, a.y, a.z
  1235. local bx, by, bz = b.x, b.y, b.z
  1236. local _t = 1 - t
  1237. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1238. end
  1239. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1240. local frame = IT("Frame")
  1241. frame.BackgroundTransparency = TRANSPARENCY
  1242. frame.BorderSizePixel = BORDERSIZEPIXEL
  1243. frame.Position = POSITION
  1244. frame.Size = SIZE
  1245. frame.BackgroundColor3 = COLOR
  1246. frame.BorderColor3 = BORDERCOLOR
  1247. frame.Name = NAME
  1248. frame.Parent = PARENT
  1249. return frame
  1250. end
  1251. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1252. local label = IT("TextLabel")
  1253. label.BackgroundTransparency = 1
  1254. label.Size = UD2(1, 0, 1, 0)
  1255. label.Position = UD2(0, 0, 0, 0)
  1256. label.TextColor3 = TEXTCOLOR
  1257. label.TextStrokeTransparency = STROKETRANSPARENCY
  1258. label.TextTransparency = TRANSPARENCY
  1259. label.FontSize = TEXTFONTSIZE
  1260. label.Font = TEXTFONT
  1261. label.BorderSizePixel = BORDERSIZEPIXEL
  1262. label.TextScaled = false
  1263. label.Text = TEXT
  1264. label.Name = NAME
  1265. label.Parent = PARENT
  1266. return label
  1267. end
  1268. function NoOutlines(PART)
  1269. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1270. end
  1271. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1272. local NEWWELD = IT(TYPE)
  1273. NEWWELD.Part0 = PART0
  1274. NEWWELD.Part1 = PART1
  1275. NEWWELD.C0 = C0
  1276. NEWWELD.C1 = C1
  1277. NEWWELD.Parent = PARENT
  1278. return NEWWELD
  1279. end
  1280. local SOUND = IT("Sound", nil)
  1281. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1282. local NEWSOUND
  1283. coroutine.resume(coroutine.create(function()
  1284. NEWSOUND = SOUND:Clone()
  1285. NEWSOUND.Parent = PARENT
  1286. NEWSOUND.Volume = VOLUME
  1287. NEWSOUND.Pitch = PITCH
  1288. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  1289. NEWSOUND:play()
  1290. repeat
  1291. Swait()
  1292. until NEWSOUND.Playing == false
  1293. NEWSOUND:remove()
  1294. end))
  1295. return NEWSOUND
  1296. end
  1297. function CFrameFromTopBack(at, top, back)
  1298. local right = top:Cross(back)
  1299. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1300. end
  1301. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  1302. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1303. local mesh = IT("SpecialMesh", wave)
  1304. mesh.MeshType = "FileMesh"
  1305. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1306. mesh.Scale = SIZE
  1307. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  1308. wave.CFrame = CFRAME
  1309. coroutine.resume(coroutine.create(function(PART)
  1310. for i = 1, WAIT do
  1311. Swait()
  1312. mesh.Scale = mesh.Scale + GROW
  1313. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  1314. if DOESROT == true then
  1315. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1316. end
  1317. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1318. if wave.Transparency > 0.99 then
  1319. wave:remove()
  1320. end
  1321. end
  1322. end))
  1323. end
  1324. function CreateCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  1325. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1326. local mesh = IT("SpecialMesh", wave)
  1327. mesh.MeshType = "FileMesh"
  1328. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  1329. mesh.Scale = SIZE
  1330. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  1331. wave.CFrame = CFRAME
  1332. coroutine.resume(coroutine.create(function(PART)
  1333. for i = 1, WAIT do
  1334. Swait()
  1335. mesh.Scale = mesh.Scale + GROW
  1336. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  1337. if DOESROT == true then
  1338. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1339. end
  1340. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1341. if wave.Transparency > 0.99 then
  1342. wave:remove()
  1343. end
  1344. end
  1345. end))
  1346. end
  1347. function CreateIceCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  1348. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1349. local mesh = IT("SpecialMesh", wave)
  1350. mesh.MeshType = "FileMesh"
  1351. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  1352. mesh.Scale = SIZE
  1353. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  1354. wave.CFrame = CFRAME
  1355. coroutine.resume(coroutine.create(function(PART)
  1356. for i = 1, WAIT do
  1357. Swait()
  1358. mesh.Scale = mesh.Scale + GROW
  1359. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  1360. if DOESROT == true then
  1361. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1362. end
  1363. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1364. if wave.Transparency > 0.99 then
  1365. wave:remove()
  1366. end
  1367. end
  1368. end))
  1369. end
  1370. function CreateSpikeball(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  1371. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1372. local mesh = IT("SpecialMesh", wave)
  1373. mesh.MeshType = "FileMesh"
  1374. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  1375. mesh.Scale = SIZE
  1376. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  1377. wave.CFrame = CFRAME
  1378. coroutine.resume(coroutine.create(function(PART)
  1379. for i = 1, WAIT do
  1380. Swait()
  1381. mesh.Scale = mesh.Scale + GROW
  1382. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  1383. if DOESROT == true then
  1384. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1385. end
  1386. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1387. if wave.Transparency > 0.99 then
  1388. wave:remove()
  1389. end
  1390. end
  1391. end))
  1392. end
  1393. function CreateSwirl(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  1394. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1395. local mesh = IT("SpecialMesh", wave)
  1396. mesh.MeshType = "FileMesh"
  1397. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1398. mesh.Scale = SIZE
  1399. wave.CFrame = CFRAME
  1400. coroutine.resume(coroutine.create(function(PART)
  1401. for i = 1, WAIT do
  1402. Swait()
  1403. mesh.Scale = mesh.Scale + GROW
  1404. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  1405. if DOESROT == true then
  1406. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1407. end
  1408. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1409. if wave.Transparency > 0.99 then
  1410. wave:remove()
  1411. end
  1412. end
  1413. end))
  1414. end
  1415. function CreateTornado(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  1416. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1417. local mesh = IT("SpecialMesh", wave)
  1418. mesh.MeshType = "FileMesh"
  1419. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  1420. mesh.Scale = SIZE
  1421. wave.CFrame = CFRAME
  1422. coroutine.resume(coroutine.create(function(PART)
  1423. for i = 1, WAIT do
  1424. Swait()
  1425. mesh.Scale = mesh.Scale + GROW
  1426. if DOESROT == true then
  1427. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1428. end
  1429. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1430. if wave.Transparency > 0.99 then
  1431. wave:remove()
  1432. end
  1433. end
  1434. end))
  1435. end
  1436. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  1437. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1438. local mesh = IT("SpecialMesh", wave)
  1439. mesh.MeshType = "FileMesh"
  1440. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1441. mesh.Scale = SIZE
  1442. mesh.Offset = VT(0, 0, 0)
  1443. wave.CFrame = CFRAME
  1444. coroutine.resume(coroutine.create(function(PART)
  1445. for i = 1, WAIT do
  1446. Swait()
  1447. mesh.Scale = mesh.Scale + GROW
  1448. if DOESROT == true then
  1449. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1450. end
  1451. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1452. if wave.Transparency > 0.99 then
  1453. wave:remove()
  1454. end
  1455. end
  1456. end))
  1457. end
  1458. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  1459. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  1460. local mesh = IT("SpecialMesh", wave)
  1461. mesh.MeshType = "Sphere"
  1462. mesh.Scale = SIZE
  1463. mesh.Offset = VT(0, 0, 0)
  1464. wave.CFrame = CFRAME
  1465. coroutine.resume(coroutine.create(function(PART)
  1466. for i = 1, WAIT do
  1467. Swait()
  1468. mesh.Scale = mesh.Scale + GROW
  1469. wave.Transparency = wave.Transparency + 1 / WAIT
  1470. if wave.Transparency > 0.99 then
  1471. wave:remove()
  1472. end
  1473. end
  1474. end))
  1475. end
  1476. function MagicBlock(SIZE, WAIT, CFRAME, COLOR, GROW)
  1477. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE, SIZE, SIZE), true)
  1478. local mesh = IT("BlockMesh", wave)
  1479. wave.CFrame = CFRAME
  1480. coroutine.resume(coroutine.create(function(PART)
  1481. for i = 1, WAIT do
  1482. Swait()
  1483. mesh.Scale = mesh.Scale + GROW
  1484. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360, 360)), RAD(math.random(-360, 360)), RAD(math.random(-360, 360)))
  1485. wave.Transparency = wave.Transparency + 1 / WAIT
  1486. if wave.Transparency > 0.99 then
  1487. wave:remove()
  1488. end
  1489. end
  1490. end))
  1491. end
  1492. function MakeForm(PART, TYPE)
  1493. if TYPE == "Cyl" then
  1494. local MSH = IT("CylinderMesh", PART)
  1495. elseif TYPE == "Ball" then
  1496. local MSH = IT("SpecialMesh", PART)
  1497. MSH.MeshType = "Sphere"
  1498. elseif TYPE == "Wedge" then
  1499. local MSH = IT("SpecialMesh", PART)
  1500. MSH.MeshType = "Wedge"
  1501. end
  1502. end
  1503. function CheckTableForString(Table, String)
  1504. for i, v in pairs(Table) do
  1505. if string.find(string.lower(String), string.lower(v)) then
  1506. return true
  1507. end
  1508. end
  1509. return false
  1510. end
  1511. function CheckIntangible(Hit)
  1512. local ProjectileNames = {
  1513. "Water",
  1514. "Arrow",
  1515. "Projectile",
  1516. "Effect",
  1517. "Rail",
  1518. "Lightning",
  1519. "Bullet"
  1520. }
  1521. if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  1522. return true
  1523. end
  1524. return false
  1525. end
  1526. Debris = game:GetService("Debris")
  1527. BaseLightning = IT("Part")
  1528. BaseLightning.Anchored = true
  1529. BaseLightning.CanCollide = false
  1530. BaseLightning.Material = "Neon"
  1531. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1532. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  1533. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
  1534. if RayHit and CheckIntangible(RayHit) then
  1535. if DelayIfHit then
  1536. wait()
  1537. end
  1538. RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
  1539. end
  1540. return RayHit, RayPos, RayNormal
  1541. end
  1542. function Zap(Table)
  1543. local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color
  1544. local Duration = Table.Duration or 2
  1545. local FadeRate = Table.FadeRate or 0.05
  1546. local Offset = Table.Offset or 2
  1547. local Individualize = Table.Individualize or false
  1548. local MaxRange = Table.MaxRange or 200
  1549. local SegmentLength = Table.SegmentLength or 5
  1550. local TimeToFade = Table.TimeToFade or 0.5
  1551. local Ignore = Table.Ignore or {}
  1552. local SIZE = Table.Size or 0.3
  1553. if not (StartPos and TargetPos) or not Character then
  1554. return
  1555. end
  1556. local LightningModel = IT("Folder", Effects)
  1557. LightningModel.Name = "ZAPP"
  1558. for i, v in pairs({Character, LightningModel}) do
  1559. table.insert(Ignore, v)
  1560. end
  1561. local LastPos = StartPos
  1562. local Direction = CFrame.new(StartPos, TargetPos).lookVector
  1563. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false)
  1564. local RayLength = (StartPos - RayPos).Magnitude
  1565. local Struck = false
  1566. local TotalSegments = math.ceil(RayLength / SegmentLength)
  1567. Direction = CFrame.new(StartPos, RayPos).lookVector
  1568. local LightningBolt = IT("Model", Effects)
  1569. LightningBolt.Name = "Lightning"
  1570. if not Individualize then
  1571. table.insert(LightningBolts, LightningBolt)
  1572. end
  1573. LastBolt = LightningBolt
  1574. Debris:AddItem(LightningBolt, Duration)
  1575. LightningBolt.Parent = LightningModel
  1576. for i = 1, TotalSegments do
  1577. if not Struck then
  1578. local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset)
  1579. local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy
  1580. local SegmentVec = NewPos - LastPos
  1581. local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false)
  1582. local RayVec = LastPos - RayPos
  1583. local LightningPart = BaseLightning:Clone()
  1584. LightningPart.BrickColor = BrickColor.new(Color)
  1585. LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude)
  1586. LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2))
  1587. table.insert(Effects2, {
  1588. LightningPart,
  1589. "Disappear",
  1590. 0.025,
  1591. 1,
  1592. 1,
  1593. 1,
  1594. 2
  1595. })
  1596. local CylinderMesh = IT("CylinderMesh", LightningPart)
  1597. local OrigCF = LightningPart.CFrame
  1598. LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y)
  1599. LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0)
  1600. LightningPart.Parent = LightningBolt
  1601. LastPos = NewPos
  1602. end
  1603. end
  1604. return {
  1605. RayHit = RayHit,
  1606. RayPos = RayPos,
  1607. RayNormal = RayNormal,
  1608. LightningModel = LightningModel
  1609. }
  1610. end
  1611. function turnto(position)
  1612. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  1613. end
  1614. function chatfunc(text, waitt)
  1615. local chat = coroutine.wrap(function()
  1616. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  1617. Character:FindFirstChild("TalkingBillBoard").Parent = nil
  1618. end
  1619. local naeeym2 = Instance.new("BillboardGui", Character)
  1620. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1621. naeeym2.StudsOffset = Vector3.new(0, 2, 0)
  1622. naeeym2.Adornee = Character.Head
  1623. naeeym2.Name = "TalkingBillBoard"
  1624. naeeym2.AlwaysOnTop = true
  1625. local tecks2 = Instance.new("TextLabel", naeeym2)
  1626. tecks2.BackgroundTransparency = 1
  1627. tecks2.BorderSizePixel = 0
  1628. tecks2.Text = ""
  1629. tecks2.Font = "Antique"
  1630. tecks2.TextSize = 30
  1631. tecks2.TextStrokeTransparency = 1
  1632. tecks2.TextColor3 = SKILLTEXTCOLOR
  1633. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1634. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1635. for i = 1, string.len(text) do
  1636. if naeeym2.Parent ~= nil then
  1637. CreateSound("418252437", Effects, 1, MRANDOM(9, 11) / 10)
  1638. end
  1639. tecks2.Text = string.sub(text, 1, i)
  1640. Swait(3)
  1641. end
  1642. wait(waitt / 10)
  1643. coroutine.resume(coroutine.create(function()
  1644. for i = 1, 10 do
  1645. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  1646. Swait()
  1647. end
  1648. naeeym2:Destroy()
  1649. end))
  1650. end)
  1651. chat()
  1652. end
  1653. for _, c in pairs(Weapon:GetChildren()) do
  1654. if c.ClassName == "Part" then
  1655. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1656. end
  1657. end
  1658. Weapon.Parent = Character
  1659. Humanoid.Died:connect(function()
  1660. ATTACK = true
  1661. end)
  1662. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame")
  1663. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame")
  1664. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame")
  1665. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 4 Frame")
  1666. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 5 Frame")
  1667. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher bullet", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1")
  1668. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Banishing rampage", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
  1669. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Warp vector", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 3")
  1670. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Spectral banish", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 4")
  1671. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] De-banish", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 5")
  1672. function CastWarpOutlines(TARGET)
  1673. coroutine.resume(coroutine.create(function()
  1674. local T = TARGET:GetChildren()
  1675. for i = 1, #T do
  1676. local child = T[i]
  1677. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  1678. do
  1679. local clone = child:Clone()
  1680. clone.Parent = Effects
  1681. clone.Anchored = true
  1682. clone.CanCollide = false
  1683. clone:ClearAllChildren()
  1684. clone.CFrame = child.CFrame
  1685. if clone.Name == "Head" then
  1686. clone.Size = VT(clone.Size.Y, clone.Size.Y, clone.Size.Y)
  1687. end
  1688. if clone.ClassName == "MeshPart" then
  1689. clone.TextureID = ""
  1690. end
  1691. clone.Color = C3(1, 0, 0)
  1692. clone.Material = "Neon"
  1693. coroutine.resume(coroutine.create(function()
  1694. for i = 1, 100 do
  1695. Swait()
  1696. clone.Transparency = clone.Transparency + 0.01
  1697. clone.Size = clone.Size + VT(0.001, 0.001, 0.001)
  1698. end
  1699. clone:remove()
  1700. end))
  1701. end
  1702. end
  1703. end
  1704. end))
  1705. end
  1706. function killnearest(position, range, maxstrength)
  1707. for i, v in ipairs(workspace:GetChildren()) do
  1708. local body = v:GetChildren()
  1709. for part = 1, #body do
  1710. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" then
  1711. CastWarpOutlines(v)
  1712. v:remove()
  1713. if game.Players:FindFirstChild(v.Name) then
  1714. local Value = IT("BoolValue", Delete)
  1715. Value.Name = v.Name
  1716. end
  1717. end
  1718. end
  1719. end
  1720. end
  1721. function CastProperRay(StartPos, Vec, Length, Ignore)
  1722. local Direction = CFrame.new(StartPos, Vec).lookVector
  1723. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  1724. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1725. return RayHit, RayPos, RayNormal
  1726. end
  1727. function Debree(POS, SWAIT)
  1728. coroutine.resume(coroutine.create(function()
  1729. local HOLDER = IT("Model", Effects)
  1730. HOLDER.Name = "Debree"
  1731. local HITFLOOR = Raycast(POS, CF(POS, POS + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1732. MagicSphere(VT(15, 1, 15), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
  1733. MagicSphere(VT(13, 1, 13), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
  1734. MagicSphere(VT(12, 1, 12), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
  1735. repeat
  1736. Swait()
  1737. until HITFLOOR ~= nil
  1738. local O = 0
  1739. for i = 1, 18 do
  1740. do
  1741. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
  1742. Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1743. O = O - 2.25 + i / 4
  1744. coroutine.resume(coroutine.create(function()
  1745. Swait(SWAIT)
  1746. for i = 1, 60 do
  1747. Swait()
  1748. local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
  1749. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1750. end
  1751. for i = 1, 50 do
  1752. Swait()
  1753. Part.Size = Part.Size * 0.9
  1754. end
  1755. end))
  1756. end
  1757. end
  1758. local O = 0
  1759. for i = 1, 18 do
  1760. do
  1761. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
  1762. Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1763. O = O + 2.25 - i / 4
  1764. coroutine.resume(coroutine.create(function()
  1765. Swait(SWAIT)
  1766. for i = 1, 60 do
  1767. Swait()
  1768. local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
  1769. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1770. end
  1771. for i = 1, 50 do
  1772. Swait()
  1773. Part.Size = Part.Size * 0.9
  1774. end
  1775. end))
  1776. end
  1777. end
  1778. Swait(SWAIT + 110)
  1779. HOLDER:remove()
  1780. end))
  1781. end
  1782. function Intro()
  1783. coroutine.resume(coroutine.create(function()
  1784. ATTACK = true
  1785. Rooted = true
  1786. for i = 0, 3, 0.1 / Animation_Speed do
  1787. Swait()
  1788. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1789. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1790. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1791. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1792. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1793. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1794. end
  1795. CreateSound("649634100", Head, 10, 0.5)
  1796. for i = 0, 1, 0.1 / Animation_Speed do
  1797. Swait()
  1798. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
  1799. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1800. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1801. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1802. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1803. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1804. end
  1805. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1806. repeat
  1807. Swait()
  1808. HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1809. until HITFLOOR ~= nil
  1810. for i = 0, 0.5, 0.1 / Animation_Speed do
  1811. Swait()
  1812. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed)
  1813. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1814. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1815. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1816. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1817. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1818. end
  1819. CreateSound("289842971", RightArm, 10, 1)
  1820. Debree(CF(RightArm.Position) * CF(0, -0.75, 0).p, 200)
  1821. Swait(45)
  1822. local Gun = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0), false)
  1823. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "430198390", "430198451", VT(0.02, 0.02, 0.02), VT(0, 0, 0))
  1824. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.7, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  1825. GunPoint = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Point blank", VT(0, 0, 0), false)
  1826. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", GunPoint, RightArm, GunPoint, CF(0, -3.1, -0.8) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
  1827. local sick = Instance.new("Sound", Character)
  1828. sick.SoundId = "rbxassetid://1140442110"
  1829. sick.Looped = true
  1830. sick.Pitch = 1
  1831. sick.Volume = 1
  1832. sick:Play()
  1833. Swait(5)
  1834. for i = 0, 1, 0.1 / Animation_Speed do
  1835. Swait()
  1836. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
  1837. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1838. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.25, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1839. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1840. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1841. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1842. end
  1843. VALUE1 = true
  1844. Swait(10)
  1845. ATTACK = false
  1846. Rooted = false
  1847. end))
  1848. end
  1849. function BanishingBullet()
  1850. ATTACK = true
  1851. Rooted = false
  1852. for i = 0, 0.4, 0.1 / Animation_Speed do
  1853. Swait()
  1854. turnto(Mouse.Hit.p)
  1855. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1856. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1857. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1858. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1859. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1860. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1861. end
  1862. repeat
  1863. for i = 0, 0.2, 0.1 / Animation_Speed do
  1864. Swait()
  1865. turnto(Mouse.Hit.p)
  1866. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1867. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1868. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1869. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1870. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1871. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1872. end
  1873. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1874. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
  1875. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
  1876. local RayHit, Way = CastProperRay(GunPoint.Position, Mouse.Hit.p, 1500, Character)
  1877. local distance = (GunPoint.Position - Way).magnitude
  1878. for i = 1, 5 do
  1879. local laser = Instance.new("Part", Effects)
  1880. laser.Transparency = 0
  1881. laser.CanCollide = false
  1882. laser.Anchored = true
  1883. laser.Color = C3(1, 0, 0)
  1884. laser.Material = "Neon"
  1885. laser.formFactor = Enum.FormFactor.Custom
  1886. laser.Size = Vector3.new(0.15, 0.15, distance)
  1887. laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2)
  1888. MagicSphere(VT(0.1, 0.1, 0.1), 45, CF(Way), "Really red", VT(0.05, 0.05, 0.05))
  1889. for i = 1, 5 do
  1890. MagicSphere(VT(0.2, 0.2, 1), 65, CF(CF(Way) * CF(MRANDOM(-1, 1), MRANDOM(-1, 1), MRANDOM(-1, 1)).p, Way), "Really red", VT(0.001, 0.001, 0), 0.5)
  1891. end
  1892. table.insert(Effects2, {
  1893. laser,
  1894. "Disappear",
  1895. 0.1,
  1896. 1,
  1897. 1,
  1898. 1,
  1899. 2
  1900. })
  1901. if RayHit ~= nil then
  1902. local v = RayHit.Parent
  1903. if v ~= nil and v.ClassName == "Model" then
  1904. CastWarpOutlines(v)
  1905. v.Parent = nil
  1906. if game.Players:FindFirstChild(v.Name) then
  1907. local Value = IT("BoolValue", Delete)
  1908. Value.Name = v.Name
  1909. end
  1910. end
  1911. end
  1912. end
  1913. for i = 0, 0.3, 0.1 / Animation_Speed do
  1914. Swait()
  1915. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1916. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1917. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1918. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1919. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1920. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1921. end
  1922. until KEYHOLD == false
  1923. ATTACK = false
  1924. Rooted = false
  1925. end
  1926. function WarpVector()
  1927. ATTACK = true
  1928. Rooted = true
  1929. for i = 0, 1, 0.1 / Animation_Speed do
  1930. Swait()
  1931. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1932. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1933. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1934. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1935. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1936. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1937. end
  1938. Debree(CF(RootPart.Position) * CF(0, -2.8, 0).p, 75)
  1939. UNANCHOR = false
  1940. RootPart.Anchored = true
  1941. for i = 0, 2, 0.1 / Animation_Speed do
  1942. Swait()
  1943. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1944. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1945. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1946. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1947. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1948. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1949. end
  1950. local POS = RootPart.Position
  1951. RootPart.CFrame = CF(CF(Mouse.Hit.p) * CF(0, 2.8, 0).p, POS)
  1952. Debree(CF(RootPart.Position) * CF(0, -2.5, 0).p, 150)
  1953. for i = 0, 2, 0.1 / Animation_Speed do
  1954. Swait()
  1955. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1956. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1957. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1958. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1959. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1960. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1961. end
  1962. ATTACK = false
  1963. Rooted = false
  1964. end
  1965. function BanishingRampage()
  1966. ATTACK = true
  1967. Rooted = false
  1968. chatfunc("Be gone...", 3)
  1969. for i = 0, 2, 0.1 / Animation_Speed do
  1970. Swait()
  1971. turnto(Mouse.Hit.p)
  1972. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1973. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1974. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1975. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1976. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1977. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1978. end
  1979. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1980. repeat
  1981. Swait()
  1982. HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1983. until HITFLOOR ~= nil
  1984. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1985. local SOUND = CreateSound("415700134", Effects, 10, 1.6)
  1986. CreateSound("138677306", Effects, 7, 1.2)
  1987. coroutine.resume(coroutine.create(function()
  1988. local CFRAME = RootPart.CFrame * CF(0, -1.2, -3)
  1989. local SIZE = 1
  1990. while true do
  1991. Swait()
  1992. for i = 1, 2 do
  1993. MagicSphere(VT(SIZE / 5, SIZE / 5, SIZE * 2), 65, CF(CFRAME * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, CFRAME.p), "Really red", VT(0.001, 0.001, 0), 0.5)
  1994. end
  1995. do
  1996. local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5))
  1997. Part.CFrame = CFRAME * CF(SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1998. coroutine.resume(coroutine.create(function()
  1999. Swait(200)
  2000. Part.Anchored = false
  2001. end))
  2002. local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5))
  2003. Part.CFrame = CFRAME * CF(-SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  2004. coroutine.resume(coroutine.create(function()
  2005. Swait(200)
  2006. Part.Anchored = false
  2007. end))
  2008. MagicSphere(VT(SIZE, SIZE, SIZE), 75, CFRAME, "Really red", VT(-SIZE / 75, -SIZE / 75, -SIZE / 75))
  2009. killnearest(CFRAME.p, SIZE, 0)
  2010. SIZE = SIZE + 2
  2011. CFRAME = CFRAME * CF(0, 0, -2)
  2012. if SOUND.Playing == false then
  2013. break
  2014. end
  2015. end
  2016. end
  2017. end))
  2018. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
  2019. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
  2020. for i = 0, 3, 0.1 / Animation_Speed do
  2021. Swait()
  2022. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  2023. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(10), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  2024. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2025. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2026. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2027. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2028. end
  2029. ATTACK = false
  2030. Rooted = false
  2031. end
  2032. function SpectralBanishing()
  2033. ATTACK = true
  2034. Rooted = false
  2035. chatfunc("If you desire to be a ghost...", 20)
  2036. for i = 0, 5, 0.1 / Animation_Speed do
  2037. Swait()
  2038. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
  2039. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
  2040. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2041. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2042. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2043. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2044. end
  2045. chatfunc("Then move on to the afterlife!", 6)
  2046. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  2047. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
  2048. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
  2049. local RayHit, Way = CastProperRay(GunPoint.Position, CF(GunPoint.Position) * CF(0, 1500, 0).p, 1500, Character)
  2050. local distance = (GunPoint.Position - Way).magnitude
  2051. for i = 1, 5 do
  2052. local laser = Instance.new("Part", Effects)
  2053. laser.Transparency = 0
  2054. laser.CanCollide = false
  2055. laser.Anchored = true
  2056. laser.Color = C3(1, 0, 0)
  2057. laser.Material = "Neon"
  2058. laser.formFactor = Enum.FormFactor.Custom
  2059. laser.Size = Vector3.new(0.15, 0.15, distance)
  2060. laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2)
  2061. table.insert(Effects2, {
  2062. laser,
  2063. "Disappear",
  2064. 0.1,
  2065. 1,
  2066. 1,
  2067. 1,
  2068. 2
  2069. })
  2070. end
  2071. coroutine.resume(coroutine.create(function()
  2072. Swait(15)
  2073. local FILTER = IT("ColorCorrectionEffect", game.Lighting)
  2074. for i = 1, 25 do
  2075. Swait()
  2076. FILTER.TintColor = C3(1, 1 - i / 50, 1 - i / 50)
  2077. end
  2078. local GAME = game.Players:GetChildren()
  2079. for PLAYER = 1, #GAME do
  2080. do
  2081. local PLAY = GAME[PLAYER]
  2082. if PLAY.Character ~= nil and PLAY.Character.Parent ~= workspace then
  2083. PLAY.Character.Parent = nil
  2084. coroutine.resume(coroutine.create(function()
  2085. if PLAY.Character:FindFirstChild("HumanoidRootPart") then
  2086. PLAY.Character.Parent = workspace
  2087. local Value = IT("BoolValue", Delete)
  2088. Value.Name = PLAY.Name
  2089. end
  2090. end))
  2091. end
  2092. end
  2093. end
  2094. for i = 1, 25 do
  2095. Swait()
  2096. FILTER.TintColor = C3(1, 0.4980392156862745 + i / 50, 0.4980392156862745 + i / 50)
  2097. end
  2098. end))
  2099. for i = 0, 2, 0.1 / Animation_Speed do
  2100. Swait()
  2101. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
  2102. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
  2103. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(195), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2104. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2105. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2106. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2107. end
  2108. ATTACK = false
  2109. Rooted = false
  2110. end
  2111. function Taunt()
  2112. ATTACK = true
  2113. Rooted = true
  2114. CreateSound("649634100", Head, 10, 0.5)
  2115. for i = 1, 3 do
  2116. for i = 0, 0.7, 0.1 / Animation_Speed do
  2117. Swait()
  2118. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2119. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  2120. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  2121. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  2122. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2123. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2124. end
  2125. for i = 0, 0.7, 0.1 / Animation_Speed do
  2126. Swait()
  2127. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2128. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  2129. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  2130. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  2131. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2132. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2133. end
  2134. end
  2135. ATTACK = false
  2136. Rooted = false
  2137. end
  2138. function MouseDown(Mouse)
  2139. if ATTACK == false then
  2140. end
  2141. end
  2142. function MouseUp(Mouse)
  2143. HOLD = false
  2144. end
  2145. function KeyDown(Key)
  2146. KEYHOLD = true
  2147. if Key == "z" and ATTACK == false then
  2148. BanishingBullet()
  2149. end
  2150. if Key == "b" and ATTACK == false then
  2151. BanishingRampage()
  2152. end
  2153. if Key == "c" and ATTACK == false then
  2154. WarpVector()
  2155. end
  2156. if Key == "v" and ATTACK == false then
  2157. SpectralBanishing()
  2158. end
  2159. if Key == "x" and ATTACK == false then
  2160. chatfunc("I will show you mercy.", 2)
  2161. Delete:ClearAllChildren()
  2162. end
  2163. if Key == "t" and ATTACK == false then
  2164. Taunt()
  2165. end
  2166. end
  2167. function KeyUp(Key)
  2168. KEYHOLD = false
  2169. end
  2170. Mouse.Button1Down:connect(function(NEWKEY)
  2171. MouseDown(NEWKEY)
  2172. end)
  2173. Mouse.Button1Up:connect(function(NEWKEY)
  2174. MouseUp(NEWKEY)
  2175. end)
  2176. Mouse.KeyDown:connect(function(NEWKEY)
  2177. KeyDown(NEWKEY)
  2178. end)
  2179. Mouse.KeyUp:connect(function(NEWKEY)
  2180. KeyUp(NEWKEY)
  2181. end)
  2182. function unanchor()
  2183. if UNANCHOR == true then
  2184. g = Character:GetChildren()
  2185. for i = 1, #g do
  2186. if g[i].ClassName == "Part" then
  2187. g[i].Anchored = false
  2188. end
  2189. end
  2190. end
  2191. end
  2192. Humanoid.Changed:connect(function(Jump)
  2193. if Jump == "Jump" and Disable_Jump == true then
  2194. Humanoid.Jump = false
  2195. end
  2196. end)
  2197. local BOLT
  2198. local FF = IT("ForceField", Character)
  2199. FF.Visible = false
  2200. while true do
  2201. Swait()
  2202. if BOLT ~= nil then
  2203. BOLT:remove()
  2204. end
  2205. ANIMATE.Parent = nil
  2206. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2207. IDLEANIMATION:Play()
  2208. SINE = SINE + CHANGE
  2209. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2210. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2211. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2212. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  2213. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2214. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2215. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2216. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2217. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2218. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2219. elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then
  2220. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2221. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2222. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2223. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2224. end
  2225. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2226. ANIM = "Jump"
  2227. if ATTACK == false then
  2228. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2229. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2230. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2231. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2232. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2233. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2234. end
  2235. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2236. ANIM = "Fall"
  2237. if ATTACK == false then
  2238. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2239. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2240. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(55), RAD(0), RAD(55)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2241. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2242. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2243. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2244. end
  2245. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2246. ANIM = "Idle"
  2247. if ATTACK == false then
  2248. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2249. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2250. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2251. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2252. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2253. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2254. end
  2255. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2256. ANIM = "Walk"
  2257. WALK = WALK + 1 / Animation_Speed
  2258. if WALK >= 15 - 5 * (Humanoid.WalkSpeed / 16 / Player_Size) then
  2259. WALK = 0
  2260. if WALKINGANIM == true then
  2261. WALKINGANIM = false
  2262. elseif WALKINGANIM == false then
  2263. WALKINGANIM = true
  2264. end
  2265. end
  2266. if ATTACK == false then
  2267. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2268. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2269. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2270. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2271. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2272. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2273. end
  2274. end
  2275. if #Effects2 > 0 then
  2276. for e = 1, #Effects2 do
  2277. if Effects2[e] ~= nil then
  2278. local Thing = Effects2[e]
  2279. if Thing ~= nil then
  2280. local Part = Thing[1]
  2281. local Mode = Thing[2]
  2282. local Delay = Thing[3]
  2283. local IncX = Thing[4]
  2284. local IncY = Thing[5]
  2285. local IncZ = Thing[6]
  2286. local Part2 = Thing[8]
  2287. if Thing[1].Transparency <= 1 then
  2288. if Thing[2] == "Block1" then
  2289. Thing[1].CFrame = Thing[1].CFrame
  2290. Mesh = Thing[1].Mesh
  2291. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  2292. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2293. elseif Thing[2] == "Cylinder" then
  2294. Mesh = Thing[1].Mesh
  2295. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  2296. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2297. elseif Thing[2] == "Blood" then
  2298. Mesh = Thing[7]
  2299. Thing[1].CFrame = Thing[1].CFrame * CF(0, 0.5, 0)
  2300. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  2301. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2302. elseif Thing[2] == "Elec" then
  2303. Mesh = Thing[1].Mesh
  2304. Mesh.Scale = Mesh.Scale + VT(Thing[7], Thing[8], Thing[9])
  2305. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2306. elseif Thing[2] == "Disappear" then
  2307. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2308. end
  2309. else
  2310. Part.Parent = nil
  2311. table.remove(Effects2, e)
  2312. end
  2313. end
  2314. end
  2315. end
  2316. end
  2317. unanchor()
  2318. Humanoid.MaxHealth = "inf"
  2319. Humanoid.Health = "inf"
  2320. if Rooted == false then
  2321. Disable_Jump = false
  2322. Humanoid.WalkSpeed = Speed
  2323. elseif Rooted == true then
  2324. Disable_Jump = true
  2325. Humanoid.WalkSpeed = 0
  2326. end
  2327. if VALUE1 == true then
  2328. local RayData = Zap({
  2329. SegmentLength = 0.6,
  2330. Offset = 0.3,
  2331. Size = 0.05,
  2332. MaxRange = 1.5,
  2333. StartPosition = GunPoint.Position,
  2334. TargetPosition = RightArm.Position,
  2335. Character = workspace,
  2336. Color = "Really red",
  2337. Individual = true
  2338. })
  2339. BOLT = RayData.LightningModel
  2340. MagicSphere(VT(0.5, 0.5, 0.5), 15, GunPoint.CFrame, "Really red", VT(-0.03333333333333333, -0.03333333333333333, -0.03333333333333333))
  2341. SKILL1TEXT.TextTransparency = 0
  2342. SKILL2TEXT.TextTransparency = 0
  2343. SKILL3TEXT.TextTransparency = 0
  2344. SKILL4TEXT.TextTransparency = 0
  2345. SKILL5TEXT.TextTransparency = 0
  2346. elseif VALUE1 == false then
  2347. if ATTACK == false then
  2348. Intro()
  2349. end
  2350. SKILL1TEXT.TextTransparency = 1
  2351. SKILL2TEXT.TextTransparency = 1
  2352. SKILL3TEXT.TextTransparency = 1
  2353. SKILL4TEXT.TextTransparency = 1
  2354. SKILL5TEXT.TextTransparency = 1
  2355. end
  2356. local MATHS = {"0", "1"}
  2357. Humanoid.Name = MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)]
  2358. Humanoid.PlatformStand = false
  2359. local GAME = game.Players:GetChildren()
  2360. for PLAYER = 1, #GAME do
  2361. local PLAY = GAME[PLAYER]
  2362. if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then
  2363. PLAY.Character:remove()
  2364. end
  2365. end
  2366. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement