Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.91 KB | None | 0 0
  1. -- Created by Nebula_Zorua --
  2. -- Glitch --
  3. -- Smile for the ca-aaaaaa-amera~ --
  4. -- Discord: Nebula the Zorua#6969
  5. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  6.  
  7.  
  8. --// Initializing \\--
  9. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  10. local Plrs = S.Players
  11. local Plr = Plrs.LocalPlayer
  12. local Char = Plr.Character
  13. local Hum = Char:FindFirstChildOfClass'Humanoid'
  14. local RArm = Char["Right Arm"]
  15. local LArm = Char["Left Arm"]
  16. local RLeg = Char["Right Leg"]
  17. local LLeg = Char["Left Leg"]
  18. local Root = Char:FindFirstChild'HumanoidRootPart'
  19. local Torso = Char.Torso
  20. local Head = Char.Head
  21. local NeutralAnims = true
  22. local Attack = false
  23. local BloodPuddles = {}
  24. local Effects = {}
  25. local Debounces = {Debounces={}}
  26. local Mouse = Plr:GetMouse()
  27. local Hit = {}
  28. local Sine = 0
  29. local Change = 1
  30.  
  31. Hum.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  32. --// Debounce System \\--
  33.  
  34.  
  35. function Debounces:New(name,cooldown)
  36. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  37. setmetatable(aaaaa,{__index = Debounces})
  38. Debounces.Debounces[name] = aaaaa
  39. return aaaaa
  40. end
  41.  
  42. function Debounces:Use(overrideUsable)
  43. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  44. if(self.Usable or overrideUsable)then
  45. self.Usable = false
  46. self.CoolingDown = true
  47. local LastUse = time()
  48. self.LastUse = LastUse
  49. delay(self.Cooldown or 2,function()
  50. if(self.LastUse == LastUse)then
  51. self.CoolingDown = false
  52. self.Usable = true
  53. end
  54. end)
  55. end
  56. end
  57.  
  58. function Debounces:Get(name)
  59. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  60. for i,v in next, Debounces.Debounces do
  61. if(i == name)then
  62. return v;
  63. end
  64. end
  65. end
  66.  
  67. function Debounces:GetProgressPercentage()
  68. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  69. if(self.CoolingDown and not self.Usable)then
  70. return math.max(
  71. math.floor(
  72. (
  73. (time()-self.LastUse)/self.Cooldown or 2
  74. )*100
  75. )
  76. )
  77. else
  78. return 100
  79. end
  80. end
  81.  
  82. --// Shortcut Variables \\--
  83. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  84. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  85. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  86. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  87. local R3 = {N=Region3.new}
  88. local De = S.Debris
  89. local WS = workspace
  90. local Lght = S.Lighting
  91. local RepS = S.ReplicatedStorage
  92. local IN = Instance.new
  93. --// Instance Creation Functions \\--
  94.  
  95. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  96. local Sound = IN("Sound")
  97. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  98. Sound.Pitch = pitch or 1
  99. Sound.Volume = volume or 1
  100. Sound.Looped = looped or false
  101. if(autoPlay)then
  102. coroutine.wrap(function()
  103. repeat wait() until Sound.IsLoaded
  104. Sound.Playing = autoPlay or false
  105. end)()
  106. end
  107. if(not looped and effect)then
  108. Sound.Stopped:connect(function()
  109. Sound.Volume = 0
  110. Sound:destroy()
  111. end)
  112. elseif(effect)then
  113. warn("Sound can't be looped and a sound effect!")
  114. end
  115. Sound.Parent =parent or Torso
  116. return Sound
  117. end
  118. function Part(parent,color,material,size,cframe,anchored,cancollide)
  119. local part = IN("Part")
  120. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  121. part.Material = material or Enum.Material.SmoothPlastic
  122. part.TopSurface,part.BottomSurface=10,10
  123. part.Size = size or V3.N(1,1,1)
  124. part.CFrame = cframe or CF.N(0,0,0)
  125. part.Anchored = anchored or true
  126. part.CanCollide = cancollide or false
  127. part.Parent = parent or Char
  128. return part
  129. end
  130. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  131. local part = IN("SpecialMesh")
  132. part.MeshId = meshid or ""
  133. part.TextureId = textid or ""
  134. part.Scale = scale or V3.N(1,1,1)
  135. part.Offset = offset or V3.N(0,0,0)
  136. part.MeshType = meshtype or Enum.MeshType.Sphere
  137. part.Parent = parent
  138. return part
  139. end
  140.  
  141. NewInstance = function(instance,parent,properties)
  142. local inst = Instance.new(instance,parent)
  143. if(properties)then
  144. for i,v in next, properties do
  145. pcall(function() inst[i] = v end)
  146. end
  147. end
  148. return inst;
  149. end
  150.  
  151.  
  152.  
  153. --// Extended ROBLOX tables \\--
  154. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  155. --// Customization \\--
  156.  
  157. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  158. local Remove_Hats = false
  159. local Remove_Clothing = false
  160. local PlayerSize = 1
  161. local DamageColor = BrickColor.new'Institutional white'
  162. local MusicId = 1470848774
  163. local Twitching = false
  164. local ForcedTwitching = false
  165. local TwitchTime = 0
  166. local Filter = true
  167.  
  168. local TimePos = 0
  169. local ReverseTime = 0
  170. --// Weapon and GUI creation, and Character Customization \\--
  171.  
  172. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  173. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  174. local Effects = IN("Folder",Char)
  175. Effects.Name = "Effects"
  176.  
  177. Instance.ClearChildrenOfClass(Head,"Decal")
  178.  
  179. NewInstance("Decal",Head,{Texture='rbxassetid://1322800884',Face=Enum.NormalId.Front})
  180. local Music = Sound(Torso,MusicId,1,3,true,false,true)
  181.  
  182. if(PlayerSize ~= 1)then
  183. for _,v in next, Char:GetDescendats() do
  184. if(v:IsA'BasePart')then
  185. v.Size = v.Size * PlayerSize
  186. end
  187. end
  188. end
  189.  
  190. --// Stop animations \\--
  191. for _,v in next, Hum:GetPlayingAnimationTracks() do
  192. v:Stop();
  193. end
  194.  
  195. pcall(game.Destroy,Char:FindFirstChild'Animate')
  196. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  197.  
  198. --// Joints \\--
  199.  
  200. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  201. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  202. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  203. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  204. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  205. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  206.  
  207. local LSC0 = LS.C0
  208. local RSC0 = RS.C0
  209. local NKC0 = NK.C0
  210. local LHC0 = LH.C0
  211. local RHC0 = RH.C0
  212. local RJC0 = RJ.C0
  213.  
  214. --// Artificial HB \\--
  215.  
  216. local ArtificialHB = IN("BindableEvent", script)
  217. ArtificialHB.Name = "Heartbeat"
  218.  
  219. script:WaitForChild("Heartbeat")
  220.  
  221. local tf = 0
  222. local allowframeloss = false
  223. local tossremainder = false
  224. local lastframe = tick()
  225. local frame = 1/Frame_Speed
  226. ArtificialHB:Fire()
  227.  
  228. game:GetService("RunService").Heartbeat:connect(function(s, p)
  229. tf = tf + s
  230. if tf >= frame then
  231. if allowframeloss then
  232. script.Heartbeat:Fire()
  233. lastframe = tick()
  234. else
  235. for i = 1, math.floor(tf / frame) do
  236. ArtificialHB:Fire()
  237. end
  238. lastframe = tick()
  239. end
  240. if tossremainder then
  241. tf = 0
  242. else
  243. tf = tf - frame * math.floor(tf / frame)
  244. end
  245. end
  246. end)
  247.  
  248. function swait(num)
  249. if num == 0 or num == nil then
  250. ArtificialHB.Event:wait()
  251. else
  252. for i = 0, num do
  253. ArtificialHB.Event:wait()
  254. end
  255. end
  256. end
  257.  
  258.  
  259. --// Effect Function(s) \\--
  260.  
  261. local DownCharacters = {"̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣",}
  262. local UpCharacters = {"̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈́","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚",}
  263. local MidCharacters = {"̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͏","͜","͝","͞","͟","͠","͢","̸","̷","͡","҉",}
  264.  
  265. function IsUnicode(c)
  266. for i = 128, 255 do
  267. if(string.char(i) == string.char(string.byte(c)))then
  268. return true
  269. end
  270. end
  271. return false
  272. end
  273.  
  274. function IsZalgoChar(c)
  275. for i = 1, #UpCharacters do
  276. if(c == UpCharacters[i])then
  277. return true
  278. end
  279. end
  280. for i = 1, #DownCharacters do
  281. if(c == DownCharacters[i])then
  282. return true
  283. end
  284. end
  285. for i = 1, #MidCharacters do
  286. if(c == MidCharacters[i])then
  287. return true
  288. end
  289. end
  290. return false
  291. end
  292.  
  293. function Zalgo(str,up,mid,down,streng)
  294. local function rand(max)
  295. return math.floor(M.RNG() * max);
  296. end
  297. local newTxt = "";
  298. for i = 1, #str do
  299. if(not IsZalgoChar(str:sub(i,i)))then
  300. local upN,midN,downN = rand(8),rand(2),rand(8)
  301. if(streng == 2)then
  302. upN,midN,downN = rand(16)/2+1,rand(6)/2,rand(16)/2+1
  303. elseif(streng == 3)then
  304. upN,midN,downN = rand(64)/4+3,rand(16)/4+1,rand(64)/4+3
  305. end
  306. newTxt = newTxt..str:sub(i,i)
  307. if(up)then
  308. for j = 0, upN do
  309. newTxt = newTxt..UpCharacters[M.RNG(1,#UpCharacters)]
  310. end
  311. end
  312. if(mid)then
  313. for j = 0, midN do
  314. newTxt = newTxt..MidCharacters[M.RNG(1,#MidCharacters)]
  315. end
  316. end
  317. if(down)then
  318. for j = 0, downN do
  319. newTxt = newTxt..DownCharacters[M.RNG(1,#DownCharacters)]
  320. end
  321. end
  322. end
  323. end
  324. return newTxt
  325. end
  326.  
  327. function Bezier(startpos, pos2, pos3, endpos, t)
  328. local A = startpos:lerp(pos2, t)
  329. local B = pos2:lerp(pos3, t)
  330. local C = pos3:lerp(endpos, t)
  331. local lerp1 = A:lerp(B, t)
  332. local lerp2 = B:lerp(C, t)
  333. local cubic = lerp1:lerp(lerp2, t)
  334. return cubic
  335. end
  336.  
  337.  
  338. function Effect(data)
  339. local FX = data.Effect or 'Resize-AndFade'
  340. local Parent = data.Parent or Effects
  341. local Color = data.Color or C3.N(0,0,0)
  342. local Size = data.Size or V3.N(1,1,1)
  343. local MoveDir = data.MoveDirection or nil
  344. local MeshData = data.Mesh or nil
  345. local SndData = data.Sound or nil
  346. local Frames = data.Frames or 45
  347. local Manual = data.Manual or nil
  348. local Material = data.Material or nil
  349. local CFra = data.CFrame or Torso.CFrame
  350. local Settings = data.FXSettings or {}
  351. local Snd,Prt,Msh;
  352. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  353. Prt = Manual
  354. else
  355. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  356. end
  357. if(typeof(MeshData) == 'table')then
  358. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  359. elseif(typeof(MeshData) == 'Instance')then
  360. Msh = MeshData:Clone()
  361. Msh.Parent = Prt
  362. end
  363. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  364. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  365. end
  366. if(Snd)then
  367. repeat wait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  368. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  369. end
  370. local MoveSpeed = nil;
  371. if(MoveDir)then
  372. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  373. end
  374. local Inc = M.RNG()-M.RNG()
  375. local Thingie = 0
  376. local Thingie2 = M.RNG(50,100)/100
  377.  
  378. coroutine.wrap(function()
  379. if(FX ~= 'Arc')then
  380. for i = 1, Frames do
  381. if(FX == 'Resize-AndFade')then
  382. if(not Settings.EndSize)then
  383. Settings.EndSize = V3.N(0,0,0)
  384. end
  385. local grow = (typeof(Settings.EndSize) == 'Vector3' and Settings.EndSize-Size or typeof(Settings.EndSize) == 'number' and V3.N(Settings.EndSize))
  386. if(Settings.EndIsIncrement)then
  387. Prt.Size = Prt.Size - Settings.EndSize
  388. else
  389. Prt.Size = Prt.Size - grow/Frames
  390. end
  391. Prt.Transparency = (i/Frames)
  392. elseif(FX == 'Resize+AndFade')then
  393. if(not Settings.EndSize)then
  394. Settings.EndSize = Size*2
  395. end
  396. local grow = (typeof(Settings.EndSize) == 'Vector3' and Settings.EndSize-Size or typeof(Settings.EndSize) == 'number' and V3.N(Settings.EndSize))
  397. if(Settings.EndIsIncrement)then
  398. Prt.Size = Prt.Size + Settings.EndSize
  399. else
  400. Prt.Size = Prt.Size + grow/Frames
  401. end
  402. Prt.Transparency = (i/Frames)
  403. elseif(FX == 'Fade')then
  404. Prt.Transparency = (i/Frames)
  405. end
  406. if(Settings.RandomizeCFrame)then
  407. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  408. end
  409. if(MoveDir and MoveSpeed)then
  410. local Orientation = Prt.Orientation
  411. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  412. Prt.Orientation = Orientation
  413. end
  414. if(swait and typeof(swait) == 'function')then
  415. swait()
  416. else
  417. wait()
  418. end
  419. end
  420. Prt:destroy()
  421. else
  422. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  423. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  424. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  425. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  426. assert(start ~= nil,"You need to specify a start point!")
  427. assert(endP ~= nil,"You need to specify an end point!")
  428. for i = 0, 1, Settings.Speed or 0.01 do
  429. if(Settings.Home)then
  430. endP = Settings.Home.CFrame
  431. end
  432. Prt.CFrame = Bezier(start, quarter, threequarter, endP, i)
  433. if(swait and typeof(swait) == 'function')then
  434. swait()
  435. else
  436. wait()
  437. end
  438. end
  439. if(Settings.RemoveOnGoal)then
  440. Prt:destroy()
  441. end
  442. end
  443. end)()
  444. return Prt,Msh,Snd
  445. end
  446.  
  447.  
  448. function SoulSteal(whom)
  449. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  450. print(torso)
  451. if(torso and torso:IsA'BasePart')then
  452. local Model = Instance.new("Model",Effects)
  453. Model.Name = whom.Name.."'s Soul"
  454. whom:BreakJoints()
  455. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  456. Soul.Name = 'Head'
  457. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  458. Effect{
  459. Effect="Arc",
  460. Manual = Soul,
  461. FXSettings={
  462. Start=torso.CFrame,
  463. Home = Torso,
  464. RemoveOnGoal = true,
  465. }
  466. }
  467. local lastPoint = Soul.CFrame.p
  468.  
  469. for i = 0, 1, 0.01 do
  470. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  471. local mag = (lastPoint - Soul.Position).magnitude
  472. Effect{
  473. Effect = "Fade",
  474. CFrame = point * CF.N(0, mag/2, 0),
  475. Size = V3.N(.5,mag+.5,.5),
  476. Color = Soul.BrickColor
  477. }
  478. lastPoint = Soul.CFrame.p
  479. swait()
  480. end
  481. for i = 1, 5 do
  482. Effect{
  483. Effect="Fade",
  484. Color = BrickColor.new'Really red',
  485. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  486. }
  487. end
  488. end
  489. end
  490.  
  491. --// Other Functions \\ --
  492.  
  493. function getRegion(point,range,ignore)
  494. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  495. end
  496.  
  497. function clerp(startCF,endCF,alpha)
  498. return startCF:lerp(endCF, alpha)
  499. end
  500.  
  501. function GetTorso(char)
  502. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  503. end
  504.  
  505. function RandomEnum(enum)
  506. local t = enum:GetEnumItems()
  507. if(#t < 1)then t = 1 end
  508. local choice = M.RNG(1,#t)
  509. return t[choice]
  510. end
  511.  
  512. function Chat(text)
  513. coroutine.wrap(function()
  514. if Char:FindFirstChild("TalkingBillBoard")~= nil then
  515. Char:FindFirstChild("TalkingBillBoard"):destroy()
  516. end
  517. local oText = text;
  518. text = ""
  519. for i = 1, #oText do
  520. local lol = M.RNG(1,24)
  521. if(lol == 1 or lol == 2)then
  522. text = text..(oText:sub(i,i):upper())
  523. elseif(lol == 3 or lol == 4)then
  524. text = text..Zalgo(oText:sub(i,i),M.RNG(1,2) == 1,true,M.RNG(1,2) == 1,M.RNG(1,3))
  525. elseif(lol == 5 or lol == 6)then
  526. text = text.." "..(oText:sub(i,i):lower())
  527. elseif(lol == 7)then
  528. text = text..(string.rep(oText:sub(i,i):lower(),M.RNG(5,9)))
  529. else
  530. text = text..(oText:sub(i,i):lower())
  531. end
  532. end
  533. local Bill = Instance.new("BillboardGui",Char)
  534. Bill.Size = UDim2.new(0,100,0,40)
  535. Bill.StudsOffset = Vector3.new(0,3,0)
  536. Bill.Adornee = Char.Head
  537. Bill.Name = "TalkingBillBoard"
  538. local Hehe = Instance.new("TextLabel",Bill)
  539. Hehe.BackgroundTransparency = 1
  540. Hehe.BorderSizePixel = 0
  541. Hehe.Text = ""
  542. Hehe.Font = "Bodoni"
  543. Hehe.TextSize = 40
  544. Hehe.TextStrokeTransparency = 0
  545. Hehe.Size = UDim2.new(1,0,0.5,0)
  546. coroutine.resume(coroutine.create(function()
  547. while Hehe ~= nil do
  548. swait()
  549. Hehe.Font = RandomEnum(Enum.Font)
  550. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  551. Hehe.Rotation = M.RNG(-M.RNG(5,15),M.RNG(5,15))
  552. local aa = math.random(0, 255)/255
  553. local bb = math.random(0, 255)/255
  554. Hehe.TextColor3 = C3.N(aa,aa,aa)
  555. Hehe.TextStrokeColor3 = C3.N(bb,bb,bb)
  556. end
  557. end))
  558. for i = 1,string.len(text),1 do
  559. if(not IsZalgoChar(text:sub(i,i)) and not IsUnicode(text:sub(i,i)))then swait(5) end
  560. Hehe.Text = string.sub(text,1,i)
  561. end
  562. swait(90)
  563. for i = 0, 1, .025 do
  564. swait()
  565. Hehe.TextStrokeTransparency = i
  566. Hehe.TextTransparency = i
  567. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  568. end
  569. Bill:Destroy()
  570. end)()
  571. end
  572.  
  573. function ShowDamage(Pos, Text, Time, Color)
  574. coroutine.wrap(function()
  575. local Pos = (Pos or Vector3.new(0, 0, 0))
  576. local Text = (Text or "")
  577. local Time = (Time or 2)
  578. local Color = (Color or Color3.new(1, 0, 1))
  579. local EffectPart = NewInstance("Part",Effects,{
  580. Material=Enum.Material.SmoothPlastic,
  581. Reflectance = 0,
  582. Transparency = 1,
  583. BrickColor = BrickColor.new(Color),
  584. Name = "Effect",
  585. Size = Vector3.new(0,0,0),
  586. Anchored = true
  587. })
  588. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  589. Size = UDim2.new(1.25, 0, 1.25, 0),
  590. Adornee = EffectPart,
  591. })
  592. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  593. BackgroundTransparency = 1,
  594. Size = UDim2.new(1, 0, 1, 0),
  595. Text = Text,
  596. Font = "Arial",
  597. TextColor3 = Color,
  598. TextStrokeColor3 = Color3.new(0,0,0),
  599. TextStrokeTransparency=0,
  600. TextScaled = true,
  601. })
  602. EffectPart.Parent = game:GetService("Workspace")
  603. delay(0, function()
  604. local Frames = (Time / (1/Frame_Speed))
  605. for Frame = 1, Frames do
  606. swait()
  607. local Percent = (Frame / Frames)
  608. EffectPart.CFrame = CF.N(Pos+ V3.N(0, Percent, 0)) * CF.A(0,0,M.RRNG(-90,90))
  609. TextLabel.Rotation = M.RNG(-6,6)
  610. TextLabel.Position = UDim2.new(M.RNG(-1,1)/10,M.RNG(-1,1)/10,.05,M.RNG(-1,1)/10)
  611. end
  612. for i = 0, 1, .025 do
  613. swait()
  614. TextLabel.TextStrokeTransparency = i
  615. TextLabel.TextTransparency = i
  616. TextLabel.Position = UDim2.new(M.RNG(-15,15)/10,M.RNG(-15,15)/10,M.RNG(-15,15)/10,M.RNG(-15,15)/10)
  617. end
  618. if EffectPart and EffectPart.Parent then
  619. EffectPart:Destroy()
  620. end
  621. end) end)()
  622. end
  623.  
  624.  
  625. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  626. if(who)then
  627. local hum = who:FindFirstChildOfClass'Humanoid'
  628. local Damage = M.RNG(minDam,maxDam)
  629. local canHit = true
  630. if(hum)then
  631. for _, p in pairs(Hit) do
  632. if p[1] == hum then
  633. if(time() - p[2] < 0.1) then
  634. canHit = false
  635. else
  636. Hit[_] = nil
  637. end
  638. end
  639. end
  640. if(canHit)then
  641. if(hum.Health >= math.huge)then
  642. who:BreakJoints()
  643. if(who:FindFirstChild'Head' and hum.Health > 0)then
  644. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "INSTANT", 1.5, C3.N(1,0,0))
  645. end
  646. else
  647. local player = S.Players:GetPlayerFromCharacter(who)
  648. if(Type == "Fire")then
  649. --idk..
  650. else
  651. local c = Instance.new("ObjectValue",hum)
  652. c.Name = "creator"
  653. c.Value = Plr
  654. game:service'Debris':AddItem(c,0.35)
  655. if(M.RNG(1,100) <= (critChance or 0))then
  656. if(who:FindFirstChild'Head' and hum.Health > 0)then
  657. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "[CRIT] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color)
  658. end
  659. hum.Health = hum.Health - Damage*(critMult or 2)
  660. else
  661. if(who:FindFirstChild'Head' and hum.Health > 0)then
  662. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), Damage, 1.5, DamageColor.Color)
  663. end
  664. hum.Health = hum.Health - Damage
  665. end
  666. if(Type == 'Knockback' and GetTorso(who))then
  667. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  668. local body = NewInstance('BodyVelocity',GetTorso(who),{
  669. P = 500,
  670. maxForce = V3.N(math.huge,0,math.huge),
  671. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  672. })
  673. game:service'Debris':AddItem(body,.5)
  674. elseif(Type == 'Knockdown' and GetTorso(who))then
  675. local rek = GetTorso(who)
  676. print(rek)
  677. hum.PlatformStand = true
  678. delay(1,function()
  679. hum.PlatformStand = false
  680. end)
  681. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  682. local bodvol = NewInstance("BodyVelocity",rek,{
  683. velocity = angle * Knock,
  684. P = 5000,
  685. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  686. })
  687. local rl = NewInstance("BodyAngularVelocity",rek,{
  688. P = 3000,
  689. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  690. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  691. })
  692. game:GetService("Debris"):AddItem(bodvol, .5)
  693. game:GetService("Debris"):AddItem(rl, .5)
  694. end
  695. end
  696. end
  697. end
  698. table.insert(Hit,{hum,time()})
  699. end
  700. end
  701. end
  702.  
  703. function AOEDamage(where,range,minDam,maxDam,Knock,Type)
  704. for _,v in next, getRegion(where,range,{Char}) do
  705. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  706. DealDamage(v.Parent,minDam,maxDam,Knock,Type)
  707. end
  708. end
  709. end
  710. function AOEHeal(where,range,amount)
  711. local healed = {}
  712. for _,v in next, getRegion(where,range,{Char}) do
  713. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  714. if(hum and not healed[hum])then
  715. hum.Health = hum.Health + amount
  716. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  717. ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
  718. end
  719. end
  720. end
  721. end
  722.  
  723. --// Wrap it all up \\--
  724.  
  725. pcall(function()
  726. Char.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'White'
  727. Char.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'White'
  728. end)
  729. Plr.Chatted:connect(function(text)
  730. if(text == "/e filter")then
  731. Filter = not Filter
  732. else
  733. if(Filter)then
  734. local succ,text = pcall(function() return game:service'Chat':FilterStringForBroadcast(text,Plr) end)
  735. if(not succ)then
  736. text = string.rep("_",#text)
  737. end
  738. Chat(text)
  739. else
  740. Chat(text)
  741. end
  742. end
  743. end)
  744.  
  745. coroutine.wrap(function()
  746. while true do
  747. swait(M.RNG(0,50)/100)
  748. if(NeutralAnims and not Twitching)then
  749. local GlitchEffect = M.RNG(1,200)
  750. if(GlitchEffect == 1)then
  751. TwitchTime = time()
  752. Twitching = true
  753. TimePos = Music.TimePosition
  754. for _,v in next, Char:children() do
  755. if(v:IsA'BasePart')then
  756. Effect{
  757. Effect='Fade',
  758. Color = BrickColor.Random(),
  759. Material = RandomEnum(Enum.Material),
  760. Size = v.Size + V3.N(M.RNG(-75,75)/100,M.RNG(-75,75)/100,M.RNG(-75,75)/100),
  761. CFrame=v.CFrame * CF.A(M.RRNG(-15,15),M.RRNG(-15,15),M.RNG(-15,15)),
  762. Frames = M.RNG(35,120)
  763. }
  764. end
  765. end
  766. end
  767. end
  768. if(not ForcedTwitching and time()-TwitchTime > M.RNG(150,350)/100)then
  769. Twitching = false
  770. end
  771. end
  772. end)()
  773.  
  774.  
  775. while true do
  776. swait()
  777. Sine = Sine + Change
  778. Music.Parent = Char
  779. Music.Playing = true
  780. Music.Volume = 2
  781. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * 4), Char)
  782. local State = ((math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) and "Walk" or "Idle")
  783. local wsVal = 28 / (Hum.WalkSpeed/16)
  784. if(State == 'Walk')then
  785. Change = 3
  786. RH.C1 = clerp(RH.C1,CF.N(0,1,0)*CF.N(0,0-.5*M.S(Sine/wsVal),.05+.15*M.C(Sine/wsVal))*CF.A(M.R(0+60*M.C(Sine/wsVal)+-M.S(Sine/wsVal)),0,0),.2*(Hum.WalkSpeed/16))
  787. LH.C1 = clerp(LH.C1,CF.N(0,1,0)*CF.N(0,0+.5*M.S(Sine/wsVal),.05-.15*M.C(Sine/wsVal))*CF.A(M.R(0-60*M.C(Sine/wsVal)+M.S(Sine/wsVal)),0,0),.2*(Hum.WalkSpeed/16))
  788. else
  789. RH.C1 = clerp(RH.C1,CF.N(0,1,0),.1)
  790. LH.C1 = clerp(LH.C1,CF.N(0,1,0),.1)
  791. end
  792. if(not Twitching)then
  793. pcall(function()
  794. Char.ReaperShadowHead.Eye1.Material = Enum.Material.Neon
  795. Char.ReaperShadowHead.Eye2.Material = Enum.Material.Neon
  796. end)
  797. Hum.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  798. Music.Pitch = 1
  799. local lol = {0,3}
  800. local lol2 = {-1,1}
  801. RS.C1 = CF.N(0,.5,0)*CF.N(M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100)*CF.A(M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)))
  802. LS.C1 = CF.N(0,.5,0)*CF.N(M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100)*CF.A(M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)))
  803. NK.C1 = CF.N(M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100)*CF.A(M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)))
  804. else
  805. pcall(function()
  806. Char.ReaperShadowHead.Eye1.Material = RandomEnum(Enum.Material)
  807. Char.ReaperShadowHead.Eye2.Material = RandomEnum(Enum.Material)
  808. end)
  809. Hum.DisplayDistanceType = RandomEnum(Enum.HumanoidDisplayDistanceType)
  810. Music.Pitch = 1.25
  811. if(time()-ReverseTime >= 1)then
  812. Music.TimePosition = TimePos
  813. ReverseTime = time()
  814. for _,v in next, Char:children() do
  815. if(v:IsA'BasePart')then
  816. Effect{
  817. Effect='Fade',
  818. Color = BrickColor.Random(),
  819. Material = RandomEnum(Enum.Material),
  820. Size = v.Size + V3.N(M.RNG(-75,75)/100,M.RNG(-75,75)/100,M.RNG(-75,75)/100),
  821. CFrame=v.CFrame * CF.A(M.RRNG(-15,15),M.RRNG(-15,15),M.RNG(-15,15)),
  822. Frames = M.RNG(35,120)
  823. }
  824. end
  825. end
  826. end
  827. local lol = {5,12}
  828. local lol2 = {-16,8}
  829. RS.C1 = CF.N(0,.5,0)*CF.N(M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100)*CF.A(M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)))
  830. LS.C1 = CF.N(0,.5,0)*CF.N(M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100)*CF.A(M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)))
  831. NK.C1 = CF.N(M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100,M.RNG(unpack(lol))/100)*CF.A(M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)),M.RRNG(unpack(lol2)))
  832. end
  833. if(NeutralAnims)then
  834. if(Twitching)then
  835. if(State == 'Walk')then
  836. local Alpha = .3
  837. RJ.C0 = clerp(RJ.C0,CFrame.new(3.20649757e-13, 0.00629579648, 1.42956924e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.N(0,0+.1*-M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(0-7*M.S(Sine/(wsVal))),0),Alpha)
  838. LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.99082166, 0.0216114372, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha)
  839. RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990985215, 0.0154614942, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha)
  840. LS.C0 = clerp(LS.C0,CFrame.new(-1.39200604, 0.795008898, -0.00658137258, 0.819051921, 0.573506355, 0.0156119522, -0.573645532, 0.819079638, 0.0062854127, -0.00918270461, -0.0141038094, 0.999858022)*CF.A(0,0,M.RRNG(-25,45)),Alpha)
  841. RS.C0 = clerp(RS.C0,CFrame.new(1.32559943, 0.709226727, 0.00863117818, 0.819051921, -0.573506355, 0.0156119522, 0.573484719, 0.819192171, 0.0062854127, -0.0163939148, 0.00380513305, 0.999858022)*CF.A(0,0,M.RRNG(-45,25)),Alpha)
  842. NK.C0 = clerp(NK.C0,CFrame.new(4.20771539e-06, 1.49895704, -0.0143941138, 0.902309358, -0.0976699144, -0.419878155, 0.104237564, 0.994525492, -0.00733707333, 0.418296129, -0.0371467769, 0.907550335)*CF.A(M.RRNG(-5,15),M.RRNG(-5,15),M.RRNG(-5,15)),Alpha)
  843. else
  844. local Alpha = .3
  845. RJ.C0 = clerp(RJ.C0,CFrame.new(3.20649757e-13, 0.00629579648, 1.42956924e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha)
  846. LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.99082166, 0.0216114372, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha)
  847. RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990985215, 0.0154614942, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha)
  848. LS.C0 = clerp(LS.C0,CFrame.new(-1.39200604, 0.795008898, -0.00658137258, 0.819051921, 0.573506355, 0.0156119522, -0.573645532, 0.819079638, 0.0062854127, -0.00918270461, -0.0141038094, 0.999858022)*CF.A(0,0,M.RRNG(-25,45)),Alpha)
  849. RS.C0 = clerp(RS.C0,CFrame.new(1.32559943, 0.709226727, 0.00863117818, 0.819051921, -0.573506355, 0.0156119522, 0.573484719, 0.819192171, 0.0062854127, -0.0163939148, 0.00380513305, 0.999858022)*CF.A(0,0,M.RRNG(-45,25)),Alpha)
  850. NK.C0 = clerp(NK.C0,CFrame.new(4.20771539e-06, 1.49895704, -0.0143941138, 0.902309358, -0.0976699144, -0.419878155, 0.104237564, 0.994525492, -0.00733707333, 0.418296129, -0.0371467769, 0.907550335)*CF.A(M.RRNG(-5,15),M.RRNG(-5,15),M.RRNG(-5,15)),Alpha)
  851. end
  852. else
  853. if(State == 'Idle')then
  854. local Alpha = .3
  855. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0055502113, 0.046844326, -0.355196595, 0.999991238, -0.00595695665, -0.00113933254, 0.0059490581, 0.926876307, 0.37534529, -0.00117987115, -0.375341475, 0.926886022),Alpha)
  856. LH.C0 = clerp(LH.C0,CFrame.new(-0.497515112, -1.09223986, -0.0431248844, 0.984844744, 0.00594900129, 0.173336849, 0.0596322678, 0.926867485, -0.370622098, -0.162865102, 0.375341654, 0.91246587),Alpha)
  857. RH.C0 = clerp(RH.C0,CFrame.new(0.497499257, -1.09597111, -0.0500149131, 0.991716266, 0.00594900129, -0.128311232, -0.0536306985, 0.926867485, -0.371538013, 0.116717227, 0.375341654, 0.919508636),Alpha)
  858. LS.C0 = clerp(LS.C0,CFrame.new(-1.12519193, 0.738982558, -0.468318224, 0.769806862, -0.638114333, -0.014411577, -0.591974616, -0.705338001, -0.389954329, 0.238670424, 0.308720797, -0.920721531),Alpha)
  859. RS.C0 = clerp(RS.C0,CFrame.new(1.20966697, 0.671781361, -0.540282011, 0.762095451, 0.647304416, -0.014411577, 0.591827035, -0.70546186, -0.389954329, -0.262585998, 0.288653284, -0.920721531),Alpha)
  860. NK.C0 = clerp(NK.C0,CFrame.new(-0.00318176579, 1.58153725, -0.218282402, 0.99997586, -0.00669310382, -0.00194420572, 0.00678409031, 0.87074405, 0.49168992, -0.00159802474, -0.491691202, 0.870768249),Alpha)
  861. elseif(State == 'Walk')then
  862. local Alpha = .3
  863. RJ.C0 = clerp(RJ.C0,CF.N(0,0+.1*-M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(0-7*M.S(Sine/(wsVal))),0),Alpha)
  864. LS.C0 = clerp(LS.C0,CFrame.new(-1.12519193, 0.738982558, -0.468318224, 0.769806862, -0.638114333, -0.014411577, -0.591974616, -0.705338001, -0.389954329, 0.238670424, 0.308720797, -0.920721531),Alpha)
  865. RS.C0 = clerp(RS.C0,CFrame.new(1.20966697, 0.671781361, -0.540282011, 0.762095451, 0.647304416, -0.014411577, 0.591827035, -0.70546186, -0.389954329, -0.262585998, 0.288653284, -0.920721531),Alpha)
  866. NK.C0 = clerp(NK.C0,CFrame.new(-0.00318176579, 1.58153725, -0.218282402, 0.99997586, -0.00669310382, -0.00194420572, 0.00678409031, 0.87074405, 0.49168992, -0.00159802474, -0.491691202, 0.870768249),Alpha)
  867. LH.C0 = clerp(LH.C0,LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0),Alpha)
  868. RH.C0 = clerp(RH.C0,RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0),Alpha)
  869. end
  870. end
  871. end
  872. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement