sawgamer1

Untitled

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