Advertisement
Bendy928443534

Untitled

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