Advertisement
Bendy928443534

Upload

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