Advertisement
Flamingo123

Roblox script Mephisto

Dec 11th, 2018
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.30 KB | None | 0 0
  1. wait(1/60)
  2.  
  3. --// Shortcut Variables \\--
  4. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  5. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  6. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  7. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  8. 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}
  9. local R3 = {N=Region3.new}
  10. local De = S.Debris
  11. local WS = workspace
  12. local Lght = S.Lighting
  13. local RepS = S.ReplicatedStorage
  14. local IN = Instance.new
  15. local Plrs = S.Players
  16.  
  17. --// Initializing \\--
  18. local Plr = Plrs.LocalPlayer
  19. local Char = Plr.Character
  20. local Hum = Char:FindFirstChildOfClass'Humanoid'
  21. local RArm = Char["Right Arm"]
  22. local LArm = Char["Left Arm"]
  23. local RLeg = Char["Right Leg"]
  24. local LLeg = Char["Left Leg"]
  25. local Root = Char:FindFirstChild'HumanoidRootPart'
  26. local Torso = Char.Torso
  27. local Head = Char.Head
  28. local NeutralAnims = true
  29. local Attack = false
  30. local Debounces = {Debounces={}}
  31. local Mouse = Plr:GetMouse()
  32. local Hit = {}
  33. local Sine = 0
  34. local Change = 1
  35. local BloodPuddles = {}
  36. local idleCounter = 0;
  37. local Sitting = false
  38.  
  39. local Effects = IN("Folder",Char)
  40. Effects.Name = "Effects"
  41.  
  42.  
  43. --// Debounce System \\--
  44.  
  45.  
  46. function Debounces:New(name,cooldown)
  47. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  48. setmetatable(aaaaa,{__index = Debounces})
  49. Debounces.Debounces[name] = aaaaa
  50. return aaaaa
  51. end
  52.  
  53. function Debounces:Use(overrideUsable)
  54. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  55. if(self.Usable or overrideUsable)then
  56. self.Usable = false
  57. self.CoolingDown = true
  58. local LastUse = time()
  59. self.LastUse = LastUse
  60. delay(self.Cooldown or 2,function()
  61. if(self.LastUse == LastUse)then
  62. self.CoolingDown = false
  63. self.Usable = true
  64. end
  65. end)
  66. end
  67. end
  68.  
  69. function Debounces:Get(name)
  70. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  71. for i,v in next, Debounces.Debounces do
  72. if(i == name)then
  73. return v;
  74. end
  75. end
  76. end
  77.  
  78. function Debounces:GetProgressPercentage()
  79. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  80. if(self.CoolingDown and not self.Usable)then
  81. return math.max(
  82. math.floor(
  83. (
  84. (time()-self.LastUse)/self.Cooldown or 2
  85. )*100
  86. )
  87. )
  88. else
  89. return 100
  90. end
  91. end
  92.  
  93. --// Instance Creation Functions \\--
  94.  
  95. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  96. local Sound = IN("Sound")
  97. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  98. Sound.Pitch = pitch or 1
  99. Sound.Volume = volume or 1
  100. Sound.Looped = looped or false
  101. if(autoPlay)then
  102. coroutine.wrap(function()
  103. repeat wait() until Sound.IsLoaded
  104. Sound.Playing = autoPlay or false
  105. end)()
  106. end
  107. if(not looped and effect)then
  108. Sound.Stopped:connect(function()
  109. Sound.Volume = 0
  110. Sound:destroy()
  111. end)
  112. elseif(effect)then
  113. warn("Sound can't be looped and a sound effect!")
  114. end
  115. Sound.Parent = parent or Torso
  116. return Sound
  117. end
  118. function Part(parent,color,material,size,cframe,anchored,cancollide)
  119. local part = IN("Part")
  120. part.Parent = parent or Char
  121. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  122. part.Material = material or Enum.Material.SmoothPlastic
  123. part.TopSurface,part.BottomSurface=10,10
  124. part.Size = size or V3.N(1,1,1)
  125. part.CFrame = cframe or CF.N(0,0,0)
  126. part.CanCollide = cancollide or false
  127. part.Anchored = anchored or false
  128. return part
  129. end
  130.  
  131. function Weld(part0,part1,c0,c1)
  132. local weld = IN("Weld")
  133. weld.Parent = part0
  134. weld.Part0 = part0
  135. weld.Part1 = part1
  136. weld.C0 = c0 or CF.N()
  137. weld.C1 = c1 or CF.N()
  138. return weld
  139. end
  140.  
  141. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  142. local part = IN("SpecialMesh")
  143. part.MeshId = meshid or ""
  144. part.TextureId = textid or ""
  145. part.Scale = scale or V3.N(1,1,1)
  146. part.Offset = offset or V3.N(0,0,0)
  147. part.MeshType = meshtype or Enum.MeshType.Sphere
  148. part.Parent = parent
  149. return part
  150. end
  151.  
  152. NewInstance = function(instance,parent,properties)
  153. local inst = Instance.new(instance)
  154. inst.Parent = parent
  155. if(properties)then
  156. for i,v in next, properties do
  157. pcall(function() inst[i] = v end)
  158. end
  159. end
  160. return inst;
  161. end
  162.  
  163. function Clone(instance,parent,properties)
  164. local inst = instance:Clone()
  165. inst.Parent = parent
  166. if(properties)then
  167. for i,v in next, properties do
  168. pcall(function() inst[i] = v end)
  169. end
  170. end
  171. return inst;
  172. end
  173.  
  174. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  175. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  176. local Sound = IN("Sound")
  177. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  178. Sound.Pitch = pitch or 1
  179. Sound.Volume = volume or 1
  180. Sound.Looped = looped or false
  181. if(autoPlay)then
  182. coroutine.wrap(function()
  183. repeat wait() until Sound.IsLoaded
  184. Sound.Playing = autoPlay or false
  185. end)()
  186. end
  187. if(not looped and effect)then
  188. Sound.Stopped:connect(function()
  189. Sound.Volume = 0
  190. soundPart:destroy()
  191. end)
  192. elseif(effect)then
  193. warn("Sound can't be looped and a sound effect!")
  194. end
  195. Sound.Parent = soundPart
  196. return Sound
  197. end
  198.  
  199.  
  200. --// Extended ROBLOX tables \\--
  201. 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})
  202. --// Require stuff \\--
  203. function CamShake(who,times,intense,origin)
  204. coroutine.wrap(function()
  205. if(script:FindFirstChild'CamShake')then
  206. local cam = script.CamShake:Clone()
  207. cam:WaitForChild'intensity'.Value = intense
  208. cam:WaitForChild'times'.Value = times
  209.  
  210. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  211. cam.Parent = who
  212. wait()
  213. cam.Disabled = false
  214. elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
  215. local intensity = intense
  216. local cam = workspace.CurrentCamera
  217. for i = 1, times do
  218. local camDistFromOrigin
  219. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  220. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  221. elseif(typeof(origin) == 'Vector3')then
  222. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  223. end
  224. if(camDistFromOrigin)then
  225. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  226. end
  227. 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)
  228. swait()
  229. end
  230. end
  231. end)()
  232. end
  233.  
  234.  
  235. function CamShakeAll(times,intense,origin)
  236. for _,v in next, Plrs:players() do
  237. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  238. end
  239. end
  240.  
  241. function ServerScript(code)
  242. if(script:FindFirstChild'Loadstring')then
  243. local load = script.Loadstring:Clone()
  244. load:WaitForChild'Sauce'.Value = code
  245. load.Disabled = false
  246. load.Parent = workspace
  247. elseif(NS and typeof(NS) == 'function')then
  248. NS(code,workspace)
  249. else
  250. warn("no serverscripts lol")
  251. end
  252. end
  253.  
  254. function LocalOnPlayer(who,code)
  255. ServerScript([[
  256. wait()
  257. script.Parent=nil
  258. if(not _G.Http)then _G.Http = game:service'HttpService' end
  259.  
  260. local Http = _G.Http or game:service'HttpService'
  261.  
  262. local source = ]].."[["..code.."]]"..[[
  263. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  264. local asd = Http:PostAsync(link,source)
  265. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  266. local ID = Http:JSONDecode(asd).Result.Require_ID
  267. local vs = require(ID).VORTH_SCRIPT
  268. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  269. ]])
  270. end
  271.  
  272.  
  273. --// Customization \\--
  274.  
  275. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  276. local Remove_Hats = true
  277. local Remove_Clothing = true
  278. local PlayerSize = 1.3
  279. local DamageColor = BrickColor.new'Really black'
  280. local MusicID = 340286845
  281. local God = true
  282. local Muted = false
  283.  
  284. local WalkSpeed = 12
  285.  
  286. local Music = Sound(Char,MusicID,1,3,true,false,true)
  287. Music.Name = 'Music'
  288.  
  289. --// Stop animations \\--
  290. for _,v in next, Hum:GetPlayingAnimationTracks() do
  291. v:Stop();
  292. end
  293.  
  294. pcall(game.Destroy,Char:FindFirstChild'Animate')
  295. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  296.  
  297.  
  298. --// Joints \\--
  299.  
  300. 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)})
  301. 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)})
  302. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  303. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  304. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  305. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  306.  
  307. local LSC0 = LS.C0
  308. local RSC0 = RS.C0
  309. local NKC0 = NK.C0
  310. local LHC0 = LH.C0
  311. local RHC0 = RH.C0
  312. local RJC0 = RJ.C0
  313.  
  314. --// Resizing \\--
  315.  
  316. Hum.Parent = nil
  317. Root.Size = Root.Size*PlayerSize
  318. Torso.Size = Torso.Size*PlayerSize
  319. RArm.Size = RArm.Size*PlayerSize
  320. RLeg.Size = RLeg.Size*PlayerSize
  321. LArm.Size = LArm.Size*PlayerSize
  322. LLeg.Size = LLeg.Size*PlayerSize
  323. Head.Size = Head.Size*PlayerSize
  324.  
  325. RJ.Parent = Root
  326. NK.Parent = Torso
  327. RS.Parent = Torso
  328. LS.Parent = Torso
  329. RH.Parent = Torso
  330. LH.Parent = Torso
  331.  
  332. Hum.Parent = Char
  333.  
  334. --// Weapon and GUI creation, and Character Customization \\--
  335.  
  336. 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)})
  337. local hood = Part(Char,C3.N(.2,.2,.2),Enum.Material.Fabric,V3.N(2*PlayerSize,2*PlayerSize,2*PlayerSize),CF.N(),false,false)
  338. local hoodM = Mesh(hood,Enum.MeshType.FileMesh,'rbxassetid://16952952','',V3.N(1.05*PlayerSize,1.05*PlayerSize,1.05*PlayerSize))
  339. local hoodW = Weld(hood,Head,CF.N(0,-.384*PlayerSize,0))
  340.  
  341. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  342. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  343.  
  344. for side = 1,2 do
  345. local LastPart = hood;
  346.  
  347. for i = 1,34 do
  348. local mult = (1-(i/38))*PlayerSize
  349. if(LastPart == hood)then
  350. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  351. Horn.Name = 'Horn'
  352. 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))
  353. LastPart = Horn
  354. else
  355. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  356. Horn.Name = 'Horn'
  357. 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))
  358. LastPart = Horn
  359. end
  360. end
  361. end
  362.  
  363. for side = 1,2 do
  364. local LastPart = hood;
  365.  
  366. for i = 1,24 do
  367. local mult = (1-(i/28))*PlayerSize
  368. if(LastPart == hood)then
  369. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  370. Horn.Name = 'Horn'
  371. 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))))
  372. LastPart = Horn
  373. else
  374. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  375. Horn.Name = 'Horn'
  376. 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))
  377. LastPart = Horn
  378. end
  379. end
  380. end
  381.  
  382. --// Artificial HB \\--
  383.  
  384. local ArtificialHB = IN("BindableEvent", script)
  385. ArtificialHB.Name = "Heartbeat"
  386.  
  387. script:WaitForChild("Heartbeat")
  388.  
  389. local tf = 0
  390. local allowframeloss = false
  391. local tossremainder = false
  392. local lastframe = tick()
  393. local frame = 1/Frame_Speed
  394. ArtificialHB:Fire()
  395.  
  396. game:GetService("RunService").Heartbeat:connect(function(s, p)
  397. tf = tf + s
  398. if tf >= frame then
  399. if allowframeloss then
  400. script.Heartbeat:Fire()
  401. lastframe = tick()
  402. else
  403. for i = 1, math.floor(tf / frame) do
  404. ArtificialHB:Fire()
  405. end
  406. lastframe = tick()
  407. end
  408. if tossremainder then
  409. tf = 0
  410. else
  411. tf = tf - frame * math.floor(tf / frame)
  412. end
  413. end
  414. end)
  415.  
  416. function swait(num)
  417. if num == 0 or num == nil then
  418. ArtificialHB.Event:wait()
  419. else
  420. for i = 0, num do
  421. ArtificialHB.Event:wait()
  422. end
  423. end
  424. end
  425.  
  426.  
  427. --// Effect Function(s) \\--
  428.  
  429. function Bezier(startpos, pos2, pos3, endpos, t)
  430. local A = startpos:lerp(pos2, t)
  431. local B = pos2:lerp(pos3, t)
  432. local C = pos3:lerp(endpos, t)
  433. local lerp1 = A:lerp(B, t)
  434. local lerp2 = B:lerp(C, t)
  435. local cubic = lerp1:lerp(lerp2, t)
  436. return cubic
  437. end
  438. function Puddle(hit,pos,norm,data)
  439. local material = data.Material or Enum.Material.Granite
  440. local color = data.Color or BrickColor.new'Crimson'
  441. local size = data.Size and data.Size/4 or .25
  442.  
  443. if(hit.Name ~= 'BloodPuddle')then
  444. 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'})
  445. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  446. BloodPuddles[Puddle] = 0
  447. else
  448. local cyl = hit:FindFirstChild'CylinderMesh'
  449. if(cyl and cyl.Scale.x < 20)then
  450. BloodPuddles[hit] = 0
  451. cyl.Scale = cyl.Scale + V3.N(size,0,size)
  452. hit.Transparency = 0
  453. end
  454. end
  455. end
  456.  
  457. function Droplet(data)
  458. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  459. local Size = data.Size or .5
  460. local Color = data.Color or BrickColor.new'Crimson'
  461. local StudsPerFrame = data.Speed or 1
  462. local Shape = data.Shape or 'Ball'
  463. local Frames = (data.Frames or 160)+1
  464. local Pos = data.Origin or Root.CFrame
  465. local Direction = data.Direction or Root.CFrame.lookVector*100000
  466. local Material = data.Material or Enum.Material.Granite
  467. local Drop = data.Drop or .05
  468. local Ignorelist = data.Ignorelist or (function()
  469. local list = {}
  470. for _,v in next, workspace:children() do
  471. if(v:FindFirstChildOfClass'Humanoid')then
  472. table.insert(list,v)
  473. end
  474. end
  475. return list
  476. end)()
  477.  
  478. local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
  479. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  480. if(Shape == 'Ball')then
  481. BMesh.MeshType = Enum.MeshType.Sphere
  482. elseif(Shape == 'Head')then
  483. BMesh.MeshType = Enum.MeshType.Head
  484. elseif(Shape == 'Cylinder')then
  485. BMesh.MeshType = Enum.MeshType.Cylinder
  486. end
  487.  
  488. coroutine.wrap(function()
  489. for i = 1, Frames do
  490. Pos = Pos + V3.N(0,-(Drop*i),0)
  491. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame,Ignorelist)
  492. if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
  493. Puddle(hit,pos,norm,data)
  494. break;
  495. else
  496. Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
  497. end
  498. swait()
  499. end
  500. Bullet:destroy()
  501. end)()
  502. end
  503.  
  504. function BloodDrop(pos,dir,maxsize,BloodMaterial,BloodColor)
  505. BloodMaterial = BloodMaterial or Enum.Material.Granite
  506. BloodColor = BloodColor or BrickColor.new'Maroon'
  507. local owo = NewInstance("Part",Char,{Material=BloodMaterial,BrickColor=BloodColor,Shape=Enum.PartType.Ball,Size=V3.N(.25,.25,.25), CanCollide = false})
  508. owo.CFrame=CF.N(pos,dir)
  509. local bv = Instance.new("BodyVelocity",owo)
  510. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  511. 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
  512. bv.Name = "MOVE"
  513. game:service'Debris':AddItem(bv,0.05)
  514. local touch
  515. touch = owo.Touched:connect(function(hit)
  516. if(hit.Anchored==true and hit.CanCollide and not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent.Parent:FindFirstChildOfClass'Humanoid')then
  517. touch:disconnect()
  518. BloodPuddle(owo.Position+V3.N(0,1,0),3,maxsize,owo)
  519. owo:destroy()
  520. end
  521. end)
  522. end
  523. function BloodPuddle(position,range,maxSize,where,BloodMaterial,BloodColor)
  524. BloodMaterial = BloodMaterial or Enum.Material.Granite
  525. BloodColor = BloodColor or BrickColor.new'Maroon'
  526. local hit, pos, norm = workspace:FindPartOnRayWithIgnoreList(Ray.new(
  527. position,CF.N(position,position+V3.N(0,-1,0)).lookVector * range
  528. ),{where,Char},false,true)
  529. if(hit)then
  530. if(BloodPuddles[hit])then
  531. BloodPuddles[hit] = 0
  532. if(hit:FindFirstChild'CylinderMesh' and hit.CylinderMesh.Scale.Z < 15)then
  533. hit.CylinderMesh.Scale = hit.CylinderMesh.Scale + V3.N(.1,0,.1)
  534. end
  535. else
  536. 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'})
  537. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  538. BloodPuddles[Puddle] = 0
  539. end
  540. end
  541. end
  542.  
  543.  
  544. function SphereFX(duration,color,scale,pos,endScale,increment)
  545. return Effect{
  546. Effect='ResizeAndFade',
  547. Color=color,
  548. Size=scale,
  549. Mesh={MeshType=Enum.MeshType.Sphere},
  550. CFrame=pos,
  551. FXSettings={
  552. EndSize=endScale,
  553. EndIsIncrement=increment
  554. }
  555. }
  556. end
  557.  
  558. function BlastFX(duration,color,scale,pos,endScale,increment)
  559. return Effect{
  560. Effect='ResizeAndFade',
  561. Color=color,
  562. Size=scale,
  563. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  564. CFrame=pos,
  565. FXSettings={
  566. EndSize=endScale,
  567. EndIsIncrement=increment
  568. }
  569. }
  570. end
  571.  
  572. function BlockFX(duration,color,scale,pos,endScale,increment)
  573. return Effect{
  574. Effect='ResizeAndFade',
  575. Color=color,
  576. Size=scale,
  577. CFrame=pos,
  578. FXSettings={
  579. EndSize=endScale,
  580. EndIsIncrement=increment
  581. }
  582. }
  583. end
  584.  
  585. function ShootBullet(data)
  586. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  587. local Size = data.Size or V3.N(2,2,2)
  588. local Color = data.Color or BrickColor.new'Crimson'
  589. local StudsPerFrame = data.Speed or 10
  590. local Shape = data.Shape or 'Ball'
  591. local Frames = data.Frames or 160
  592. local Pos = data.Origin or Torso.CFrame
  593. local Direction = data.Direction or Mouse.Hit
  594. local Material = data.Material or Enum.Material.Neon
  595. local OnHit = data.HitFunction or function(hit,pos)
  596. Effect{
  597. Effect='ResizeAndFade',
  598. Color=Color,
  599. Size=V3.N(10,10,10),
  600. Mesh={MeshType=Enum.MeshType.Sphere},
  601. CFrame=CF.N(pos),
  602. FXSettings={
  603. EndSize=V3.N(.05,.05,.05),
  604. EndIsIncrement=true
  605. }
  606. }
  607. for i = 1, 5 do
  608. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  609. Effect{
  610. Effect='Fade',
  611. Frames=65,
  612. Size=V3.N(5,5,10),
  613. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  614. Mesh = {MeshType=Enum.MeshType.Sphere},
  615. Material=Enum.Material.Neon,
  616. Color=Color,
  617. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  618. }
  619. end
  620. end
  621.  
  622. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  623. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  624. if(Shape == 'Ball')then
  625. BMesh.MeshType = Enum.MeshType.Sphere
  626. elseif(Shape == 'Head')then
  627. BMesh.MeshType = Enum.MeshType.Head
  628. elseif(Shape == 'Cylinder')then
  629. BMesh.MeshType = Enum.MeshType.Cylinder
  630. end
  631.  
  632. coroutine.wrap(function()
  633. for i = 1, Frames+1 do
  634. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  635. if(hit)then
  636. OnHit(hit,pos,norm,dist)
  637. break;
  638. else
  639. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  640. end
  641. swait()
  642. end
  643. Bullet:destroy()
  644. end)()
  645.  
  646. end
  647.  
  648.  
  649. function Zap(data)
  650. local sCF,eCF = data.StartCFrame,data.EndCFrame
  651. assert(sCF,"You need a start CFrame!")
  652. assert(eCF,"You need an end CFrame!")
  653. local parts = data.PartCount or 15
  654. local zapRot = data.ZapRotation or {-5,5}
  655. local startThick = data.StartSize or 3;
  656. local endThick = data.EndSize or startThick/2;
  657. local color = data.Color or BrickColor.new'Electric blue'
  658. local delay = data.Delay or 35
  659. local delayInc = data.DelayInc or 0
  660. local lastLightning;
  661. local MagZ = (sCF.p - eCF.p).magnitude
  662. local thick = startThick
  663. local inc = (startThick/parts)-(endThick/parts)
  664.  
  665. for i = 1, parts do
  666. local pos = sCF.p
  667. if(lastLightning)then
  668. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  669. end
  670. delay = delay + delayInc
  671. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  672. 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)))
  673. if(parts == i)then
  674. local MagZ = (pos-eCF.p).magnitude
  675. zapPart.Size = V3.N(endThick,endThick,MagZ)
  676. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  677. 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)}}
  678. else
  679. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  680. end
  681.  
  682. lastLightning = zapPart
  683. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  684.  
  685. thick=thick-inc
  686.  
  687. end
  688. end
  689.  
  690. function Zap2(data)
  691. local Color = data.Color or BrickColor.new'Electric blue'
  692. local StartPos = data.Start or Torso.Position
  693. local EndPos = data.End or Mouse.Hit.p
  694. local SegLength = data.SegL or 2
  695. local Thicc = data.Thickness or 0.5
  696. local Fades = data.Fade or 45
  697. local Parent = data.Parent or Effects
  698. local MaxD = data.MaxDist or 200
  699. local Branch = data.Branches or false
  700. local Material = data.Material or Enum.Material.Neon
  701. local Raycasts = data.Raycasts or false
  702. local Offset = data.Offset or {0,360}
  703. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  704. if((StartPos-EndPos).magnitude > MaxD)then
  705. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  706. end
  707. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  708. if(Raycasts)then
  709. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  710. end
  711. local segments = dist/SegLength
  712. local model = IN("Model",Parent)
  713. model.Name = 'Lightning'
  714. local Last;
  715. for i = 1, segments do
  716. local size = (segments-i)/25
  717. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  718. if(AddMesh)then IN("CylinderMesh",prt) end
  719. if(Last and math.floor(segments) == i)then
  720. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  721. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  722. 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)
  723. elseif(not Last)then
  724. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  725. else
  726. 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)
  727. end
  728. Last = prt
  729. if(Branch)then
  730. local choice = M.RNG(1,7+((segments-i)*2))
  731. if(choice == 1)then
  732. local LastB;
  733. for i2 = 1,M.RNG(2,5) do
  734. local size2 = ((segments-i)/35)/i2
  735. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  736. if(AddMesh)then IN("CylinderMesh",prt) end
  737. if(not LastB)then
  738. 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)
  739. else
  740. 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)
  741. end
  742. LastB = prt
  743. end
  744. end
  745. end
  746. end
  747. if(Fades > 0)then
  748. coroutine.wrap(function()
  749. for i = 1, Fades do
  750. for _,v in next, model:children() do
  751. if(v:IsA'BasePart')then
  752. v.Transparency = (i/Fades)
  753. end
  754. end
  755. swait()
  756. end
  757. model:destroy()
  758. end)()
  759. else
  760. S.Debris:AddItem(model,.01)
  761. end
  762. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  763. end
  764.  
  765. function Tween(obj,props,time,easing,direction,repeats,backwards)
  766. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  767. local tween = S.TweenService:Create(obj, info, props)
  768.  
  769. tween:Play()
  770. end
  771.  
  772. function Effect(data)
  773. local FX = data.Effect or 'ResizeAndFade'
  774. local Parent = data.Parent or Effects
  775. local Color = data.Color or C3.N(0,0,0)
  776. local Size = data.Size or V3.N(1,1,1)
  777. local MoveDir = data.MoveDirection or nil
  778. local MeshData = data.Mesh or nil
  779. local SndData = data.Sound or nil
  780. local Frames = data.Frames or 45
  781. local Manual = data.Manual or nil
  782. local Material = data.Material or nil
  783. local CFra = data.CFrame or Torso.CFrame
  784. local Settings = data.FXSettings or {}
  785. local Shape = data.Shape or Enum.PartType.Block
  786. local Snd,Prt,Msh;
  787. local RotInc = data.RotInc or {0,0,0}
  788. if(typeof(RotInc) == 'number')then
  789. RotInc = {RotInc,RotInc,RotInc}
  790. end
  791. coroutine.wrap(function()
  792. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  793. Prt = Manual
  794. else
  795. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  796. Prt.Shape = Shape
  797. end
  798. if(typeof(MeshData) == 'table')then
  799. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  800. elseif(typeof(MeshData) == 'Instance')then
  801. Msh = MeshData:Clone()
  802. Msh.Parent = Prt
  803. elseif(Shape == Enum.PartType.Block)then
  804. Msh = Mesh(Prt,Enum.MeshType.Brick)
  805. end
  806. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  807. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  808. end
  809. if(Snd)then
  810. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  811. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  812. end
  813. Size = (Msh and Msh.Scale or Size)
  814. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  815.  
  816. local MoveSpeed = nil;
  817. if(MoveDir)then
  818. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  819. end
  820. if(FX ~= 'Arc')then
  821. for Frame = 1, Frames do
  822. if(FX == "Fade")then
  823. Prt.Transparency = (Frame/Frames)
  824. elseif(FX == "Resize")then
  825. if(not Settings.EndSize)then
  826. Settings.EndSize = V3.N(0,0,0)
  827. end
  828. if(Settings.EndIsIncrement)then
  829. if(Msh)then
  830. Msh.Scale = Msh.Scale + Settings.EndSize
  831. else
  832. Prt.Size = Prt.Size + Settings.EndSize
  833. end
  834. else
  835. if(Msh)then
  836. Msh.Scale = Msh.Scale - grow/Frames
  837. else
  838. Prt.Size = Prt.Size - grow/Frames
  839. end
  840. end
  841. elseif(FX == "ResizeAndFade")then
  842. if(not Settings.EndSize)then
  843. Settings.EndSize = V3.N(0,0,0)
  844. end
  845. if(Settings.EndIsIncrement)then
  846. if(Msh)then
  847. Msh.Scale = Msh.Scale + Settings.EndSize
  848. else
  849. Prt.Size = Prt.Size + Settings.EndSize
  850. end
  851. else
  852. if(Msh)then
  853. Msh.Scale = Msh.Scale - grow/Frames
  854. else
  855. Prt.Size = Prt.Size - grow/Frames
  856. end
  857. end
  858. Prt.Transparency = (Frame/Frames)
  859. end
  860. if(Settings.RandomizeCFrame)then
  861. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  862. else
  863. Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc))
  864. end
  865. if(MoveDir and MoveSpeed)then
  866. local Orientation = Prt.Orientation
  867. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  868. Prt.Orientation = Orientation
  869. end
  870. swait()
  871. end
  872. Prt:destroy()
  873. else
  874. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  875. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  876. if(start and endP)then
  877. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  878. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  879. for Frame = 0, 1, (Settings.Speed or 0.01) do
  880. if(Settings.Home)then
  881. endP = Settings.Home.CFrame
  882. end
  883. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  884. end
  885. if(Settings.RemoveOnGoal)then
  886. Prt:destroy()
  887. end
  888. else
  889. Prt:destroy()
  890. assert(start,"You need a start position!")
  891. assert(endP,"You need a start position!")
  892. end
  893. end
  894. end)()
  895. return Prt,Msh,Snd
  896. end
  897. function SoulSteal(whom)
  898. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  899. print(torso)
  900. if(torso and torso:IsA'BasePart')then
  901. local Model = Instance.new("Model",Effects)
  902. Model.Name = whom.Name.."'s Soul"
  903. whom:BreakJoints()
  904. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  905. Soul.Name = 'Head'
  906. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  907. Effect{
  908. Effect="Arc",
  909. Manual = Soul,
  910. FXSettings={
  911. Start=torso.CFrame,
  912. Home = Torso,
  913. RemoveOnGoal = true,
  914. }
  915. }
  916. local lastPoint = Soul.CFrame.p
  917.  
  918. for i = 0, 1, 0.01 do
  919. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  920. local mag = (lastPoint - Soul.Position).magnitude
  921. Effect{
  922. Effect = "Fade",
  923. CFrame = point * CF.N(0, mag/2, 0),
  924. Size = V3.N(.5,mag+.5,.5),
  925. Color = Soul.BrickColor
  926. }
  927. lastPoint = Soul.CFrame.p
  928. swait()
  929. end
  930. for i = 1, 5 do
  931. Effect{
  932. Effect="Fade",
  933. Color = BrickColor.new'Really red',
  934. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  935. }
  936. end
  937. end
  938. end
  939.  
  940. --// Other Functions \\ --
  941.  
  942. function CastRay(startPos,endPos,range,ignoreList)
  943. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  944. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  945. return part,pos,norm,(pos and (startPos-pos).magnitude)
  946. end
  947.  
  948. function getRegion(point,range,ignore)
  949. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  950. end
  951.  
  952. function clerp(startCF,endCF,alpha)
  953. return startCF:lerp(endCF, alpha)
  954. end
  955.  
  956. function GetTorso(char)
  957. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  958. end
  959.  
  960.  
  961. function ShowDamage(Pos, Text, Time, Color)
  962. coroutine.wrap(function()
  963. local Rate = (1 / Frame_Speed)
  964. local Pos = (Pos or Vector3.new(0, 0, 0))
  965. local Text = (Text or "")
  966. local Time = (Time or 2)
  967. local Color = (Color or Color3.new(1, 0, 1))
  968. local EffectPart = NewInstance("Part",Effects,{
  969. Material=Enum.Material.SmoothPlastic,
  970. Reflectance = 0,
  971. Transparency = 1,
  972. BrickColor = BrickColor.new(Color),
  973. Name = "Effect",
  974. Size = Vector3.new(0,0,0),
  975. Anchored = true,
  976. CFrame = CF.N(Pos)
  977. })
  978. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  979. Size = UDim2.new(1.25, 0, 1.25, 0),
  980. Adornee = EffectPart,
  981. })
  982. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  983. BackgroundTransparency = 1,
  984. Size = UDim2.new(1, 0, 1, 0),
  985. Text = Text,
  986. Font = "Bodoni",
  987. TextColor3 = Color,
  988. TextStrokeColor3 = Color3.new(0,0,0),
  989. TextStrokeTransparency=0,
  990. TextScaled = true,
  991. })
  992. S.Debris:AddItem(EffectPart, (Time))
  993. EffectPart.Parent = workspace
  994. delay(0, function()
  995. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  996. local Frames = (Time / Rate)
  997. for Frame = 1, Frames do
  998. swait()
  999. local Percent = (Frame / Frames)
  1000. TextLabel.TextTransparency = Percent
  1001. TextLabel.TextStrokeTransparency = Percent
  1002. end
  1003. if EffectPart and EffectPart.Parent then
  1004. EffectPart:Destroy()
  1005. end
  1006. end) end)()
  1007. end
  1008.  
  1009. function DealDamage(data)
  1010. local Who = data.Who;
  1011. local MinDam = data.MinimumDamage or 15;
  1012. local MaxDam = data.MaximumDamage or 30;
  1013. local MaxHP = data.MaxHP or 1e5;
  1014.  
  1015. local DB = data.Debounce or .2;
  1016.  
  1017. local CritData = data.Crit or {}
  1018. local CritChance = CritData.Chance or 0;
  1019. local CritMultiplier = CritData.Multiplier or 1;
  1020.  
  1021. local DamageEffects = data.DamageFX or {}
  1022. local DamageType = DamageEffects.Type or "Normal"
  1023. local DeathFunction = DamageEffects.DeathFunction
  1024.  
  1025. assert(Who,"Specify someone to damage!")
  1026.  
  1027. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  1028. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  1029.  
  1030. local canHit = true
  1031. if(Humanoid)then
  1032. for _, p in pairs(Hit) do
  1033. if p[1] == Humanoid then
  1034. if(time() - p[2] <= DB) then
  1035. canHit = false
  1036. else
  1037. Hit[_] = nil
  1038. end
  1039. end
  1040. end
  1041. if(canHit)then
  1042. table.insert(Hit,{Humanoid,time()})
  1043. local HitTorso = GetTorso(Who)
  1044. local player = S.Players:GetPlayerFromCharacter(Who)
  1045. if(not player or player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then
  1046. if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
  1047. print'Got kill'
  1048. Humanoid.Health = 0;
  1049. Who:BreakJoints();
  1050. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  1051. else
  1052. local c = Instance.new("ObjectValue",Hum)
  1053. c.Name = "creator"
  1054. c.Value = Plr
  1055. S.Debris:AddItem(c,0.35)
  1056. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  1057. 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)
  1058. end
  1059. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
  1060. Humanoid.Health = Humanoid.Health - DoneDamage
  1061.  
  1062. if(DamageType == 'Knockback' and HitTorso)then
  1063. local up = DamageEffects.KnockUp or 25
  1064. local back = DamageEffects.KnockBack or 25
  1065. local origin = DamageEffects.Origin or Root
  1066. local decay = DamageEffects.Decay or .5;
  1067.  
  1068. local bfos = Instance.new("BodyVelocity",HitTorso)
  1069. bfos.P = 20000
  1070. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1071. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1072. S.Debris:AddItem(bfos,decay)
  1073. elseif(DamageType == 'FlingEm' and HitTorso)then
  1074. Humanoid.PlatformStand = true
  1075. local up = DamageEffects.KnockUp or 25
  1076. local back = DamageEffects.KnockBack or 25
  1077. local origin = DamageEffects.Origin or Root
  1078. local decay = DamageEffects.Decay or .5;
  1079.  
  1080. local bfos = Instance.new("BodyVelocity",HitTorso)
  1081. bfos.P = 20000
  1082. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1083. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1084. S.Debris:AddItem(bfos,decay)
  1085. local Sizey = (function()
  1086. if(Who:FindFirstChild'HumanoidRootPart')then
  1087. return Who.HumanoidRootPart.Size
  1088. else
  1089. return HitTorso.Size
  1090. end
  1091. end)()
  1092. local collision = Part(Who,C3.N(0,0,0),Enum.Material.Plastic,Sizey,CF.N(),false,false)
  1093. collision.Transparency = 1
  1094. Weld(collision,HitTorso)
  1095. local ev;
  1096. ev = collision.Touched:connect(function(t)
  1097. if(t.Parent ~= Who and t.Parent ~= Char and not t:IsDescendantOf(Who) and not t:IsDescendantOf(Char))then
  1098. Who:breakJoints()
  1099. ev:disconnect()
  1100. end
  1101. end)
  1102. end
  1103. end
  1104. end
  1105. end
  1106. end
  1107. end
  1108.  
  1109. function AOEDamage(where,range,options)
  1110. local hit = {}
  1111. for _,v in next, getRegion(where,range,{Char}) do
  1112. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
  1113. local callTable = {Who=v.Parent}
  1114. hit[v.Parent] = true
  1115. for _,v in next, options do callTable[_] = v end
  1116. DealDamage(callTable)
  1117. end
  1118. end
  1119. return hit
  1120. end
  1121.  
  1122. function AOEHeal(where,range,amount)
  1123. local healed = {}
  1124. for _,v in next, getRegion(where,range,{Char}) do
  1125. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1126. if(hum and not healed[hum])then
  1127. hum.Health = hum.Health + amount
  1128. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1129. 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)
  1130. end
  1131. end
  1132. end
  1133. end
  1134.  
  1135. function ClosestHumanoid(pos,range)
  1136. local mag,closest = math.huge;
  1137. local root;
  1138. for _,v in next, getRegion(pos,range or 10,{Char}) do
  1139. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
  1140. if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then
  1141. mag = (v.CFrame.p-pos).magnitude
  1142. closest = hum
  1143. if(v.Parent:FindFirstChild'HumanoidRootPart')then
  1144. root = v.Parent.HumanoidRootPart
  1145. end
  1146. end
  1147. end
  1148. return closest,(closest and GetTorso(closest.Parent) or nil),root
  1149. end
  1150.  
  1151. function AttackTemp()
  1152. local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
  1153.  
  1154. if(torso)then
  1155. local who = torso.Parent
  1156. WalkSpeed = 0
  1157. Hum.JumpPower = 0
  1158. Attack = true
  1159. NeutralAnims = false
  1160. Hum.AutoRotate = false
  1161. who.Parent = Char
  1162. local oRoot
  1163. coroutine.resume(coroutine.create(function()
  1164. repeat
  1165. swait()
  1166. torso.Anchored = true
  1167. Root.Anchored = true
  1168. until not Attack
  1169. Root.Anchored = false
  1170. torso.Anchored = false
  1171. Hum.AutoRotate = true
  1172. end))
  1173. torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
  1174. WalkSpeed = 16
  1175. Hum.AutoRotate = true
  1176. Hum.JumpPower = 50
  1177. Attack = false
  1178. NeutralAnims = true
  1179. end
  1180. end
  1181.  
  1182. function Decapitate()
  1183. Attack = true
  1184. NeutralAnims = false
  1185. WalkSpeed = 0
  1186. Hum.JumpPower = 0
  1187. Hum.AutoRotate = false
  1188.  
  1189. local humanoid,torso,root = ClosestHumanoid(Torso.CFrame.p,5)
  1190. local gWeld;
  1191. if(torso)then
  1192. if(root)then root:destroy(); end
  1193. gWeld = Weld(torso,RArm,CF.N(0,0,1.25)*CF.A(M.R(90),0,0))
  1194. end
  1195. for i = 0, 3, 0.1 do
  1196. swait()
  1197. local Alpha = .3
  1198. 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)
  1199. 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)
  1200. 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)
  1201. 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)
  1202. 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)
  1203. 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)
  1204. end
  1205.  
  1206.  
  1207. if(torso and gWeld)then
  1208. local who = torso.Parent
  1209.  
  1210. for i = 0, 2, 0.1 do
  1211. swait()
  1212. local Alpha = .3
  1213. 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)
  1214. 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)
  1215. 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)
  1216. 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)
  1217. 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)
  1218. 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)
  1219. end
  1220. for i = 0, 3, 0.1 do
  1221. swait()
  1222. local Alpha = .3
  1223. 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)
  1224. 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)
  1225. 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)
  1226. 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)
  1227. 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)
  1228. 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)
  1229. end
  1230. gWeld:destroy()
  1231. local hae = who:FindFirstChild'Head'
  1232. local haed;
  1233. Sound(torso,1093102664,.85,5,false,true,true)
  1234. Sound(torso,429400881,1,1,false,true,true)
  1235. if(hae)then
  1236. haed = Part(Char,hae.Color,hae.Material,hae.Size,CF.N(),false,false)
  1237. Mesh(haed,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25))
  1238. local faic = hae:FindFirstChildOfClass'Decal'
  1239. if(faic)then
  1240. faic:Clone().Parent = haed
  1241. end
  1242. hae:destroy()
  1243. local we = Weld(haed,LArm,CF.N(0,0,1.25),CF.A(M.R(-90),0,0))
  1244. coroutine.wrap(function()
  1245. for i = 1, 250 do
  1246. if(not who or not who.Parent)then break end
  1247. 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
  1248. BloodDrop(torso.CFrame*CF.N(0,torso.Size.Y/2,0).p,torso.CFrame * CF.N(0,torso.Size.Y,0).p,15)
  1249. swait(2)
  1250. end
  1251. end)()
  1252. end
  1253. for i = 0, 6, 0.1 do
  1254. swait()
  1255. local Alpha = .3
  1256. 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)
  1257. 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)
  1258. 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)
  1259. 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)
  1260. 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)
  1261. 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)
  1262. end
  1263. 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
  1264. end
  1265. Hum.AutoRotate = true
  1266. WalkSpeed = 12
  1267. Hum.JumpPower = 50
  1268. Attack = false
  1269. NeutralAnims = true
  1270. end
  1271.  
  1272. function Taunt()
  1273. Attack = true
  1274. NeutralAnims = false
  1275. local tau = Sound(Head,907332856,1,5,false,true,true)
  1276. WalkSpeed = 0
  1277. repeat swait() until tau.IsLoaded
  1278.  
  1279. repeat swait()
  1280. local Alpha = .1
  1281. 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)
  1282. 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)
  1283. 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)
  1284. 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)
  1285. 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)
  1286. 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)
  1287. until not tau.Parent or tau.TimePosition >= tau.TimeLength-.1
  1288.  
  1289. WalkSpeed = 12
  1290. Attack = false
  1291. NeutralAnims = true
  1292. end
  1293.  
  1294. function TraceThing(COLOR,PLACE2) -- thanks shack dadi
  1295. local FADE = Effects
  1296. for _, c in pairs(Char:GetChildren()) do
  1297. if c:IsA'BasePart' and c ~= Root and c.Name ~= 'Horn' then
  1298. local DIST = (c.Position-PLACE2).magnitude
  1299. local FADER = c:Clone()
  1300. FADER.Color = COLOR
  1301. FADER.Size = Vector3.new(FADER.Size.X,FADER.Size.Y,DIST)
  1302. FADER.CFrame = CFrame.new(c.Position,PLACE2) * CFrame.new(0,0,-DIST/2)
  1303. FADER.Parent = FADE
  1304. FADER.Anchored = true
  1305. FADER.Transparency = 0.25
  1306. FADER:BreakJoints()
  1307. FADER.Material = "Glass"
  1308. FADER.CanCollide = false
  1309. FADER:ClearAllChildren()
  1310.  
  1311. if FADER.Name == "Head" then
  1312. FADER.Size = Vector3.new(1,1,1)
  1313. end
  1314. Effect{
  1315. Effect='Fade',
  1316. Manual=FADER
  1317. }
  1318. end
  1319. end
  1320.  
  1321. end
  1322.  
  1323. function ShadowDash()
  1324. local whom = (Mouse.Target and Mouse.Target.Parent)
  1325. if(whom and whom:FindFirstChildOfClass'Humanoid' and GetTorso(whom))then
  1326. local tits = GetTorso(whom)
  1327. WalkSpeed = 0
  1328. Hum.AutoRotate = false
  1329. Hum.JumpPower = 0
  1330. Attack = true
  1331. NeutralAnims = false
  1332. tits.Anchored = true
  1333. pe.Enabled = false
  1334. for _,v in next, Char:children() do
  1335. if(v:IsA'BasePart')then
  1336. v.Transparency = 1
  1337. end
  1338. end
  1339. Root.Anchored = true
  1340. Root.CFrame = tits.CFrame
  1341. TraceThing(Color3.new(0,0,0),tits.Position)
  1342. swait(60)
  1343. tits.Anchored = false
  1344. whom:breakJoints()
  1345. Sound(Torso,429400881,1,1,false,true,true)
  1346. for i = 1, 150 do
  1347. 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)
  1348. end
  1349.  
  1350. for _,v in next, whom:children() do
  1351. if(v:IsA'BasePart')then
  1352. v.Transparency = 1
  1353. v.CanCollide = false
  1354. end
  1355. end
  1356.  
  1357. for _,v in next, Char:children() do
  1358. if(v:IsA'BasePart' and v ~= Root)then
  1359. v.Transparency = 0
  1360. end
  1361. end
  1362.  
  1363. Sound(Torso,51322486,.25,5,false,true,true)
  1364. Sound(Torso,90696602,.75,5,false,true,true)
  1365. for i = 0, 28, 0.1 do
  1366. swait()
  1367. local Alpha = .4
  1368. 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)
  1369. 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)
  1370. 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)
  1371. 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)
  1372. 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)
  1373. 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)
  1374. end
  1375. Attack = false
  1376. NeutralAnims = true
  1377. Root.Anchored = false
  1378. WalkSpeed = 12
  1379. Hum.JumpPower = 50
  1380. Hum.AutoRotate = true
  1381. end
  1382. end
  1383.  
  1384. function Kick()
  1385. Attack = true
  1386. NeutralAnims = false
  1387. WalkSpeed = 0
  1388. for i = 0, 3, 0.1 do
  1389. swait()
  1390. local Alpha = .3
  1391. 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)
  1392. 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)
  1393. 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)
  1394. 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)
  1395. 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)
  1396. 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)
  1397. end
  1398. for i = 0, 3, 0.1 do
  1399. swait()
  1400. AOEDamage(LLeg.CFrame.p,2,{MinDamage=15,MaxDamage=35,DamageFX={Type='FlingEm',KnockBack=75,Origin=LLeg,KnockUp=25}})
  1401. local Alpha = .3
  1402. 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)
  1403. 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)
  1404. 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)
  1405. 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)
  1406. 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)
  1407. 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)
  1408. end
  1409. WalkSpeed = 12
  1410. Attack = false
  1411. NeutralAnims = true
  1412. end
  1413. --// Wrap it all up \\--
  1414.  
  1415. S.UserInputService.InputBegan:connect(function(io,gpe)
  1416. if(gpe or Attack)then return end
  1417. if(io.KeyCode == Enum.KeyCode.Z)then
  1418. Decapitate()
  1419. elseif(io.KeyCode == Enum.KeyCode.M)then
  1420. ShadowDash()
  1421. elseif(io.KeyCode == Enum.KeyCode.F)then
  1422. Kick()
  1423.  
  1424. elseif(io.KeyCode == Enum.KeyCode.T)then
  1425. Taunt()
  1426. end
  1427. end)
  1428.  
  1429. Plr.Chatted:connect(function(m)
  1430. if(m == '/e sit')then
  1431. idleCounter = 0
  1432. Sitting = not Sitting
  1433. end
  1434. end)
  1435.  
  1436. while true do
  1437. swait()
  1438. Sine = Sine + Change
  1439. if(not Music)then
  1440. Music = Sound(Char,MusicID,1,3,true,false,true)
  1441. Music.Name = 'Music'
  1442. end
  1443. Music.SoundId = "rbxassetid://"..MusicID
  1444. Music.Parent = Torso
  1445. Music.Pitch = 1
  1446. Music.Volume = 5
  1447. if(not Muted)then
  1448. Music:Resume()
  1449. else
  1450. Music:Pause()
  1451. end
  1452.  
  1453.  
  1454. if(God)then
  1455. Hum.MaxHealth = 1e100
  1456. Hum.Health = 1e100
  1457. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1458. Hum.Name = M.RNG()*100
  1459. end
  1460.  
  1461. 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)
  1462.  
  1463. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1464. 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")
  1465. if(not Effects or not Effects.Parent)then
  1466. Effects = IN("Model",Char)
  1467. Effects.Name = "Effects"
  1468. end
  1469. if(State == 'Run')then
  1470. local wsVal = 7 / (Hum.WalkSpeed/16)
  1471. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1472. Change = 1
  1473. 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)
  1474. 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)
  1475. elseif(State == 'Walk')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-.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)
  1480. 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)
  1481. else
  1482. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize,0),.2)
  1483. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize,0),.2)
  1484. end
  1485.  
  1486. if(State == 'Idle' and NeutralAnims)then
  1487. idleCounter = idleCounter + 1
  1488. else
  1489. Sitting = false
  1490. idleCounter = 0
  1491. end
  1492.  
  1493. Hum.WalkSpeed = WalkSpeed
  1494. if(not Char:FindFirstChildOfClass'Shirt')then
  1495. NewInstance("Shirt",Char,{ShirtTemplate='rbxassetid://236410507'})
  1496. else
  1497. Char:FindFirstChildOfClass'Shirt'.ShirtTemplate='rbxassetid://236410507'
  1498. end
  1499.  
  1500. if(not Char:FindFirstChildOfClass'Pants')then
  1501. NewInstance("Pants",Char,{PantsTemplate='rbxassetid://236412261'})
  1502. else
  1503. Char:FindFirstChildOfClass'Pants'.PantsTemplate='rbxassetid://236412261'
  1504. end
  1505.  
  1506. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1507.  
  1508. local face = Head:FindFirstChild'face'
  1509. if(not face)then
  1510. NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
  1511. else
  1512. face.Texture = "rbxassetid://404306534"
  1513. end
  1514.  
  1515. RArm.Color = C3.N(0.1,0.1,0.1)
  1516. LArm.Color = C3.N(0.1,0.1,0.1)
  1517. RLeg.Color = C3.N(0.1,0.1,0.1)
  1518. LLeg.Color = C3.N(0.1,0.1,0.1)
  1519. Torso.Color = C3.N(0.1,0.1,0.1)
  1520. Head.Color = C3.N(0.1,0.1,0.1)
  1521.  
  1522. if(NeutralAnims)then
  1523. if(State == 'Idle')then
  1524. if(not Sitting and idleCounter < 1500)then
  1525. local Alpha = .1
  1526. Change = 1
  1527. 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)
  1528. NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,-.1)*CF.A(M.R(-15),0,M.R(10)),Alpha)
  1529. 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)
  1530. 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)
  1531. 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)
  1532. 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)
  1533. else
  1534. local Alpha = .1
  1535. Change = 1
  1536. 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)
  1537. NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,-.1)*CF.A(M.R(-15),0,M.R(10)),Alpha)
  1538. 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)
  1539. 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)
  1540. 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)
  1541. 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)
  1542. end
  1543. elseif(State == 'Run')then
  1544. local wsVal = 7 / (Hum.WalkSpeed/16)
  1545. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1546. 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)
  1547. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1548. 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)
  1549. 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)
  1550. 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)
  1551. 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)
  1552. elseif(State == 'Walk')then
  1553. local wsVal = 7 / (Hum.WalkSpeed/16)
  1554. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1555. local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
  1556. 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)
  1557. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha)
  1558. 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)
  1559. 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)
  1560. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1561. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1562. elseif(State == 'Jump')then
  1563. local Alpha = .1
  1564. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1565. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  1566. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  1567. 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)
  1568. 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)
  1569. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1570. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1571. elseif(State == 'Fall')then
  1572. local Alpha = .1
  1573. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1574. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1575. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1576. 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)
  1577. 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)
  1578. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1579. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1580. elseif(State == 'Paralyzed')then
  1581. -- paralyzed
  1582. elseif(State == 'Sit')then
  1583. -- sit
  1584. end
  1585. end
  1586.  
  1587. for i,v in next, BloodPuddles do
  1588. local mesh = i:FindFirstChild'CylinderMesh'
  1589. BloodPuddles[i] = v + 1
  1590. if(not mesh or i.Transparency >= 1)then
  1591. i:destroy()
  1592. BloodPuddles[i] = nil
  1593. elseif(v > Frame_Speed*4)then
  1594. local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
  1595. i.Transparency = trans
  1596. if(mesh.Scale.Z > 0)then
  1597. mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
  1598. end
  1599. else
  1600. i.Transparency = 0
  1601. end
  1602. end
  1603. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement