Advertisement
EdgyHedgehog

Blado

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