Advertisement
Guest User

Untitled

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