Advertisement
Bendy928443534

ok

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