Advertisement
Shyvha

angry baldi oc thing for roblox stuff idk anymore

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