Advertisement
saba1517

Untitled

Jun 17th, 2018
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.46 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 = 1064109642
  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://26768040','',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 = 2.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://817333972'})
  1502. else
  1503. Char:FindFirstChildOfClass'Shirt'.ShirtTemplate='rbxassetid://817333972'
  1504. end
  1505.  
  1506. if(not Char:FindFirstChildOfClass'Pants')then
  1507. NewInstance("Pants",Char,{PantsTemplate='rbxassetid://817451408'})
  1508. else
  1509. Char:FindFirstChildOfClass'Pants'.PantsTemplate='rbxassetid://817451408'
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement