Advertisement
Bendy928443534

Untitled

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