Advertisement
com_ww

Untitled

Mar 29th, 2020
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -----------------------
  2. --The Distorted--
  3. -------------------------------------------------------
  4. --A script By makhail07
  5.  
  6. --Discord Creterisk#2958
  7. --Really old script so hhhhhhhhh
  8. --also dark eccentric is a faggot
  9. -------------------------------------------------------
  10. print("FE code by Starzozero, Thanks to him!")
  11. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  12. local Player,game,owner = owner,game
  13. local RealPlayer = Player
  14. do
  15. print("FE Compatibility code by Mokiros, Edited by StarzoZero")
  16. local rp = RealPlayer
  17. script.Parent = rp.Character
  18.  
  19. --RemoteEvent for communicating
  20. local Event = Instance.new("RemoteEvent")
  21. Event.Name = "UserInput_Event"
  22.  
  23. --Fake event to make stuff like Mouse.KeyDown work
  24. local function fakeEvent()
  25. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  26. t.connect = t.Connect
  27. return t
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  33. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  34. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  35. end}
  36. --Merged 2 functions into one by checking amount of arguments
  37. CAS.UnbindAction = CAS.BindAction
  38.  
  39. --This function will trigger the events that have been :Connect()'ed
  40. local function te(self,ev,...)
  41. local t = m[ev]
  42. if t and t._fakeEvent then
  43. for _,f in pairs(t.Functions) do
  44. f(...)
  45. end
  46. end
  47. end
  48. m.TrigEvent = te
  49. UIS.TrigEvent = te
  50.  
  51. Event.OnServerEvent:Connect(function(plr,io)
  52. if plr~=rp then return end
  53. m.Target = io.Target
  54. m.Hit = io.Hit
  55. if not io.isMouse then
  56. local b = io.UserInputState == Enum.UserInputState.Begin
  57. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  58. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  59. end
  60. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  61. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  62. end
  63. for _,t in pairs(CAS.Actions) do
  64. for _,k in pairs(t.Keys) do
  65. if k==io.KeyCode then
  66. t.Function(t.Name,io.UserInputState,io)
  67. end
  68. end
  69. end
  70. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  71. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  72. end
  73. end)
  74. Event.Parent = NLS([==[
  75. local Player = game:GetService("Players").LocalPlayer
  76. local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = Player:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,a)
  80. if a then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86. local h,t
  87. --Give the server mouse data 30 times every second, but only if the values changed
  88. --If player is not moving their mouse, client won't fire events
  89. while wait(1/30) do
  90. if h~=Mouse.Hit or t~=Mouse.Target then
  91. h,t=Mouse.Hit,Mouse.Target
  92. Event:FireServer({isMouse=true,Target=t,Hit=h})
  93. end
  94. end]==],Player.Character)
  95.  
  96. ----Sandboxed game object that allows the usage of client-side methods and services
  97. --Real game object
  98. local _rg = game
  99.  
  100. --Metatable for fake service
  101. local fsmt = {
  102. __index = function(self,k)
  103. local s = rawget(self,"_RealService")
  104. if s then
  105. return typeof(s[k])=="function"
  106. and function(_,...)return s[k](s,...)end or s[k]
  107. end
  108. end,
  109. __newindex = function(self,k,v)
  110. local s = rawget(self,"_RealService")
  111. if s then s[k]=v end
  112. end
  113. }
  114. local function FakeService(t,RealService)
  115. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  116. return setmetatable(t,fsmt)
  117. end
  118.  
  119. --Fake game object
  120. local g = {
  121. GetService = function(self,s)
  122. return rawget(self,s) or _rg:GetService(s)
  123. end,
  124. Players = FakeService({
  125. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  126. },"Players"),
  127. UserInputService = FakeService(UIS,"UserInputService"),
  128. ContextActionService = FakeService(CAS,"ContextActionService"),
  129. RunService = FakeService({
  130. _btrs = {},
  131. RenderStepped = _rg:GetService("RunService").Heartbeat,
  132. BindToRenderStep = function(self,name,_,fun)
  133. self._btrs[name] = self.Heartbeat:Connect(fun)
  134. end,
  135. UnbindFromRenderStep = function(self,name)
  136. self._btrs[name]:Disconnect()
  137. end,
  138. },"RunService")
  139. }
  140. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  141. g.service = g.GetService
  142. FakeService(g,game)
  143. --Changing owner to fake player object to support owner:GetMouse()
  144. game,owner = g,g.Players.LocalPlayer
  145. end
  146.  
  147. warn("Z to start playing.")
  148. warn("C - Beethoven's moon sonata.")
  149. warn("V - Giorno meme")
  150. warn("M - InSaNiTy")
  151. warn("L - Can Can 1")
  152. warn("G - Can Can 2")
  153. warn("X to stop.")
  154. warn("Made by Reset5017577.Edited by Xavier(added Giorno, InSaNiTy and Megalovania(b))")
  155.  
  156. plr = game.Players.LocalPlayer
  157. char = plr.Character
  158. mouse = plr:GetMouse()
  159. hum = char.HumanoidRootPart
  160. root = char.Torso
  161. left = char["Left Arm"]
  162. right = char["Right Arm"]
  163. rightl = char["Right Leg"]
  164. leftl = char["Left Leg"]
  165. tors = char["Torso"]
  166. piano = false
  167.  
  168. MUSIK2 = Instance.new("Sound",tors)
  169. MUSIK2.Playing = false
  170. MUSIK2.Looped = true
  171. MUSIK2.Pitch = 1
  172. MUSIK2.SoundId = "rbxassetid://282692567"
  173. MUSIK2.Volume = 10
  174.  
  175. MUSIK5 = Instance.new("Sound",tors)
  176. MUSIK5.Playing = false
  177. MUSIK5.Looped = true
  178. MUSIK5.Pitch = 1
  179. MUSIK5.SoundId = "rbxassetid://2297862957"
  180. MUSIK5.Volume = 10
  181.  
  182. MUSIK6 = Instance.new("Sound",tors)
  183. MUSIK6.Playing = false
  184. MUSIK6.Looped = true
  185. MUSIK6.Pitch = 1
  186. MUSIK6.SoundId = "rbxassetid://290101447"
  187. MUSIK6.Volume = 10
  188.  
  189.  
  190. MUSIK7 = Instance.new("Sound",tors)
  191. MUSIK7.Playing = false
  192. MUSIK7.Looped = true
  193. MUSIK7.Pitch = 1
  194. MUSIK7.SoundId = "rbxassetid://164854108"
  195. MUSIK7.Volume = 10
  196.  
  197.  
  198. MUSIK = Instance.new("Sound",tors)
  199. MUSIK.Playing = false
  200. MUSIK.Looped = true
  201. MUSIK.Pitch = 1
  202. MUSIK.SoundId = "rbxassetid://234659695"
  203. MUSIK.Volume = 10
  204.  
  205. MUSIK3 = Instance.new("Sound",tors)
  206. MUSIK3.Playing = false
  207. MUSIK3.Looped = true
  208. MUSIK3.Pitch = 1
  209. MUSIK3.SoundId = "rbxassetid://4456886461"
  210. MUSIK3.Volume = 10
  211.  
  212. MUSIK4 = Instance.new("Sound",tors)
  213. MUSIK4.Playing = false
  214. MUSIK4.Looped = true
  215. MUSIK4.Pitch = 1
  216. MUSIK4.SoundId = "rbxassetid://336265697"
  217. MUSIK4.Volume = 10
  218.  
  219. gutf = Instance.new("Part")
  220. gutf.Parent = tors
  221. gutf.Size = Vector3.new(1, 1, 1)
  222. gutf.CanCollide = false
  223.  
  224. wldf = Instance.new("Weld",owner.Character)
  225. wldf.Parent = gutf
  226. wldf.Part0 = gutf
  227. wldf.Part1 = root
  228. wldf.C0 = CFrame.new(0, 0.42,-3.5)
  229. wldf.C1 = CFrame.Angles(0, 9.45, 0)
  230.  
  231. utm = Instance.new("SpecialMesh",gutf)
  232. utm.MeshId = "rbxassetid://280038600"
  233. utm.TextureId = "rbxassetid://280038797"
  234. utm.Scale = Vector3.new(1, 1, 1)
  235.  
  236. arm1 = Instance.new("Weld")
  237. arm1.Parent = left
  238. arm1.Part0 = left
  239. arm1.Part1 = root
  240.  
  241. arm2 = Instance.new("Weld")
  242. arm2.Parent = right
  243. arm2.Part0 = right
  244. arm2.Part1 = root
  245.  
  246. arm2.C0 = CFrame.new(1.5, 1, 0.5)
  247. arm2.C1 = CFrame.Angles(20, 0, 0)
  248. arm1.C0 = CFrame.new(-1.5, 1, 0.5)
  249. arm1.C1 = CFrame.Angles(20, 0, 0)
  250.  
  251. function pianop()
  252. char.Humanoid.WalkSpeed = 0
  253. piano = true
  254. MUSIK2:Play()
  255.  
  256. while piano do
  257. wait(0.1)
  258. arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
  259. arm2.C1 = CFrame.Angles(20, 0, 0)
  260. arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
  261. arm1.C1 = CFrame.Angles(20, 0, 0)
  262. wait(0.1)
  263. arm2.C0 = CFrame.new(1.5, 1, 0.5)
  264. arm2.C1 = CFrame.Angles(20, 0, 0)
  265. arm1.C0 = CFrame.new(-1.5, 1, 0.5)
  266. arm1.C1 = CFrame.Angles(20, 0, 0)
  267. end
  268. end
  269.  
  270. function pianop2()
  271. char.Humanoid.WalkSpeed = 0
  272. piano = true
  273. MUSIK:Play()
  274.  
  275. while piano do
  276. wait(0.3)
  277. arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
  278. arm2.C1 = CFrame.Angles(20, 0, 0)
  279. arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
  280. arm1.C1 = CFrame.Angles(20, 0, 0)
  281. wait(0.3)
  282. arm2.C0 = CFrame.new(1.5, 1, 0.5)
  283. arm2.C1 = CFrame.Angles(20, 0, 0)
  284. arm1.C0 = CFrame.new(-1.5, 1, 0.5)
  285. arm1.C1 = CFrame.Angles(20, 0, 0)
  286. end
  287. end
  288.  
  289. function pianop3()
  290. char.Humanoid.WalkSpeed = 0
  291. piano = true
  292. MUSIK3:Play()
  293.  
  294. while piano do
  295. wait(0.3)
  296. arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
  297. arm2.C1 = CFrame.Angles(20, 0, 0)
  298. arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
  299. arm1.C1 = CFrame.Angles(20, 0, 0)
  300. wait(0.3)
  301. arm2.C0 = CFrame.new(1.5, 1, 0.5)
  302. arm2.C1 = CFrame.Angles(20, 0, 0)
  303. arm1.C0 = CFrame.new(-1.5, 1, 0.5)
  304. arm1.C1 = CFrame.Angles(20, 0, 0)
  305. end
  306. end
  307.  
  308. function pianop4()
  309. char.Humanoid.WalkSpeed = 0
  310. piano = true
  311. MUSIK4:Play()
  312.  
  313. while piano do
  314. wait(0.1)
  315. arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
  316. arm2.C1 = CFrame.Angles(20, 0, 0)
  317. arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
  318. arm1.C1 = CFrame.Angles(20, 0, 0)
  319. wait(0.1)
  320. arm2.C0 = CFrame.new(1.5, 1, 0.5)
  321. arm2.C1 = CFrame.Angles(20, 0, 0)
  322. arm1.C0 = CFrame.new(-1.5, 1, 0.5)
  323. arm1.C1 = CFrame.Angles(20, 0, 0)
  324. end
  325. end
  326.  
  327. function pianop5()
  328. char.Humanoid.WalkSpeed = 0
  329. piano = true
  330. MUSIK5:Play()
  331.  
  332. while piano do
  333. wait(0.1)
  334. arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
  335. arm2.C1 = CFrame.Angles(20, 0, 0)
  336. arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
  337. arm1.C1 = CFrame.Angles(20, 0, 0)
  338. wait(0.1)
  339. arm2.C0 = CFrame.new(1.5, 1, 0.5)
  340. arm2.C1 = CFrame.Angles(20, 0, 0)
  341. arm1.C0 = CFrame.new(-1.5, 1, 0.5)
  342. arm1.C1 = CFrame.Angles(20, 0, 0)
  343. end
  344. end
  345.  
  346. function pianop6()
  347. char.Humanoid.WalkSpeed = 0
  348. piano = true
  349. MUSIK6:Play()
  350.  
  351. while piano do
  352. wait(0.1)
  353. arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
  354. arm2.C1 = CFrame.Angles(20, 0, 0)
  355. arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
  356. arm1.C1 = CFrame.Angles(20, 0, 0)
  357. wait(0.1)
  358. arm2.C0 = CFrame.new(1.5, 1, 0.5)
  359. arm2.C1 = CFrame.Angles(20, 0, 0)
  360. arm1.C0 = CFrame.new(-1.5, 1, 0.5)
  361. arm1.C1 = CFrame.Angles(20, 0, 0)
  362. end
  363. end
  364.  
  365. function pianop7()
  366. char.Humanoid.WalkSpeed = 0
  367. piano = true
  368. MUSIK7:Play()
  369.  
  370. while piano do
  371. wait(0.1)
  372. arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
  373. arm2.C1 = CFrame.Angles(20, 0, 0)
  374. arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
  375. arm1.C1 = CFrame.Angles(20, 0, 0)
  376. wait(0.1)
  377. arm2.C0 = CFrame.new(1.5, 1, 0.5)
  378. arm2.C1 = CFrame.Angles(20, 0, 0)
  379. arm1.C0 = CFrame.new(-1.5, 1, 0.5)
  380. arm1.C1 = CFrame.Angles(20, 0, 0)
  381. end
  382. end
  383.  
  384. function stop2()
  385. char.Humanoid.WalkSpeed = 16
  386. MUSIK2:Stop()
  387. MUSIK:Stop()
  388. MUSIK3:Stop()
  389. MUSIK4:Stop()
  390. MUSIK5:Stop()
  391. piano = false
  392. arm2.C0 = CFrame.new(1.5, 1, 0.5)
  393. arm2.C1 = CFrame.Angles(20, 0, 0)
  394. arm1.C0 = CFrame.new(-1.5, 1, 0.5)
  395. arm1.C1 = CFrame.Angles(20, 0, 0)
  396. end
  397.  
  398. mouse.KeyDown:connect(function(Press)
  399. Press=Press:lower()
  400. if Press=="z" and piano == false then
  401. pianop()
  402. end
  403. if Press=="c" and piano == false then
  404. pianop2()
  405. end
  406. if Press=="v" and piano == false then
  407. pianop3()
  408. end
  409. if Press=="b" and piano == false then
  410. pianop4()
  411. end
  412. if Press=="m" and piano == false then
  413. pianop5()
  414. end
  415. if Press=="l" and piano == false then
  416. pianop6()
  417. end
  418. if Press=="g" and piano == false then
  419. pianop7()
  420. end
  421. if Press=="x" and piano == true then
  422. stop2()
  423. end
  424. end)
  425. local FavIDs = {
  426. 340106355, --Nefl Crystals
  427. 927529620, --Dimension
  428. 876981900, --Fantasy
  429. 398987889, --Ordinary Days
  430. 1117396305, --Oh wait, it's you.
  431. 885996042, --Action Winter Journey
  432. 919231299, --Sprawling Idiot Effigy
  433. 743466274, --Good Day Sunshine
  434. 727411183 --Knife Fight
  435. }
  436.  
  437.  
  438.  
  439. --The reality of my life isn't real but a Universe -makhail07
  440. wait()
  441. local plr = game:service'Players'.LocalPlayer
  442. print('Local User is '..plr.Name)
  443. local char = plr.Character
  444. local hum = char.Humanoid
  445. local ra = char["Right Arm"]
  446. local la= char["Left Arm"]
  447. local rl= char["Right Leg"]
  448. local ll = char["Left Leg"]
  449. local hed = char.Head
  450. local root = char.HumanoidRootPart
  451. local rootj = root.RootJoint
  452. local tors = char.Torso
  453. local mouse = plr:GetMouse()
  454. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  455. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  456. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  457. local RbxUtility = LoadLibrary("RbxUtility")
  458. local Create = RbxUtility.Create
  459. local CanUse = true
  460. -------------------------------------------------------
  461. --Start Good Stuff--
  462. -------------------------------------------------------
  463. CF = CFrame.new
  464. angles = CFrame.Angles
  465. attack = false
  466. Euler = CFrame.fromEulerAnglesXYZ
  467. Rad = math.rad
  468. IT = Instance.new
  469. BrickC = BrickColor.new
  470. Cos = math.cos
  471. Acos = math.acos
  472. Sin = math.sin
  473. Asin = math.asin
  474. Abs = math.abs
  475. Mrandom = math.random
  476. Floor = math.floor
  477. -------------------------------------------------------
  478. --End Good Stuff--
  479. -------------------------------------------------------
  480.  
  481. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  482. RSH, LSH = nil, nil
  483. RW = Instance.new("Weld")
  484. LW = Instance.new("Weld")
  485. RH = tors["Right Hip"]
  486. LH = tors["Left Hip"]
  487. RSH = tors["Right Shoulder"]
  488. LSH = tors["Left Shoulder"]
  489. RSH.Parent = nil
  490. LSH.Parent = nil
  491. RW.Name = "RW"
  492. RW.Part0 = tors
  493. RW.C0 = CF(1.5, 0.5, 0)
  494. RW.C1 = CF(0, 0.5, 0)
  495. RW.Part1 = ra
  496. RW.Parent = tors
  497. LW.Name = "LW"
  498. LW.Part0 = tors
  499. LW.C0 = CF(-1.5, 0.5, 0)
  500. LW.C1 = CF(0, 0.5, 0)
  501. LW.Part1 = la
  502. LW.Parent = tors
  503. Effects = {}
  504.  
  505. -------------------------------------------------------
  506. --Start HeartBeat--
  507. -------------------------------------------------------
  508. ArtificialHB = Instance.new("BindableEvent", script)
  509. ArtificialHB.Name = "Heartbeat"
  510. script:WaitForChild("Heartbeat")
  511.  
  512. frame = 1 / 60
  513. tf = 0
  514. allowframeloss = false
  515. tossremainder = false
  516.  
  517.  
  518. lastframe = tick()
  519. script.Heartbeat:Fire()
  520.  
  521.  
  522. game:GetService("RunService").Heartbeat:connect(function(s, p)
  523. tf = tf + s
  524. if tf >= frame then
  525. if allowframeloss then
  526. script.Heartbeat:Fire()
  527. lastframe = tick()
  528. else
  529. for i = 1, math.floor(tf / frame) do
  530. script.Heartbeat:Fire()
  531. end
  532. lastframe = tick()
  533. end
  534. if tossremainder then
  535. tf = 0
  536. else
  537. tf = tf - frame * math.floor(tf / frame)
  538. end
  539. end
  540. end)
  541. -------------------------------------------------------
  542. --End HeartBeat--
  543. -------------------------------------------------------
  544.  
  545. -------------------------------------------------------
  546. --Start Important Functions--
  547. -------------------------------------------------------
  548. function swait(num)
  549. if num == 0 or num == nil then
  550. game:service("RunService").Stepped:wait(0)
  551. else
  552. for i = 0, num do
  553. game:service("RunService").Stepped:wait(0)
  554. end
  555. end
  556. end
  557. function thread(f)
  558. coroutine.resume(coroutine.create(f))
  559. end
  560. function clerp(a, b, t)
  561. local qa = {
  562. QuaternionFromCFrame(a)
  563. }
  564. local qb = {
  565. QuaternionFromCFrame(b)
  566. }
  567. local ax, ay, az = a.x, a.y, a.z
  568. local bx, by, bz = b.x, b.y, b.z
  569. local _t = 1 - t
  570. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  571. end
  572. function QuaternionFromCFrame(cf)
  573. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  574. local trace = m00 + m11 + m22
  575. if trace > 0 then
  576. local s = math.sqrt(1 + trace)
  577. local recip = 0.5 / s
  578. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  579. else
  580. local i = 0
  581. if m00 < m11 then
  582. i = 1
  583. end
  584. if m22 > (i == 0 and m00 or m11) then
  585. i = 2
  586. end
  587. if i == 0 then
  588. local s = math.sqrt(m00 - m11 - m22 + 1)
  589. local recip = 0.5 / s
  590. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  591. elseif i == 1 then
  592. local s = math.sqrt(m11 - m22 - m00 + 1)
  593. local recip = 0.5 / s
  594. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  595. elseif i == 2 then
  596. local s = math.sqrt(m22 - m00 - m11 + 1)
  597. local recip = 0.5 / s
  598. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  599. end
  600. end
  601. end
  602. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  603. local xs, ys, zs = x + x, y + y, z + z
  604. local wx, wy, wz = w * xs, w * ys, w * zs
  605. local xx = x * xs
  606. local xy = x * ys
  607. local xz = x * zs
  608. local yy = y * ys
  609. local yz = y * zs
  610. local zz = z * zs
  611. 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))
  612. end
  613. function QuaternionSlerp(a, b, t)
  614. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  615. local startInterp, finishInterp
  616. if cosTheta >= 1.0E-4 then
  617. if 1 - cosTheta > 1.0E-4 then
  618. local theta = math.acos(cosTheta)
  619. local invSinTheta = 1 / Sin(theta)
  620. startInterp = Sin((1 - t) * theta) * invSinTheta
  621. finishInterp = Sin(t * theta) * invSinTheta
  622. else
  623. startInterp = 1 - t
  624. finishInterp = t
  625. end
  626. elseif 1 + cosTheta > 1.0E-4 then
  627. local theta = math.acos(-cosTheta)
  628. local invSinTheta = 1 / Sin(theta)
  629. startInterp = Sin((t - 1) * theta) * invSinTheta
  630. finishInterp = Sin(t * theta) * invSinTheta
  631. else
  632. startInterp = t - 1
  633. finishInterp = t
  634. end
  635. 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
  636. end
  637. function rayCast(Position, Direction, Range, Ignore)
  638. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  639. end
  640.  
  641.  
  642. -------------------------------------------------------
  643. --Start Damage Function--
  644. -------------------------------------------------------
  645. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  646. if hit.Parent == nil then
  647. return
  648. end
  649. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  650. for _, v in pairs(hit.Parent:children()) do
  651. if v:IsA("Humanoid") then
  652. h = v
  653. end
  654. end
  655. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  656. warn'No R15 allowed'
  657. hit.Parent:FindFirstChild("Head"):BreakJoints()
  658. end
  659.  
  660. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  661. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  662. if hit.Parent.DebounceHit.Value == true then
  663. return
  664. end
  665. end
  666. if insta == true then
  667. hit.Parent:FindFirstChild("Head"):BreakJoints()
  668. end
  669. local c = Create("ObjectValue"){
  670. Name = "creator",
  671. Value = game:service("Players").LocalPlayer,
  672. Parent = h,
  673. }
  674. game:GetService("Debris"):AddItem(c, .5)
  675. if HitSound ~= nil and HitPitch ~= nil then
  676. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  677. end
  678. local Damage = math.random(minim, maxim)
  679. local blocked = false
  680. local block = hit.Parent:findFirstChild("Block")
  681. if block ~= nil then
  682. if block.className == "IntValue" then
  683. if block.Value > 0 then
  684. blocked = true
  685. block.Value = block.Value - 1
  686. print(block.Value)
  687. end
  688. end
  689. end
  690. if blocked == false then
  691. h.Health = h.Health - Damage
  692. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  693. else
  694. h.Health = h.Health - (Damage / 2)
  695. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  696. end
  697. if Type == "Knockdown" then
  698. local hum = hit.Parent.Humanoid
  699. hum.PlatformStand = true
  700. coroutine.resume(coroutine.create(function(HHumanoid)
  701. swait(1)
  702. HHumanoid.PlatformStand = false
  703. end), hum)
  704. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  705. local bodvol = Create("BodyVelocity"){
  706. velocity = angle * knockback,
  707. P = 5000,
  708. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  709. Parent = hit,
  710. }
  711. local rl = Create("BodyAngularVelocity"){
  712. P = 3000,
  713. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  714. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  715. Parent = hit,
  716. }
  717. game:GetService("Debris"):AddItem(bodvol, .5)
  718. game:GetService("Debris"):AddItem(rl, .5)
  719. elseif Type == "Normal" then
  720. local vp = Create("BodyVelocity"){
  721. P = 500,
  722. maxForce = Vector3.new(math.huge, 0, math.huge),
  723. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  724. }
  725. if knockback > 0 then
  726. vp.Parent = hit.Parent.Torso
  727. end
  728. game:GetService("Debris"):AddItem(vp, .5)
  729. elseif Type == "Up" then
  730. local bodyVelocity = Create("BodyVelocity"){
  731. velocity = Vector3.new(0, 20, 0),
  732. P = 5000,
  733. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  734. Parent = hit,
  735. }
  736. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  737. elseif Type == "DarkUp" then
  738. coroutine.resume(coroutine.create(function()
  739. for i = 0, 1, 0.1 do
  740. swait()
  741. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  742. end
  743. end))
  744. local bodyVelocity = Create("BodyVelocity"){
  745. velocity = Vector3.new(0, 20, 0),
  746. P = 5000,
  747. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  748. Parent = hit,
  749. }
  750. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  751. elseif Type == "Snare" then
  752. local bp = Create("BodyPosition"){
  753. P = 2000,
  754. D = 100,
  755. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  756. position = hit.Parent.Torso.Position,
  757. Parent = hit.Parent.Torso,
  758. }
  759. game:GetService("Debris"):AddItem(bp, 1)
  760. elseif Type == "Freeze" then
  761. local BodPos = Create("BodyPosition"){
  762. P = 50000,
  763. D = 1000,
  764. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  765. position = hit.Parent.Torso.Position,
  766. Parent = hit.Parent.Torso,
  767. }
  768. local BodGy = Create("BodyGyro") {
  769. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  770. P = 20e+003,
  771. Parent = hit.Parent.Torso,
  772. cframe = hit.Parent.Torso.CFrame,
  773. }
  774. hit.Parent.Torso.Anchored = true
  775. coroutine.resume(coroutine.create(function(Part)
  776. swait(1.5)
  777. Part.Anchored = false
  778. end), hit.Parent.Torso)
  779. game:GetService("Debris"):AddItem(BodPos, 3)
  780. game:GetService("Debris"):AddItem(BodGy, 3)
  781. end
  782. local debounce = Create("BoolValue"){
  783. Name = "DebounceHit",
  784. Parent = hit.Parent,
  785. Value = true,
  786. }
  787. game:GetService("Debris"):AddItem(debounce, Delay)
  788. c = Create("ObjectValue"){
  789. Name = "creator",
  790. Value = Player,
  791. Parent = h,
  792. }
  793. game:GetService("Debris"):AddItem(c, .5)
  794. end
  795. end
  796. -------------------------------------------------------
  797. --End Damage Function--
  798. -------------------------------------------------------
  799.  
  800. -------------------------------------------------------
  801. --Start Damage Function Customization--
  802. -------------------------------------------------------
  803. function ShowDamage(Pos, Text, Time, Color)
  804. local Rate = (1 / 30)
  805. local Pos = (Pos or Vector3.new(0, 0, 0))
  806. local Text = (Text or "")
  807. local Time = (Time or 2)
  808. local Color = (Color or Color3.new(1, 0, 1))
  809. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  810. EffectPart.Anchored = true
  811. local BillboardGui = Create("BillboardGui"){
  812. Size = UDim2.new(3, 0, 3, 0),
  813. Adornee = EffectPart,
  814. Parent = EffectPart,
  815. }
  816. local TextLabel = Create("TextLabel"){
  817. BackgroundTransparency = 1,
  818. Size = UDim2.new(1, 0, 1, 0),
  819. Text = Text,
  820. Font = "Highway",
  821. TextColor3 = Color,
  822. TextScaled = true,
  823. Parent = BillboardGui,
  824. }
  825. game.Debris:AddItem(EffectPart, (Time))
  826. EffectPart.Parent = game:GetService("Workspace")
  827. delay(0, function()
  828. local Frames = (Time / Rate)
  829. for Frame = 1, Frames do
  830. wait(Rate)
  831. local Percent = (Frame / Frames)
  832. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  833. TextLabel.TextTransparency = Percent
  834. end
  835. if EffectPart and EffectPart.Parent then
  836. EffectPart:Destroy()
  837. end
  838. end)
  839. end
  840. -------------------------------------------------------
  841. --End Damage Function Customization--
  842. -------------------------------------------------------
  843.  
  844. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  845. for _, c in pairs(workspace:children()) do
  846. local hum = c:findFirstChild("Humanoid")
  847. if hum ~= nil then
  848. local head = c:findFirstChild("Head")
  849. if head ~= nil then
  850. local targ = head.Position - Part.Position
  851. local mag = targ.magnitude
  852. if magni >= mag and c.Name ~= plr.Name then
  853. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=", 1.2)
  854. end
  855. end
  856. end
  857. end
  858. end
  859.  
  860.  
  861. CFuncs = {
  862. Part = {
  863. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  864. local Part = Create("Part")({
  865. Parent = Parent,
  866. Reflectance = Reflectance,
  867. Transparency = Transparency,
  868. CanCollide = false,
  869. Locked = true,
  870. BrickColor = BrickColor.new(tostring(BColor)),
  871. Name = Name,
  872. Size = Size,
  873. Material = Material
  874. })
  875. RemoveOutlines(Part)
  876. return Part
  877. end
  878. },
  879. Mesh = {
  880. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  881. local Msh = Create(Mesh)({
  882. Parent = Part,
  883. Offset = OffSet,
  884. Scale = Scale
  885. })
  886. if Mesh == "SpecialMesh" then
  887. Msh.MeshType = MeshType
  888. Msh.MeshId = MeshId
  889. end
  890. return Msh
  891. end
  892. },
  893. Mesh = {
  894. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  895. local Msh = Create(Mesh)({
  896. Parent = Part,
  897. Offset = OffSet,
  898. Scale = Scale
  899. })
  900. if Mesh == "SpecialMesh" then
  901. Msh.MeshType = MeshType
  902. Msh.MeshId = MeshId
  903. end
  904. return Msh
  905. end
  906. },
  907. Weld = {
  908. Create = function(Parent, Part0, Part1, C0, C1)
  909. local Weld = Create("Weld")({
  910. Parent = Parent,
  911. Part0 = Part0,
  912. Part1 = Part1,
  913. C0 = C0,
  914. C1 = C1
  915. })
  916. return Weld
  917. end
  918. },
  919. Sound = {
  920. Create = function(id, par, vol, pit)
  921. coroutine.resume(coroutine.create(function()
  922. local S = Create("Sound")({
  923. Volume = vol,
  924. Pitch = pit or 1,
  925. SoundId = id,
  926. Parent = par or workspace
  927. })
  928. wait()
  929. S:play()
  930. game:GetService("Debris"):AddItem(S, 6)
  931. end))
  932. end
  933. },
  934. ParticleEmitter = {
  935. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  936. local fp = Create("ParticleEmitter")({
  937. Parent = Parent,
  938. Color = ColorSequence.new(Color1, Color2),
  939. LightEmission = LightEmission,
  940. Size = Size,
  941. Texture = Texture,
  942. Transparency = Transparency,
  943. ZOffset = ZOffset,
  944. Acceleration = Accel,
  945. Drag = Drag,
  946. LockedToPart = LockedToPart,
  947. VelocityInheritance = VelocityInheritance,
  948. EmissionDirection = EmissionDirection,
  949. Enabled = Enabled,
  950. Lifetime = LifeTime,
  951. Rate = Rate,
  952. Rotation = Rotation,
  953. RotSpeed = RotSpeed,
  954. Speed = Speed,
  955. VelocitySpread = VelocitySpread
  956. })
  957. return fp
  958. end
  959. }
  960. }
  961. function RemoveOutlines(part)
  962. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  963. end
  964. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  965. local Part = Create("Part")({
  966. formFactor = FormFactor,
  967. Parent = Parent,
  968. Reflectance = Reflectance,
  969. Transparency = Transparency,
  970. CanCollide = false,
  971. Locked = true,
  972. BrickColor = BrickColor.new(tostring(BColor)),
  973. Name = Name,
  974. Size = Size,
  975. Material = Material
  976. })
  977. RemoveOutlines(Part)
  978. return Part
  979. end
  980. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  981. local Msh = Create(Mesh)({
  982. Parent = Part,
  983. Offset = OffSet,
  984. Scale = Scale
  985. })
  986. if Mesh == "SpecialMesh" then
  987. Msh.MeshType = MeshType
  988. Msh.MeshId = MeshId
  989. end
  990. return Msh
  991. end
  992. function CreateWeld(Parent, Part0, Part1, C0, C1)
  993. local Weld = Create("Weld")({
  994. Parent = Parent,
  995. Part0 = Part0,
  996. Part1 = Part1,
  997. C0 = C0,
  998. C1 = C1
  999. })
  1000. return Weld
  1001. end
  1002.  
  1003.  
  1004. -------------------------------------------------------
  1005. --Start Effect Function--
  1006. -------------------------------------------------------
  1007. EffectModel = Instance.new("Model", char)
  1008. Effects = {
  1009. Block = {
  1010. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1011. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1012. prt.Anchored = true
  1013. prt.CFrame = cframe
  1014. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1015. game:GetService("Debris"):AddItem(prt, 10)
  1016. if Type == 1 or Type == nil then
  1017. table.insert(Effects, {
  1018. prt,
  1019. "Block1",
  1020. delay,
  1021. x3,
  1022. y3,
  1023. z3,
  1024. msh
  1025. })
  1026. elseif Type == 2 then
  1027. table.insert(Effects, {
  1028. prt,
  1029. "Block2",
  1030. delay,
  1031. x3,
  1032. y3,
  1033. z3,
  1034. msh
  1035. })
  1036. else
  1037. table.insert(Effects, {
  1038. prt,
  1039. "Block3",
  1040. delay,
  1041. x3,
  1042. y3,
  1043. z3,
  1044. msh
  1045. })
  1046. end
  1047. end
  1048. },
  1049. Sphere = {
  1050. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1051. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1052. prt.Anchored = true
  1053. prt.CFrame = cframe
  1054. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1055. game:GetService("Debris"):AddItem(prt, 10)
  1056. table.insert(Effects, {
  1057. prt,
  1058. "Cylinder",
  1059. delay,
  1060. x3,
  1061. y3,
  1062. z3,
  1063. msh
  1064. })
  1065. end
  1066. },
  1067. Cylinder = {
  1068. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1069. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1070. prt.Anchored = true
  1071. prt.CFrame = cframe
  1072. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1073. game:GetService("Debris"):AddItem(prt, 10)
  1074. table.insert(Effects, {
  1075. prt,
  1076. "Cylinder",
  1077. delay,
  1078. x3,
  1079. y3,
  1080. z3,
  1081. msh
  1082. })
  1083. end
  1084. },
  1085. Wave = {
  1086. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1087. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1088. prt.Anchored = true
  1089. prt.CFrame = cframe
  1090. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1091. game:GetService("Debris"):AddItem(prt, 10)
  1092. table.insert(Effects, {
  1093. prt,
  1094. "Cylinder",
  1095. delay,
  1096. x3 / 60,
  1097. y3 / 60,
  1098. z3 / 60,
  1099. msh
  1100. })
  1101. end
  1102. },
  1103. Ring = {
  1104. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1105. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1106. prt.Anchored = true
  1107. prt.CFrame = cframe
  1108. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1109. game:GetService("Debris"):AddItem(prt, 10)
  1110. table.insert(Effects, {
  1111. prt,
  1112. "Cylinder",
  1113. delay,
  1114. x3,
  1115. y3,
  1116. z3,
  1117. msh
  1118. })
  1119. end
  1120. },
  1121. Break = {
  1122. Create = function(brickcolor, cframe, x1, y1, z1)
  1123. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1124. prt.Anchored = true
  1125. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1126. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1127. local num = math.random(10, 50) / 1000
  1128. game:GetService("Debris"):AddItem(prt, 10)
  1129. table.insert(Effects, {
  1130. prt,
  1131. "Shatter",
  1132. num,
  1133. prt.CFrame,
  1134. math.random() - math.random(),
  1135. 0,
  1136. math.random(50, 100) / 100
  1137. })
  1138. end
  1139. },
  1140. Spiral = {
  1141. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1142. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1143. prt.Anchored = true
  1144. prt.CFrame = cframe
  1145. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1146. game:GetService("Debris"):AddItem(prt, 10)
  1147. table.insert(Effects, {
  1148. prt,
  1149. "Cylinder",
  1150. delay,
  1151. x3,
  1152. y3,
  1153. z3,
  1154. msh
  1155. })
  1156. end
  1157. },
  1158. Push = {
  1159. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1160. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1161. prt.Anchored = true
  1162. prt.CFrame = cframe
  1163. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1164. game:GetService("Debris"):AddItem(prt, 10)
  1165. table.insert(Effects, {
  1166. prt,
  1167. "Cylinder",
  1168. delay,
  1169. x3,
  1170. y3,
  1171. z3,
  1172. msh
  1173. })
  1174. end
  1175. }
  1176. }
  1177. -------------------------------------------------------
  1178. --End Effect Function--
  1179. -------------------------------------------------------
  1180. local asd = Instance.new("ParticleEmitter")
  1181. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1182. asd.LightEmission = .1
  1183. asd.Size = NumberSequence.new(0.2)
  1184. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1185. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1186. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1187. asd.Transparency = bbb
  1188. asd.Size = aaa
  1189. asd.ZOffset = .9
  1190. asd.Acceleration = Vector3.new(0, -5, 0)
  1191. asd.LockedToPart = false
  1192. asd.EmissionDirection = "Back"
  1193. asd.Lifetime = NumberRange.new(1, 2)
  1194. asd.Rotation = NumberRange.new(-100, 100)
  1195. asd.RotSpeed = NumberRange.new(-100, 100)
  1196. asd.Speed = NumberRange.new(2)
  1197. asd.Enabled = false
  1198. asd.VelocitySpread = 10000
  1199.  
  1200. function bleed(victim,amount)
  1201. local prtcl = asd:Clone()
  1202. prtcl.Parent = victim
  1203. prtcl:Emit(amount)
  1204. end
  1205.  
  1206.  
  1207.  
  1208. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1209. local NSound = nil
  1210. coroutine.resume(coroutine.create(function()
  1211. NSound = Instance.new("Sound", PARENT)
  1212. NSound.Volume = VOLUME
  1213. NSound.Pitch = PITCH
  1214. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1215. swait()
  1216. NSound:play()
  1217. game:GetService("Debris"):AddItem(NSound, 10)
  1218. end))
  1219. return NSound
  1220. end
  1221.  
  1222.  
  1223. local Weapon = Instance.new("Model")
  1224. function Kill(Target)
  1225. if Target.Parent ~= Weapon and Target:FindFirstChildOfClass("Humanoid") then
  1226. local DummyHead = nil
  1227. local q = Target:GetChildren()
  1228. for i = 1,#q do
  1229. if q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Accessory" and q[i].ClassName ~= "Hat" and q[i].ClassName ~= "Gear" and q[i].ClassName ~= "Sound" then
  1230. if q[i].ClassName == "Humanoid" then
  1231. q[i].PlatformStand = true
  1232. q[i]:ClearAllChildren()
  1233. q[i].Name = "Corpse"
  1234. q[i].MaxHealth = "inf"
  1235. q[i].Health = "inf"
  1236. end
  1237. if q[i].Name == "Head" then
  1238. q[i]:ClearAllChildren()
  1239. q[i]:Remove()
  1240. end
  1241. else
  1242. q[i]:remove()
  1243. end
  1244. end
  1245. end
  1246. end
  1247.  
  1248.  
  1249. function CreateMagicCircle()
  1250. local sinkhole = IT("Part")
  1251. sinkhole.Size = Vector3.new(0,0,0)
  1252. sinkhole.Parent = EffectModel
  1253. sinkhole.Material = "Neon"
  1254. sinkhole.Color = Color3.new(0,0,0)
  1255. sinkhole.Anchored = true
  1256. sinkhole.CanCollide = false
  1257. sinkhole.Transparency = 1
  1258. local decal = IT("Decal",sinkhole)
  1259. decal.Face = "Top"
  1260. decal.Texture = "http://www.roblox.com/asset/?id=124339738"
  1261. local decal2 = IT("Decal",sinkhole)
  1262. decal2.Face = "Bottom"
  1263. decal2.Texture = "http://www.roblox.com/asset/?id=124339738"
  1264. return sinkhole
  1265. end
  1266.  
  1267. function AoEKill(position,radius)
  1268. for i,v in ipairs(workspace:GetChildren()) do
  1269. if v:FindFirstChild("HitBy"..plr.Name) == nil then
  1270. local body = v:GetChildren()
  1271. for part = 1, #body do
  1272. if(v:FindFirstChild("HitBy"..plr.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= char) then
  1273. if(body[part].Position - position).Magnitude < radius then
  1274. if v.ClassName == "Model" then
  1275. if v:FindFirstChild("Humanoid") then
  1276. if v.Humanoid.Health ~= 0 then
  1277. if body[part].Position.Y < position.Y+12 then
  1278. print("Got "..v.Name)
  1279. local defence = Instance.new("BoolValue",v)
  1280. defence.Name = ("HitBy"..plr.Name)
  1281. game:GetService("Debris"):AddItem(defence, 0.01)
  1282. local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1283. local HEAD = v:FindFirstChild("Head")
  1284. HEAD:Remove()
  1285. end
  1286. end
  1287. end
  1288. end
  1289. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1290. end
  1291. end
  1292. end
  1293. end
  1294. end
  1295. end
  1296. -------------------------------------------------------
  1297. --End Important Functions--
  1298. -------------------------------------------------------
  1299.  
  1300.  
  1301. -------------------------------------------------------
  1302. --Start Music Option--
  1303. -------------------------------------------------------
  1304. local Music = Instance.new("Sound",tors)
  1305. Music.Volume = 5.5
  1306. Music.SoundId = "rbxassetid://919231299"
  1307. Music.Looped = true
  1308. Music.Pitch = 1 --Pitcher
  1309. Music:Play()
  1310. -------------------------------------------------------
  1311. --End Music Option--
  1312. -------------------------------------------------------
  1313.  
  1314. local PlayerSize = 1
  1315. local FT,RA,LA,RL,LL = Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh")
  1316. FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1317. RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1318. LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1319. RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1320. LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1321.  
  1322. -------------------------------------------------------
  1323. --Start Attacks N Stuff--
  1324. -------------------------------------------------------
  1325. local sine=0
  1326. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  1327. local Hitboxpart = Instance.new("Part", EffectModel)
  1328. RemoveOutlines(Hitboxpart)
  1329. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  1330. Hitboxpart.CanCollide = false
  1331. Hitboxpart.Transparency = 1
  1332. Hitboxpart.Anchored = true
  1333. Hitboxpart.CFrame = Pose
  1334. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1335. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1336. end
  1337. wait2 = false
  1338. combo = 1
  1339. mouse.Button1Down:connect(function(key)
  1340. if attack == false then
  1341. attack = true
  1342. hum.WalkSpeed = 3.01
  1343. if combo == 1 and wait2 == false then
  1344. wait2 = true
  1345. for i = 0, 1.2, 0.1 do
  1346. swait()
  1347. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3)
  1348. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1349. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  1350. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1351. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  1352. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  1353. end
  1354. for i = 0, .1, 0.1 do
  1355. swait()
  1356. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3)
  1357. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1358. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1)
  1359. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1360. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-65)), 0.3)
  1361. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1362. end
  1363. CreateSound("1209871551", hed, 5, 1)
  1364. for i = 1, 30 do
  1365. swait()
  1366. RA.Parent = ra
  1367. LA.Parent = la
  1368. FT.Parent = tors
  1369. RL.Parent = rl
  1370. LL.Parent = ll
  1371. for _,v in next, char:GetDescendants() do
  1372. if(v:IsA'DataModelMesh')then
  1373. v.Offset = Vector3.new(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100)
  1374. end
  1375. end
  1376. end
  1377. FT.Parent = nil
  1378. RA.Parent = nil
  1379. LA.Parent = nil
  1380. RL.Parent = nil
  1381. LL.Parent = nil
  1382. for _,v in next, char:GetDescendants() do
  1383. if(v:IsA'DataModelMesh')then
  1384. v.Offset = Vector3.new(0,0,0)
  1385. end
  1386. end
  1387. wait(1.5)
  1388. for i = 0, 1.2, 0.1 do
  1389. swait()
  1390. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3)
  1391. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1392. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  1393. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1394. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  1395. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  1396. end
  1397. HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal")
  1398. for i = 0, 1.2, 0.1 do
  1399. swait()
  1400. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3)
  1401. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1402. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1)
  1403. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1404. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-65)), 0.3)
  1405. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1406. end
  1407. combo = 2
  1408. end
  1409. if combo == 2 and wait2 == false then
  1410. wait2 = true
  1411. for i = 0, 1.2, 0.1 do
  1412. swait()
  1413. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-25), math.rad(10), math.rad(-65)), 0.3)
  1414. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1415. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  1416. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1417. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3)
  1418. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3)
  1419. end
  1420. HitboxFunction(ll.CFrame, 0.01, 1, 1, 1, 7, 5, 10, 3, "Normal")
  1421. for i = 0, 1.6, 0.1 do
  1422. swait()
  1423. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(65+255.45*i)), 0.3)
  1424. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1425. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(54), math.rad(0), math.rad(35)), 0.1)
  1426. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-34), math.rad(0), math.rad(-35)), 0.3)
  1427. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3)
  1428. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-4.5), math.rad(-30), math.rad(0)), 0.3)
  1429. end
  1430. combo = 3
  1431. end
  1432. if combo == 3 and wait2 == false then
  1433. for i = 0, 1.2, 0.1 do
  1434. swait()
  1435. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3)
  1436. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1437. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  1438. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1439. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  1440. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  1441. end
  1442. HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal")
  1443. for i = 0, 1.2, 0.1 do
  1444. swait()
  1445. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3)
  1446. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1447. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1)
  1448. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1449. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-65)), 0.3)
  1450. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1451. end
  1452. combo = 1
  1453. end
  1454. hum.WalkSpeed = 16
  1455. wait2 = false
  1456. attack = false
  1457. end
  1458. end)
  1459.  
  1460. function GlitchedTeleport()
  1461. CanUse = false
  1462. CreateSound("333430981", hed, 5, 1)
  1463. for i = 1, 25 do
  1464. swait()
  1465. RA.Parent = ra
  1466. LA.Parent = la
  1467. FT.Parent = tors
  1468. RL.Parent = rl
  1469. LL.Parent = ll
  1470. for _,v in next, char:GetDescendants() do
  1471. if(v:IsA'DataModelMesh')then
  1472. v.Offset = Vector3.new(math.random(-500,500)/200,math.random(-500,500)/200,math.random(-500,500)/200)
  1473. end
  1474. end
  1475. end
  1476. FT.Parent = nil
  1477. RA.Parent = nil
  1478. LA.Parent = nil
  1479. RL.Parent = nil
  1480. LL.Parent = nil
  1481. for _,v in next, char:GetDescendants() do
  1482. if(v:IsA'DataModelMesh')then
  1483. v.Offset = Vector3.new(0,0,0)
  1484. end
  1485. end
  1486. wait(.5)
  1487. root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position)
  1488. CreateSound("289556450", hed, 10, 1)
  1489. for i = 1, 60 do
  1490. swait()
  1491. RA.Parent = ra
  1492. LA.Parent = la
  1493. FT.Parent = tors
  1494. RL.Parent = rl
  1495. LL.Parent = ll
  1496. for _,v in next, char:GetDescendants() do
  1497. if(v:IsA'DataModelMesh')then
  1498. v.Offset = Vector3.new(math.random(-500,500)/200,math.random(-500,500)/200,math.random(-500,500)/200)
  1499. end
  1500. end
  1501. end
  1502. FT.Parent = nil
  1503. RA.Parent = nil
  1504. LA.Parent = nil
  1505. RL.Parent = nil
  1506. LL.Parent = nil
  1507. for _,v in next, char:GetDescendants() do
  1508. if(v:IsA'DataModelMesh')then
  1509. v.Offset = Vector3.new(0,0,0)
  1510. end
  1511. end
  1512. wait(1)
  1513. CanUse = true
  1514. end
  1515.  
  1516. function GlitchedHell()
  1517. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1518. local HITBODY = mouse.Target.Parent
  1519. local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
  1520. local HEAD = HITBODY:FindFirstChild("Head")
  1521. local HUMAN = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1522. if TORS ~= nil and HUMAN ~= nil then
  1523. attack = true
  1524. hum.WalkSpeed = 0
  1525. root.CFrame = TORS.CFrame * CFrame.new(-1,0,3)
  1526. TORS.Anchored = true
  1527. CreateSound("333430981", hed, 5, 1)
  1528. for i = 1, 25 do
  1529. swait()
  1530. RA.Parent = ra
  1531. LA.Parent = la
  1532. FT.Parent = tors
  1533. RL.Parent = rl
  1534. LL.Parent = ll
  1535. for _,v in next, char:GetDescendants() do
  1536. if(v:IsA'DataModelMesh')then
  1537. v.Offset = Vector3.new(math.random(-500,500)/200,math.random(-500,500)/200,math.random(-500,500)/200)
  1538. end
  1539. end
  1540. end
  1541. FT.Parent = nil
  1542. RA.Parent = nil
  1543. LA.Parent = nil
  1544. RL.Parent = nil
  1545. LL.Parent = nil
  1546. for _,v in next, char:GetDescendants() do
  1547. if(v:IsA'DataModelMesh')then
  1548. v.Offset = Vector3.new(0,0,0)
  1549. end
  1550. end
  1551. for i = 0, 1.2, 0.1 do
  1552. swait()
  1553. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3)
  1554. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1555. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  1556. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1557. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  1558. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  1559. end
  1560. wait(.5)
  1561. for i = 0, 2.2, 0.1 do
  1562. swait()
  1563. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(35)), 0.3)
  1564. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1565. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(96), math.rad(0), math.rad(10)), 0.1)
  1566. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1567. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3)
  1568. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1569. end
  1570.  
  1571. for i = 0, 1.2, 0.1 do
  1572. swait()
  1573. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-35)), 0.3)
  1574. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1575. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(25), math.rad(0), math.rad(10)), 0.1)
  1576. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1577. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3)
  1578. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1579. end
  1580. end
  1581. CreateSound("180083298", hed, 10, 1)
  1582. attack = false
  1583. HITBODY:BreakJoints()
  1584. TORS:Remove()
  1585. TORS.Anchored = false
  1586. attack = false
  1587. hum.WalkSpeed = 16
  1588. bleed(HEAD,25)
  1589. end
  1590. end
  1591.  
  1592.  
  1593. function DistortThem()
  1594. CanUse = false
  1595. local HIT = tors.Touched:Connect(function(hit)
  1596. Kill(hit.Parent)
  1597. end)
  1598. for i = 1, 350 do
  1599. swait()
  1600. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(125), math.rad(0), math.rad(10)), 0.1)
  1601. CreateSound("333430981", hed, 1.5, 1)
  1602. RA.Parent = ra
  1603. LA.Parent = la
  1604. FT.Parent = tors
  1605. RL.Parent = rl
  1606. LL.Parent = ll
  1607. for _,v in next, char:GetDescendants() do
  1608. if(v:IsA'DataModelMesh')then
  1609. v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1610. end
  1611. end
  1612. end
  1613. FT.Parent = nil
  1614. RA.Parent = nil
  1615. LA.Parent = nil
  1616. RL.Parent = nil
  1617. LL.Parent = nil
  1618. for _,v in next, char:GetDescendants() do
  1619. if(v:IsA'DataModelMesh')then
  1620. v.Offset = Vector3.new(0,0,0)
  1621. end
  1622. end
  1623. HIT:Disconnect()
  1624. wait(3.5)
  1625. CanUse = true
  1626. end
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632. function DistortHellItSelf()
  1633. attack = true
  1634. CreateSound("907329532", char, 10, 1)
  1635. for i = 1, 45 do
  1636. swait()
  1637. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(10)), 0.1)
  1638. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-165), math.rad(0), math.rad(-10)), 0.3)
  1639. rootj.C0=clerp(rootj.C0,RootCF*CF(0,0,-1.25+0.45*i)*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1640. RA.Parent = ra
  1641. LA.Parent = la
  1642. FT.Parent = tors
  1643. RL.Parent = rl
  1644. LL.Parent = ll
  1645. for _,v in next, char:GetDescendants() do
  1646. if(v:IsA'DataModelMesh')then
  1647. v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1648. end
  1649. end
  1650. end
  1651. FT.Parent = nil
  1652. RA.Parent = nil
  1653. LA.Parent = nil
  1654. RL.Parent = nil
  1655. LL.Parent = nil
  1656. for _,v in next, char:GetDescendants() do
  1657. if(v:IsA'DataModelMesh')then
  1658. v.Offset = Vector3.new(0,0,0)
  1659. end
  1660. end
  1661. for i = 1, 15 do
  1662. swait()
  1663. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  1664. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-0), math.rad(0), math.rad(-90)), 0.3)
  1665.  
  1666. end
  1667. local RING = CreateMagicCircle()
  1668. RING.CFrame = CF(root.Position)*CF(0,-2.8,0)
  1669. for i = 1, 200 do
  1670. swait()
  1671. RING.CFrame = RING.CFrame * angles(Rad(0),Rad(i/15),Rad(0))
  1672. RING.Size = RING.Size + Vector3.new(.6,0,.6)
  1673. end
  1674. AoEKill(RING.Position,RING.Size.X/2)
  1675. coroutine.resume(coroutine.create(function()
  1676. swait(75)
  1677. for i = 1, 50 do
  1678. swait()
  1679. RING.CFrame = RING.CFrame * angles(Rad(0),Rad(-i/2),Rad(0))
  1680. RING.Size = RING.Size - Vector3.new(4,0,4)
  1681. end
  1682. RING:remove()
  1683. end))
  1684. attack = false
  1685. end
  1686.  
  1687.  
  1688. function FearMe()
  1689. CreateSound("449394892", hed, 10, 1)
  1690. for i = 1, 250 do
  1691. swait()
  1692. RA.Parent = ra
  1693. LA.Parent = la
  1694. FT.Parent = tors
  1695. RL.Parent = rl
  1696. LL.Parent = ll
  1697. for _,v in next, char:GetDescendants() do
  1698. if(v:IsA'DataModelMesh')then
  1699. v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1700. end
  1701. end
  1702. end
  1703. FT.Parent = nil
  1704. RA.Parent = nil
  1705. LA.Parent = nil
  1706. RL.Parent = nil
  1707. LL.Parent = nil
  1708. for _,v in next, char:GetDescendants() do
  1709. if(v:IsA'DataModelMesh')then
  1710. v.Offset = Vector3.new(0,0,0)
  1711. end
  1712. end
  1713. end
  1714.  
  1715.  
  1716. function Glitchicide()
  1717. hum.WalkSpeed = 0
  1718. CreateSound("549075092", char, 10, 1)
  1719. CreateSound("549075092", char, 10, 1)
  1720. CreateSound("549075092", char, 10, 1)
  1721. for i = 1, 150 do
  1722. swait()
  1723. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  1724. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-0), math.rad(0), math.rad(-90)), 0.3)
  1725. RA.Parent = ra
  1726. LA.Parent = la
  1727. FT.Parent = tors
  1728. RL.Parent = rl
  1729. LL.Parent = ll
  1730. for _,v in next, char:GetDescendants() do
  1731. if(v:IsA'DataModelMesh')then
  1732. v.Offset = Vector3.new(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100)
  1733. end
  1734. end
  1735. end
  1736. FT.Parent = nil
  1737. RA.Parent = nil
  1738. LA.Parent = nil
  1739. RL.Parent = nil
  1740. LL.Parent = nil
  1741. for _,v in next, char:GetDescendants() do
  1742. if(v:IsA'DataModelMesh')then
  1743. v.Offset = Vector3.new(0,0,0)
  1744. end
  1745. end
  1746. char:Remove()
  1747. end
  1748.  
  1749. -------------------------------------------------------
  1750. --End Attacks N Stuff--
  1751. -------------------------------------------------------
  1752.  
  1753.  
  1754.  
  1755. mouse.KeyDown:connect(function(key)
  1756. if attack == false then
  1757. if key == 'c' and CanUse == true then
  1758. GlitchedTeleport()
  1759. elseif key == 'q' then
  1760. GlitchedHell()
  1761. elseif key == 't' then
  1762. FearMe()
  1763. elseif key == 'e' then
  1764. CreateSound("907333294", hed, 10, 1)
  1765. elseif key == 'f' and CanUse == true then
  1766. DistortThem()
  1767. elseif key == 'x' then
  1768. DistortHellItSelf()
  1769. elseif key == 'p' then
  1770. Glitchicide()
  1771. end
  1772. end
  1773. end)
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779. -------------------------------------------------------
  1780. --Start Whitelist and God Mode--
  1781. -------------------------------------------------------
  1782. ff = Instance.new("ForceField",char)
  1783. ff.Visible = false
  1784. hum.Name = "TTTTTThe Distorted"
  1785. hum.MaxHealth = 1.0E298
  1786. hum.Health = 1.0E298
  1787. game:GetService("RunService"):BindToRenderStep("hONK", 0, function()
  1788. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  1789. hum.MaxHealth = 1.0E298
  1790. hum.Health = 1.0E298
  1791. end
  1792. end)
  1793. -------------------------------------------------------
  1794. --End Whitelist and God Mode--
  1795. -------------------------------------------------------
  1796.  
  1797. -------------------------------------------------------
  1798. --Start Animations--
  1799. -------------------------------------------------------
  1800. local VALUE1 = false
  1801. local equipped = false
  1802. local idle = 0
  1803. local change = 1
  1804. local val = 0
  1805. local toim = 0
  1806. local idleanim = 0.4
  1807. hum.Animator.Parent = nil
  1808. while true do
  1809. swait()
  1810. sine = sine + change
  1811. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1812. local velderp = root.Velocity.y
  1813. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1814. if equipped == true or equipped == false then
  1815. if attack == false then
  1816. idle = idle + 1
  1817. else
  1818. idle = 0
  1819. end
  1820. if 1 < root.Velocity.y and hitfloor == nil then
  1821. Anim = "Jump"
  1822. if attack == false then
  1823. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1824. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1825. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1826. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1827. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -0.3) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1828. RH.C0 = clerp(RH.C0, CF(1, -1, 0.3) * angles(Rad(0), Rad(90), Rad(-20)), 0.3)
  1829. end
  1830. elseif -1 > root.Velocity.y and hitfloor == nil then
  1831. Anim = "Fall"
  1832. if attack == false then
  1833. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  1834. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1835. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1836. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1837. LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1838. RH.C0=clerp(RH.C0, CF(1,-.3-0.1 * Cos(sine / 20), -.6) * angles(Rad(0), Rad(90), Rad(-20)), .3)
  1839. end
  1840. elseif torvel < 1 and hitfloor ~= nil then
  1841. Anim = "Idle"
  1842. change = 1.6
  1843. if attack == false then
  1844. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(4), Rad(0), Rad(0)), 0.15)
  1845. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3)
  1846. if Mrandom(1,15) == 1 then
  1847. tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(Mrandom(-15,15)), Rad(Mrandom(-15,15)), Rad(Mrandom(-15,15))), 1)
  1848. end
  1849. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-1.5), Rad(0), Rad(10)), 0.15)
  1850. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-1.5), Rad(0), Rad(10)), 0.15)
  1851. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(15 - 4 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
  1852. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(15 - 4 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
  1853. end
  1854. if VALUE1 == false and math.random(1,55) == 1 then
  1855. coroutine.resume(coroutine.create(function()
  1856. VALUE1 = true
  1857. for i = 1, 25 do
  1858. swait()
  1859. RA.Parent = ra
  1860. LA.Parent = la
  1861. FT.Parent = tors
  1862. RL.Parent = rl
  1863. LL.Parent = ll
  1864. for _,v in next, char:GetDescendants() do
  1865. if(v:IsA'DataModelMesh')then
  1866. v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1867. end
  1868. end
  1869. end
  1870. VALUE1 = false
  1871. FT.Parent = nil
  1872. RA.Parent = nil
  1873. LA.Parent = nil
  1874. RL.Parent = nil
  1875. LL.Parent = nil
  1876. for _,v in next, char:GetDescendants() do
  1877. if(v:IsA'DataModelMesh')then
  1878. v.Offset = Vector3.new(0,0,0)
  1879. end
  1880. end
  1881. end))
  1882. end
  1883. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1884. Anim = "Walk"
  1885. change = 1
  1886. if attack == false then
  1887. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(7-2.5 * Cos(sine / 3.5)), Rad(0), Rad(10 * Cos(sine / 7))), 0.15)
  1888. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1889. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.1 * Cos(sine / 3.5), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-1.5), Rad(0), Rad(70) * Cos(sine / 7) ), 0.15)
  1890. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.1 * Cos(sine / 3.5), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-1.5), Rad(0), Rad(70) * Cos(sine / 7) ), 0.15)
  1891. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(70) * Cos(sine / 7) , Rad(0), Rad(15)), 0.1)
  1892. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0), Rad(-15)), 0.1)
  1893. end
  1894. if VALUE1 == false and math.random(1,55) == 1 then
  1895. coroutine.resume(coroutine.create(function()
  1896. VALUE1 = true
  1897. for i = 1, 25 do
  1898. swait()
  1899. RA.Parent = ra
  1900. LA.Parent = la
  1901. FT.Parent = tors
  1902. RL.Parent = rl
  1903. LL.Parent = ll
  1904. for _,v in next, char:GetDescendants() do
  1905. if(v:IsA'DataModelMesh')then
  1906. v.Offset = Vector3.new(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  1907. end
  1908. end
  1909. end
  1910. VALUE1 = false
  1911. FT.Parent = nil
  1912. RA.Parent = nil
  1913. LA.Parent = nil
  1914. RL.Parent = nil
  1915. LL.Parent = nil
  1916. for _,v in next, char:GetDescendants() do
  1917. if(v:IsA'DataModelMesh')then
  1918. v.Offset = Vector3.new(0,0,0)
  1919. end
  1920. end
  1921. end))
  1922. end
  1923. end
  1924. end
  1925. if 0 < #Effects then
  1926. for e = 1, #Effects do
  1927. if Effects[e] ~= nil then
  1928. local Thing = Effects[e]
  1929. if Thing ~= nil then
  1930. local Part = Thing[1]
  1931. local Mode = Thing[2]
  1932. local Delay = Thing[3]
  1933. local IncX = Thing[4]
  1934. local IncY = Thing[5]
  1935. local IncZ = Thing[6]
  1936. if 1 >= Thing[1].Transparency then
  1937. if Thing[2] == "Block1" then
  1938. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1939. local Mesh = Thing[1].Mesh
  1940. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1941. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1942. elseif Thing[2] == "Block2" then
  1943. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1944. local Mesh = Thing[7]
  1945. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1946. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1947. elseif Thing[2] == "Block3" then
  1948. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1949. local Mesh = Thing[7]
  1950. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1951. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1952. elseif Thing[2] == "Cylinder" then
  1953. local Mesh = Thing[1].Mesh
  1954. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1955. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1956. elseif Thing[2] == "Blood" then
  1957. local Mesh = Thing[7]
  1958. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1959. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1960. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1961. elseif Thing[2] == "Elec" then
  1962. local Mesh = Thing[1].Mesh
  1963. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1964. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1965. elseif Thing[2] == "Disappear" then
  1966. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1967. elseif Thing[2] == "Shatter" then
  1968. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1969. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1970. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1971. Thing[6] = Thing[6] + Thing[5]
  1972. end
  1973. else
  1974. Part.Parent = nil
  1975. table.remove(Effects, e)
  1976. end
  1977. end
  1978. end
  1979. end
  1980. end
  1981. end
  1982. -------------------------------------------------------
  1983. --End Animations And Script--
  1984. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement