Advertisement
sIendytubble

Baldo

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