Advertisement
DaOMEGAa32

baldi edit work

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