Advertisement
Veltr

yeahwow

Feb 11th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 122.89 KB | None | 0 0
  1. -- Created by Nebula_Zorua --
  2. -- Mephisto --
  3. -- ..? --
  4. -- Discord: Nebula the Zorua#6969
  5. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  6.  
  7. wait(1/60)
  8.  
  9. --// Shortcut Variables \\--
  10. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  11. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  12. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  13. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  14. 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}
  15. local R3 = {N=Region3.new}
  16. local De = S.Debris
  17. local WS = workspace
  18. local Lght = S.Lighting
  19. local RepS = S.ReplicatedStorage
  20. local IN = Instance.new
  21. local Plrs = S.Players
  22.  
  23. --// Initializing \\--
  24. local Plr = Plrs.LocalPlayer
  25. local Char = Plr.Character
  26. local Hum = Char:FindFirstChildOfClass'Humanoid'
  27. local RArm = Char["Right Arm"]
  28. local LArm = Char["Left Arm"]
  29. local RLeg = Char["Right Leg"]
  30. local LLeg = Char["Left Leg"]
  31. local Root = Char:FindFirstChild'HumanoidRootPart'
  32. local Torso = Char.Torso
  33. local Head = Char.Head
  34. local NeutralAnims = true
  35. local Attack = false
  36. local Debounces = {Debounces={}}
  37. local Mouse = Plr:GetMouse()
  38. local Hit = {}
  39. local Sine = 0
  40. local Change = 1
  41. local BloodPuddles = {}
  42. local idleCounter = 0;
  43. local Sitting = false
  44.  
  45. local Effects = IN("Folder",Char)
  46. Effects.Name = "Effects"
  47.  
  48.  
  49. --// Debounce System \\--
  50.  
  51.  
  52. function Debounces:New(name,cooldown)
  53. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  54. setmetatable(aaaaa,{__index = Debounces})
  55. Debounces.Debounces[name] = aaaaa
  56. return aaaaa
  57. end
  58.  
  59. function Debounces:Use(overrideUsable)
  60. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  61. if(self.Usable or overrideUsable)then
  62. self.Usable = false
  63. self.CoolingDown = true
  64. local LastUse = time()
  65. self.LastUse = LastUse
  66. delay(self.Cooldown or 2,function()
  67. if(self.LastUse == LastUse)then
  68. self.CoolingDown = false
  69. self.Usable = true
  70. end
  71. end)
  72. end
  73. end
  74.  
  75. function Debounces:Get(name)
  76. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  77. for i,v in next, Debounces.Debounces do
  78. if(i == name)then
  79. return v;
  80. end
  81. end
  82. end
  83.  
  84. function Debounces:GetProgressPercentage()
  85. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  86. if(self.CoolingDown and not self.Usable)then
  87. return math.max(
  88. math.floor(
  89. (
  90. (time()-self.LastUse)/self.Cooldown or 2
  91. )*100
  92. )
  93. )
  94. else
  95. return 100
  96. end
  97. end
  98.  
  99. --// Instance Creation Functions \\--
  100.  
  101. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  102. local Sound = IN("Sound")
  103. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  104. Sound.Pitch = pitch or 1
  105. Sound.Volume = volume or 1
  106. Sound.Looped = looped or false
  107. if(autoPlay)then
  108. coroutine.wrap(function()
  109. repeat wait() until Sound.IsLoaded
  110. Sound.Playing = autoPlay or false
  111. end)()
  112. end
  113. if(not looped and effect)then
  114. Sound.Stopped:connect(function()
  115. Sound.Volume = 0
  116. Sound:destroy()
  117. end)
  118. elseif(effect)then
  119. warn("Sound can't be looped and a sound effect!")
  120. end
  121. Sound.Parent = parent or Torso
  122. return Sound
  123. end
  124. function Part(parent,color,material,size,cframe,anchored,cancollide)
  125. local part = IN("Part")
  126. part.Parent = parent or Char
  127. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  128. part.Material = material or Enum.Material.SmoothPlastic
  129. part.TopSurface,part.BottomSurface=10,10
  130. part.Size = size or V3.N(1,1,1)
  131. part.CFrame = cframe or CF.N(0,0,0)
  132. part.CanCollide = cancollide or false
  133. part.Anchored = anchored or false
  134. return part
  135. end
  136.  
  137. function Weld(part0,part1,c0,c1)
  138. local weld = IN("Weld")
  139. weld.Parent = part0
  140. weld.Part0 = part0
  141. weld.Part1 = part1
  142. weld.C0 = c0 or CF.N()
  143. weld.C1 = c1 or CF.N()
  144. return weld
  145. end
  146.  
  147. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  148. local part = IN("SpecialMesh")
  149. part.MeshId = meshid or ""
  150. part.TextureId = textid or ""
  151. part.Scale = scale or V3.N(1,1,1)
  152. part.Offset = offset or V3.N(0,0,0)
  153. part.MeshType = meshtype or Enum.MeshType.Sphere
  154. part.Parent = parent
  155. return part
  156. end
  157.  
  158. NewInstance = function(instance,parent,properties)
  159. local inst = Instance.new(instance)
  160. inst.Parent = parent
  161. if(properties)then
  162. for i,v in next, properties do
  163. pcall(function() inst[i] = v end)
  164. end
  165. end
  166. return inst;
  167. end
  168.  
  169. function Clone(instance,parent,properties)
  170. local inst = instance:Clone()
  171. inst.Parent = parent
  172. if(properties)then
  173. for i,v in next, properties do
  174. pcall(function() inst[i] = v end)
  175. end
  176. end
  177. return inst;
  178. end
  179.  
  180. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  181. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  182. local Sound = IN("Sound")
  183. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  184. Sound.Pitch = pitch or 1
  185. Sound.Volume = volume or 1
  186. Sound.Looped = looped or false
  187. if(autoPlay)then
  188. coroutine.wrap(function()
  189. repeat wait() until Sound.IsLoaded
  190. Sound.Playing = autoPlay or false
  191. end)()
  192. end
  193. if(not looped and effect)then
  194. Sound.Stopped:connect(function()
  195. Sound.Volume = 0
  196. soundPart:destroy()
  197. end)
  198. elseif(effect)then
  199. warn("Sound can't be looped and a sound effect!")
  200. end
  201. Sound.Parent = soundPart
  202. return Sound
  203. end
  204.  
  205.  
  206. --// Extended ROBLOX tables \\--
  207. 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})
  208. --// Require stuff \\--
  209. function CamShake(who,times,intense,origin)
  210. coroutine.wrap(function()
  211. if(script:FindFirstChild'CamShake')then
  212. local cam = script.CamShake:Clone()
  213. cam:WaitForChild'intensity'.Value = intense
  214. cam:WaitForChild'times'.Value = times
  215.  
  216. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  217. cam.Parent = who
  218. wait()
  219. cam.Disabled = false
  220. elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
  221. local intensity = intense
  222. local cam = workspace.CurrentCamera
  223. for i = 1, times do
  224. local camDistFromOrigin
  225. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  226. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  227. elseif(typeof(origin) == 'Vector3')then
  228. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  229. end
  230. if(camDistFromOrigin)then
  231. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  232. end
  233. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  234. swait()
  235. end
  236. end
  237. end)()
  238. end
  239.  
  240.  
  241. function CamShakeAll(times,intense,origin)
  242. for _,v in next, Plrs:players() do
  243. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  244. end
  245. end
  246.  
  247. function ServerScript(code)
  248. if(script:FindFirstChild'Loadstring')then
  249. local load = script.Loadstring:Clone()
  250. load:WaitForChild'Sauce'.Value = code
  251. load.Disabled = false
  252. load.Parent = workspace
  253. elseif(NS and typeof(NS) == 'function')then
  254. NS(code,workspace)
  255. else
  256. warn("no serverscripts lol")
  257. end
  258. end
  259.  
  260. function LocalOnPlayer(who,code)
  261. ServerScript([[
  262. wait()
  263. script.Parent=nil
  264. if(not _G.Http)then _G.Http = game:service'HttpService' end
  265.  
  266. local Http = _G.Http or game:service'HttpService'
  267.  
  268. local source = ]].."[["..code.."]]"..[[
  269. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  270. local asd = Http:PostAsync(link,source)
  271. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  272. local ID = Http:JSONDecode(asd).Result.Require_ID
  273. local vs = require(ID).VORTH_SCRIPT
  274. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  275. ]])
  276. end
  277.  
  278.  
  279. --// Customization \\--
  280.  
  281. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  282. local Remove_Hats = true
  283. local Remove_Clothing = true
  284. local PlayerSize = 1.3
  285. local DamageColor = BrickColor.new'Really black'
  286. local MusicID = 340286845
  287. local God = true
  288. local Muted = false
  289.  
  290. local WalkSpeed = 12
  291.  
  292. local Music = Sound(Char,MusicID,1,3,true,false,true)
  293. Music.Name = 'Music'
  294.  
  295. --// Stop animations \\--
  296. for _,v in next, Hum:GetPlayingAnimationTracks() do
  297. v:Stop();
  298. end
  299.  
  300. pcall(game.Destroy,Char:FindFirstChild'Animate')
  301. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  302.  
  303.  
  304. --// Joints \\--
  305.  
  306. 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)})
  307. 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)})
  308. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  309. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  310. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  311. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  312.  
  313. local LSC0 = LS.C0
  314. local RSC0 = RS.C0
  315. local NKC0 = NK.C0
  316. local LHC0 = LH.C0
  317. local RHC0 = RH.C0
  318. local RJC0 = RJ.C0
  319.  
  320. --// Resizing \\--
  321.  
  322. Hum.Parent = nil
  323. Root.Size = Root.Size*PlayerSize
  324. Torso.Size = Torso.Size*PlayerSize
  325. RArm.Size = RArm.Size*PlayerSize
  326. RLeg.Size = RLeg.Size*PlayerSize
  327. LArm.Size = LArm.Size*PlayerSize
  328. LLeg.Size = LLeg.Size*PlayerSize
  329. Head.Size = Head.Size*PlayerSize
  330.  
  331. RJ.Parent = Root
  332. NK.Parent = Torso
  333. RS.Parent = Torso
  334. LS.Parent = Torso
  335. RH.Parent = Torso
  336. LH.Parent = Torso
  337.  
  338. Hum.Parent = Char
  339.  
  340. --// Weapon and GUI creation, and Character Customization \\--
  341.  
  342. local pe = NewInstance("ParticleEmitter",Torso,{ZOffset=.9,Color=ColorSequence.new(C3.N(0,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(1,0),Texture='rbxasset://textures/particles/fire_main.dds',Transparency=NumberSequence.new(0,1),EmissionDirection=Enum.NormalId.Top,Enabled=true,Lifetime=NumberRange.new(.7),Rate=500,Speed=NumberRange.new(5)})
  343. local hood = Part(Char,C3.N(.2,.2,.2),Enum.Material.Fabric,V3.N(2*PlayerSize,2*PlayerSize,2*PlayerSize),CF.N(),false,false)
  344. local hoodM = Mesh(hood,Enum.MeshType.FileMesh,'rbxassetid://16952952','',V3.N(1.05*PlayerSize,1.05*PlayerSize,1.05*PlayerSize))
  345. local hoodW = Weld(hood,Head,CF.N(0,-.384*PlayerSize,0))
  346.  
  347. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  348. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  349.  
  350. for side = 1,2 do
  351. local LastPart = hood;
  352.  
  353. for i = 1,34 do
  354. local mult = (1-(i/38))*PlayerSize
  355. if(LastPart == hood)then
  356. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  357. Horn.Name = 'Horn'
  358. Weld(LastPart,Horn,CF.N((side == 1 and .3 or -.3)*PlayerSize,.6*PlayerSize,-.2*PlayerSize)*CF.A(0,M.R((side == 1 and -5 or 5)),0))
  359. LastPart = Horn
  360. else
  361. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  362. Horn.Name = 'Horn'
  363. Weld(LastPart,Horn,CF.N(0,Horn.Size.Y/2,0)*CF.A(M.R(7),M.R(side == 1 and 3 or -3),0))
  364. LastPart = Horn
  365. end
  366. end
  367. end
  368.  
  369. for side = 1,2 do
  370. local LastPart = hood;
  371.  
  372. for i = 1,24 do
  373. local mult = (1-(i/28))*PlayerSize
  374. if(LastPart == hood)then
  375. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  376. Horn.Name = 'Horn'
  377. Weld(LastPart,Horn,CF.N((side == 1 and .5 or -.5)*PlayerSize,-.2*PlayerSize,-.2*PlayerSize)*CF.A(M.R(-25),M.R((side == 1 and -180 or 180)),M.R((side == 1 and 90 or -90))))
  378. LastPart = Horn
  379. else
  380. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  381. Horn.Name = 'Horn'
  382. Weld(LastPart,Horn,CF.N(0,Horn.Size.Y/2,0)*CF.A(M.R(-7),M.R((side == 1 and -3 or 3)),0))
  383. LastPart = Horn
  384. end
  385. end
  386. end
  387.  
  388. --// Artificial HB \\--
  389.  
  390. local ArtificialHB = IN("BindableEvent", script)
  391. ArtificialHB.Name = "Heartbeat"
  392.  
  393. script:WaitForChild("Heartbeat")
  394.  
  395. local tf = 0
  396. local allowframeloss = false
  397. local tossremainder = false
  398. local lastframe = tick()
  399. local frame = 1/Frame_Speed
  400. ArtificialHB:Fire()
  401.  
  402. game:GetService("RunService").Heartbeat:connect(function(s, p)
  403. tf = tf + s
  404. if tf >= frame then
  405. if allowframeloss then
  406. script.Heartbeat:Fire()
  407. lastframe = tick()
  408. else
  409. for i = 1, math.floor(tf / frame) do
  410. ArtificialHB:Fire()
  411. end
  412. lastframe = tick()
  413. end
  414. if tossremainder then
  415. tf = 0
  416. else
  417. tf = tf - frame * math.floor(tf / frame)
  418. end
  419. end
  420. end)
  421.  
  422. function swait(num)
  423. if num == 0 or num == nil then
  424. ArtificialHB.Event:wait()
  425. else
  426. for i = 0, num do
  427. ArtificialHB.Event:wait()
  428. end
  429. end
  430. end
  431.  
  432.  
  433. --// Effect Function(s) \\--
  434.  
  435. function Bezier(startpos, pos2, pos3, endpos, t)
  436. local A = startpos:lerp(pos2, t)
  437. local B = pos2:lerp(pos3, t)
  438. local C = pos3:lerp(endpos, t)
  439. local lerp1 = A:lerp(B, t)
  440. local lerp2 = B:lerp(C, t)
  441. local cubic = lerp1:lerp(lerp2, t)
  442. return cubic
  443. end
  444. function Puddle(hit,pos,norm,data)
  445. local material = data.Material or Enum.Material.Granite
  446. local color = data.Color or BrickColor.new'Crimson'
  447. local size = data.Size and data.Size/4 or .25
  448.  
  449. if(hit.Name ~= 'BloodPuddle')then
  450. local Puddle = NewInstance('Part',workspace,{Material=material,BrickColor=color,Size=V3.N(size,.1,size),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
  451. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  452. BloodPuddles[Puddle] = 0
  453. else
  454. local cyl = hit:FindFirstChild'CylinderMesh'
  455. if(cyl and cyl.Scale.x < 20)then
  456. BloodPuddles[hit] = 0
  457. cyl.Scale = cyl.Scale + V3.N(size,0,size)
  458. hit.Transparency = 0
  459. end
  460. end
  461. end
  462.  
  463. function Droplet(data)
  464. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  465. local Size = data.Size or .5
  466. local Color = data.Color or BrickColor.new'Crimson'
  467. local StudsPerFrame = data.Speed or 1
  468. local Shape = data.Shape or 'Ball'
  469. local Frames = (data.Frames or 160)+1
  470. local Pos = data.Origin or Root.CFrame
  471. local Direction = data.Direction or Root.CFrame.lookVector*100000
  472. local Material = data.Material or Enum.Material.Granite
  473. local Drop = data.Drop or .05
  474. local Ignorelist = data.Ignorelist or (function()
  475. local list = {}
  476. for _,v in next, workspace:children() do
  477. if(v:FindFirstChildOfClass'Humanoid')then
  478. table.insert(list,v)
  479. end
  480. end
  481. return list
  482. end)()
  483.  
  484. local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
  485. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  486. if(Shape == 'Ball')then
  487. BMesh.MeshType = Enum.MeshType.Sphere
  488. elseif(Shape == 'Head')then
  489. BMesh.MeshType = Enum.MeshType.Head
  490. elseif(Shape == 'Cylinder')then
  491. BMesh.MeshType = Enum.MeshType.Cylinder
  492. end
  493.  
  494. coroutine.wrap(function()
  495. for i = 1, Frames do
  496. Pos = Pos + V3.N(0,-(Drop*i),0)
  497. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame,Ignorelist)
  498. if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
  499. Puddle(hit,pos,norm,data)
  500. break;
  501. else
  502. Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
  503. end
  504. swait()
  505. end
  506. Bullet:destroy()
  507. end)()
  508. end
  509.  
  510. function BloodDrop(pos,dir,maxsize,BloodMaterial,BloodColor)
  511. BloodMaterial = BloodMaterial or Enum.Material.Granite
  512. BloodColor = BloodColor or BrickColor.new'Maroon'
  513. local owo = NewInstance("Part",Char,{Material=BloodMaterial,BrickColor=BloodColor,Shape=Enum.PartType.Ball,Size=V3.N(.25,.25,.25), CanCollide = false})
  514. owo.CFrame=CF.N(pos,dir)
  515. local bv = Instance.new("BodyVelocity",owo)
  516. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  517. bv.velocity = CF.N(pos,dir+V3.N(M.RNG(-3,3)/30,M.RNG(-3,3)/30,M.RNG(-3,3)/30)).lookVector*15
  518. bv.Name = "MOVE"
  519. game:service'Debris':AddItem(bv,0.05)
  520. local touch
  521. touch = owo.Touched:connect(function(hit)
  522. if(hit.Anchored==true and hit.CanCollide and not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent.Parent:FindFirstChildOfClass'Humanoid')then
  523. touch:disconnect()
  524. BloodPuddle(owo.Position+V3.N(0,1,0),3,maxsize,owo)
  525. owo:destroy()
  526. end
  527. end)
  528. end
  529. function BloodPuddle(position,range,maxSize,where,BloodMaterial,BloodColor)
  530. BloodMaterial = BloodMaterial or Enum.Material.Granite
  531. BloodColor = BloodColor or BrickColor.new'Maroon'
  532. local hit, pos, norm = workspace:FindPartOnRayWithIgnoreList(Ray.new(
  533. position,CF.N(position,position+V3.N(0,-1,0)).lookVector * range
  534. ),{where,Char},false,true)
  535. if(hit)then
  536. if(BloodPuddles[hit])then
  537. BloodPuddles[hit] = 0
  538. if(hit:FindFirstChild'CylinderMesh' and hit.CylinderMesh.Scale.Z < 15)then
  539. hit.CylinderMesh.Scale = hit.CylinderMesh.Scale + V3.N(.1,0,.1)
  540. end
  541. else
  542. local Puddle = NewInstance('Part',hit,{Material=BloodMaterial,BrickColor=BloodColor,Size=V3.N(1,.1,1),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
  543. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  544. BloodPuddles[Puddle] = 0
  545. end
  546. end
  547. end
  548.  
  549.  
  550. function SphereFX(duration,color,scale,pos,endScale,increment)
  551. return Effect{
  552. Effect='ResizeAndFade',
  553. Color=color,
  554. Size=scale,
  555. Mesh={MeshType=Enum.MeshType.Sphere},
  556. CFrame=pos,
  557. FXSettings={
  558. EndSize=endScale,
  559. EndIsIncrement=increment
  560. }
  561. }
  562. end
  563.  
  564. function BlastFX(duration,color,scale,pos,endScale,increment)
  565. return Effect{
  566. Effect='ResizeAndFade',
  567. Color=color,
  568. Size=scale,
  569. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  570. CFrame=pos,
  571. FXSettings={
  572. EndSize=endScale,
  573. EndIsIncrement=increment
  574. }
  575. }
  576. end
  577.  
  578. function BlockFX(duration,color,scale,pos,endScale,increment)
  579. return Effect{
  580. Effect='ResizeAndFade',
  581. Color=color,
  582. Size=scale,
  583. CFrame=pos,
  584. FXSettings={
  585. EndSize=endScale,
  586. EndIsIncrement=increment
  587. }
  588. }
  589. end
  590.  
  591. function ShootBullet(data)
  592. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  593. local Size = data.Size or V3.N(2,2,2)
  594. local Color = data.Color or BrickColor.new'Crimson'
  595. local StudsPerFrame = data.Speed or 10
  596. local Shape = data.Shape or 'Ball'
  597. local Frames = data.Frames or 160
  598. local Pos = data.Origin or Torso.CFrame
  599. local Direction = data.Direction or Mouse.Hit
  600. local Material = data.Material or Enum.Material.Neon
  601. local OnHit = data.HitFunction or function(hit,pos)
  602. Effect{
  603. Effect='ResizeAndFade',
  604. Color=Color,
  605. Size=V3.N(10,10,10),
  606. Mesh={MeshType=Enum.MeshType.Sphere},
  607. CFrame=CF.N(pos),
  608. FXSettings={
  609. EndSize=V3.N(.05,.05,.05),
  610. EndIsIncrement=true
  611. }
  612. }
  613. for i = 1, 5 do
  614. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  615. Effect{
  616. Effect='Fade',
  617. Frames=65,
  618. Size=V3.N(5,5,10),
  619. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  620. Mesh = {MeshType=Enum.MeshType.Sphere},
  621. Material=Enum.Material.Neon,
  622. Color=Color,
  623. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  624. }
  625. end
  626. end
  627.  
  628. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  629. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  630. if(Shape == 'Ball')then
  631. BMesh.MeshType = Enum.MeshType.Sphere
  632. elseif(Shape == 'Head')then
  633. BMesh.MeshType = Enum.MeshType.Head
  634. elseif(Shape == 'Cylinder')then
  635. BMesh.MeshType = Enum.MeshType.Cylinder
  636. end
  637.  
  638. coroutine.wrap(function()
  639. for i = 1, Frames+1 do
  640. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  641. if(hit)then
  642. OnHit(hit,pos,norm,dist)
  643. break;
  644. else
  645. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  646. end
  647. swait()
  648. end
  649. Bullet:destroy()
  650. end)()
  651.  
  652. end
  653.  
  654.  
  655. function Zap(data)
  656. local sCF,eCF = data.StartCFrame,data.EndCFrame
  657. assert(sCF,"You need a start CFrame!")
  658. assert(eCF,"You need an end CFrame!")
  659. local parts = data.PartCount or 15
  660. local zapRot = data.ZapRotation or {-5,5}
  661. local startThick = data.StartSize or 3;
  662. local endThick = data.EndSize or startThick/2;
  663. local color = data.Color or BrickColor.new'Electric blue'
  664. local delay = data.Delay or 35
  665. local delayInc = data.DelayInc or 0
  666. local lastLightning;
  667. local MagZ = (sCF.p - eCF.p).magnitude
  668. local thick = startThick
  669. local inc = (startThick/parts)-(endThick/parts)
  670.  
  671. for i = 1, parts do
  672. local pos = sCF.p
  673. if(lastLightning)then
  674. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  675. end
  676. delay = delay + delayInc
  677. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  678. local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
  679. if(parts == i)then
  680. local MagZ = (pos-eCF.p).magnitude
  681. zapPart.Size = V3.N(endThick,endThick,MagZ)
  682. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  683. Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
  684. else
  685. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  686. end
  687.  
  688. lastLightning = zapPart
  689. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  690.  
  691. thick=thick-inc
  692.  
  693. end
  694. end
  695.  
  696. function Zap2(data)
  697. local Color = data.Color or BrickColor.new'Electric blue'
  698. local StartPos = data.Start or Torso.Position
  699. local EndPos = data.End or Mouse.Hit.p
  700. local SegLength = data.SegL or 2
  701. local Thicc = data.Thickness or 0.5
  702. local Fades = data.Fade or 45
  703. local Parent = data.Parent or Effects
  704. local MaxD = data.MaxDist or 200
  705. local Branch = data.Branches or false
  706. local Material = data.Material or Enum.Material.Neon
  707. local Raycasts = data.Raycasts or false
  708. local Offset = data.Offset or {0,360}
  709. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  710. if((StartPos-EndPos).magnitude > MaxD)then
  711. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  712. end
  713. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  714. if(Raycasts)then
  715. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  716. end
  717. local segments = dist/SegLength
  718. local model = IN("Model",Parent)
  719. model.Name = 'Lightning'
  720. local Last;
  721. for i = 1, segments do
  722. local size = (segments-i)/25
  723. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  724. if(AddMesh)then IN("CylinderMesh",prt) end
  725. if(Last and math.floor(segments) == i)then
  726. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  727. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  728. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0)
  729. elseif(not Last)then
  730. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  731. else
  732. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  733. end
  734. Last = prt
  735. if(Branch)then
  736. local choice = M.RNG(1,7+((segments-i)*2))
  737. if(choice == 1)then
  738. local LastB;
  739. for i2 = 1,M.RNG(2,5) do
  740. local size2 = ((segments-i)/35)/i2
  741. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  742. if(AddMesh)then IN("CylinderMesh",prt) end
  743. if(not LastB)then
  744. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  745. else
  746. prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  747. end
  748. LastB = prt
  749. end
  750. end
  751. end
  752. end
  753. if(Fades > 0)then
  754. coroutine.wrap(function()
  755. for i = 1, Fades do
  756. for _,v in next, model:children() do
  757. if(v:IsA'BasePart')then
  758. v.Transparency = (i/Fades)
  759. end
  760. end
  761. swait()
  762. end
  763. model:destroy()
  764. end)()
  765. else
  766. S.Debris:AddItem(model,.01)
  767. end
  768. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  769. end
  770.  
  771. function Tween(obj,props,time,easing,direction,repeats,backwards)
  772. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  773. local tween = S.TweenService:Create(obj, info, props)
  774.  
  775. tween:Play()
  776. end
  777.  
  778. function Effect(data)
  779. local FX = data.Effect or 'ResizeAndFade'
  780. local Parent = data.Parent or Effects
  781. local Color = data.Color or C3.N(0,0,0)
  782. local Size = data.Size or V3.N(1,1,1)
  783. local MoveDir = data.MoveDirection or nil
  784. local MeshData = data.Mesh or nil
  785. local SndData = data.Sound or nil
  786. local Frames = data.Frames or 45
  787. local Manual = data.Manual or nil
  788. local Material = data.Material or nil
  789. local CFra = data.CFrame or Torso.CFrame
  790. local Settings = data.FXSettings or {}
  791. local Shape = data.Shape or Enum.PartType.Block
  792. local Snd,Prt,Msh;
  793. local RotInc = data.RotInc or {0,0,0}
  794. if(typeof(RotInc) == 'number')then
  795. RotInc = {RotInc,RotInc,RotInc}
  796. end
  797. coroutine.wrap(function()
  798. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  799. Prt = Manual
  800. else
  801. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  802. Prt.Shape = Shape
  803. end
  804. if(typeof(MeshData) == 'table')then
  805. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  806. elseif(typeof(MeshData) == 'Instance')then
  807. Msh = MeshData:Clone()
  808. Msh.Parent = Prt
  809. elseif(Shape == Enum.PartType.Block)then
  810. Msh = Mesh(Prt,Enum.MeshType.Brick)
  811. end
  812. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  813. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  814. end
  815. if(Snd)then
  816. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  817. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  818. end
  819. Size = (Msh and Msh.Scale or Size)
  820. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  821.  
  822. local MoveSpeed = nil;
  823. if(MoveDir)then
  824. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  825. end
  826. if(FX ~= 'Arc')then
  827. for Frame = 1, Frames do
  828. if(FX == "Fade")then
  829. Prt.Transparency = (Frame/Frames)
  830. elseif(FX == "Resize")then
  831. if(not Settings.EndSize)then
  832. Settings.EndSize = V3.N(0,0,0)
  833. end
  834. if(Settings.EndIsIncrement)then
  835. if(Msh)then
  836. Msh.Scale = Msh.Scale + Settings.EndSize
  837. else
  838. Prt.Size = Prt.Size + Settings.EndSize
  839. end
  840. else
  841. if(Msh)then
  842. Msh.Scale = Msh.Scale - grow/Frames
  843. else
  844. Prt.Size = Prt.Size - grow/Frames
  845. end
  846. end
  847. elseif(FX == "ResizeAndFade")then
  848. if(not Settings.EndSize)then
  849. Settings.EndSize = V3.N(0,0,0)
  850. end
  851. if(Settings.EndIsIncrement)then
  852. if(Msh)then
  853. Msh.Scale = Msh.Scale + Settings.EndSize
  854. else
  855. Prt.Size = Prt.Size + Settings.EndSize
  856. end
  857. else
  858. if(Msh)then
  859. Msh.Scale = Msh.Scale - grow/Frames
  860. else
  861. Prt.Size = Prt.Size - grow/Frames
  862. end
  863. end
  864. Prt.Transparency = (Frame/Frames)
  865. end
  866. if(Settings.RandomizeCFrame)then
  867. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  868. else
  869. Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc))
  870. end
  871. if(MoveDir and MoveSpeed)then
  872. local Orientation = Prt.Orientation
  873. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  874. Prt.Orientation = Orientation
  875. end
  876. swait()
  877. end
  878. Prt:destroy()
  879. else
  880. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  881. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  882. if(start and endP)then
  883. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  884. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  885. for Frame = 0, 1, (Settings.Speed or 0.01) do
  886. if(Settings.Home)then
  887. endP = Settings.Home.CFrame
  888. end
  889. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  890. end
  891. if(Settings.RemoveOnGoal)then
  892. Prt:destroy()
  893. end
  894. else
  895. Prt:destroy()
  896. assert(start,"You need a start position!")
  897. assert(endP,"You need a start position!")
  898. end
  899. end
  900. end)()
  901. return Prt,Msh,Snd
  902. end
  903. function SoulSteal(whom)
  904. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  905. print(torso)
  906. if(torso and torso:IsA'BasePart')then
  907. local Model = Instance.new("Model",Effects)
  908. Model.Name = whom.Name.."'s Soul"
  909. whom:BreakJoints()
  910. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  911. Soul.Name = 'Head'
  912. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  913. Effect{
  914. Effect="Arc",
  915. Manual = Soul,
  916. FXSettings={
  917. Start=torso.CFrame,
  918. Home = Torso,
  919. RemoveOnGoal = true,
  920. }
  921. }
  922. local lastPoint = Soul.CFrame.p
  923.  
  924. for i = 0, 1, 0.01 do
  925. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  926. local mag = (lastPoint - Soul.Position).magnitude
  927. Effect{
  928. Effect = "Fade",
  929. CFrame = point * CF.N(0, mag/2, 0),
  930. Size = V3.N(.5,mag+.5,.5),
  931. Color = Soul.BrickColor
  932. }
  933. lastPoint = Soul.CFrame.p
  934. swait()
  935. end
  936. for i = 1, 5 do
  937. Effect{
  938. Effect="Fade",
  939. Color = BrickColor.new'Really red',
  940. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  941. }
  942. end
  943. end
  944. end
  945.  
  946. --// Other Functions \\ --
  947.  
  948. function CastRay(startPos,endPos,range,ignoreList)
  949. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  950. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  951. return part,pos,norm,(pos and (startPos-pos).magnitude)
  952. end
  953.  
  954. function getRegion(point,range,ignore)
  955. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  956. end
  957.  
  958. function clerp(startCF,endCF,alpha)
  959. return startCF:lerp(endCF, alpha)
  960. end
  961.  
  962. function GetTorso(char)
  963. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  964. end
  965.  
  966.  
  967. function ShowDamage(Pos, Text, Time, Color)
  968. coroutine.wrap(function()
  969. local Rate = (1 / Frame_Speed)
  970. local Pos = (Pos or Vector3.new(0, 0, 0))
  971. local Text = (Text or "")
  972. local Time = (Time or 2)
  973. local Color = (Color or Color3.new(1, 0, 1))
  974. local EffectPart = NewInstance("Part",Effects,{
  975. Material=Enum.Material.SmoothPlastic,
  976. Reflectance = 0,
  977. Transparency = 1,
  978. BrickColor = BrickColor.new(Color),
  979. Name = "Effect",
  980. Size = Vector3.new(0,0,0),
  981. Anchored = true,
  982. CFrame = CF.N(Pos)
  983. })
  984. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  985. Size = UDim2.new(1.25, 0, 1.25, 0),
  986. Adornee = EffectPart,
  987. })
  988. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  989. BackgroundTransparency = 1,
  990. Size = UDim2.new(1, 0, 1, 0),
  991. Text = Text,
  992. Font = "Bodoni",
  993. TextColor3 = Color,
  994. TextStrokeColor3 = Color3.new(0,0,0),
  995. TextStrokeTransparency=0,
  996. TextScaled = true,
  997. })
  998. S.Debris:AddItem(EffectPart, (Time))
  999. EffectPart.Parent = workspace
  1000. delay(0, function()
  1001. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1002. local Frames = (Time / Rate)
  1003. for Frame = 1, Frames do
  1004. swait()
  1005. local Percent = (Frame / Frames)
  1006. TextLabel.TextTransparency = Percent
  1007. TextLabel.TextStrokeTransparency = Percent
  1008. end
  1009. if EffectPart and EffectPart.Parent then
  1010. EffectPart:Destroy()
  1011. end
  1012. end) end)()
  1013. end
  1014.  
  1015. function DealDamage(data)
  1016. local Who = data.Who;
  1017. local MinDam = data.MinimumDamage or 15;
  1018. local MaxDam = data.MaximumDamage or 30;
  1019. local MaxHP = data.MaxHP or 1e5;
  1020.  
  1021. local DB = data.Debounce or .2;
  1022.  
  1023. local CritData = data.Crit or {}
  1024. local CritChance = CritData.Chance or 0;
  1025. local CritMultiplier = CritData.Multiplier or 1;
  1026.  
  1027. local DamageEffects = data.DamageFX or {}
  1028. local DamageType = DamageEffects.Type or "Normal"
  1029. local DeathFunction = DamageEffects.DeathFunction
  1030.  
  1031. assert(Who,"Specify someone to damage!")
  1032.  
  1033. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  1034. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  1035.  
  1036. local canHit = true
  1037. if(Humanoid)then
  1038. for _, p in pairs(Hit) do
  1039. if p[1] == Humanoid then
  1040. if(time() - p[2] <= DB) then
  1041. canHit = false
  1042. else
  1043. Hit[_] = nil
  1044. end
  1045. end
  1046. end
  1047. if(canHit)then
  1048. table.insert(Hit,{Humanoid,time()})
  1049. local HitTorso = GetTorso(Who)
  1050. local player = S.Players:GetPlayerFromCharacter(Who)
  1051. if(not player or player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then
  1052. if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
  1053. print'Got kill'
  1054. Humanoid.Health = 0;
  1055. Who:BreakJoints();
  1056. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  1057. else
  1058. local c = Instance.new("ObjectValue",Hum)
  1059. c.Name = "creator"
  1060. c.Value = Plr
  1061. S.Debris:AddItem(c,0.35)
  1062. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  1063. ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), DoneDamage, 1.5, DamageColor.Color)
  1064. end
  1065. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
  1066. Humanoid.Health = Humanoid.Health - DoneDamage
  1067.  
  1068. if(DamageType == 'Knockback' and HitTorso)then
  1069. local up = DamageEffects.KnockUp or 25
  1070. local back = DamageEffects.KnockBack or 25
  1071. local origin = DamageEffects.Origin or Root
  1072. local decay = DamageEffects.Decay or .5;
  1073.  
  1074. local bfos = Instance.new("BodyVelocity",HitTorso)
  1075. bfos.P = 20000
  1076. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1077. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1078. S.Debris:AddItem(bfos,decay)
  1079. elseif(DamageType == 'FlingEm' and HitTorso)then
  1080. Humanoid.PlatformStand = true
  1081. local up = DamageEffects.KnockUp or 25
  1082. local back = DamageEffects.KnockBack or 25
  1083. local origin = DamageEffects.Origin or Root
  1084. local decay = DamageEffects.Decay or .5;
  1085.  
  1086. local bfos = Instance.new("BodyVelocity",HitTorso)
  1087. bfos.P = 20000
  1088. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1089. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1090. S.Debris:AddItem(bfos,decay)
  1091. local Sizey = (function()
  1092. if(Who:FindFirstChild'HumanoidRootPart')then
  1093. return Who.HumanoidRootPart.Size
  1094. else
  1095. return HitTorso.Size
  1096. end
  1097. end)()
  1098. local collision = Part(Who,C3.N(0,0,0),Enum.Material.Plastic,Sizey,CF.N(),false,false)
  1099. collision.Transparency = 1
  1100. Weld(collision,HitTorso)
  1101. local ev;
  1102. ev = collision.Touched:connect(function(t)
  1103. if(t.Parent ~= Who and t.Parent ~= Char and not t:IsDescendantOf(Who) and not t:IsDescendantOf(Char))then
  1104. Who:breakJoints()
  1105. ev:disconnect()
  1106. end
  1107. end)
  1108. end
  1109. end
  1110. end
  1111. end
  1112. end
  1113. end
  1114.  
  1115. function AOEDamage(where,range,options)
  1116. local hit = {}
  1117. for _,v in next, getRegion(where,range,{Char}) do
  1118. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
  1119. local callTable = {Who=v.Parent}
  1120. hit[v.Parent] = true
  1121. for _,v in next, options do callTable[_] = v end
  1122. DealDamage(callTable)
  1123. end
  1124. end
  1125. return hit
  1126. end
  1127.  
  1128. function AOEHeal(where,range,amount)
  1129. local healed = {}
  1130. for _,v in next, getRegion(where,range,{Char}) do
  1131. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1132. if(hum and not healed[hum])then
  1133. hum.Health = hum.Health + amount
  1134. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1135. 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)
  1136. end
  1137. end
  1138. end
  1139. end
  1140.  
  1141. function ClosestHumanoid(pos,range)
  1142. local mag,closest = math.huge;
  1143. local root;
  1144. for _,v in next, getRegion(pos,range or 10,{Char}) do
  1145. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
  1146. if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then
  1147. mag = (v.CFrame.p-pos).magnitude
  1148. closest = hum
  1149. if(v.Parent:FindFirstChild'HumanoidRootPart')then
  1150. root = v.Parent.HumanoidRootPart
  1151. end
  1152. end
  1153. end
  1154. return closest,(closest and GetTorso(closest.Parent) or nil),root
  1155. end
  1156.  
  1157. function AttackTemp()
  1158. local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
  1159.  
  1160. if(torso)then
  1161. local who = torso.Parent
  1162. WalkSpeed = 0
  1163. Hum.JumpPower = 0
  1164. Attack = true
  1165. NeutralAnims = false
  1166. Hum.AutoRotate = false
  1167. who.Parent = Char
  1168. local oRoot
  1169. coroutine.resume(coroutine.create(function()
  1170. repeat
  1171. swait()
  1172. torso.Anchored = true
  1173. Root.Anchored = true
  1174. until not Attack
  1175. Root.Anchored = false
  1176. torso.Anchored = false
  1177. Hum.AutoRotate = true
  1178. end))
  1179. torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
  1180. WalkSpeed = 16
  1181. Hum.AutoRotate = true
  1182. Hum.JumpPower = 50
  1183. Attack = false
  1184. NeutralAnims = true
  1185. end
  1186. end
  1187.  
  1188. function Decapitate()
  1189. Attack = true
  1190. NeutralAnims = false
  1191. WalkSpeed = 0
  1192. Hum.JumpPower = 0
  1193. Hum.AutoRotate = false
  1194.  
  1195. local humanoid,torso,root = ClosestHumanoid(Torso.CFrame.p,5)
  1196. local gWeld;
  1197. if(torso)then
  1198. if(root)then root:destroy(); end
  1199. gWeld = Weld(torso,RArm,CF.N(0,0,1.25)*CF.A(M.R(90),0,0))
  1200. end
  1201. for i = 0, 3, 0.1 do
  1202. swait()
  1203. local Alpha = .3
  1204. RJ.C0 = clerp(RJ.C0,CFrame.new(3.73038267e-11, -1.10484409, 9.27457586e-06, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  1205. LH.C0 = clerp(LH.C0,CFrame.new(-0.683995843, -0.177489138, -0.897741616, 0.999873757, -7.23900939e-11, 0.0156120826, -9.81522608e-05, 0.999988914, 0.00628615217, -0.0156121273, -0.00628564274, 0.999877512),Alpha)
  1206. RH.C0 = clerp(RH.C0,CFrame.new(0.675989509, -1.42322357, 0.255684435, 0.999875963, -0.0130437706, 0.00857485086, -9.81724879e-05, 0.544059396, 0.839051962, -0.0156097384, -0.838954628, 0.543995202),Alpha)
  1207. LS.C0 = clerp(LS.C0,CFrame.new(-2.02241492, 0.500085652, 0.0289606471, 0.999873757, -7.23900939e-11, 0.0156120826, -9.81522608e-05, 0.999988914, 0.00628615217, -0.0156121273, -0.00628564274, 0.999877512),Alpha)
  1208. RS.C0 = clerp(RS.C0,CFrame.new(1.19103253, 0.467928678, -0.987421989, 0.861010849, 0.471086591, -0.191659823, -0.29760465, 0.161091402, -0.941004634, -0.412423193, 0.867260695, 0.278900415),Alpha)
  1209. NK.C0 = clerp(NK.C0,CFrame.new(8.35345054e-06, 2.02163172, -0.019419238, 0.999995589, 3.67173925e-07, -1.56462193e-07, -3.56551027e-07, 0.997973442, 0.0637700409, 1.90921128e-07, -0.0637693703, 0.997983992),Alpha)
  1210. end
  1211.  
  1212.  
  1213. if(torso and gWeld)then
  1214. local who = torso.Parent
  1215.  
  1216. for i = 0, 2, 0.1 do
  1217. swait()
  1218. local Alpha = .3
  1219. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733, -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  1220. LH.C0 = clerp(LH.C0,CFrame.new(-0.669602811, -1.28498969, 0.0313415863, 0.985017717, -1.11425685e-07, 0.172440618, -0.00108562189, 0.999984562, 0.0062019499, -0.172439247, -0.00629561814, 0.985009789),Alpha)
  1221. RH.C0 = clerp(RH.C0,CFrame.new(0.672363043, -1.28521297, 0.023051152, 0.993336737, -1.2538369e-06, -0.115229882, 0.000725628284, 0.999984622, 0.00624438236, 0.115228966, -0.00628577033, 0.993328869),Alpha)
  1222. LS.C0 = clerp(LS.C0,CFrame.new(-1.50595617, 0.648058772, -0.363369375, 0.970248938, -0.240059406, -0.0313680209, -0.145796537, -0.475936145, -0.867315948, 0.19327952, 0.846091807, -0.496780664),Alpha)
  1223. RS.C0 = clerp(RS.C0,CFrame.new(1.24497938, 0.376010507, -0.544311762, 0.467782408, 0.342397809, 0.814824641, 0.878098845, -0.0750677809, -0.472563267, -0.100637719, 0.936560154, -0.335777313),Alpha)
  1224. NK.C0 = clerp(NK.C0,CFrame.new(1.11990994e-05, 2.02161074, -0.0194199979, 0.999997795, -5.51342964e-07, 2.84891576e-06, 9.31104296e-08, 0.98739022, 0.158333212, -2.89361924e-06, -0.158333361, 0.987395525),Alpha)
  1225. end
  1226. for i = 0, 3, 0.1 do
  1227. swait()
  1228. local Alpha = .3
  1229. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733, -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  1230. LH.C0 = clerp(LH.C0,CFrame.new(-0.669602811, -1.28498969, 0.0313415863, 0.985017717, -1.11425685e-07, 0.172440618, -0.00108562189, 0.999984562, 0.0062019499, -0.172439247, -0.00629561814, 0.985009789),Alpha)
  1231. RH.C0 = clerp(RH.C0,CFrame.new(0.672363043, -1.28521297, 0.023051152, 0.993336737, -1.2538369e-06, -0.115229882, 0.000725628284, 0.999984622, 0.00624438236, 0.115228966, -0.00628577033, 0.993328869),Alpha)
  1232. LS.C0 = clerp(LS.C0,CFrame.new(-1.50595617, 0.648058772, -0.363369375, 0.970248938, -0.240059406, -0.0313680209, -0.145796537, -0.475936145, -0.867315948, 0.19327952, 0.846091807, -0.496780664)*CF.A(M.RRNG(-3,3),M.RRNG(-3,3),M.RRNG(-3,3)),Alpha)
  1233. RS.C0 = clerp(RS.C0,CFrame.new(1.24497938, 0.376010507, -0.544311762, 0.467782408, 0.342397809, 0.814824641, 0.878098845, -0.0750677809, -0.472563267, -0.100637719, 0.936560154, -0.335777313)*CF.A(M.RRNG(-3,3),M.RRNG(-3,3),M.RRNG(-3,3)),Alpha)
  1234. NK.C0 = clerp(NK.C0,CFrame.new(1.11990994e-05, 2.02161074, -0.0194199979, 0.999997795, -5.51342964e-07, 2.84891576e-06, 9.31104296e-08, 0.98739022, 0.158333212, -2.89361924e-06, -0.158333361, 0.987395525),Alpha)
  1235. end
  1236. gWeld:destroy()
  1237. local hae = who:FindFirstChild'Head'
  1238. local haed;
  1239. Sound(torso,1093102664,.85,5,false,true,true)
  1240. Sound(torso,429400881,1,1,false,true,true)
  1241. if(hae)then
  1242. haed = Part(Char,hae.Color,hae.Material,hae.Size,CF.N(),false,false)
  1243. Mesh(haed,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25))
  1244. local faic = hae:FindFirstChildOfClass'Decal'
  1245. if(faic)then
  1246. faic:Clone().Parent = haed
  1247. end
  1248. hae:destroy()
  1249. local we = Weld(haed,LArm,CF.N(0,0,1.25),CF.A(M.R(-90),0,0))
  1250. coroutine.wrap(function()
  1251. for i = 1, 250 do
  1252. if(not who or not who.Parent)then break end
  1253. if(haed and haed.Parent)then BloodDrop(haed.CFrame*CF.N(0,-haed.Size.Y/2,0).p,haed.CFrame * CF.N(0,-haed.Size.Y,0).p,15) end
  1254. BloodDrop(torso.CFrame*CF.N(0,torso.Size.Y/2,0).p,torso.CFrame * CF.N(0,torso.Size.Y,0).p,15)
  1255. swait(2)
  1256. end
  1257. end)()
  1258. end
  1259. for i = 0, 6, 0.1 do
  1260. swait()
  1261. local Alpha = .3
  1262. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733, -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  1263. LH.C0 = clerp(LH.C0,CFrame.new(-0.669602811, -1.28498969, 0.0313415863, 0.985017717, -1.11425685e-07, 0.172440618, -0.00108562189, 0.999984562, 0.0062019499, -0.172439247, -0.00629561814, 0.985009789),Alpha)
  1264. RH.C0 = clerp(RH.C0,CFrame.new(0.672363043, -1.28521297, 0.023051152, 0.993336737, -1.2538369e-06, -0.115229882, 0.000725628284, 0.999984622, 0.00624438236, 0.115228966, -0.00628577033, 0.993328869),Alpha)
  1265. LS.C0 = clerp(LS.C0,CFrame.new(-1.77177048, 0.838547349, -0.679161608, 0.555506885, 0.830917358, -0.0313709527, 0.398059189, -0.298866272, -0.867315829, -0.730048597, 0.469315678, -0.496780783),Alpha)
  1266. RS.C0 = clerp(RS.C0,CFrame.new(1.24497938, 0.376010507, -0.544311762, 0.467782408, 0.342397809, 0.814824641, 0.878098845, -0.0750677809, -0.472563267, -0.100637719, 0.936560154, -0.335777313),Alpha)
  1267. NK.C0 = clerp(NK.C0,CFrame.new(1.11990994e-05, 2.02161074, -0.0194199979, 0.999997795, -5.51342964e-07, 2.84891576e-06, 9.31104296e-08, 0.98739022, 0.158333212, -2.89361924e-06, -0.158333361, 0.987395525),Alpha)
  1268. end
  1269. if(haed)then haed:breakJoints() haed.CanCollide = true delay(1, function() for i = 0, 1, .05 do haed.Transparency = i swait() end haed:destroy() end) end
  1270. end
  1271. Hum.AutoRotate = true
  1272. WalkSpeed = 12
  1273. Hum.JumpPower = 50
  1274. Attack = false
  1275. NeutralAnims = true
  1276. end
  1277.  
  1278. function Taunt()
  1279. Attack = true
  1280. NeutralAnims = false
  1281. local tau = Sound(Head,907332856,1,5,false,true,true)
  1282. WalkSpeed = 0
  1283. repeat swait() until tau.IsLoaded
  1284.  
  1285. repeat swait()
  1286. local Alpha = .1
  1287. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733+.1*M.C(Sine/24), -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  1288. LH.C0 = clerp(LH.C0,CFrame.new(-0.669678032, -1.38499403-.1*M.C(Sine/24), 0.0295096412, 0.990272164, -5.56828963e-05, 0.139128789, -0.000814882107, 0.999984801, 0.00620027725, -0.139128059, -0.00625271676, 0.990264475),Alpha)
  1289. RH.C0 = clerp(RH.C0,CFrame.new(0.672359347, -1.38521934-.1*M.C(Sine/24), 0.0211674385, 0.991539717, -1.65234928e-06, -0.12978667, 0.000817281427, 0.999984622, 0.00623110821, 0.129785627, -0.00628384575, 0.991531849),Alpha)
  1290. LS.C0 = clerp(LS.C0,CFrame.new(-0.915843368, 0.359640986, -0.334288538, 0.401372224, -0.891078174, 0.21183902, 0.504320204, 0.021941511, -0.863243043, 0.764574885, 0.453319848, 0.458198279),Alpha)
  1291. RS.C0 = clerp(RS.C0,CFrame.new(1.01991177, 0.324635416, -0.81657666, 0.166016608, 0.986036301, 0.0129131982, -0.818172693, 0.145040289, -0.556386292, -0.550494492, 0.0818048492, 0.830832779),Alpha)
  1292. NK.C0 = clerp(NK.C0,CFrame.new(1.02607883e-05, 2.02162433, -0.0194168612, 0.999995589, 3.67173925e-07, -1.56462193e-07, -3.56551027e-07, 0.997973442, 0.0637700409, 1.90921128e-07, -0.0637693703, 0.997983992)*CF.A(M.R(tau.PlaybackLoudness/25),0,0),Alpha)
  1293. until not tau.Parent or tau.TimePosition >= tau.TimeLength-.1
  1294.  
  1295. WalkSpeed = 12
  1296. Attack = false
  1297. NeutralAnims = true
  1298. end
  1299.  
  1300. function TraceThing(COLOR,PLACE2) -- thanks shack dadi
  1301. local FADE = Effects
  1302. for _, c in pairs(Char:GetChildren()) do
  1303. if c:IsA'BasePart' and c ~= Root and c.Name ~= 'Horn' then
  1304. local DIST = (c.Position-PLACE2).magnitude
  1305. local FADER = c:Clone()
  1306. FADER.Color = COLOR
  1307. FADER.Size = Vector3.new(FADER.Size.X,FADER.Size.Y,DIST)
  1308. FADER.CFrame = CFrame.new(c.Position,PLACE2) * CFrame.new(0,0,-DIST/2)
  1309. FADER.Parent = FADE
  1310. FADER.Anchored = true
  1311. FADER.Transparency = 0.25
  1312. FADER:BreakJoints()
  1313. FADER.Material = "Glass"
  1314. FADER.CanCollide = false
  1315. FADER:ClearAllChildren()
  1316.  
  1317. if FADER.Name == "Head" then
  1318. FADER.Size = Vector3.new(1,1,1)
  1319. end
  1320. Effect{
  1321. Effect='Fade',
  1322. Manual=FADER
  1323. }
  1324. end
  1325. end
  1326.  
  1327. end
  1328.  
  1329. function ShadowDash()
  1330. local whom = (Mouse.Target and Mouse.Target.Parent)
  1331. if(whom and whom:FindFirstChildOfClass'Humanoid' and GetTorso(whom))then
  1332. local tits = GetTorso(whom)
  1333. WalkSpeed = 0
  1334. Hum.AutoRotate = false
  1335. Hum.JumpPower = 0
  1336. Attack = true
  1337. NeutralAnims = false
  1338. tits.Anchored = true
  1339. pe.Enabled = false
  1340. for _,v in next, Char:children() do
  1341. if(v:IsA'BasePart')then
  1342. v.Transparency = 1
  1343. end
  1344. end
  1345. Root.Anchored = true
  1346. Root.CFrame = tits.CFrame
  1347. TraceThing(Color3.new(0,0,0),tits.Position)
  1348. swait(60)
  1349. tits.Anchored = false
  1350. whom:breakJoints()
  1351. Sound(Torso,429400881,1,1,false,true,true)
  1352. for i = 1, 150 do
  1353. BloodDrop(tits.CFrame.p,tits.CFrame*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360))*CF.N(0,0,-250).p,0)
  1354. end
  1355.  
  1356. for _,v in next, whom:children() do
  1357. if(v:IsA'BasePart')then
  1358. v.Transparency = 1
  1359. v.CanCollide = false
  1360. end
  1361. end
  1362.  
  1363. for _,v in next, Char:children() do
  1364. if(v:IsA'BasePart' and v ~= Root)then
  1365. v.Transparency = 0
  1366. end
  1367. end
  1368.  
  1369. Sound(Torso,51322486,.25,5,false,true,true)
  1370. Sound(Torso,90696602,.75,5,false,true,true)
  1371. for i = 0, 28, 0.1 do
  1372. swait()
  1373. local Alpha = .4
  1374. RJ.C0 = clerp(RJ.C0,CFrame.new(0.00757355848, 0.0377852023+.1*M.C(Sine/24), 0.485009342, 0.999981403, 0.00563284894, -0.00109071564, -0.00563992467, 0.930139899, -0.367174059, -0.00105372258, 0.367176652, 0.93016088),Alpha)
  1375. LH.C0 = clerp(LH.C0,CFrame.new(-0.552594781, -1.50296986-.1*M.C(Sine/24), 0.0680995584, 0.976442635, 0.0836730748, 0.198894158, -0.152352825, 0.920082569, 0.360883713, -0.152802736, -0.382684261, 0.911155462),Alpha)
  1376. RH.C0 = clerp(RH.C0,CFrame.new(0.567943096, -1.50207984-.1*M.C(Sine/24), 0.0515697002, 0.953646958, -0.0866500363, -0.288183123, 0.189154476, 0.917415917, 0.350098461, 0.234047636, -0.388381392, 0.89128089),Alpha)
  1377. LS.C0 = clerp(LS.C0,CFrame.new(-1.75206876, 0.655161917+.1*M.C(Sine/24), 0.0501086563, 0.92441982, 0.349119335, 0.153505713, -0.381188124, 0.858473122, 0.343103051, -0.0119965971, -0.375685781, 0.926669419),Alpha)
  1378. RS.C0 = clerp(RS.C0,CFrame.new(1.74417436, 0.680885673+.1*M.C(Sine/24), 0.0660502613, 0.924426794, -0.360479355, -0.124458626, 0.380988151, 0.858555913, 0.343118131, -0.0168322921, -0.364604831, 0.931010187),Alpha)
  1379. NK.C0 = clerp(NK.C0,CFrame.new(1.50889819e-05, 2.00338078, 0.0683209598, 1.00000012, -5.74626029e-07, 2.76975334e-06, 1.12503767e-06, 0.979146719, -0.203155011, -2.59466469e-06, 0.203154892, 0.9791466),Alpha)
  1380. end
  1381. Attack = false
  1382. NeutralAnims = true
  1383. Root.Anchored = false
  1384. WalkSpeed = 12
  1385. Hum.JumpPower = 50
  1386. Hum.AutoRotate = true
  1387. end
  1388. end
  1389.  
  1390. function Kick()
  1391. Attack = true
  1392. NeutralAnims = false
  1393. WalkSpeed = 0
  1394. for i = 0, 3, 0.1 do
  1395. swait()
  1396. local Alpha = .3
  1397. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0108572729, 0, -0.695583761, 0.999961317, -0.00823512767, -0.00228715781, 0.00822012592, 0.853373766, 0.521243095, -0.00234070979, -0.521245122, 0.853415012),Alpha)
  1398. LH.C0 = clerp(LH.C0,CFrame.new(-0.671167731, -1.38471591, -0.0706769824, 0.999878228, -0.00854624435, 0.0130612627, -9.76649171e-05, 0.833346248, 0.552751541, -0.0156085016, -0.552685499, 0.833243787),Alpha)
  1399. RH.C0 = clerp(RH.C0,CFrame.new(0.668480039, -1.47226596, -0.225226939, 0.999876022, 0.00822012592, 0.0132711167, -9.63718194e-05, 0.853373766, -0.521310091, -0.0156105161, 0.521243095, 0.853275299),Alpha)
  1400. LS.C0 = clerp(LS.C0,CFrame.new(-2.02284789, 0.688191652, 0.000862836838, 0.999878228, 0.0108040562, 0.0112653123, -9.76649171e-05, 0.726044297, -0.687648118, -0.0156085016, 0.687563181, 0.725956857),Alpha)
  1401. RS.C0 = clerp(RS.C0,CFrame.new(2.01978493, 0.643525422, -0.250506341, 0.999878228, 0.0108030885, 0.0112662409, -9.76649171e-05, 0.726103425, -0.687585771, -0.0156085016, 0.687500834, 0.726015925),Alpha)
  1402. NK.C0 = clerp(NK.C0,CFrame.new(1.23225118e-05, 2.02159524, -0.019422181, 1.00000012, 1.39325857e-06, -2.44937837e-07, -1.37463212e-06, 0.997964859, 0.0637694597, 3.31550837e-07, -0.0637694299, 0.997964621),Alpha)
  1403. end
  1404. for i = 0, 3, 0.1 do
  1405. swait()
  1406. AOEDamage(LLeg.CFrame.p,2,{MinDamage=15,MaxDamage=35,DamageFX={Type='FlingEm',KnockBack=75,Origin=LLeg,KnockUp=25}})
  1407. local Alpha = .3
  1408. RJ.C0 = clerp(RJ.C0,CFrame.new(0.00780527852, 0, 0.499894947, 0.999982774, 0.00539445458, -0.000995628536, -0.00539992284, 0.936068416, -0.3517887, -0.000965735875, 0.351791173, 0.936088264),Alpha)
  1409. LH.C0 = clerp(LH.C0,CFrame.new(-0.671892226, -1.23579645, -0.118154764, 0.999878228, 0.00863712933, 0.0130002648, -9.75973526e-05, 0.83637166, -0.548162997, -0.0156076048, 0.548094988, 0.836270571),Alpha)
  1410. RH.C0 = clerp(RH.C0,CFrame.new(0.6725474, -1.47226596, 0.0332563818, 0.999876022, -0.00539992284, 0.0146462582, -9.84164217e-05, 0.936068416, 0.351832539, -0.0156098502, -0.3517887, 0.935958624),Alpha)
  1411. LS.C0 = clerp(LS.C0,CFrame.new(-2.01932526, 0.751780629, 0.226142645, 0.999878228, -0.0136112757, 0.00763806421, -9.75973526e-05, 0.483909249, 0.875118136, -0.0156076048, -0.875012398, 0.483849049),Alpha)
  1412. RS.C0 = clerp(RS.C0,CFrame.new(2.02764368, 0.580253482, 0.252969861, 0.999878228, -0.0136119165, 0.00763692334, -9.75973526e-05, 0.483835995, 0.875158668, -0.0156076048, -0.875052869, 0.483775735),Alpha)
  1413. NK.C0 = clerp(NK.C0,CFrame.new(1.83633183e-05, 2.02156091, -0.0194185972, 1.00000012, 1.6214326e-06, -1.53947622e-06, -1.51945278e-06, 0.997964621, 0.0637715757, 1.64005905e-06, -0.0637715757, 0.997964621),Alpha)
  1414. end
  1415. WalkSpeed = 12
  1416. Attack = false
  1417. NeutralAnims = true
  1418. end
  1419. --// Wrap it all up \\--
  1420.  
  1421. S.UserInputService.InputBegan:connect(function(io,gpe)
  1422. if(gpe or Attack)then return end
  1423. if(io.KeyCode == Enum.KeyCode.Z)then
  1424. Decapitate()
  1425. elseif(io.KeyCode == Enum.KeyCode.M)then
  1426. ShadowDash()
  1427. elseif(io.KeyCode == Enum.KeyCode.F)then
  1428. Kick()
  1429.  
  1430. elseif(io.KeyCode == Enum.KeyCode.T)then
  1431. Taunt()
  1432. end
  1433. end)
  1434.  
  1435. Plr.Chatted:connect(function(m)
  1436. if(m == '/e sit')then
  1437. idleCounter = 0
  1438. Sitting = not Sitting
  1439. end
  1440. end)
  1441.  
  1442. while true do
  1443. swait()
  1444. Sine = Sine + Change
  1445. if(not Music)then
  1446. Music = Sound(Char,MusicID,1,3,true,false,true)
  1447. Music.Name = 'Music'
  1448. end
  1449. Music.SoundId = "rbxassetid://"..MusicID
  1450. Music.Parent = Torso
  1451. Music.Pitch = 1
  1452. Music.Volume = 5
  1453. if(not Muted)then
  1454. Music:Resume()
  1455. else
  1456. Music:Pause()
  1457. end
  1458.  
  1459.  
  1460. if(God)then
  1461. Hum.MaxHealth = 1e100
  1462. Hum.Health = 1e100
  1463. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1464. Hum.Name = M.RNG()*100
  1465. end
  1466.  
  1467. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
  1468.  
  1469. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1470. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed < 24 and "Walk" or "Run") or hitfloor and "Idle")
  1471. if(not Effects or not Effects.Parent)then
  1472. Effects = IN("Model",Char)
  1473. Effects.Name = "Effects"
  1474. end
  1475. if(State == 'Run')then
  1476. local wsVal = 7 / (Hum.WalkSpeed/16)
  1477. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1478. Change = 1
  1479. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.1*M.C(Sine/wsVal),0+.2*M.C(Sine/wsVal))*CF.A(M.R(8-0*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/1.5,0,0),.2)
  1480. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.1*M.C(Sine/wsVal),0-.2*M.C(Sine/wsVal))*CF.A(M.R(8+0*M.C(Sine/wsVal))+M.S(Sine/wsVal)/1.5,0,0),.2)
  1481. elseif(State == 'Walk')then
  1482. local wsVal = 7 / (Hum.WalkSpeed/16)
  1483. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1484. Change = 1
  1485. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.5*M.C(Sine/wsVal)/2,0+.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15-15*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1486. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.5*M.C(Sine/wsVal)/2,0-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15+15*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1487. else
  1488. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize,0),.2)
  1489. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize,0),.2)
  1490. end
  1491.  
  1492. if(State == 'Idle' and NeutralAnims)then
  1493. idleCounter = idleCounter + 1
  1494. else
  1495. Sitting = false
  1496. idleCounter = 0
  1497. end
  1498.  
  1499. Hum.WalkSpeed = WalkSpeed
  1500. if(not Char:FindFirstChildOfClass'Shirt')then
  1501. NewInstance("Shirt",Char,{ShirtTemplate='rbxassetid://236410507'})
  1502. else
  1503. Char:FindFirstChildOfClass'Shirt'.ShirtTemplate='rbxassetid://236410507'
  1504. end
  1505.  
  1506. if(not Char:FindFirstChildOfClass'Pants')then
  1507. NewInstance("Pants",Char,{PantsTemplate='rbxassetid://236412261'})
  1508. else
  1509. Char:FindFirstChildOfClass'Pants'.PantsTemplate='rbxassetid://236412261'
  1510. end
  1511.  
  1512. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1513.  
  1514. local face = Head:FindFirstChild'face'
  1515. if(not face)then
  1516. NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
  1517. else
  1518. face.Texture = "rbxassetid://404306534"
  1519. end
  1520.  
  1521. RArm.Color = C3.N(0.1,0.1,0.1)
  1522. LArm.Color = C3.N(0.1,0.1,0.1)
  1523. RLeg.Color = C3.N(0.1,0.1,0.1)
  1524. LLeg.Color = C3.N(0.1,0.1,0.1)
  1525. Torso.Color = C3.N(0.1,0.1,0.1)
  1526. Head.Color = C3.N(0.1,0.1,0.1)
  1527.  
  1528. if(NeutralAnims)then
  1529. if(State == 'Idle')then
  1530. if(not Sitting and idleCounter < 1500)then
  1531. local Alpha = .1
  1532. Change = 1
  1533. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,0+.2*M.C(Sine/24),0)*CF.A(M.R(0+5*M.S(Sine/24)),0,0),Alpha)
  1534. NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,-.1)*CF.A(M.R(-15),0,M.R(10)),Alpha)
  1535. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(10+5*M.C(Sine/24)),0,M.R(-15+5*M.C(Sine/24))),Alpha)
  1536. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(10+5*M.C(Sine/24)),0,M.R(15-5*M.C(Sine/24))),Alpha)
  1537. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.2*M.C(Sine/24),0)*CF.A(M.R(0-5*M.S(Sine/24)),0,M.R(-5)),Alpha)
  1538. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.2*M.C(Sine/24),0)*CF.A(M.R(0-5*M.S(Sine/24)),0,M.R(5)),Alpha)
  1539. else
  1540. local Alpha = .1
  1541. Change = 1
  1542. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-2+.2*M.C(Sine/24),0)*CF.A(M.R(0+5*M.S(Sine/24)),0,0),Alpha)
  1543. NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,-.1)*CF.A(M.R(-15),0,M.R(10)),Alpha)
  1544. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(90+2*M.C(Sine/24)),0,M.R(15+2*M.C(Sine/24))),Alpha)
  1545. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(10+5*M.C(Sine/24)),0,M.R(15-5*M.C(Sine/24))),Alpha)
  1546. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,2-.2*M.C(Sine/24),-1)*CF.A(M.R(0-5*M.S(Sine/24)),0,M.R(-5)),Alpha)
  1547. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.2*M.C(Sine/24),0)*CF.A(M.R(-90-5*M.S(Sine/24)),0,M.R(5)),Alpha)
  1548. end
  1549. elseif(State == 'Run')then
  1550. local wsVal = 7 / (Hum.WalkSpeed/16)
  1551. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1552. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1553. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1554. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
  1555. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
  1556. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1557. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1558. elseif(State == 'Walk')then
  1559. local wsVal = 7 / (Hum.WalkSpeed/16)
  1560. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1561. local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
  1562. RJ.C0 = RJ.C0:lerp(CF.N(0,-.1+.1*M.C(Sine/(wsVal/2)+-M.S(Sine/(wsVal/2))/3),0)*CF.A(M.R(-9-2.5*M.C(Sine/(wsVal/2))),M.R(10*M.C(Sine/wsVal)),Root.RotVelocity.y/75),Alpha2)
  1563. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha)
  1564. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.27*M.C(Sine/wsVal))*CF.A(M.R(45*M.C(Sine/wsVal)),0,M.R(-5)+LArm.RotVelocity.y/75),Alpha)
  1565. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.27*M.C(Sine/wsVal))*CF.A(M.R(-45*M.C(Sine/wsVal)),0,M.R(5)-RArm.RotVelocity.y/75),Alpha)
  1566. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1567. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1568. elseif(State == 'Jump')then
  1569. local Alpha = .1
  1570. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1571. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  1572. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  1573. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1574. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1575. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1576. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1577. elseif(State == 'Fall')then
  1578. local Alpha = .1
  1579. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1580. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1581. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1582. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1583. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1584. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1585. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1586. elseif(State == 'Paralyzed')then
  1587. -- paralyzed
  1588. elseif(State == 'Sit')then
  1589. -- sit
  1590. end
  1591. end
  1592.  
  1593. for i,v in next, BloodPuddles do
  1594. local mesh = i:FindFirstChild'CylinderMesh'
  1595. BloodPuddles[i] = v + 1
  1596. if(not mesh or i.Transparency >= 1)then
  1597. i:destroy()
  1598. BloodPuddles[i] = nil
  1599. elseif(v > Frame_Speed*4)then
  1600. local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
  1601. i.Transparency = trans
  1602. if(mesh.Scale.Z > 0)then
  1603. mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
  1604. end
  1605. else
  1606. i.Transparency = 0
  1607. end
  1608. end
  1609. end
  1610.  
  1611. -- Created by Nebula_Zorua --
  1612. -- Mephisto --
  1613. -- ..? --
  1614. -- Discord: Nebula the Zorua#6969
  1615. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  1616.  
  1617. wait(1/60)
  1618.  
  1619. --// Shortcut Variables \\--
  1620. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  1621. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  1622. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  1623. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  1624. 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}
  1625. local R3 = {N=Region3.new}
  1626. local De = S.Debris
  1627. local WS = workspace
  1628. local Lght = S.Lighting
  1629. local RepS = S.ReplicatedStorage
  1630. local IN = Instance.new
  1631. local Plrs = S.Players
  1632.  
  1633. --// Initializing \\--
  1634. local Plr = Plrs.Xoralien
  1635. local Char = Plr.Character
  1636. local Hum = Char:FindFirstChildOfClass'Humanoid'
  1637. local RArm = Char["Right Arm"]
  1638. local LArm = Char["Left Arm"]
  1639. local RLeg = Char["Right Leg"]
  1640. local LLeg = Char["Left Leg"]
  1641. local Root = Char:FindFirstChild'HumanoidRootPart'
  1642. local Torso = Char.Torso
  1643. local Head = Char.Head
  1644. local NeutralAnims = true
  1645. local Attack = false
  1646. local Debounces = {Debounces={}}
  1647. local Hit = {}
  1648. local Sine = 0
  1649. local Change = 1
  1650. local BloodPuddles = {}
  1651. local idleCounter = 0;
  1652. local Sitting = false
  1653.  
  1654. local Effects = IN("Folder",Char)
  1655. Effects.Name = "Effects"
  1656.  
  1657.  
  1658. --// Debounce System \\--
  1659.  
  1660.  
  1661. function Debounces:New(name,cooldown)
  1662. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  1663. setmetatable(aaaaa,{__index = Debounces})
  1664. Debounces.Debounces[name] = aaaaa
  1665. return aaaaa
  1666. end
  1667.  
  1668. function Debounces:Use(overrideUsable)
  1669. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  1670. if(self.Usable or overrideUsable)then
  1671. self.Usable = false
  1672. self.CoolingDown = true
  1673. local LastUse = time()
  1674. self.LastUse = LastUse
  1675. delay(self.Cooldown or 2,function()
  1676. if(self.LastUse == LastUse)then
  1677. self.CoolingDown = false
  1678. self.Usable = true
  1679. end
  1680. end)
  1681. end
  1682. end
  1683.  
  1684. function Debounces:Get(name)
  1685. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  1686. for i,v in next, Debounces.Debounces do
  1687. if(i == name)then
  1688. return v;
  1689. end
  1690. end
  1691. end
  1692.  
  1693. function Debounces:GetProgressPercentage()
  1694. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  1695. if(self.CoolingDown and not self.Usable)then
  1696. return math.max(
  1697. math.floor(
  1698. (
  1699. (time()-self.LastUse)/self.Cooldown or 2
  1700. )*100
  1701. )
  1702. )
  1703. else
  1704. return 100
  1705. end
  1706. end
  1707.  
  1708. --// Instance Creation Functions \\--
  1709.  
  1710. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  1711. local Sound = IN("Sound")
  1712. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  1713. Sound.Pitch = pitch or 1
  1714. Sound.Volume = volume or 1
  1715. Sound.Looped = looped or false
  1716. if(autoPlay)then
  1717. coroutine.wrap(function()
  1718. repeat wait() until Sound.IsLoaded
  1719. Sound.Playing = autoPlay or false
  1720. end)()
  1721. end
  1722. if(not looped and effect)then
  1723. Sound.Stopped:connect(function()
  1724. Sound.Volume = 0
  1725. Sound:destroy()
  1726. end)
  1727. elseif(effect)then
  1728. warn("Sound can't be looped and a sound effect!")
  1729. end
  1730. Sound.Parent = parent or Torso
  1731. return Sound
  1732. end
  1733. function Part(parent,color,material,size,cframe,anchored,cancollide)
  1734. local part = IN("Part")
  1735. part.Parent = parent or Char
  1736. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  1737. part.Material = material or Enum.Material.SmoothPlastic
  1738. part.TopSurface,part.BottomSurface=10,10
  1739. part.Size = size or V3.N(1,1,1)
  1740. part.CFrame = cframe or CF.N(0,0,0)
  1741. part.CanCollide = cancollide or false
  1742. part.Anchored = anchored or false
  1743. return part
  1744. end
  1745.  
  1746. function Weld(part0,part1,c0,c1)
  1747. local weld = IN("Weld")
  1748. weld.Parent = part0
  1749. weld.Part0 = part0
  1750. weld.Part1 = part1
  1751. weld.C0 = c0 or CF.N()
  1752. weld.C1 = c1 or CF.N()
  1753. return weld
  1754. end
  1755.  
  1756. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  1757. local part = IN("SpecialMesh")
  1758. part.MeshId = meshid or ""
  1759. part.TextureId = textid or ""
  1760. part.Scale = scale or V3.N(1,1,1)
  1761. part.Offset = offset or V3.N(0,0,0)
  1762. part.MeshType = meshtype or Enum.MeshType.Sphere
  1763. part.Parent = parent
  1764. return part
  1765. end
  1766.  
  1767. NewInstance = function(instance,parent,properties)
  1768. local inst = Instance.new(instance)
  1769. inst.Parent = parent
  1770. if(properties)then
  1771. for i,v in next, properties do
  1772. pcall(function() inst[i] = v end)
  1773. end
  1774. end
  1775. return inst;
  1776. end
  1777.  
  1778. function Clone(instance,parent,properties)
  1779. local inst = instance:Clone()
  1780. inst.Parent = parent
  1781. if(properties)then
  1782. for i,v in next, properties do
  1783. pcall(function() inst[i] = v end)
  1784. end
  1785. end
  1786. return inst;
  1787. end
  1788.  
  1789. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  1790. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  1791. local Sound = IN("Sound")
  1792. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  1793. Sound.Pitch = pitch or 1
  1794. Sound.Volume = volume or 1
  1795. Sound.Looped = looped or false
  1796. if(autoPlay)then
  1797. coroutine.wrap(function()
  1798. repeat wait() until Sound.IsLoaded
  1799. Sound.Playing = autoPlay or false
  1800. end)()
  1801. end
  1802. if(not looped and effect)then
  1803. Sound.Stopped:connect(function()
  1804. Sound.Volume = 0
  1805. soundPart:destroy()
  1806. end)
  1807. elseif(effect)then
  1808. warn("Sound can't be looped and a sound effect!")
  1809. end
  1810. Sound.Parent = soundPart
  1811. return Sound
  1812. end
  1813.  
  1814.  
  1815. --// Extended ROBLOX tables \\--
  1816. 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})
  1817. --// Require stuff \\--
  1818. function CamShake(who,times,intense,origin)
  1819. coroutine.wrap(function()
  1820. if(script:FindFirstChild'CamShake')then
  1821. local cam = script.CamShake:Clone()
  1822. cam:WaitForChild'intensity'.Value = intense
  1823. cam:WaitForChild'times'.Value = times
  1824.  
  1825. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  1826. cam.Parent = who
  1827. wait()
  1828. cam.Disabled = false
  1829. elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
  1830. local intensity = intense
  1831. local cam = workspace.CurrentCamera
  1832. for i = 1, times do
  1833. local camDistFromOrigin
  1834. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  1835. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  1836. elseif(typeof(origin) == 'Vector3')then
  1837. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  1838. end
  1839. if(camDistFromOrigin)then
  1840. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  1841. end
  1842. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  1843. swait()
  1844. end
  1845. end
  1846. end)()
  1847. end
  1848.  
  1849.  
  1850. function CamShakeAll(times,intense,origin)
  1851. for _,v in next, Plrs:players() do
  1852. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  1853. end
  1854. end
  1855.  
  1856. function ServerScript(code)
  1857. if(script:FindFirstChild'Loadstring')then
  1858. local load = script.Loadstring:Clone()
  1859. load:WaitForChild'Sauce'.Value = code
  1860. load.Disabled = false
  1861. load.Parent = workspace
  1862. elseif(NS and typeof(NS) == 'function')then
  1863. NS(code,workspace)
  1864. else
  1865. warn("no serverscripts lol")
  1866. end
  1867. end
  1868.  
  1869. function LocalOnPlayer(who,code)
  1870. ServerScript([[
  1871. wait()
  1872. script.Parent=nil
  1873. if(not _G.Http)then _G.Http = game:service'HttpService' end
  1874.  
  1875. local Http = _G.Http or game:service'HttpService'
  1876.  
  1877. local source = ]].."[["..code.."]]"..[[
  1878. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  1879. local asd = Http:PostAsync(link,source)
  1880. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  1881. local ID = Http:JSONDecode(asd).Result.Require_ID
  1882. local vs = require(ID).VORTH_SCRIPT
  1883. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  1884. ]])
  1885. end
  1886.  
  1887.  
  1888. --// Customization \\--
  1889.  
  1890. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  1891. local Remove_Hats = true
  1892. local Remove_Clothing = true
  1893. local PlayerSize = 1.3
  1894. local DamageColor = BrickColor.new'Really black'
  1895. local MusicID = 340286845
  1896. local God = true
  1897. local Muted = false
  1898.  
  1899. local WalkSpeed = 12
  1900.  
  1901. local Music = Sound(Char,MusicID,1,3,true,false,true)
  1902. Music.Name = 'Music'
  1903.  
  1904. --// Stop animations \\--
  1905. for _,v in next, Hum:GetPlayingAnimationTracks() do
  1906. v:Stop();
  1907. end
  1908.  
  1909. pcall(game.Destroy,Char:FindFirstChild'Animate')
  1910. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  1911.  
  1912.  
  1913. --// Joints \\--
  1914.  
  1915. 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)})
  1916. 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)})
  1917. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  1918. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  1919. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  1920. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  1921.  
  1922. local LSC0 = LS.C0
  1923. local RSC0 = RS.C0
  1924. local NKC0 = NK.C0
  1925. local LHC0 = LH.C0
  1926. local RHC0 = RH.C0
  1927. local RJC0 = RJ.C0
  1928.  
  1929. --// Resizing \\--
  1930.  
  1931. Hum.Parent = nil
  1932. Root.Size = Root.Size*PlayerSize
  1933. Torso.Size = Torso.Size*PlayerSize
  1934. RArm.Size = RArm.Size*PlayerSize
  1935. RLeg.Size = RLeg.Size*PlayerSize
  1936. LArm.Size = LArm.Size*PlayerSize
  1937. LLeg.Size = LLeg.Size*PlayerSize
  1938. Head.Size = Head.Size*PlayerSize
  1939.  
  1940. RJ.Parent = Root
  1941. NK.Parent = Torso
  1942. RS.Parent = Torso
  1943. LS.Parent = Torso
  1944. RH.Parent = Torso
  1945. LH.Parent = Torso
  1946.  
  1947. Hum.Parent = Char
  1948.  
  1949. --// Weapon and GUI creation, and Character Customization \\--
  1950.  
  1951. local pe = NewInstance("ParticleEmitter",Torso,{ZOffset=.9,Color=ColorSequence.new(C3.N(0,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(1,0),Texture='rbxasset://textures/particles/fire_main.dds',Transparency=NumberSequence.new(0,1),EmissionDirection=Enum.NormalId.Top,Enabled=true,Lifetime=NumberRange.new(.7),Rate=500,Speed=NumberRange.new(5)})
  1952. local hood = Part(Char,C3.N(.2,.2,.2),Enum.Material.Fabric,V3.N(2*PlayerSize,2*PlayerSize,2*PlayerSize),CF.N(),false,false)
  1953. local hoodM = Mesh(hood,Enum.MeshType.FileMesh,'rbxassetid://16952952','',V3.N(1.05*PlayerSize,1.05*PlayerSize,1.05*PlayerSize))
  1954. local hoodW = Weld(hood,Head,CF.N(0,-.384*PlayerSize,0))
  1955.  
  1956. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1957. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  1958.  
  1959. for side = 1,2 do
  1960. local LastPart = hood;
  1961.  
  1962. for i = 1,34 do
  1963. local mult = (1-(i/38))*PlayerSize
  1964. if(LastPart == hood)then
  1965. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  1966. Horn.Name = 'Horn'
  1967. Weld(LastPart,Horn,CF.N((side == 1 and .3 or -.3)*PlayerSize,.6*PlayerSize,-.2*PlayerSize)*CF.A(0,M.R((side == 1 and -5 or 5)),0))
  1968. LastPart = Horn
  1969. else
  1970. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  1971. Horn.Name = 'Horn'
  1972. Weld(LastPart,Horn,CF.N(0,Horn.Size.Y/2,0)*CF.A(M.R(7),M.R(side == 1 and 3 or -3),0))
  1973. LastPart = Horn
  1974. end
  1975. end
  1976. end
  1977.  
  1978. for side = 1,2 do
  1979. local LastPart = hood;
  1980.  
  1981. for i = 1,24 do
  1982. local mult = (1-(i/28))*PlayerSize
  1983. if(LastPart == hood)then
  1984. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  1985. Horn.Name = 'Horn'
  1986. Weld(LastPart,Horn,CF.N((side == 1 and .5 or -.5)*PlayerSize,-.2*PlayerSize,-.2*PlayerSize)*CF.A(M.R(-25),M.R((side == 1 and -180 or 180)),M.R((side == 1 and 90 or -90))))
  1987. LastPart = Horn
  1988. else
  1989. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  1990. Horn.Name = 'Horn'
  1991. Weld(LastPart,Horn,CF.N(0,Horn.Size.Y/2,0)*CF.A(M.R(-7),M.R((side == 1 and -3 or 3)),0))
  1992. LastPart = Horn
  1993. end
  1994. end
  1995. end
  1996.  
  1997. --// Artificial HB \\--
  1998.  
  1999. local ArtificialHB = IN("BindableEvent", script)
  2000. ArtificialHB.Name = "Heartbeat"
  2001.  
  2002. script:WaitForChild("Heartbeat")
  2003.  
  2004. local tf = 0
  2005. local allowframeloss = false
  2006. local tossremainder = false
  2007. local lastframe = tick()
  2008. local frame = 1/Frame_Speed
  2009. ArtificialHB:Fire()
  2010.  
  2011. game:GetService("RunService").Heartbeat:connect(function(s, p)
  2012. tf = tf + s
  2013. if tf >= frame then
  2014. if allowframeloss then
  2015. script.Heartbeat:Fire()
  2016. lastframe = tick()
  2017. else
  2018. for i = 1, math.floor(tf / frame) do
  2019. ArtificialHB:Fire()
  2020. end
  2021. lastframe = tick()
  2022. end
  2023. if tossremainder then
  2024. tf = 0
  2025. else
  2026. tf = tf - frame * math.floor(tf / frame)
  2027. end
  2028. end
  2029. end)
  2030.  
  2031. function swait(num)
  2032. if num == 0 or num == nil then
  2033. ArtificialHB.Event:wait()
  2034. else
  2035. for i = 0, num do
  2036. ArtificialHB.Event:wait()
  2037. end
  2038. end
  2039. end
  2040.  
  2041.  
  2042. --// Effect Function(s) \\--
  2043.  
  2044. function Bezier(startpos, pos2, pos3, endpos, t)
  2045. local A = startpos:lerp(pos2, t)
  2046. local B = pos2:lerp(pos3, t)
  2047. local C = pos3:lerp(endpos, t)
  2048. local lerp1 = A:lerp(B, t)
  2049. local lerp2 = B:lerp(C, t)
  2050. local cubic = lerp1:lerp(lerp2, t)
  2051. return cubic
  2052. end
  2053. function Puddle(hit,pos,norm,data)
  2054. local material = data.Material or Enum.Material.Granite
  2055. local color = data.Color or BrickColor.new'Crimson'
  2056. local size = data.Size and data.Size/4 or .25
  2057.  
  2058. if(hit.Name ~= 'BloodPuddle')then
  2059. local Puddle = NewInstance('Part',workspace,{Material=material,BrickColor=color,Size=V3.N(size,.1,size),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
  2060. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  2061. BloodPuddles[Puddle] = 0
  2062. else
  2063. local cyl = hit:FindFirstChild'CylinderMesh'
  2064. if(cyl and cyl.Scale.x < 20)then
  2065. BloodPuddles[hit] = 0
  2066. cyl.Scale = cyl.Scale + V3.N(size,0,size)
  2067. hit.Transparency = 0
  2068. end
  2069. end
  2070. end
  2071.  
  2072. function Droplet(data)
  2073. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  2074. local Size = data.Size or .5
  2075. local Color = data.Color or BrickColor.new'Crimson'
  2076. local StudsPerFrame = data.Speed or 1
  2077. local Shape = data.Shape or 'Ball'
  2078. local Frames = (data.Frames or 160)+1
  2079. local Pos = data.Origin or Root.CFrame
  2080. local Direction = data.Direction or Root.CFrame.lookVector*100000
  2081. local Material = data.Material or Enum.Material.Granite
  2082. local Drop = data.Drop or .05
  2083. local Ignorelist = data.Ignorelist or (function()
  2084. local list = {}
  2085. for _,v in next, workspace:children() do
  2086. if(v:FindFirstChildOfClass'Humanoid')then
  2087. table.insert(list,v)
  2088. end
  2089. end
  2090. return list
  2091. end)()
  2092.  
  2093. local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
  2094. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  2095. if(Shape == 'Ball')then
  2096. BMesh.MeshType = Enum.MeshType.Sphere
  2097. elseif(Shape == 'Head')then
  2098. BMesh.MeshType = Enum.MeshType.Head
  2099. elseif(Shape == 'Cylinder')then
  2100. BMesh.MeshType = Enum.MeshType.Cylinder
  2101. end
  2102.  
  2103. coroutine.wrap(function()
  2104. for i = 1, Frames do
  2105. Pos = Pos + V3.N(0,-(Drop*i),0)
  2106. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame,Ignorelist)
  2107. if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
  2108. Puddle(hit,pos,norm,data)
  2109. break;
  2110. else
  2111. Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
  2112. end
  2113. swait()
  2114. end
  2115. Bullet:destroy()
  2116. end)()
  2117. end
  2118.  
  2119. function BloodDrop(pos,dir,maxsize,BloodMaterial,BloodColor)
  2120. BloodMaterial = BloodMaterial or Enum.Material.Granite
  2121. BloodColor = BloodColor or BrickColor.new'Maroon'
  2122. local owo = NewInstance("Part",Char,{Material=BloodMaterial,BrickColor=BloodColor,Shape=Enum.PartType.Ball,Size=V3.N(.25,.25,.25), CanCollide = false})
  2123. owo.CFrame=CF.N(pos,dir)
  2124. local bv = Instance.new("BodyVelocity",owo)
  2125. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2126. bv.velocity = CF.N(pos,dir+V3.N(M.RNG(-3,3)/30,M.RNG(-3,3)/30,M.RNG(-3,3)/30)).lookVector*15
  2127. bv.Name = "MOVE"
  2128. game:service'Debris':AddItem(bv,0.05)
  2129. local touch
  2130. touch = owo.Touched:connect(function(hit)
  2131. if(hit.Anchored==true and hit.CanCollide and not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent.Parent:FindFirstChildOfClass'Humanoid')then
  2132. touch:disconnect()
  2133. BloodPuddle(owo.Position+V3.N(0,1,0),3,maxsize,owo)
  2134. owo:destroy()
  2135. end
  2136. end)
  2137. end
  2138. function BloodPuddle(position,range,maxSize,where,BloodMaterial,BloodColor)
  2139. BloodMaterial = BloodMaterial or Enum.Material.Granite
  2140. BloodColor = BloodColor or BrickColor.new'Maroon'
  2141. local hit, pos, norm = workspace:FindPartOnRayWithIgnoreList(Ray.new(
  2142. position,CF.N(position,position+V3.N(0,-1,0)).lookVector * range
  2143. ),{where,Char},false,true)
  2144. if(hit)then
  2145. if(BloodPuddles[hit])then
  2146. BloodPuddles[hit] = 0
  2147. if(hit:FindFirstChild'CylinderMesh' and hit.CylinderMesh.Scale.Z < 15)then
  2148. hit.CylinderMesh.Scale = hit.CylinderMesh.Scale + V3.N(.1,0,.1)
  2149. end
  2150. else
  2151. local Puddle = NewInstance('Part',hit,{Material=BloodMaterial,BrickColor=BloodColor,Size=V3.N(1,.1,1),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
  2152. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  2153. BloodPuddles[Puddle] = 0
  2154. end
  2155. end
  2156. end
  2157.  
  2158.  
  2159. function SphereFX(duration,color,scale,pos,endScale,increment)
  2160. return Effect{
  2161. Effect='ResizeAndFade',
  2162. Color=color,
  2163. Size=scale,
  2164. Mesh={MeshType=Enum.MeshType.Sphere},
  2165. CFrame=pos,
  2166. FXSettings={
  2167. EndSize=endScale,
  2168. EndIsIncrement=increment
  2169. }
  2170. }
  2171. end
  2172.  
  2173. function BlastFX(duration,color,scale,pos,endScale,increment)
  2174. return Effect{
  2175. Effect='ResizeAndFade',
  2176. Color=color,
  2177. Size=scale,
  2178. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  2179. CFrame=pos,
  2180. FXSettings={
  2181. EndSize=endScale,
  2182. EndIsIncrement=increment
  2183. }
  2184. }
  2185. end
  2186.  
  2187. function BlockFX(duration,color,scale,pos,endScale,increment)
  2188. return Effect{
  2189. Effect='ResizeAndFade',
  2190. Color=color,
  2191. Size=scale,
  2192. CFrame=pos,
  2193. FXSettings={
  2194. EndSize=endScale,
  2195. EndIsIncrement=increment
  2196. }
  2197. }
  2198. end
  2199.  
  2200. function ShootBullet(data)
  2201. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  2202. local Size = data.Size or V3.N(2,2,2)
  2203. local Color = data.Color or BrickColor.new'Crimson'
  2204. local StudsPerFrame = data.Speed or 10
  2205. local Shape = data.Shape or 'Ball'
  2206. local Frames = data.Frames or 160
  2207. local Pos = data.Origin or Torso.CFrame
  2208. local Direction = data.Direction or Mouse.Hit
  2209. local Material = data.Material or Enum.Material.Neon
  2210. local OnHit = data.HitFunction or function(hit,pos)
  2211. Effect{
  2212. Effect='ResizeAndFade',
  2213. Color=Color,
  2214. Size=V3.N(10,10,10),
  2215. Mesh={MeshType=Enum.MeshType.Sphere},
  2216. CFrame=CF.N(pos),
  2217. FXSettings={
  2218. EndSize=V3.N(.05,.05,.05),
  2219. EndIsIncrement=true
  2220. }
  2221. }
  2222. for i = 1, 5 do
  2223. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  2224. Effect{
  2225. Effect='Fade',
  2226. Frames=65,
  2227. Size=V3.N(5,5,10),
  2228. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  2229. Mesh = {MeshType=Enum.MeshType.Sphere},
  2230. Material=Enum.Material.Neon,
  2231. Color=Color,
  2232. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  2233. }
  2234. end
  2235. end
  2236.  
  2237. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  2238. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  2239. if(Shape == 'Ball')then
  2240. BMesh.MeshType = Enum.MeshType.Sphere
  2241. elseif(Shape == 'Head')then
  2242. BMesh.MeshType = Enum.MeshType.Head
  2243. elseif(Shape == 'Cylinder')then
  2244. BMesh.MeshType = Enum.MeshType.Cylinder
  2245. end
  2246.  
  2247. coroutine.wrap(function()
  2248. for i = 1, Frames+1 do
  2249. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  2250. if(hit)then
  2251. OnHit(hit,pos,norm,dist)
  2252. break;
  2253. else
  2254. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  2255. end
  2256. swait()
  2257. end
  2258. Bullet:destroy()
  2259. end)()
  2260.  
  2261. end
  2262.  
  2263.  
  2264. function Zap(data)
  2265. local sCF,eCF = data.StartCFrame,data.EndCFrame
  2266. assert(sCF,"You need a start CFrame!")
  2267. assert(eCF,"You need an end CFrame!")
  2268. local parts = data.PartCount or 15
  2269. local zapRot = data.ZapRotation or {-5,5}
  2270. local startThick = data.StartSize or 3;
  2271. local endThick = data.EndSize or startThick/2;
  2272. local color = data.Color or BrickColor.new'Electric blue'
  2273. local delay = data.Delay or 35
  2274. local delayInc = data.DelayInc or 0
  2275. local lastLightning;
  2276. local MagZ = (sCF.p - eCF.p).magnitude
  2277. local thick = startThick
  2278. local inc = (startThick/parts)-(endThick/parts)
  2279.  
  2280. for i = 1, parts do
  2281. local pos = sCF.p
  2282. if(lastLightning)then
  2283. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  2284. end
  2285. delay = delay + delayInc
  2286. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  2287. local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
  2288. if(parts == i)then
  2289. local MagZ = (pos-eCF.p).magnitude
  2290. zapPart.Size = V3.N(endThick,endThick,MagZ)
  2291. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  2292. Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
  2293. else
  2294. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  2295. end
  2296.  
  2297. lastLightning = zapPart
  2298. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  2299.  
  2300. thick=thick-inc
  2301.  
  2302. end
  2303. end
  2304.  
  2305. function Zap2(data)
  2306. local Color = data.Color or BrickColor.new'Electric blue'
  2307. local StartPos = data.Start or Torso.Position
  2308. local EndPos = data.End or Mouse.Hit.p
  2309. local SegLength = data.SegL or 2
  2310. local Thicc = data.Thickness or 0.5
  2311. local Fades = data.Fade or 45
  2312. local Parent = data.Parent or Effects
  2313. local MaxD = data.MaxDist or 200
  2314. local Branch = data.Branches or false
  2315. local Material = data.Material or Enum.Material.Neon
  2316. local Raycasts = data.Raycasts or false
  2317. local Offset = data.Offset or {0,360}
  2318. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  2319. if((StartPos-EndPos).magnitude > MaxD)then
  2320. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  2321. end
  2322. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  2323. if(Raycasts)then
  2324. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  2325. end
  2326. local segments = dist/SegLength
  2327. local model = IN("Model",Parent)
  2328. model.Name = 'Lightning'
  2329. local Last;
  2330. for i = 1, segments do
  2331. local size = (segments-i)/25
  2332. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  2333. if(AddMesh)then IN("CylinderMesh",prt) end
  2334. if(Last and math.floor(segments) == i)then
  2335. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  2336. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  2337. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0)
  2338. elseif(not Last)then
  2339. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  2340. else
  2341. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  2342. end
  2343. Last = prt
  2344. if(Branch)then
  2345. local choice = M.RNG(1,7+((segments-i)*2))
  2346. if(choice == 1)then
  2347. local LastB;
  2348. for i2 = 1,M.RNG(2,5) do
  2349. local size2 = ((segments-i)/35)/i2
  2350. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  2351. if(AddMesh)then IN("CylinderMesh",prt) end
  2352. if(not LastB)then
  2353. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  2354. else
  2355. prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  2356. end
  2357. LastB = prt
  2358. end
  2359. end
  2360. end
  2361. end
  2362. if(Fades > 0)then
  2363. coroutine.wrap(function()
  2364. for i = 1, Fades do
  2365. for _,v in next, model:children() do
  2366. if(v:IsA'BasePart')then
  2367. v.Transparency = (i/Fades)
  2368. end
  2369. end
  2370. swait()
  2371. end
  2372. model:destroy()
  2373. end)()
  2374. else
  2375. S.Debris:AddItem(model,.01)
  2376. end
  2377. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  2378. end
  2379.  
  2380. function Tween(obj,props,time,easing,direction,repeats,backwards)
  2381. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  2382. local tween = S.TweenService:Create(obj, info, props)
  2383.  
  2384. tween:Play()
  2385. end
  2386.  
  2387. function Effect(data)
  2388. local FX = data.Effect or 'ResizeAndFade'
  2389. local Parent = data.Parent or Effects
  2390. local Color = data.Color or C3.N(0,0,0)
  2391. local Size = data.Size or V3.N(1,1,1)
  2392. local MoveDir = data.MoveDirection or nil
  2393. local MeshData = data.Mesh or nil
  2394. local SndData = data.Sound or nil
  2395. local Frames = data.Frames or 45
  2396. local Manual = data.Manual or nil
  2397. local Material = data.Material or nil
  2398. local CFra = data.CFrame or Torso.CFrame
  2399. local Settings = data.FXSettings or {}
  2400. local Shape = data.Shape or Enum.PartType.Block
  2401. local Snd,Prt,Msh;
  2402. local RotInc = data.RotInc or {0,0,0}
  2403. if(typeof(RotInc) == 'number')then
  2404. RotInc = {RotInc,RotInc,RotInc}
  2405. end
  2406. coroutine.wrap(function()
  2407. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  2408. Prt = Manual
  2409. else
  2410. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  2411. Prt.Shape = Shape
  2412. end
  2413. if(typeof(MeshData) == 'table')then
  2414. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  2415. elseif(typeof(MeshData) == 'Instance')then
  2416. Msh = MeshData:Clone()
  2417. Msh.Parent = Prt
  2418. elseif(Shape == Enum.PartType.Block)then
  2419. Msh = Mesh(Prt,Enum.MeshType.Brick)
  2420. end
  2421. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  2422. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  2423. end
  2424. if(Snd)then
  2425. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  2426. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  2427. end
  2428. Size = (Msh and Msh.Scale or Size)
  2429. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  2430.  
  2431. local MoveSpeed = nil;
  2432. if(MoveDir)then
  2433. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  2434. end
  2435. if(FX ~= 'Arc')then
  2436. for Frame = 1, Frames do
  2437. if(FX == "Fade")then
  2438. Prt.Transparency = (Frame/Frames)
  2439. elseif(FX == "Resize")then
  2440. if(not Settings.EndSize)then
  2441. Settings.EndSize = V3.N(0,0,0)
  2442. end
  2443. if(Settings.EndIsIncrement)then
  2444. if(Msh)then
  2445. Msh.Scale = Msh.Scale + Settings.EndSize
  2446. else
  2447. Prt.Size = Prt.Size + Settings.EndSize
  2448. end
  2449. else
  2450. if(Msh)then
  2451. Msh.Scale = Msh.Scale - grow/Frames
  2452. else
  2453. Prt.Size = Prt.Size - grow/Frames
  2454. end
  2455. end
  2456. elseif(FX == "ResizeAndFade")then
  2457. if(not Settings.EndSize)then
  2458. Settings.EndSize = V3.N(0,0,0)
  2459. end
  2460. if(Settings.EndIsIncrement)then
  2461. if(Msh)then
  2462. Msh.Scale = Msh.Scale + Settings.EndSize
  2463. else
  2464. Prt.Size = Prt.Size + Settings.EndSize
  2465. end
  2466. else
  2467. if(Msh)then
  2468. Msh.Scale = Msh.Scale - grow/Frames
  2469. else
  2470. Prt.Size = Prt.Size - grow/Frames
  2471. end
  2472. end
  2473. Prt.Transparency = (Frame/Frames)
  2474. end
  2475. if(Settings.RandomizeCFrame)then
  2476. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  2477. else
  2478. Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc))
  2479. end
  2480. if(MoveDir and MoveSpeed)then
  2481. local Orientation = Prt.Orientation
  2482. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  2483. Prt.Orientation = Orientation
  2484. end
  2485. swait()
  2486. end
  2487. Prt:destroy()
  2488. else
  2489. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  2490. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  2491. if(start and endP)then
  2492. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  2493. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  2494. for Frame = 0, 1, (Settings.Speed or 0.01) do
  2495. if(Settings.Home)then
  2496. endP = Settings.Home.CFrame
  2497. end
  2498. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  2499. end
  2500. if(Settings.RemoveOnGoal)then
  2501. Prt:destroy()
  2502. end
  2503. else
  2504. Prt:destroy()
  2505. assert(start,"You need a start position!")
  2506. assert(endP,"You need a start position!")
  2507. end
  2508. end
  2509. end)()
  2510. return Prt,Msh,Snd
  2511. end
  2512. function SoulSteal(whom)
  2513. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  2514. print(torso)
  2515. if(torso and torso:IsA'BasePart')then
  2516. local Model = Instance.new("Model",Effects)
  2517. Model.Name = whom.Name.."'s Soul"
  2518. whom:BreakJoints()
  2519. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  2520. Soul.Name = 'Head'
  2521. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  2522. Effect{
  2523. Effect="Arc",
  2524. Manual = Soul,
  2525. FXSettings={
  2526. Start=torso.CFrame,
  2527. Home = Torso,
  2528. RemoveOnGoal = true,
  2529. }
  2530. }
  2531. local lastPoint = Soul.CFrame.p
  2532.  
  2533. for i = 0, 1, 0.01 do
  2534. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  2535. local mag = (lastPoint - Soul.Position).magnitude
  2536. Effect{
  2537. Effect = "Fade",
  2538. CFrame = point * CF.N(0, mag/2, 0),
  2539. Size = V3.N(.5,mag+.5,.5),
  2540. Color = Soul.BrickColor
  2541. }
  2542. lastPoint = Soul.CFrame.p
  2543. swait()
  2544. end
  2545. for i = 1, 5 do
  2546. Effect{
  2547. Effect="Fade",
  2548. Color = BrickColor.new'Really red',
  2549. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  2550. }
  2551. end
  2552. end
  2553. end
  2554.  
  2555. --// Other Functions \\ --
  2556.  
  2557. function CastRay(startPos,endPos,range,ignoreList)
  2558. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  2559. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  2560. return part,pos,norm,(pos and (startPos-pos).magnitude)
  2561. end
  2562.  
  2563. function getRegion(point,range,ignore)
  2564. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  2565. end
  2566.  
  2567. function clerp(startCF,endCF,alpha)
  2568. return startCF:lerp(endCF, alpha)
  2569. end
  2570.  
  2571. function GetTorso(char)
  2572. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  2573. end
  2574.  
  2575.  
  2576. function ShowDamage(Pos, Text, Time, Color)
  2577. coroutine.wrap(function()
  2578. local Rate = (1 / Frame_Speed)
  2579. local Pos = (Pos or Vector3.new(0, 0, 0))
  2580. local Text = (Text or "")
  2581. local Time = (Time or 2)
  2582. local Color = (Color or Color3.new(1, 0, 1))
  2583. local EffectPart = NewInstance("Part",Effects,{
  2584. Material=Enum.Material.SmoothPlastic,
  2585. Reflectance = 0,
  2586. Transparency = 1,
  2587. BrickColor = BrickColor.new(Color),
  2588. Name = "Effect",
  2589. Size = Vector3.new(0,0,0),
  2590. Anchored = true,
  2591. CFrame = CF.N(Pos)
  2592. })
  2593. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  2594. Size = UDim2.new(1.25, 0, 1.25, 0),
  2595. Adornee = EffectPart,
  2596. })
  2597. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  2598. BackgroundTransparency = 1,
  2599. Size = UDim2.new(1, 0, 1, 0),
  2600. Text = Text,
  2601. Font = "Bodoni",
  2602. TextColor3 = Color,
  2603. TextStrokeColor3 = Color3.new(0,0,0),
  2604. TextStrokeTransparency=0,
  2605. TextScaled = true,
  2606. })
  2607. S.Debris:AddItem(EffectPart, (Time))
  2608. EffectPart.Parent = workspace
  2609. delay(0, function()
  2610. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  2611. local Frames = (Time / Rate)
  2612. for Frame = 1, Frames do
  2613. swait()
  2614. local Percent = (Frame / Frames)
  2615. TextLabel.TextTransparency = Percent
  2616. TextLabel.TextStrokeTransparency = Percent
  2617. end
  2618. if EffectPart and EffectPart.Parent then
  2619. EffectPart:Destroy()
  2620. end
  2621. end) end)()
  2622. end
  2623.  
  2624. function DealDamage(data)
  2625. local Who = data.Who;
  2626. local MinDam = data.MinimumDamage or 15;
  2627. local MaxDam = data.MaximumDamage or 30;
  2628. local MaxHP = data.MaxHP or 1e5;
  2629.  
  2630. local DB = data.Debounce or .2;
  2631.  
  2632. local CritData = data.Crit or {}
  2633. local CritChance = CritData.Chance or 0;
  2634. local CritMultiplier = CritData.Multiplier or 1;
  2635.  
  2636. local DamageEffects = data.DamageFX or {}
  2637. local DamageType = DamageEffects.Type or "Normal"
  2638. local DeathFunction = DamageEffects.DeathFunction
  2639.  
  2640. assert(Who,"Specify someone to damage!")
  2641.  
  2642. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  2643. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  2644.  
  2645. local canHit = true
  2646. if(Humanoid)then
  2647. for _, p in pairs(Hit) do
  2648. if p[1] == Humanoid then
  2649. if(time() - p[2] <= DB) then
  2650. canHit = false
  2651. else
  2652. Hit[_] = nil
  2653. end
  2654. end
  2655. end
  2656. if(canHit)then
  2657. table.insert(Hit,{Humanoid,time()})
  2658. local HitTorso = GetTorso(Who)
  2659. local player = S.Players:GetPlayerFromCharacter(Who)
  2660. if(not player or player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then
  2661. if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
  2662. print'Got kill'
  2663. Humanoid.Health = 0;
  2664. Who:BreakJoints();
  2665. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  2666. else
  2667. local c = Instance.new("ObjectValue",Hum)
  2668. c.Name = "creator"
  2669. c.Value = Plr
  2670. S.Debris:AddItem(c,0.35)
  2671. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  2672. ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), DoneDamage, 1.5, DamageColor.Color)
  2673. end
  2674. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
  2675. Humanoid.Health = Humanoid.Health - DoneDamage
  2676.  
  2677. if(DamageType == 'Knockback' and HitTorso)then
  2678. local up = DamageEffects.KnockUp or 25
  2679. local back = DamageEffects.KnockBack or 25
  2680. local origin = DamageEffects.Origin or Root
  2681. local decay = DamageEffects.Decay or .5;
  2682.  
  2683. local bfos = Instance.new("BodyVelocity",HitTorso)
  2684. bfos.P = 20000
  2685. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2686. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  2687. S.Debris:AddItem(bfos,decay)
  2688. elseif(DamageType == 'FlingEm' and HitTorso)then
  2689. Humanoid.PlatformStand = true
  2690. local up = DamageEffects.KnockUp or 25
  2691. local back = DamageEffects.KnockBack or 25
  2692. local origin = DamageEffects.Origin or Root
  2693. local decay = DamageEffects.Decay or .5;
  2694.  
  2695. local bfos = Instance.new("BodyVelocity",HitTorso)
  2696. bfos.P = 20000
  2697. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2698. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  2699. S.Debris:AddItem(bfos,decay)
  2700. local Sizey = (function()
  2701. if(Who:FindFirstChild'HumanoidRootPart')then
  2702. return Who.HumanoidRootPart.Size
  2703. else
  2704. return HitTorso.Size
  2705. end
  2706. end)()
  2707. local collision = Part(Who,C3.N(0,0,0),Enum.Material.Plastic,Sizey,CF.N(),false,false)
  2708. collision.Transparency = 1
  2709. Weld(collision,HitTorso)
  2710. local ev;
  2711. ev = collision.Touched:connect(function(t)
  2712. if(t.Parent ~= Who and t.Parent ~= Char and not t:IsDescendantOf(Who) and not t:IsDescendantOf(Char))then
  2713. Who:breakJoints()
  2714. ev:disconnect()
  2715. end
  2716. end)
  2717. end
  2718. end
  2719. end
  2720. end
  2721. end
  2722. end
  2723.  
  2724. function AOEDamage(where,range,options)
  2725. local hit = {}
  2726. for _,v in next, getRegion(where,range,{Char}) do
  2727. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
  2728. local callTable = {Who=v.Parent}
  2729. hit[v.Parent] = true
  2730. for _,v in next, options do callTable[_] = v end
  2731. DealDamage(callTable)
  2732. end
  2733. end
  2734. return hit
  2735. end
  2736.  
  2737. function AOEHeal(where,range,amount)
  2738. local healed = {}
  2739. for _,v in next, getRegion(where,range,{Char}) do
  2740. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  2741. if(hum and not healed[hum])then
  2742. hum.Health = hum.Health + amount
  2743. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  2744. 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)
  2745. end
  2746. end
  2747. end
  2748. end
  2749.  
  2750. function ClosestHumanoid(pos,range)
  2751. local mag,closest = math.huge;
  2752. local root;
  2753. for _,v in next, getRegion(pos,range or 10,{Char}) do
  2754. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
  2755. if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then
  2756. mag = (v.CFrame.p-pos).magnitude
  2757. closest = hum
  2758. if(v.Parent:FindFirstChild'HumanoidRootPart')then
  2759. root = v.Parent.HumanoidRootPart
  2760. end
  2761. end
  2762. end
  2763. return closest,(closest and GetTorso(closest.Parent) or nil),root
  2764. end
  2765.  
  2766. function AttackTemp()
  2767. local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
  2768.  
  2769. if(torso)then
  2770. local who = torso.Parent
  2771. WalkSpeed = 0
  2772. Hum.JumpPower = 0
  2773. Attack = true
  2774. NeutralAnims = false
  2775. Hum.AutoRotate = false
  2776. who.Parent = Char
  2777. local oRoot
  2778. coroutine.resume(coroutine.create(function()
  2779. repeat
  2780. swait()
  2781. torso.Anchored = true
  2782. Root.Anchored = true
  2783. until not Attack
  2784. Root.Anchored = false
  2785. torso.Anchored = false
  2786. Hum.AutoRotate = true
  2787. end))
  2788. torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
  2789. WalkSpeed = 16
  2790. Hum.AutoRotate = true
  2791. Hum.JumpPower = 50
  2792. Attack = false
  2793. NeutralAnims = true
  2794. end
  2795. end
  2796.  
  2797. function Decapitate()
  2798. Attack = true
  2799. NeutralAnims = false
  2800. WalkSpeed = 0
  2801. Hum.JumpPower = 0
  2802. Hum.AutoRotate = false
  2803.  
  2804. local humanoid,torso,root = ClosestHumanoid(Torso.CFrame.p,5)
  2805. local gWeld;
  2806. if(torso)then
  2807. if(root)then root:destroy(); end
  2808. gWeld = Weld(torso,RArm,CF.N(0,0,1.25)*CF.A(M.R(90),0,0))
  2809. end
  2810. for i = 0, 3, 0.1 do
  2811. swait()
  2812. local Alpha = .3
  2813. RJ.C0 = clerp(RJ.C0,CFrame.new(3.73038267e-11, -1.10484409, 9.27457586e-06, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  2814. LH.C0 = clerp(LH.C0,CFrame.new(-0.683995843, -0.177489138, -0.897741616, 0.999873757, -7.23900939e-11, 0.0156120826, -9.81522608e-05, 0.999988914, 0.00628615217, -0.0156121273, -0.00628564274, 0.999877512),Alpha)
  2815. RH.C0 = clerp(RH.C0,CFrame.new(0.675989509, -1.42322357, 0.255684435, 0.999875963, -0.0130437706, 0.00857485086, -9.81724879e-05, 0.544059396, 0.839051962, -0.0156097384, -0.838954628, 0.543995202),Alpha)
  2816. LS.C0 = clerp(LS.C0,CFrame.new(-2.02241492, 0.500085652, 0.0289606471, 0.999873757, -7.23900939e-11, 0.0156120826, -9.81522608e-05, 0.999988914, 0.00628615217, -0.0156121273, -0.00628564274, 0.999877512),Alpha)
  2817. RS.C0 = clerp(RS.C0,CFrame.new(1.19103253, 0.467928678, -0.987421989, 0.861010849, 0.471086591, -0.191659823, -0.29760465, 0.161091402, -0.941004634, -0.412423193, 0.867260695, 0.278900415),Alpha)
  2818. NK.C0 = clerp(NK.C0,CFrame.new(8.35345054e-06, 2.02163172, -0.019419238, 0.999995589, 3.67173925e-07, -1.56462193e-07, -3.56551027e-07, 0.997973442, 0.0637700409, 1.90921128e-07, -0.0637693703, 0.997983992),Alpha)
  2819. end
  2820.  
  2821.  
  2822. if(torso and gWeld)then
  2823. local who = torso.Parent
  2824.  
  2825. for i = 0, 2, 0.1 do
  2826. swait()
  2827. local Alpha = .3
  2828. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733, -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  2829. LH.C0 = clerp(LH.C0,CFrame.new(-0.669602811, -1.28498969, 0.0313415863, 0.985017717, -1.11425685e-07, 0.172440618, -0.00108562189, 0.999984562, 0.0062019499, -0.172439247, -0.00629561814, 0.985009789),Alpha)
  2830. RH.C0 = clerp(RH.C0,CFrame.new(0.672363043, -1.28521297, 0.023051152, 0.993336737, -1.2538369e-06, -0.115229882, 0.000725628284, 0.999984622, 0.00624438236, 0.115228966, -0.00628577033, 0.993328869),Alpha)
  2831. LS.C0 = clerp(LS.C0,CFrame.new(-1.50595617, 0.648058772, -0.363369375, 0.970248938, -0.240059406, -0.0313680209, -0.145796537, -0.475936145, -0.867315948, 0.19327952, 0.846091807, -0.496780664),Alpha)
  2832. RS.C0 = clerp(RS.C0,CFrame.new(1.24497938, 0.376010507, -0.544311762, 0.467782408, 0.342397809, 0.814824641, 0.878098845, -0.0750677809, -0.472563267, -0.100637719, 0.936560154, -0.335777313),Alpha)
  2833. NK.C0 = clerp(NK.C0,CFrame.new(1.11990994e-05, 2.02161074, -0.0194199979, 0.999997795, -5.51342964e-07, 2.84891576e-06, 9.31104296e-08, 0.98739022, 0.158333212, -2.89361924e-06, -0.158333361, 0.987395525),Alpha)
  2834. end
  2835. for i = 0, 3, 0.1 do
  2836. swait()
  2837. local Alpha = .3
  2838. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733, -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  2839. LH.C0 = clerp(LH.C0,CFrame.new(-0.669602811, -1.28498969, 0.0313415863, 0.985017717, -1.11425685e-07, 0.172440618, -0.00108562189, 0.999984562, 0.0062019499, -0.172439247, -0.00629561814, 0.985009789),Alpha)
  2840. RH.C0 = clerp(RH.C0,CFrame.new(0.672363043, -1.28521297, 0.023051152, 0.993336737, -1.2538369e-06, -0.115229882, 0.000725628284, 0.999984622, 0.00624438236, 0.115228966, -0.00628577033, 0.993328869),Alpha)
  2841. LS.C0 = clerp(LS.C0,CFrame.new(-1.50595617, 0.648058772, -0.363369375, 0.970248938, -0.240059406, -0.0313680209, -0.145796537, -0.475936145, -0.867315948, 0.19327952, 0.846091807, -0.496780664)*CF.A(M.RRNG(-3,3),M.RRNG(-3,3),M.RRNG(-3,3)),Alpha)
  2842. RS.C0 = clerp(RS.C0,CFrame.new(1.24497938, 0.376010507, -0.544311762, 0.467782408, 0.342397809, 0.814824641, 0.878098845, -0.0750677809, -0.472563267, -0.100637719, 0.936560154, -0.335777313)*CF.A(M.RRNG(-3,3),M.RRNG(-3,3),M.RRNG(-3,3)),Alpha)
  2843. NK.C0 = clerp(NK.C0,CFrame.new(1.11990994e-05, 2.02161074, -0.0194199979, 0.999997795, -5.51342964e-07, 2.84891576e-06, 9.31104296e-08, 0.98739022, 0.158333212, -2.89361924e-06, -0.158333361, 0.987395525),Alpha)
  2844. end
  2845. gWeld:destroy()
  2846. local hae = who:FindFirstChild'Head'
  2847. local haed;
  2848. Sound(torso,1093102664,.85,5,false,true,true)
  2849. Sound(torso,429400881,1,1,false,true,true)
  2850. if(hae)then
  2851. haed = Part(Char,hae.Color,hae.Material,hae.Size,CF.N(),false,false)
  2852. Mesh(haed,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25))
  2853. local faic = hae:FindFirstChildOfClass'Decal'
  2854. if(faic)then
  2855. faic:Clone().Parent = haed
  2856. end
  2857. hae:destroy()
  2858. local we = Weld(haed,LArm,CF.N(0,0,1.25),CF.A(M.R(-90),0,0))
  2859. coroutine.wrap(function()
  2860. for i = 1, 250 do
  2861. if(not who or not who.Parent)then break end
  2862. if(haed and haed.Parent)then BloodDrop(haed.CFrame*CF.N(0,-haed.Size.Y/2,0).p,haed.CFrame * CF.N(0,-haed.Size.Y,0).p,15) end
  2863. BloodDrop(torso.CFrame*CF.N(0,torso.Size.Y/2,0).p,torso.CFrame * CF.N(0,torso.Size.Y,0).p,15)
  2864. swait(2)
  2865. end
  2866. end)()
  2867. end
  2868. for i = 0, 6, 0.1 do
  2869. swait()
  2870. local Alpha = .3
  2871. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733, -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  2872. LH.C0 = clerp(LH.C0,CFrame.new(-0.669602811, -1.28498969, 0.0313415863, 0.985017717, -1.11425685e-07, 0.172440618, -0.00108562189, 0.999984562, 0.0062019499, -0.172439247, -0.00629561814, 0.985009789),Alpha)
  2873. RH.C0 = clerp(RH.C0,CFrame.new(0.672363043, -1.28521297, 0.023051152, 0.993336737, -1.2538369e-06, -0.115229882, 0.000725628284, 0.999984622, 0.00624438236, 0.115228966, -0.00628577033, 0.993328869),Alpha)
  2874. LS.C0 = clerp(LS.C0,CFrame.new(-1.77177048, 0.838547349, -0.679161608, 0.555506885, 0.830917358, -0.0313709527, 0.398059189, -0.298866272, -0.867315829, -0.730048597, 0.469315678, -0.496780783),Alpha)
  2875. RS.C0 = clerp(RS.C0,CFrame.new(1.24497938, 0.376010507, -0.544311762, 0.467782408, 0.342397809, 0.814824641, 0.878098845, -0.0750677809, -0.472563267, -0.100637719, 0.936560154, -0.335777313),Alpha)
  2876. NK.C0 = clerp(NK.C0,CFrame.new(1.11990994e-05, 2.02161074, -0.0194199979, 0.999997795, -5.51342964e-07, 2.84891576e-06, 9.31104296e-08, 0.98739022, 0.158333212, -2.89361924e-06, -0.158333361, 0.987395525),Alpha)
  2877. end
  2878. if(haed)then haed:breakJoints() haed.CanCollide = true delay(1, function() for i = 0, 1, .05 do haed.Transparency = i swait() end haed:destroy() end) end
  2879. end
  2880. Hum.AutoRotate = true
  2881. WalkSpeed = 12
  2882. Hum.JumpPower = 50
  2883. Attack = false
  2884. NeutralAnims = true
  2885. end
  2886.  
  2887. function Taunt()
  2888. Attack = true
  2889. NeutralAnims = false
  2890. local tau = Sound(Head,907332856,1,5,false,true,true)
  2891. WalkSpeed = 0
  2892. repeat swait() until tau.IsLoaded
  2893.  
  2894. repeat swait()
  2895. local Alpha = .1
  2896. RJ.C0 = clerp(RJ.C0,CFrame.new(-2.86382029e-13, 0.00849175733+.1*M.C(Sine/24), -2.024899e-08, 0.999995589, 7.27595761e-12, 6.51925802e-09, -1.4182433e-11, 0.999988914, -0.00628564321, 6.51925802e-09, 0.00628691958, 0.999999404),Alpha)
  2897. LH.C0 = clerp(LH.C0,CFrame.new(-0.669678032, -1.38499403-.1*M.C(Sine/24), 0.0295096412, 0.990272164, -5.56828963e-05, 0.139128789, -0.000814882107, 0.999984801, 0.00620027725, -0.139128059, -0.00625271676, 0.990264475),Alpha)
  2898. RH.C0 = clerp(RH.C0,CFrame.new(0.672359347, -1.38521934-.1*M.C(Sine/24), 0.0211674385, 0.991539717, -1.65234928e-06, -0.12978667, 0.000817281427, 0.999984622, 0.00623110821, 0.129785627, -0.00628384575, 0.991531849),Alpha)
  2899. LS.C0 = clerp(LS.C0,CFrame.new(-0.915843368, 0.359640986, -0.334288538, 0.401372224, -0.891078174, 0.21183902, 0.504320204, 0.021941511, -0.863243043, 0.764574885, 0.453319848, 0.458198279),Alpha)
  2900. RS.C0 = clerp(RS.C0,CFrame.new(1.01991177, 0.324635416, -0.81657666, 0.166016608, 0.986036301, 0.0129131982, -0.818172693, 0.145040289, -0.556386292, -0.550494492, 0.0818048492, 0.830832779),Alpha)
  2901. NK.C0 = clerp(NK.C0,CFrame.new(1.02607883e-05, 2.02162433, -0.0194168612, 0.999995589, 3.67173925e-07, -1.56462193e-07, -3.56551027e-07, 0.997973442, 0.0637700409, 1.90921128e-07, -0.0637693703, 0.997983992)*CF.A(M.R(tau.PlaybackLoudness/25),0,0),Alpha)
  2902. until not tau.Parent or tau.TimePosition >= tau.TimeLength-.1
  2903.  
  2904. WalkSpeed = 12
  2905. Attack = false
  2906. NeutralAnims = true
  2907. end
  2908.  
  2909. function TraceThing(COLOR,PLACE2) -- thanks shack dadi
  2910. local FADE = Effects
  2911. for _, c in pairs(Char:GetChildren()) do
  2912. if c:IsA'BasePart' and c ~= Root and c.Name ~= 'Horn' then
  2913. local DIST = (c.Position-PLACE2).magnitude
  2914. local FADER = c:Clone()
  2915. FADER.Color = COLOR
  2916. FADER.Size = Vector3.new(FADER.Size.X,FADER.Size.Y,DIST)
  2917. FADER.CFrame = CFrame.new(c.Position,PLACE2) * CFrame.new(0,0,-DIST/2)
  2918. FADER.Parent = FADE
  2919. FADER.Anchored = true
  2920. FADER.Transparency = 0.25
  2921. FADER:BreakJoints()
  2922. FADER.Material = "Glass"
  2923. FADER.CanCollide = false
  2924. FADER:ClearAllChildren()
  2925.  
  2926. if FADER.Name == "Head" then
  2927. FADER.Size = Vector3.new(1,1,1)
  2928. end
  2929. Effect{
  2930. Effect='Fade',
  2931. Manual=FADER
  2932. }
  2933. end
  2934. end
  2935.  
  2936. end
  2937.  
  2938. function ShadowDash()
  2939. local whom = (Mouse.Target and Mouse.Target.Parent)
  2940. if(whom and whom:FindFirstChildOfClass'Humanoid' and GetTorso(whom))then
  2941. local tits = GetTorso(whom)
  2942. WalkSpeed = 0
  2943. Hum.AutoRotate = false
  2944. Hum.JumpPower = 0
  2945. Attack = true
  2946. NeutralAnims = false
  2947. tits.Anchored = true
  2948. pe.Enabled = false
  2949. for _,v in next, Char:children() do
  2950. if(v:IsA'BasePart')then
  2951. v.Transparency = 1
  2952. end
  2953. end
  2954. Root.Anchored = true
  2955. Root.CFrame = tits.CFrame
  2956. TraceThing(Color3.new(0,0,0),tits.Position)
  2957. swait(60)
  2958. tits.Anchored = false
  2959. whom:breakJoints()
  2960. Sound(Torso,429400881,1,1,false,true,true)
  2961. for i = 1, 150 do
  2962. BloodDrop(tits.CFrame.p,tits.CFrame*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360))*CF.N(0,0,-250).p,0)
  2963. end
  2964.  
  2965. for _,v in next, whom:children() do
  2966. if(v:IsA'BasePart')then
  2967. v.Transparency = 1
  2968. v.CanCollide = false
  2969. end
  2970. end
  2971.  
  2972. for _,v in next, Char:children() do
  2973. if(v:IsA'BasePart' and v ~= Root)then
  2974. v.Transparency = 0
  2975. end
  2976. end
  2977.  
  2978. Sound(Torso,51322486,.25,5,false,true,true)
  2979. Sound(Torso,90696602,.75,5,false,true,true)
  2980. for i = 0, 28, 0.1 do
  2981. swait()
  2982. local Alpha = .4
  2983. RJ.C0 = clerp(RJ.C0,CFrame.new(0.00757355848, 0.0377852023+.1*M.C(Sine/24), 0.485009342, 0.999981403, 0.00563284894, -0.00109071564, -0.00563992467, 0.930139899, -0.367174059, -0.00105372258, 0.367176652, 0.93016088),Alpha)
  2984. LH.C0 = clerp(LH.C0,CFrame.new(-0.552594781, -1.50296986-.1*M.C(Sine/24), 0.0680995584, 0.976442635, 0.0836730748, 0.198894158, -0.152352825, 0.920082569, 0.360883713, -0.152802736, -0.382684261, 0.911155462),Alpha)
  2985. RH.C0 = clerp(RH.C0,CFrame.new(0.567943096, -1.50207984-.1*M.C(Sine/24), 0.0515697002, 0.953646958, -0.0866500363, -0.288183123, 0.189154476, 0.917415917, 0.350098461, 0.234047636, -0.388381392, 0.89128089),Alpha)
  2986. LS.C0 = clerp(LS.C0,CFrame.new(-1.75206876, 0.655161917+.1*M.C(Sine/24), 0.0501086563, 0.92441982, 0.349119335, 0.153505713, -0.381188124, 0.858473122, 0.343103051, -0.0119965971, -0.375685781, 0.926669419),Alpha)
  2987. RS.C0 = clerp(RS.C0,CFrame.new(1.74417436, 0.680885673+.1*M.C(Sine/24), 0.0660502613, 0.924426794, -0.360479355, -0.124458626, 0.380988151, 0.858555913, 0.343118131, -0.0168322921, -0.364604831, 0.931010187),Alpha)
  2988. NK.C0 = clerp(NK.C0,CFrame.new(1.50889819e-05, 2.00338078, 0.0683209598, 1.00000012, -5.74626029e-07, 2.76975334e-06, 1.12503767e-06, 0.979146719, -0.203155011, -2.59466469e-06, 0.203154892, 0.9791466),Alpha)
  2989. end
  2990. Attack = false
  2991. NeutralAnims = true
  2992. Root.Anchored = false
  2993. WalkSpeed = 12
  2994. Hum.JumpPower = 50
  2995. Hum.AutoRotate = true
  2996. end
  2997. end
  2998.  
  2999. function Kick()
  3000. Attack = true
  3001. NeutralAnims = false
  3002. WalkSpeed = 0
  3003. for i = 0, 3, 0.1 do
  3004. swait()
  3005. local Alpha = .3
  3006. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0108572729, 0, -0.695583761, 0.999961317, -0.00823512767, -0.00228715781, 0.00822012592, 0.853373766, 0.521243095, -0.00234070979, -0.521245122, 0.853415012),Alpha)
  3007. LH.C0 = clerp(LH.C0,CFrame.new(-0.671167731, -1.38471591, -0.0706769824, 0.999878228, -0.00854624435, 0.0130612627, -9.76649171e-05, 0.833346248, 0.552751541, -0.0156085016, -0.552685499, 0.833243787),Alpha)
  3008. RH.C0 = clerp(RH.C0,CFrame.new(0.668480039, -1.47226596, -0.225226939, 0.999876022, 0.00822012592, 0.0132711167, -9.63718194e-05, 0.853373766, -0.521310091, -0.0156105161, 0.521243095, 0.853275299),Alpha)
  3009. LS.C0 = clerp(LS.C0,CFrame.new(-2.02284789, 0.688191652, 0.000862836838, 0.999878228, 0.0108040562, 0.0112653123, -9.76649171e-05, 0.726044297, -0.687648118, -0.0156085016, 0.687563181, 0.725956857),Alpha)
  3010. RS.C0 = clerp(RS.C0,CFrame.new(2.01978493, 0.643525422, -0.250506341, 0.999878228, 0.0108030885, 0.0112662409, -9.76649171e-05, 0.726103425, -0.687585771, -0.0156085016, 0.687500834, 0.726015925),Alpha)
  3011. NK.C0 = clerp(NK.C0,CFrame.new(1.23225118e-05, 2.02159524, -0.019422181, 1.00000012, 1.39325857e-06, -2.44937837e-07, -1.37463212e-06, 0.997964859, 0.0637694597, 3.31550837e-07, -0.0637694299, 0.997964621),Alpha)
  3012. end
  3013. for i = 0, 3, 0.1 do
  3014. swait()
  3015. AOEDamage(LLeg.CFrame.p,2,{MinDamage=15,MaxDamage=35,DamageFX={Type='FlingEm',KnockBack=75,Origin=LLeg,KnockUp=25}})
  3016. local Alpha = .3
  3017. RJ.C0 = clerp(RJ.C0,CFrame.new(0.00780527852, 0, 0.499894947, 0.999982774, 0.00539445458, -0.000995628536, -0.00539992284, 0.936068416, -0.3517887, -0.000965735875, 0.351791173, 0.936088264),Alpha)
  3018. LH.C0 = clerp(LH.C0,CFrame.new(-0.671892226, -1.23579645, -0.118154764, 0.999878228, 0.00863712933, 0.0130002648, -9.75973526e-05, 0.83637166, -0.548162997, -0.0156076048, 0.548094988, 0.836270571),Alpha)
  3019. RH.C0 = clerp(RH.C0,CFrame.new(0.6725474, -1.47226596, 0.0332563818, 0.999876022, -0.00539992284, 0.0146462582, -9.84164217e-05, 0.936068416, 0.351832539, -0.0156098502, -0.3517887, 0.935958624),Alpha)
  3020. LS.C0 = clerp(LS.C0,CFrame.new(-2.01932526, 0.751780629, 0.226142645, 0.999878228, -0.0136112757, 0.00763806421, -9.75973526e-05, 0.483909249, 0.875118136, -0.0156076048, -0.875012398, 0.483849049),Alpha)
  3021. RS.C0 = clerp(RS.C0,CFrame.new(2.02764368, 0.580253482, 0.252969861, 0.999878228, -0.0136119165, 0.00763692334, -9.75973526e-05, 0.483835995, 0.875158668, -0.0156076048, -0.875052869, 0.483775735),Alpha)
  3022. NK.C0 = clerp(NK.C0,CFrame.new(1.83633183e-05, 2.02156091, -0.0194185972, 1.00000012, 1.6214326e-06, -1.53947622e-06, -1.51945278e-06, 0.997964621, 0.0637715757, 1.64005905e-06, -0.0637715757, 0.997964621),Alpha)
  3023. end
  3024. WalkSpeed = 12
  3025. Attack = false
  3026. NeutralAnims = true
  3027. end
  3028. --// Wrap it all up \\--
  3029.  
  3030. S.UserInputService.InputBegan:connect(function(io,gpe)
  3031. if(gpe or Attack)then return end
  3032. if(io.KeyCode == Enum.KeyCode.Z)then
  3033. Decapitate()
  3034. elseif(io.KeyCode == Enum.KeyCode.M)then
  3035. ShadowDash()
  3036. elseif(io.KeyCode == Enum.KeyCode.F)then
  3037. Kick()
  3038.  
  3039. elseif(io.KeyCode == Enum.KeyCode.T)then
  3040. Taunt()
  3041. end
  3042. end)
  3043.  
  3044. Plr.Chatted:connect(function(m)
  3045. if(m == '/e sit')then
  3046. idleCounter = 0
  3047. Sitting = not Sitting
  3048. end
  3049. end)
  3050.  
  3051. while true do
  3052. swait()
  3053. Sine = Sine + Change
  3054. if(not Music)then
  3055. Music = Sound(Char,MusicID,1,3,true,false,true)
  3056. Music.Name = 'Music'
  3057. end
  3058. Music.SoundId = "rbxassetid://"..MusicID
  3059. Music.Parent = Torso
  3060. Music.Pitch = 1
  3061. Music.Volume = 5
  3062. if(not Muted)then
  3063. Music:Resume()
  3064. else
  3065. Music:Pause()
  3066. end
  3067.  
  3068.  
  3069. if(God)then
  3070. Hum.MaxHealth = 1e100
  3071. Hum.Health = 1e100
  3072. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  3073. Hum.Name = M.RNG()*100
  3074. end
  3075.  
  3076. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
  3077.  
  3078. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  3079. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed < 24 and "Walk" or "Run") or hitfloor and "Idle")
  3080. if(not Effects or not Effects.Parent)then
  3081. Effects = IN("Model",Char)
  3082. Effects.Name = "Effects"
  3083. end
  3084. if(State == 'Run')then
  3085. local wsVal = 7 / (Hum.WalkSpeed/16)
  3086. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  3087. Change = 1
  3088. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.1*M.C(Sine/wsVal),0+.2*M.C(Sine/wsVal))*CF.A(M.R(8-0*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/1.5,0,0),.2)
  3089. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.1*M.C(Sine/wsVal),0-.2*M.C(Sine/wsVal))*CF.A(M.R(8+0*M.C(Sine/wsVal))+M.S(Sine/wsVal)/1.5,0,0),.2)
  3090. elseif(State == 'Walk')then
  3091. local wsVal = 7 / (Hum.WalkSpeed/16)
  3092. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  3093. Change = 1
  3094. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.5*M.C(Sine/wsVal)/2,0+.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15-15*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  3095. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.5*M.C(Sine/wsVal)/2,0-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15+15*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  3096. else
  3097. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize,0),.2)
  3098. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize,0),.2)
  3099. end
  3100.  
  3101. if(State == 'Idle' and NeutralAnims)then
  3102. idleCounter = idleCounter + 1
  3103. else
  3104. Sitting = false
  3105. idleCounter = 0
  3106. end
  3107.  
  3108. Hum.WalkSpeed = WalkSpeed
  3109. if(not Char:FindFirstChildOfClass'Shirt')then
  3110. NewInstance("Shirt",Char,{ShirtTemplate='rbxassetid://236410507'})
  3111. else
  3112. Char:FindFirstChildOfClass'Shirt'.ShirtTemplate='rbxassetid://236410507'
  3113. end
  3114.  
  3115. if(not Char:FindFirstChildOfClass'Pants')then
  3116. NewInstance("Pants",Char,{PantsTemplate='rbxassetid://236412261'})
  3117. else
  3118. Char:FindFirstChildOfClass'Pants'.PantsTemplate='rbxassetid://236412261'
  3119. end
  3120.  
  3121. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  3122.  
  3123. local face = Head:FindFirstChild'face'
  3124. if(not face)then
  3125. NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
  3126. else
  3127. face.Texture = "rbxassetid://404306534"
  3128. end
  3129.  
  3130. RArm.Color = C3.N(0.1,0.1,0.1)
  3131. LArm.Color = C3.N(0.1,0.1,0.1)
  3132. RLeg.Color = C3.N(0.1,0.1,0.1)
  3133. LLeg.Color = C3.N(0.1,0.1,0.1)
  3134. Torso.Color = C3.N(0.1,0.1,0.1)
  3135. Head.Color = C3.N(0.1,0.1,0.1)
  3136.  
  3137. if(NeutralAnims)then
  3138. if(State == 'Idle')then
  3139. if(not Sitting and idleCounter < 1500)then
  3140. local Alpha = .1
  3141. Change = 1
  3142. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,0+.2*M.C(Sine/24),0)*CF.A(M.R(0+5*M.S(Sine/24)),0,0),Alpha)
  3143. NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,-.1)*CF.A(M.R(-15),0,M.R(10)),Alpha)
  3144. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(10+5*M.C(Sine/24)),0,M.R(-15+5*M.C(Sine/24))),Alpha)
  3145. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(10+5*M.C(Sine/24)),0,M.R(15-5*M.C(Sine/24))),Alpha)
  3146. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.2*M.C(Sine/24),0)*CF.A(M.R(0-5*M.S(Sine/24)),0,M.R(-5)),Alpha)
  3147. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.2*M.C(Sine/24),0)*CF.A(M.R(0-5*M.S(Sine/24)),0,M.R(5)),Alpha)
  3148. else
  3149. local Alpha = .1
  3150. Change = 1
  3151. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-2+.2*M.C(Sine/24),0)*CF.A(M.R(0+5*M.S(Sine/24)),0,0),Alpha)
  3152. NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,-.1)*CF.A(M.R(-15),0,M.R(10)),Alpha)
  3153. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(90+2*M.C(Sine/24)),0,M.R(15+2*M.C(Sine/24))),Alpha)
  3154. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(10+5*M.C(Sine/24)),0,M.R(15-5*M.C(Sine/24))),Alpha)
  3155. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,2-.2*M.C(Sine/24),-1)*CF.A(M.R(0-5*M.S(Sine/24)),0,M.R(-5)),Alpha)
  3156. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.2*M.C(Sine/24),0)*CF.A(M.R(-90-5*M.S(Sine/24)),0,M.R(5)),Alpha)
  3157. end
  3158. elseif(State == 'Run')then
  3159. local wsVal = 7 / (Hum.WalkSpeed/16)
  3160. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  3161. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  3162. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  3163. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
  3164. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
  3165. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  3166. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  3167. elseif(State == 'Walk')then
  3168. local wsVal = 7 / (Hum.WalkSpeed/16)
  3169. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  3170. local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
  3171. RJ.C0 = RJ.C0:lerp(CF.N(0,-.1+.1*M.C(Sine/(wsVal/2)+-M.S(Sine/(wsVal/2))/3),0)*CF.A(M.R(-9-2.5*M.C(Sine/(wsVal/2))),M.R(10*M.C(Sine/wsVal)),Root.RotVelocity.y/75),Alpha2)
  3172. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha)
  3173. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.27*M.C(Sine/wsVal))*CF.A(M.R(45*M.C(Sine/wsVal)),0,M.R(-5)+LArm.RotVelocity.y/75),Alpha)
  3174. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.27*M.C(Sine/wsVal))*CF.A(M.R(-45*M.C(Sine/wsVal)),0,M.R(5)-RArm.RotVelocity.y/75),Alpha)
  3175. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  3176. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  3177. elseif(State == 'Jump')then
  3178. local Alpha = .1
  3179. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  3180. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  3181. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  3182. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  3183. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  3184. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  3185. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  3186. elseif(State == 'Fall')then
  3187. local Alpha = .1
  3188. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  3189. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  3190. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  3191. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  3192. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  3193. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  3194. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  3195. elseif(State == 'Paralyzed')then
  3196. -- paralyzed
  3197. elseif(State == 'Sit')then
  3198. -- sit
  3199. end
  3200. end
  3201.  
  3202. for i,v in next, BloodPuddles do
  3203. local mesh = i:FindFirstChild'CylinderMesh'
  3204. BloodPuddles[i] = v + 1
  3205. if(not mesh or i.Transparency >= 1)then
  3206. i:destroy()
  3207. BloodPuddles[i] = nil
  3208. elseif(v > Frame_Speed*4)then
  3209. local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
  3210. i.Transparency = trans
  3211. if(mesh.Scale.Z > 0)then
  3212. mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
  3213. end
  3214. else
  3215. i.Transparency = 0
  3216. end
  3217. end
  3218. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement