Advertisement
rivahaviz

Untitled

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