Advertisement
Guest User

Untitled

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