Advertisement
Im_Meme

Brawler

Aug 12th, 2018
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.07 KB | None | 0 0
  1. -- Created by Nebula_Zorua --
  2. -- Brawler --
  3. -- Just a random keystroke script --
  4. -- Discord: Nebula the Zorua#6969
  5. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  6.  
  7. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  8. local Player,game,owner = owner,game
  9. local RealPlayer = Player
  10. do
  11. print("FE Compatibility code by Mokiros")
  12. local rp = RealPlayer
  13. script.Parent = rp.Character
  14.  
  15. --RemoteEvent for communicating
  16. local Event = Instance.new("RemoteEvent")
  17. Event.Name = "UserInput_Event"
  18.  
  19. --Fake event to make stuff like Mouse.KeyDown work
  20. local function fakeEvent()
  21. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  22. t.connect = t.Connect
  23. return t
  24. end
  25.  
  26. --Creating fake input objects with fake variables
  27. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  28. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  29. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  30. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  31. end}
  32. --Merged 2 functions into one by checking amount of arguments
  33. CAS.UnbindAction = CAS.BindAction
  34.  
  35. --This function will trigger the events that have been :Connect()'ed
  36. local function te(self,ev,...)
  37. local t = m[ev]
  38. if t and t._fakeEvent then
  39. for _,f in pairs(t.Functions) do
  40. f(...)
  41. end
  42. end
  43. end
  44. m.TrigEvent = te
  45. UIS.TrigEvent = te
  46.  
  47. Event.OnServerEvent:Connect(function(plr,io)
  48. if plr~=rp then return end
  49. m.Target = io.Target
  50. m.Hit = io.Hit
  51. if not io.isMouse then
  52. local b = io.UserInputState == Enum.UserInputState.Begin
  53. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  54. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  55. end
  56. for _,t in pairs(CAS.Actions) do
  57. for _,k in pairs(t.Keys) do
  58. if k==io.KeyCode then
  59. t.Function(t.Name,io.UserInputState,io)
  60. end
  61. end
  62. end
  63. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  64. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  65. end
  66. end)
  67. Event.Parent = NLS([==[
  68. local Player = game:GetService("Players").LocalPlayer
  69. local Event = script:WaitForChild("UserInput_Event")
  70.  
  71. local Mouse = Player:GetMouse()
  72. local UIS = game:GetService("UserInputService")
  73. local input = function(io,a)
  74. if a then return end
  75. --Since InputObject is a client-side instance, we create and pass table instead
  76. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  77. end
  78. UIS.InputBegan:Connect(input)
  79. UIS.InputEnded:Connect(input)
  80.  
  81. local h,t
  82. --Give the server mouse data 30 times every second, but only if the values changed
  83. --If player is not moving their mouse, client won't fire events
  84. while wait(1/30) do
  85. if h~=Mouse.Hit or t~=Mouse.Target then
  86. h,t=Mouse.Hit,Mouse.Target
  87. Event:FireServer({isMouse=true,Target=t,Hit=h})
  88. end
  89. end]==],Player.Character)
  90.  
  91. ----Sandboxed game object that allows the usage of client-side methods and services
  92. --Real game object
  93. local _rg = game
  94.  
  95. --Metatable for fake service
  96. local fsmt = {
  97. __index = function(self,k)
  98. local s = rawget(self,"_RealService")
  99. if s then return s[k] end
  100. end,
  101. __newindex = function(self,k,v)
  102. local s = rawget(self,"_RealService")
  103. if s then s[k]=v end
  104. end,
  105. __call = function(self,...)
  106. local s = rawget(self,"_RealService")
  107. if s then return s(...) end
  108. end
  109. }
  110. local function FakeService(t,RealService)
  111. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  112. return setmetatable(t,fsmt)
  113. end
  114.  
  115. --Fake game object
  116. local g = {
  117. GetService = function(self,s)
  118. return self[s]
  119. end,
  120. Players = FakeService({
  121. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  122. },"Players"),
  123. UserInputService = FakeService(UIS,"UserInputService"),
  124. ContextActionService = FakeService(CAS,"ContextActionService"),
  125. }
  126. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  127. g.service = g.GetService
  128.  
  129. g.RunService = FakeService({
  130. RenderStepped = _rg:GetService("RunService").Heartbeat,
  131. BindToRenderStep = function(self,name,_,fun)
  132. self._btrs[name] = self.Heartbeat:Connect(fun)
  133. end,
  134. UnbindFromRenderStep = function(self,name)
  135. self._btrs[name]:Disconnect()
  136. end,
  137. },"RunService")
  138.  
  139. setmetatable(g,{
  140. __index=function(self,s)
  141. return _rg:GetService(s) or typeof(_rg[s])=="function"
  142. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  143. end,
  144. __newindex = fsmt.__newindex,
  145. __call = fsmt.__call
  146. })
  147. --Changing owner to fake player object to support owner:GetMouse()
  148. game,owner = g,g.Players.LocalPlayer
  149. end
  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 = Plrs.LocalPlayer
  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 Mouse = Plr:GetMouse()
  182. local Hit = {}
  183. local Sine = 0
  184. local Change = 1
  185. local BloodPuddles = {}
  186. local State = 'Idle'
  187.  
  188. local Keystrokes = {}
  189. local Input = ""
  190.  
  191. local Input_MaxTime = .8
  192. local Input_Time = Input_MaxTime
  193. local Input_Addition = 0.2
  194. local Input_Lose = 0.1
  195. local Max_Input = 20
  196.  
  197. local Effects = IN("Folder",Char)
  198. Effects.Name = "Effects"
  199.  
  200. --// Debounce System \\--
  201.  
  202.  
  203. function Debounces:New(name,cooldown)
  204. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  205. setmetatable(aaaaa,{__index = Debounces})
  206. Debounces.Debounces[name] = aaaaa
  207. return aaaaa
  208. end
  209.  
  210. function Debounces:Use(overrideUsable)
  211. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  212. if(self.Usable or overrideUsable)then
  213. self.Usable = false
  214. self.CoolingDown = true
  215. local LastUse = time()
  216. self.LastUse = LastUse
  217. delay(self.Cooldown or 2,function()
  218. if(self.LastUse == LastUse)then
  219. self.CoolingDown = false
  220. self.Usable = true
  221. end
  222. end)
  223. end
  224. end
  225.  
  226. function Debounces:Get(name)
  227. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  228. for i,v in next, Debounces.Debounces do
  229. if(i == name)then
  230. return v;
  231. end
  232. end
  233. end
  234.  
  235. function Debounces:GetProgressPercentage()
  236. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  237. if(self.CoolingDown and not self.Usable)then
  238. return math.max(
  239. math.floor(
  240. (
  241. (time()-self.LastUse)/self.Cooldown or 2
  242. )*100
  243. )
  244. )
  245. else
  246. return 100
  247. end
  248. end
  249.  
  250. --// Instance Creation Functions \\--
  251.  
  252. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  253. local Sound = IN("Sound")
  254. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  255. Sound.Pitch = pitch or 1
  256. Sound.Volume = volume or 1
  257. Sound.Looped = looped or false
  258. if(autoPlay)then
  259. coroutine.wrap(function()
  260. repeat wait() until Sound.IsLoaded
  261. Sound.Playing = autoPlay or false
  262. end)()
  263. end
  264. if(not looped and effect)then
  265. Sound.Stopped:connect(function()
  266. Sound.Volume = 0
  267. Sound:destroy()
  268. end)
  269. elseif(effect)then
  270. warn("Sound can't be looped and a sound effect!")
  271. end
  272. Sound.Parent =parent or Torso
  273. return Sound
  274. end
  275. function Part(parent,color,material,size,cframe,anchored,cancollide)
  276. local part = IN("Part")
  277. part.Parent = parent or Char
  278. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  279. part.Material = material or Enum.Material.SmoothPlastic
  280. part.TopSurface,part.BottomSurface=10,10
  281. part.Size = size or V3.N(1,1,1)
  282. part.CFrame = cframe or CF.N(0,0,0)
  283. part.CanCollide = cancollide or false
  284. part.Anchored = anchored or false
  285. return part
  286. end
  287.  
  288. function Weld(part0,part1,c0,c1)
  289. local weld = IN("Weld")
  290. weld.Parent = part0
  291. weld.Part0 = part0
  292. weld.Part1 = part1
  293. weld.C0 = c0 or CF.N()
  294. weld.C1 = c1 or CF.N()
  295. return weld
  296. end
  297.  
  298. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  299. local part = IN("SpecialMesh")
  300. part.MeshId = meshid or ""
  301. part.TextureId = textid or ""
  302. part.Scale = scale or V3.N(1,1,1)
  303. part.Offset = offset or V3.N(0,0,0)
  304. part.MeshType = meshtype or Enum.MeshType.Sphere
  305. part.Parent = parent
  306. return part
  307. end
  308.  
  309. NewInstance = function(instance,parent,properties)
  310. local inst = Instance.new(instance)
  311. inst.Parent = parent
  312. if(properties)then
  313. for i,v in next, properties do
  314. pcall(function() inst[i] = v end)
  315. end
  316. end
  317. return inst;
  318. end
  319.  
  320. function Clone(instance,parent,properties)
  321. local inst = instance:Clone()
  322. inst.Parent = parent
  323. if(properties)then
  324. for i,v in next, properties do
  325. pcall(function() inst[i] = v end)
  326. end
  327. end
  328. return inst;
  329. end
  330.  
  331. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  332. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  333. local Sound = IN("Sound")
  334. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  335. Sound.Pitch = pitch or 1
  336. Sound.Volume = volume or 1
  337. Sound.Looped = looped or false
  338. if(autoPlay)then
  339. coroutine.wrap(function()
  340. repeat wait() until Sound.IsLoaded
  341. Sound.Playing = autoPlay or false
  342. end)()
  343. end
  344. if(not looped and effect)then
  345. Sound.Stopped:connect(function()
  346. Sound.Volume = 0
  347. soundPart:destroy()
  348. end)
  349. elseif(effect)then
  350. warn("Sound can't be looped and a sound effect!")
  351. end
  352. Sound.Parent = soundPart
  353. return Sound
  354. end
  355.  
  356. function Label(parent,text,size,pos,trans,tc,textsize,wrapped)
  357. local label = IN"TextLabel"
  358. label.Text = text or "Default"
  359. label.Size = size or UDim2.new(.05,0,.05,0)
  360. label.Position = pos or UDim2.new(0,0,0,0)
  361. label.TextTransparency = trans or 0
  362. label.TextColor3 = tc or C3.N(0,0,0)
  363. label.TextSize = textsize or 24
  364. label.TextWrapped = wrapped or false
  365. label.BackgroundTransparency = 1
  366. label.Parent = parent
  367.  
  368. return label
  369. end
  370.  
  371. function Frame(parent,size,pos,bc,bt)
  372. local frame = IN"Frame"
  373. frame.Size = size or UDim2.new(.05,0,.05,0)
  374. frame.Position = pos or UDim2.new(0,0,0,0)
  375. frame.BackgroundColor3 = bc or C3.N(1,1,1)
  376. frame.BackgroundTransparency = bt or 0
  377. frame.Parent = parent
  378.  
  379. return frame
  380. end
  381.  
  382. --// Extended ROBLOX tables \\--
  383. 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})
  384. --// Require stuff \\--
  385. function CamShake(who,times,intense,origin)
  386. coroutine.wrap(function()
  387. if(script:FindFirstChild'CamShake')then
  388. local cam = script.CamShake:Clone()
  389. cam:WaitForChild'intensity'.Value = intense
  390. cam:WaitForChild'times'.Value = times
  391.  
  392. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  393. cam.Parent = who
  394. wait()
  395. cam.Disabled = false
  396. elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
  397. local intensity = intense
  398. local cam = workspace.CurrentCamera
  399. for i = 1, times do
  400. local camDistFromOrigin
  401. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  402. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  403. elseif(typeof(origin) == 'Vector3')then
  404. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  405. end
  406. if(camDistFromOrigin)then
  407. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  408. end
  409. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  410. swait()
  411. end
  412. end
  413. end)()
  414. end
  415.  
  416.  
  417. function CamShakeAll(times,intense,origin)
  418. for _,v in next, Plrs:players() do
  419. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  420. end
  421. end
  422.  
  423. function ServerScript(code)
  424. if(script:FindFirstChild'Loadstring')then
  425. local load = script.Loadstring:Clone()
  426. load:WaitForChild'Sauce'.Value = code
  427. load.Disabled = false
  428. load.Parent = workspace
  429. elseif(NS and typeof(NS) == 'function')then
  430. NS(code,workspace)
  431. else
  432. warn("no serverscripts lol")
  433. end
  434. end
  435.  
  436. function LocalOnPlayer(who,code)
  437. ServerScript([[
  438. wait()
  439. script.Parent=nil
  440. if(not _G.Http)then _G.Http = game:service'HttpService' end
  441.  
  442. local Http = _G.Http or game:service'HttpService'
  443.  
  444. local source = ]].."[["..code.."]]"..[[
  445. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  446. local asd = Http:PostAsync(link,source)
  447. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  448. local ID = Http:JSONDecode(asd).Result.Require_ID
  449. local vs = require(ID).VORTH_SCRIPT
  450. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  451. ]])
  452. end
  453.  
  454. --// Customization \\--
  455.  
  456. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  457. local Remove_Hats = false
  458. local Remove_Clothing = false
  459. local PlayerSize = 1
  460. local DamageColor = BrickColor.new'Really red'
  461. local MusicID = 859912308
  462. local God = false
  463. local Muted = false
  464. local ParalysedStates = {[Enum.HumanoidStateType.Dead]=true,[Enum.HumanoidStateType.FallingDown]=true,[Enum.HumanoidStateType.Physics]=true,[Enum.HumanoidStateType.Ragdoll]=true,[Enum.HumanoidStateType.PlatformStanding]=true}
  465. local WalkSpeed = 16
  466.  
  467. --// Weapon and GUI creation, and Character Customization \\--
  468.  
  469. local start = Label(gui,">",UDim2.new(.05,0,.05,0),UDim2.new(0,0,.85,0),0,C3.N(1,1,1),24,true)
  470. local inputF = Frame(gui,UDim2.new(1,0,.05,0),UDim2.new(.04,0,.85,0),C3.N(0,0,0),1)
  471.  
  472. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  473. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  474.  
  475. if(PlayerSize ~= 1)then
  476. for _,v in next, Char:GetDescendants() do
  477. if(v:IsA'BasePart')then
  478. v.Size = v.Size * PlayerSize
  479. end
  480. end
  481. end
  482.  
  483.  
  484. local Music = Sound(Char,MusicID,1,3,true,false,true)
  485. Music.Name = 'Music'
  486.  
  487. --// Stop animations \\--
  488. for _,v in next, Hum:GetPlayingAnimationTracks() do
  489. v:Stop();
  490. end
  491.  
  492. pcall(game.Destroy,Char:FindFirstChild'Animate')
  493. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  494.  
  495. --// Joints \\--
  496.  
  497. 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)})
  498. 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)})
  499. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  500. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  501. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  502. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  503.  
  504. local LSC0 = LS.C0
  505. local RSC0 = RS.C0
  506. local NKC0 = NK.C0
  507. local LHC0 = LH.C0
  508. local RHC0 = RH.C0
  509. local RJC0 = RJ.C0
  510.  
  511. --// Artificial HB \\--
  512.  
  513. local ArtificialHB = IN("BindableEvent", script)
  514. ArtificialHB.Name = "Heartbeat"
  515.  
  516. script:WaitForChild("Heartbeat")
  517.  
  518. local tf = 0
  519. local allowframeloss = false
  520. local tossremainder = false
  521. local lastframe = tick()
  522. local frame = 1/Frame_Speed
  523. ArtificialHB:Fire()
  524.  
  525. game:GetService("RunService").Heartbeat:connect(function(s, p)
  526. tf = tf + s
  527. if tf >= frame then
  528. if allowframeloss then
  529. script.Heartbeat:Fire()
  530. lastframe = tick()
  531. else
  532. for i = 1, math.floor(tf / frame) do
  533. ArtificialHB:Fire()
  534. end
  535. lastframe = tick()
  536. end
  537. if tossremainder then
  538. tf = 0
  539. else
  540. tf = tf - frame * math.floor(tf / frame)
  541. end
  542. end
  543. end)
  544.  
  545. function swait(num)
  546. if num == 0 or num == nil then
  547. ArtificialHB.Event:wait()
  548. else
  549. for i = 0, num do
  550. ArtificialHB.Event:wait()
  551. end
  552. end
  553. end
  554.  
  555.  
  556. --// Effect Function(s) \\--
  557. function NoobySphere(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,MeshId,Axis)
  558. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  559. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  560. local Scale = 1
  561. local speeder = Speed
  562. if(Type == "Multiply")then
  563. Scale = 1*Inc
  564. elseif(Type == "Divide")then
  565. Scale = 1/Inc
  566. end
  567. coroutine.wrap(function()
  568. for i = 0,10/Lifetime,.1 do
  569.  
  570. if(Type == "Multiply")then
  571. Scale = Scale - 0.01*Inc/Lifetime
  572. elseif(Type == "Divide")then
  573. Scale = Scale - 0.01/Inc*Lifetime
  574. end
  575. speeder = speeder - 0.01*Speed*Lifetime
  576. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  577. fxP.Transparency = fxP.Transparency + 0.01*Lifetime
  578. if(Axis == 'x')then
  579. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, 0, 0)
  580. elseif(Axis == 'y')then
  581. fxM.Scale = fxM.Scale + Vector3.new(0, Scale*Lifetime, 0)
  582. elseif(Axis == 'z')then
  583. fxM.Scale = fxM.Scale + Vector3.new(0, 0, Scale*Lifetime)
  584. elseif(Axis == 'xyz')then
  585. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,Scale*Lifetime,Scale*Lifetime)
  586. elseif(Axis == 'yz')then
  587. fxM.Scale = fxM.Scale + Vector3.new(0,Scale*Lifetime,Scale*Lifetime)
  588. elseif(Axis == 'xz')then
  589. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,0,Scale*Lifetime)
  590. else
  591. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, 0)
  592. end
  593. if(fxP.Transparency >= 1)then break end
  594. swait()
  595. end
  596. fxP:destroy()
  597. end)()
  598. return fxP
  599. end
  600.  
  601.  
  602. function NoobyBlock(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,Fade,MeshId)
  603. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  604. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Brick),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  605. local Scale = 1
  606. local speeder = Speed
  607. if(Type == "Multiply")then
  608. Scale = 1*Inc
  609. elseif(Type == "Divide")then
  610. Scale = 1/Inc
  611. end
  612. coroutine.wrap(function()
  613. for i = 0,10/Lifetime,.1 do
  614. if(Type == "Multiply")then
  615. Scale = Scale - 0.01*Inc/Lifetime
  616. elseif(Type == "Divide")then
  617. Scale = Scale - 0.01/Inc*Lifetime
  618. end
  619. if(Fade)then
  620. fxP.Transparency = i/(10/Lifetime)
  621. end
  622. speeder = speeder - 0.01*Speed*Lifetime/10
  623. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  624. fxM.Scale = fxM.Scale - Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
  625. swait()
  626. end
  627. fxP:destroy()
  628. end)()
  629. end
  630. function Bezier(startpos, pos2, pos3, endpos, t)
  631. local A = startpos:lerp(pos2, t)
  632. local B = pos2:lerp(pos3, t)
  633. local C = pos3:lerp(endpos, t)
  634. local lerp1 = A:lerp(B, t)
  635. local lerp2 = B:lerp(C, t)
  636. local cubic = lerp1:lerp(lerp2, t)
  637. return cubic
  638. end
  639. function Puddle(hit,pos,norm,data)
  640. local material = data.Material or Enum.Material.SmoothPlastic
  641. local color = data.Color or BrickColor.new'Crimson'
  642. local size = data.Size or 1
  643.  
  644. if(hit.Name ~= 'BloodPuddle')then
  645. 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'})
  646. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  647. BloodPuddles[Puddle] = 0
  648. else
  649. local cyl = hit:FindFirstChild'CylinderMesh'
  650. if(cyl)then
  651. BloodPuddles[hit] = 0
  652. cyl.Scale = cyl.Scale + V3.N(size,0,size)
  653. hit.Transparency = 0
  654. end
  655. end
  656. end
  657.  
  658. function Droplet(data)
  659. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  660. local Size = data.Size or 1
  661. local Color = data.Color or BrickColor.new'Crimson'
  662. local StudsPerFrame = data.Speed or 1
  663. local Shape = data.Shape or 'Ball'
  664. local Frames = (data.Frames or 160)+1
  665. local Pos = data.Origin or Root.CFrame
  666. local Direction = data.Direction or Root.CFrame.lookVector*100000
  667. local Material = data.Material or Enum.Material.SmoothPlastic
  668. local Drop = data.Drop or .05
  669. local Ignorelist = data.Ignorelist or nil
  670.  
  671. local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
  672. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  673. if(Shape == 'Ball')then
  674. BMesh.MeshType = Enum.MeshType.Sphere
  675. elseif(Shape == 'Head')then
  676. BMesh.MeshType = Enum.MeshType.Head
  677. elseif(Shape == 'Cylinder')then
  678. BMesh.MeshType = Enum.MeshType.Cylinder
  679. end
  680.  
  681. coroutine.wrap(function()
  682. for i = 1, Frames do
  683. Pos = Pos * CF.N(0,-(Drop*i),0)
  684. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame)
  685. if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
  686. Puddle(hit,pos,norm,data)
  687. break;
  688. else
  689. Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
  690. end
  691. swait()
  692. end
  693. Bullet:destroy()
  694. end)()
  695. end
  696.  
  697. function ShootBullet(data)
  698. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  699. local Size = data.Size or V3.N(2,2,2)
  700. local Color = data.Color or BrickColor.new'Crimson'
  701. local StudsPerFrame = data.Speed or 10
  702. local Shape = data.Shape or 'Ball'
  703. local Frames = data.Frames or 160
  704. local Pos = data.Origin or Torso.CFrame
  705. local Direction = data.Direction or Mouse.Hit
  706. local Material = data.Material or Enum.Material.Neon
  707. local OnHit = data.HitFunction or function(hit,pos)
  708.  
  709. end
  710.  
  711. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  712. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  713. if(Shape == 'Ball')then
  714. BMesh.MeshType = Enum.MeshType.Sphere
  715. elseif(Shape == 'Head')then
  716. BMesh.MeshType = Enum.MeshType.Head
  717. elseif(Shape == 'Cylinder')then
  718. BMesh.MeshType = Enum.MeshType.Cylinder
  719. end
  720.  
  721. coroutine.wrap(function()
  722. for i = 1, Frames+1 do
  723. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  724. if(hit)then
  725. OnHit(hit,pos,norm,dist)
  726. break;
  727. else
  728. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  729. end
  730. swait()
  731. end
  732. Bullet:destroy()
  733. end)()
  734.  
  735. end
  736.  
  737.  
  738. function Zap2(data)
  739. local Color = data.Color or BrickColor.new'Electric blue'
  740. local StartPos = data.Start or Torso.Position
  741. local EndPos = data.End or Mouse.Hit.p
  742. local SegLength = data.SegL or 2
  743. local Thicc = data.Thickness or 0.5
  744. local Fades = data.Fade or 45
  745. local Parent = data.Parent or Effects
  746. local MaxD = data.MaxDist or 200
  747. local Branch = data.Branches or false
  748. local Material = data.Material or Enum.Material.Neon
  749. local Raycasts = data.Raycasts or false
  750. local Offset = data.Offset or {0,360}
  751. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  752. if((StartPos-EndPos).magnitude > MaxD)then
  753. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  754. end
  755. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  756. if(Raycasts)then
  757. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  758. end
  759. local segments = dist/SegLength
  760. local model = IN("Model",Parent)
  761. model.Name = 'Lightning'
  762. local Last;
  763. for i = 1, segments do
  764. local size = (segments-i)/25
  765. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  766. if(AddMesh)then IN("CylinderMesh",prt) end
  767. if(Last and math.floor(segments) == i)then
  768. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  769. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  770. 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)
  771. elseif(not Last)then
  772. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  773. else
  774. 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)
  775. end
  776. Last = prt
  777. if(Branch)then
  778. local choice = M.RNG(1,7+((segments-i)*2))
  779. if(choice == 1)then
  780. local LastB;
  781. for i2 = 1,M.RNG(2,5) do
  782. local size2 = ((segments-i)/35)/i2
  783. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  784. if(AddMesh)then IN("CylinderMesh",prt) end
  785. if(not LastB)then
  786. 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)
  787. else
  788. 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)
  789. end
  790. LastB = prt
  791. end
  792. end
  793. end
  794. end
  795. if(Fades > 0)then
  796. coroutine.wrap(function()
  797. for i = 1, Fades do
  798. for _,v in next, model:children() do
  799. if(v:IsA'BasePart')then
  800. v.Transparency = (i/Fades)
  801. end
  802. end
  803. swait()
  804. end
  805. model:destroy()
  806. end)()
  807. else
  808. S.Debris:AddItem(model,.01)
  809. end
  810. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  811. end
  812.  
  813. function Tween(obj,props,time,easing,direction,repeats,backwards)
  814. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  815. local tween = S.TweenService:Create(obj, info, props)
  816.  
  817. tween:Play()
  818. end
  819.  
  820. function Effect(data)
  821. local Color = data.Color or C3.N(0,0,0)
  822. local Material = data.Material or Enum.Material.Neon;
  823. local MeshD = data.Mesh or {};
  824. local SoundD = data.Sound or nil;
  825. local Shape = data.Shape or Enum.PartType.Block;
  826. local Size = data.StartSize or V3.N(.1,.1,.1);
  827. local ESize = data.EndSize or V3.N(6,6,6);
  828. local Direction = data.Direction or nil;
  829. local Speed = data.Speed or .1; -- studs per second
  830. local Boomerang = data.Boomerang or {Enabled=false,SizeBoomerang=0,MoveBoomerang=0};
  831. local Pos = data.CFrame or Torso.CFrame;
  832. local Frames = data.Frames or 60;
  833. local RotInc = data.RotInc or {0,0,0}
  834. local StartTrans = data.TransStart or 0;
  835. local EndTrans = data.TransEnd or 1;
  836. local KeepOrientation = data.KeepOrien or false;
  837.  
  838. if(typeof(RotInc) == 'number')then RotInc = {RotInc,RotInc,RotInc}; end
  839. local S,PM,P;
  840.  
  841. coroutine.wrap(function()
  842. P = Part(Effects,Color,Material,V3.N(1,1,1),Pos,true,false)
  843.  
  844. if(MeshD == "Blast")then
  845. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://20329976','',Size,V3.N(0,0,-Size.X/8))
  846. elseif(MeshD == 'Ring')then
  847. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://559831844','',Size,V3.N(0,0,0))
  848. elseif(MeshD == 'Slash1')then
  849. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://662586858','',V3.N(Size.X/10,.001,Size.Z/10),V3.N(0,0,0))
  850. elseif(MeshD == 'Slash2')then
  851. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://448386996','',V3.N(Size.X/1000,Size.Y/100,Size.Z/100),V3.N(0,0,0))
  852. elseif(MeshD == 'Tornado1')then
  853. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://443529437','',Size/10,V3.N(0,0,0))
  854. elseif(MeshD == 'Tornado2')then
  855. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://168892432','',Size/4,V3.N(0,0,0))
  856. elseif(MeshD == 'Skull')then
  857. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://4770583','',Size*2,V3.N(0,0,0))
  858. elseif(MeshD == 'Crystal')then
  859. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://9756362','',Size,V3.N(0,0,0))
  860. elseif(MeshD == 'Cloud')then
  861. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://1095708','',Size,V3.N(0,0,0))
  862. elseif(typeof(MeshD) == 'table')then
  863. local Type = MeshD.Type or Enum.MeshType.Brick
  864. local ID = MeshD.ID or '';
  865. local Tex = MeshD.Texture or '';
  866. local Offset = MeshD.Offset or V3.N(0,0,0)
  867. PM = Mesh(P,Type,ID,Tex,Size,Offset)
  868. else
  869. PM = Mesh(P,Enum.MeshType.Brick,'','',Size)
  870. end
  871.  
  872. if(typeof(SoundD) == 'table' and SoundD.ID and SoundD.ID ~= '')then
  873. local ID = SoundD.ID or '';
  874. local Pitch = SoundD.Pitch or 1;
  875. local Volume = SoundD.Volume or 1;
  876. S = Sound(P,ID,Pitch,Volume,false,true,true)
  877. elseif(typeof(SoundD) == 'string' or typeof(SoundD) == 'number')then
  878. S = Sound(P,SoundD,1,1,false,true,true)
  879. end
  880. local grow = (Size - ESize)
  881. local SizeBoomer = 1+Boomerang.SizeBoomerang/50
  882. local MoveBoomer = 1+Boomerang.MoveBoomerang/50
  883. if(Boomerang and Boomerang.Enabled)then
  884. grow = (Size - ESize)*(SizeBoomer+1)
  885. end
  886. local TransChange = StartTrans - EndTrans
  887. for i = 0, Frames do
  888. local MoveSpeed = -Speed
  889. local scaleGay = grow/Frames
  890. if(Boomerang and Boomerang.Enabled)then -- thanks shack
  891. MoveSpeed = -(Speed)*((1-(i/Frames)*MoveBoomer))
  892. scaleGay = (V3.N((grow.X)*((1 - (i/Frames)*SizeBoomer)),(grow.Y)*((1 - (i/Frames)*SizeBoomer)),(grow.Z)*((1 - (i/Frames)*SizeBoomer)))*SizeBoomer)/Frames
  893. end
  894. PM.Scale = PM.Scale - scaleGay
  895. if(PM.MeshId == 'rbxassetid://20329976')then
  896. PM.Offset = V3.N(0,0,-PM.Scale.Z/8)
  897. elseif(PM.MeshId == 'rbxassetid://4770583')then
  898. scaleGay = scaleGay*2
  899. elseif(PM.MeshId == 'rbxassetid://168892432')then
  900. scaleGay = scaleGay/4
  901. elseif(PM.MeshId == 'rbxassetid://443529437')then
  902. scaleGay = scaleGay/10
  903. elseif(PM.MeshId == 'rbxassetid://443529437')then
  904. scaleGay = scaleGay/10
  905. end
  906. P.Transparency = P.Transparency - TransChange/Frames
  907. if(RotInc == 'random')then
  908. P.CFrame=P.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  909. elseif(typeof(RotInc) == 'table')then
  910. P.CFrame=P.CFrame*CF.A(unpack(RotInc))
  911. end
  912.  
  913.  
  914. if(Direction and Speed)then
  915. local Orientation = P.Orientation
  916. P.CFrame = CF.N(P.Position,P.Position+Direction)*CF.N(0,0,MoveSpeed)
  917. if(KeepOrientation)then P.Orientation = Orientation end
  918. end
  919. swait()
  920. end
  921.  
  922. P.Transparency = 1
  923. if(S and S.Playing)then
  924. repeat swait() until not S.Parent or not S.Playing
  925. end
  926. if(S and S.Parent)then
  927. S:destroy()
  928. end
  929. P:destroy()
  930. end)()
  931.  
  932.  
  933. end
  934.  
  935. --// Other Functions \\ --
  936.  
  937. function CastRay(startPos,endPos,range,ignoreList)
  938. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  939. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  940. return part,pos,norm,(pos and (startPos-pos).magnitude)
  941. end
  942.  
  943. function getRegion(point,range,ignore)
  944. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  945. end
  946.  
  947. function clerp(startCF,endCF,alpha)
  948. return startCF:lerp(endCF, alpha)
  949. end
  950.  
  951. function GetTorso(char)
  952. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  953. end
  954.  
  955.  
  956. function ShowDamage(Pos, Text, Time, Color)
  957. coroutine.wrap(function()
  958. local Rate = (1 / Frame_Speed)
  959. local Pos = (Pos or Vector3.new(0, 0, 0))
  960. local Text = (Text or "")
  961. local Time = (Time or 2)
  962. local Color = (Color or Color3.new(1, 0, 1))
  963. local EffectPart = NewInstance("Part",Effects,{
  964. Material=Enum.Material.SmoothPlastic,
  965. Reflectance = 0,
  966. Transparency = 1,
  967. BrickColor = BrickColor.new(Color),
  968. Name = "Effect",
  969. Size = Vector3.new(0,0,0),
  970. Anchored = true,
  971. CFrame = CF.N(Pos)
  972. })
  973. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  974. Size = UDim2.new(1.25, 0, 1.25, 0),
  975. Adornee = EffectPart,
  976. })
  977. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  978. BackgroundTransparency = 1,
  979. Size = UDim2.new(1, 0, 1, 0),
  980. Text = Text,
  981. Font = "Bodoni",
  982. TextColor3 = Color,
  983. TextStrokeColor3 = Color3.new(0,0,0),
  984. TextStrokeTransparency=0,
  985. TextScaled = true,
  986. })
  987. S.Debris:AddItem(EffectPart, (Time))
  988. EffectPart.Parent = workspace
  989. delay(0, function()
  990. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  991. local Frames = (Time / Rate)
  992. for Frame = 1, Frames do
  993. swait()
  994. local Percent = (Frame / Frames)
  995. TextLabel.TextTransparency = Percent
  996. TextLabel.TextStrokeTransparency = Percent
  997. end
  998. if EffectPart and EffectPart.Parent then
  999. EffectPart:Destroy()
  1000. end
  1001. end) end)()
  1002. end
  1003.  
  1004. function DealDamage(data)
  1005. local Who = data.Who;
  1006. local MinDam = data.MinimumDamage or 15;
  1007. local MaxDam = data.MaximumDamage or 30;
  1008. local MaxHP = data.MaxHP or 1e5;
  1009.  
  1010. local DB = data.Debounce or .2;
  1011.  
  1012. local CritData = data.Crit or {}
  1013. local CritChance = CritData.Chance or 0;
  1014. local CritMultiplier = CritData.Multiplier or 1;
  1015.  
  1016. local DamageEffects = data.DamageFX or {}
  1017. local DamageType = DamageEffects.Type or "Normal"
  1018. local DeathFunction = DamageEffects.DeathFunction
  1019.  
  1020. assert(Who,"Specify someone to damage!")
  1021.  
  1022. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  1023. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  1024.  
  1025. local Snd = data.Sound
  1026.  
  1027. local canHit = true
  1028. if(Humanoid)then
  1029. for _, p in pairs(Hit) do
  1030. if p[1] == Humanoid then
  1031. if(time() - p[2] <= DB) then
  1032. canHit = false
  1033. end
  1034. end
  1035. end
  1036. if(canHit)then
  1037. table.insert(Hit,{Humanoid,time()})
  1038. local HitTorso = GetTorso(Who)
  1039. local player = S.Players:GetPlayerFromCharacter(Who)
  1040. if(not player or player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then
  1041. if(Snd and Snd.ID and Humanoid.Health > 0)then
  1042. Sound(HitTorso,Snd.ID,Snd.Pitch or 1,3,false,true,true)
  1043. end
  1044. if(Humanoid.Health > 0)then
  1045. for i = 1, 2 do
  1046. Effect{
  1047. Frames=30,
  1048. Direction=V3.N(M.RRNG(-1,1),M.RRNG(-1,1),M.RRNG(-1,1)),
  1049. Speed=.5,
  1050. Color=C3.N(.7,0,0),
  1051. CFrame=HitTorso.CFrame,
  1052. Material=Enum.Material.Granite,
  1053. StartSize=V3.N(1.5,1.5,1.5),
  1054. EndSize=V3.N(.05,.05,.05),
  1055. Mesh={Type=Enum.MeshType.Sphere},
  1056. }
  1057. end
  1058. end
  1059. if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
  1060. print'Got kill'
  1061. Humanoid.Health = 0;
  1062. Who:BreakJoints();
  1063. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  1064. else
  1065. local c = Instance.new("ObjectValue",Humanoid)
  1066. c.Name = "creator"
  1067. c.Value = Plr
  1068. S.Debris:AddItem(c,0.35)
  1069. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  1070. 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)
  1071. end
  1072. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
  1073. Humanoid.Health = Humanoid.Health - DoneDamage
  1074.  
  1075. if(DamageType == 'Knockback' and HitTorso)then
  1076. Humanoid.PlatformStand = true
  1077. local up = DamageEffects.KnockUp or 25
  1078. local back = DamageEffects.KnockBack or 25
  1079. local origin = DamageEffects.Origin or Root
  1080. local decay = DamageEffects.Decay or .5;
  1081. if(origin == 'random')then
  1082. origin = CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360))
  1083. elseif(typeof(origin) == 'Vector3')then
  1084. origin = CF.N(origin)
  1085. elseif(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  1086. origin = origin.CFrame
  1087. end
  1088. local bfos = IN("BodyVelocity")
  1089. bfos.P = 20000
  1090. bfos.MaxForce = V3.N(M.H,M.H,M.H)
  1091. bfos.Velocity = V3.N(0,up,0) + (origin.lookVector * back)
  1092. bfos.Parent = HitTorso
  1093. S.Debris:AddItem(bfos,decay)
  1094. coroutine.wrap(function() swait(1)
  1095. Humanoid.PlatformStand = false end)()
  1096. elseif(DamageType == 'Knockdown' and HitTorso and not HitTorso:FindFirstChildOfClass'BodyMover')then
  1097. --Humanoid.PlatformStand = true
  1098. HitTorso.CFrame = CF.N(HitTorso.Position)*CF.A(M.R(90),0,0)
  1099. elseif(HitTorso and DamageType ~= 'None')then
  1100. local decay = DamageEffects.Decay or .5;
  1101. local bodypos = IN("BodyPosition")
  1102. bodypos.Position = HitTorso.Position
  1103. bodypos.maxForce = V3.N(M.H,M.H,M.H)
  1104. bodypos.D = 250
  1105. bodypos.P = 500
  1106. bodypos.Parent = HitTorso
  1107. S.Debris:AddItem(bodypos,decay)
  1108. end
  1109. end
  1110. end
  1111. end
  1112. end
  1113. end
  1114.  
  1115. function ClosestHumanoid(pos,range)
  1116. local mag,closest = math.huge;
  1117. local root;
  1118. for _,v in next, getRegion(pos,range or 10,{Char}) do
  1119. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
  1120. if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then
  1121. mag = (v.CFrame.p-pos).magnitude
  1122. closest = hum
  1123. if(v.Parent:FindFirstChild'HumanoidRootPart')then
  1124. root = v.Parent.HumanoidRootPart
  1125. end
  1126. end
  1127. end
  1128. return closest,(closest and GetTorso(closest.Parent) or nil),root
  1129. end
  1130.  
  1131. function AOEDamage(where,range,options)
  1132. local hit = {}
  1133. for _,v in next, getRegion(where,range,{Char}) do
  1134. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent:FindFirstChildOfClass'Humanoid'])then
  1135. local callTable = {Who=v.Parent}
  1136. hit[v.Parent:FindFirstChildOfClass'Humanoid'] = true
  1137. for _,v in next, options do callTable[_] = v end
  1138. DealDamage(callTable)
  1139. end
  1140. end
  1141. return hit
  1142. end
  1143.  
  1144. function AOEHeal(where,range,amount)
  1145. local healed = {}
  1146. for _,v in next, getRegion(where,range,{Char}) do
  1147. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1148. if(hum and not healed[hum])then
  1149. hum.Health = hum.Health + amount
  1150. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1151. 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)
  1152. end
  1153. end
  1154. end
  1155. end
  1156.  
  1157. function Puncc()
  1158. Attack = true
  1159. NeutralAnims = false
  1160. for i = 0, 2, 0.1 do
  1161. swait()
  1162. local Alpha = .15
  1163. RJ.C0 = RJ.C0:lerp(CFrame.new(0.00438173953, 0.00628662389, -0.0019117021, 0.609634042, 0, 0.792683125, -5.34261346e-08, 1.00000048, 3.30696786e-08, -0.792683482, 5.9604659e-08, 0.60963428),Alpha)
  1164. LH.C0 = LH.C0:lerp(CFrame.new(-0.516284764, -1.01727486, 0.0227183402, 0.609634042, 0.180735722, -0.771804154, 0, 0.97366035, 0.228005171, 0.792683125, -0.138999611, 0.593576491),Alpha)
  1165. RH.C0 = RH.C0:lerp(CFrame.new(0.573335767, -1.10741258, -0.0406717956, 0.609634042, -0.246124312, -0.75350523, 0, 0.95057559, -0.310495049, 0.792683125, 0.189288437, 0.579503179),Alpha)
  1166. LS.C0 = LS.C0:lerp(CFrame.new(-1.26021743, 0.594012618, -0.173267186, 0.729784191, -0.679329395, -0.0769904852, -0.0543440357, 0.054616075, -0.997027993, 0.681514502, 0.731799126, 0.00294044241),Alpha)
  1167. RS.C0 = RS.C0:lerp(CFrame.new(1.31840098, 0.476217866, -0.259170413, 0.516109109, -0.855520964, 0.0414250158, 0.0374570377, -0.0257739779, -0.998966277, 0.855703652, 0.517127275, 0.0187430046),Alpha)
  1168. NK.C0 = NK.C0:lerp(CFrame.new(-0.000193037093, 1.49900448, -0.00527077168, 0.597184241, 0.0461147651, -0.800777853, -3.56697029e-07, 0.998346448, 0.0574920624, 0.802104175, -0.0343330242, 0.596196771),Alpha)
  1169. end
  1170.  
  1171. Sound(LArm,586138248,1,5,false,true,true)
  1172. for i = 0, 1, 0.1 do
  1173. swait()
  1174. local Alpha = .3
  1175. Effect{
  1176. Frames=25,
  1177. RotInc={M.RNG(-10,10)/100,M.RNG(-10,10)/100,M.RNG(-10,10)/100},
  1178. Material=Enum.Material.SmoothPlastic,
  1179. Color=C3.N(1,1,1),
  1180. CFrame=LArm.CFrame*CF.N(0,-.75,0)*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),
  1181. StartSize=V3.N(1.5,1.5,1.5),
  1182. EndSize=V3.N(.5,.5,.5),
  1183. }
  1184. AOEDamage(LArm.CFrame.p,1,{Debounce=.3,MinimumDamage=5,MaximumDamage=10,Sound={ID=636494529,Pitch=M.RNG(75,125)/100}})
  1185. RJ.C0 = RJ.C0:lerp(CFrame.new(-0.129031718, 0.114695273, -0.952166438, 0.61720401, 0.0757319629, -0.783150077, 0.0926520005, 0.981435895, 0.167926013, 0.781328976, -0.176205009, 0.598729432),Alpha)
  1186. LH.C0 = LH.C0:lerp(CFrame.new(-0.42468971, -1.05698764, -0.118071586, 0.634784222, 0.236470044, 0.735616207, -0.0148908757, 0.955587268, -0.294331849, -0.772546113, 0.175883234, 0.610112906),Alpha)
  1187. RH.C0 = RH.C0:lerp(CFrame.new(0.393197715, -1.17577446, 0.15869242, 0.734885693, -0.115103781, 0.668352008, 0.161243975, 0.986887336, -0.00733356178, -0.658744037, 0.113157056, 0.743809104),Alpha)
  1188. LS.C0 = LS.C0:lerp(CFrame.new(-1.46424341, 0.631071389, -0.376442075, 0.892613232, 0.429421335, -0.137255654, -0.0489029773, -0.210429594, -0.976385117, -0.448163271, 0.878246546, -0.166832224),Alpha)
  1189. RS.C0 = RS.C0:lerp(CFrame.new(1.48891759, 0.625903904, 0.0492288321, 0.970632255, -0.231512755, -0.0653840899, 0.240568519, 0.934096873, 0.263798863, 2.23517418e-06, -0.271781027, 0.96235919),Alpha)
  1190. NK.C0 = NK.C0:lerp(CFrame.new(0.0531528667, 1.48957229, 0.0210642219, 0.629376113, 0.0425083935, 0.775937438, 0.0759607106, 0.99035579, -0.115867965, -0.773379564, 0.131865293, 0.620077193),Alpha)
  1191. end
  1192. Attack = false
  1193. NeutralAnims = true
  1194. end
  1195.  
  1196. function Stomp()
  1197. Attack = true
  1198. NeutralAnims = false
  1199. WalkSpeed = 0
  1200. for i = 0, 1.75, 0.1 do
  1201. swait()
  1202. local Alpha = .3
  1203. RJ.C0 = RJ.C0:lerp(CFrame.new(-7.15255737e-07, 0.0832863748, 0.437301338, 1, 0, 0, 0, 0.844838798, -0.535020888, 0, 0.535020888, 0.844838798),Alpha)
  1204. LH.C0 = LH.C0:lerp(CFrame.new(-0.496665955, -0.339524329, -1.35636258, 1, 0, 0, 0, 0.844838798, 0.535020888, 0, -0.535020888, 0.844838798),Alpha)
  1205. RH.C0 = RH.C0:lerp(CFrame.new(0.382819116, -1.13285434, 0.219936311, 0.993305862, -0.115513988, 0, 0.0975906998, 0.839183331, 0.535020888, -0.0618023947, -0.531439364, 0.844838798),Alpha)
  1206. LS.C0 = LS.C0:lerp(CFrame.new(-1.45889676, 0.498263776, 0.000388883956, 0.996656239, 0.0817095935, 6.81883762e-07, -0.0817095935, 0.996656179, -1.37090683e-06, -7.93486834e-07, 1.34110451e-06, 1),Alpha)
  1207. RS.C0 = RS.C0:lerp(CFrame.new(1.43488479, 0.495638072, 0.000385263353, 0.991409659, -0.130793273, 1.398314e-06, 0.130793273, 0.991409659, -1.49011612e-07, -1.36345625e-06, 3.27825546e-07, 1),Alpha)
  1208. NK.C0 = NK.C0:lerp(CFrame.new(8.58228887e-05, 1.49898946, -0.00496499985, 0.999878228, 0.00089817855, -0.0155835263, -7.7392906e-07, 0.998345971, 0.0574914813, 0.0156093873, -0.057484448, 0.998224378),Alpha)
  1209. end
  1210. Sound(LLeg,586138248,.7,5,false,true,true)
  1211. local h,p = CastRay(LLeg.CFrame.p,LLeg.CFrame*CF.N(0,-1,0).p,8)
  1212. local h2,p2 = CastRay(Root.CFrame.p,Root.CFrame*CF.N(0,-1,0).p,8)
  1213. if(not h)then h = h2 p = p2 end
  1214. if(h)then
  1215. local hum = (h and h.Parent and h.Parent:FindFirstChildOfClass'Humanoid')
  1216. if(hum and (hum.Health >= 1e5 or hum.Health <= 30) and ParalysedStates[hum:GetState()] and (h.Name == 'Head' or h.Name == 'Torso'))then
  1217. h:destroy()
  1218. SoundPart(429400881,.8,5,false,true,true,h.CFrame)
  1219. Effect{
  1220. RotInc='random',
  1221. StartSize=V3.N(2.5,2.5,2.5),
  1222. EndSize=V3.N(1,1,1),
  1223. Color=C3.N(.7,0,0),
  1224. Material=Enum.Material.Granite,
  1225. CFrame=h.CFrame
  1226. }
  1227. for i = 1, 5 do
  1228. NoobySphere(2,.3,'Multiply',h.CFrame*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),V3.N(1,1,10),-.01,C3.N(1,0,0),0)
  1229. end
  1230. end
  1231. end
  1232. for i = 0, 1, 0.1 do
  1233. swait()
  1234. Effect{
  1235. Frames=25,
  1236. RotInc={M.RNG(-10,10)/100,M.RNG(-10,10)/100,M.RNG(-10,10)/100},
  1237. Material=Enum.Material.Neon,
  1238. Color=C3.N(1,0,0),
  1239. CFrame=LLeg.CFrame*CF.N(0,-.75,0)*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),
  1240. StartSize=V3.N(1.5,1.5,1.5),
  1241. EndSize=V3.N(.5,.5,.5),
  1242. }
  1243. local Alpha = .3
  1244. RJ.C0 = RJ.C0:lerp(CFrame.new(4.76837158e-07, 0.00818574429, -0.212024674, 1, 0, 0, 0, 0.960826993, 0.277148992, 0, -0.277148992, 0.960826993),Alpha)
  1245. LH.C0 = LH.C0:lerp(CFrame.new(-0.415088356, -0.859242141, -0.615482748, 0.996667087, 0.081577003, 0, -0.0783813968, 0.957624614, -0.277148992, -0.0226089861, 0.276225269, 0.960826993),Alpha)
  1246. RH.C0 = RH.C0:lerp(CFrame.new(0.431253761, -1.01969981, -0.0557565391, 0.99774766, -0.0670789778, 0, 0.0644512922, 0.958662868, -0.277148992, 0.0185908712, 0.276524752, 0.960826993),Alpha)
  1247. LS.C0 = LS.C0:lerp(CFrame.new(-1.3975414, 0.60383153, 0.0334076732, 0.97271812, 0.204418868, 0.10969317, -0.203130901, 0.978883624, -0.0229109228, -0.112060271, 3.81469727e-06, 0.993701458),Alpha)
  1248. RS.C0 = RS.C0:lerp(CFrame.new(1.32121503, 0.581222057, 0.0334063992, 0.921448529, -0.358132571, -0.150578365, 0.353444129, 0.933670759, -0.0577600747, 0.1612764, 1.89244747e-06, 0.98690933),Alpha)
  1249. NK.C0 = NK.C0:lerp(CFrame.new(8.58935528e-05, 1.49899483, -0.00497312099, 0.999878228, 0.00089695229, -0.0155848823, 5.40632755e-07, 0.998345971, 0.0574921966, 0.0156106716, -0.0574852228, 0.998224378),Alpha)
  1250. end
  1251. WalkSpeed = 16
  1252. NeutralAnims = true
  1253. Attack = false
  1254. end
  1255.  
  1256. function Kick()
  1257. Attack = true
  1258. NeutralAnims = false
  1259. WalkSpeed = 0
  1260. for i = 0, .6, 0.1 do
  1261. swait()
  1262. Effect{
  1263. Frames=25,
  1264. RotInc={M.RNG(-10,10)/100,M.RNG(-10,10)/100,M.RNG(-10,10)/100},
  1265. Material=Enum.Material.SmoothPlastic,
  1266. Color=C3.N(1,1,1),
  1267. CFrame=LLeg.CFrame*CF.N(0,-.75,0)*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),
  1268. StartSize=V3.N(1.5,1.5,1.5),
  1269. EndSize=V3.N(.5,.5,.5),
  1270. }
  1271.  
  1272. local Alpha = .3
  1273. RJ.C0 = RJ.C0:lerp(CFrame.new(0, -0.500282288, 0),Alpha)
  1274. LH.C0 = LH.C0:lerp(CFrame.new(-0.610893309, -0.928959131, -0.497763574, 0.750902891, 0.611020982, -0.250595689, -0.642022967, 0.586476445, -0.493813604, -0.154761985, 0.531694233, 0.83267647),Alpha)
  1275. RH.C0 = RH.C0:lerp(CFrame.new(0.346663713, -0.652524531, -0.704329669, 0.991542757, -0.129779533, -0.000615497353, 0.120198973, 0.916535914, 0.38146311, -0.0489419885, -0.378310978, 0.924383819),Alpha)
  1276. LS.C0 = LS.C0:lerp(CFrame.new(-1.42900527, 0.545100451, 0.0200942159, 0.99168545, 0.11496716, -0.0578157082, -0.128686056, 0.885964274, -0.44554162, 0, 0.449277163, 0.893392563),Alpha)
  1277. RS.C0 = RS.C0:lerp(CFrame.new(1.42638826, 0.519921482, 0.0379452184, 0.990054131, -0.136396006, -0.0344814099, 0.140687019, 0.959857106, 0.242655382, 0, -0.245093033, 0.969499648),Alpha)
  1278. NK.C0 = NK.C0:lerp(CFrame.new(8.71985685e-05, 1.49900436, -0.00497381389, 0.999878228, 0.000897565449, -0.0155861806, 0, 0.998345971, 0.0574920177, 0.0156120034, -0.0574850067, 0.998224378),Alpha)
  1279.  
  1280. end
  1281. Sound(LArm,580727829,1,5,false,true,true)
  1282. for i = 0, 1.08, 0.08 do
  1283. Effect{
  1284. Frames=25,
  1285. RotInc={M.RNG(-10,10)/100,M.RNG(-10,10)/100,M.RNG(-10,10)/100},
  1286. Material=Enum.Material.SmoothPlastic,
  1287. Color=C3.N(1,1,1),
  1288. CFrame=LLeg.CFrame*CF.N(0,-.75,0)*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),
  1289. StartSize=V3.N(1.5,1.5,1.5),
  1290. EndSize=V3.N(.5,.5,.5),
  1291. }
  1292. AOEDamage(LLeg.CFrame.p,2,{Debounce=.3,MinimumDamage=5,MaximumDamage=10,Sound={ID=636494529,Pitch=M.RNG(75,125)/100},DamageFX={Type='Knockdown'}})
  1293. swait()
  1294. local Alpha = .3
  1295. RJ.C0 = RJ.C0:lerp(CFrame.new(0, -0.500282288,0)*CF.A(0,M.R(i*360),0),Alpha)
  1296. LH.C0 = LH.C0:lerp(CFrame.new(-0.610893309, -0.928959131, -0.497763574, 0.750902891, 0.611020982, -0.250595689, -0.642022967, 0.586476445, -0.493813604, -0.154761985, 0.531694233, 0.83267647),Alpha)
  1297. RH.C0 = RH.C0:lerp(CFrame.new(0.346663713, -0.652524531, -0.704329669, 0.991542757, -0.129779533, -0.000615497353, 0.120198973, 0.916535914, 0.38146311, -0.0489419885, -0.378310978, 0.924383819),Alpha)
  1298. LS.C0 = LS.C0:lerp(CFrame.new(-1.42900527, 0.545100451, 0.0200942159, 0.99168545, 0.11496716, -0.0578157082, -0.128686056, 0.885964274, -0.44554162, 0, 0.449277163, 0.893392563),Alpha)
  1299. RS.C0 = RS.C0:lerp(CFrame.new(1.42638826, 0.519921482, 0.0379452184, 0.990054131, -0.136396006, -0.0344814099, 0.140687019, 0.959857106, 0.242655382, 0, -0.245093033, 0.969499648),Alpha)
  1300. NK.C0 = NK.C0:lerp(CFrame.new(8.71985685e-05, 1.49900436, -0.00497381389, 0.999878228, 0.000897565449, -0.0155861806, 0, 0.998345971, 0.0574920177, 0.0156120034, -0.0574850067, 0.998224378),Alpha)
  1301.  
  1302. end
  1303. WalkSpeed = 16
  1304. NeutralAnims = true
  1305. Attack = false
  1306. end
  1307. --// Keystrokes and Keystroke System \\--
  1308.  
  1309. -- Credit to Ace of Spades
  1310.  
  1311. function TweenTransCol(p, newCol, i)
  1312. p.TextColor3 = newCol
  1313. p:TweenPosition(UDim2.new(.03*i, 0, -3, 0),_, "Linear", .5, true)
  1314. coroutine.resume(coroutine.create(function()
  1315. for i = 0, 1, .04 do
  1316. swait()
  1317. p.TextTransparency = i
  1318. p.TextStrokeTransparency = i
  1319. end
  1320. p:destroy()
  1321. end))
  1322. end
  1323.  
  1324. local ValidInputKey = {['w']=true,['a']=true,['s']=true,['d']=true,['q']=true,['e']=true,['z']=true,['x']=true,['c']=true,['v']=true}
  1325. local InputAge = 0;
  1326. local InputFrameTable = {}
  1327.  
  1328. Mouse.KeyDown:connect(function(k)
  1329. if(Attack)then return end
  1330. local Stroked = false
  1331. if(ValidInputKey[k])then
  1332. InputAge = InputAge + 1
  1333. Input = Input..k
  1334. if(Input_Time <= 0)then
  1335. Input_Time = Input_MaxTime
  1336. else
  1337. Input_Time = Input_Time + Input_Addition
  1338. end
  1339. if(Input_Time > Input_MaxTime)then
  1340. Input_Time = Input_MaxTime
  1341. end
  1342. local newKP = Label(inputF,k:upper(),UDim2.new(.03,0,1,0),UDim2.new(.03*(#InputFrameTable+1),0,0,0),0,C3.N(1,1,1),24,true)
  1343. table.insert(InputFrameTable, newKP)
  1344.  
  1345.  
  1346. for stroke,v in next, Keystrokes do
  1347. if(Input == stroke)then
  1348. local Usable = v.Conditions()
  1349. if(Usable)then
  1350. Input_Time = 0
  1351. Input = ""
  1352. for i, p in pairs(InputFrameTable) do
  1353. if(p:IsA'TextLabel')then
  1354. TweenTransCol(p,C3.N(0,1,0),i)
  1355. end
  1356. end
  1357. InputFrameTable = {}
  1358. Input = ""
  1359. Stroked = true
  1360. v.Callback()
  1361. end
  1362. break
  1363. end
  1364. end
  1365.  
  1366. if(#Input >= Max_Input)then
  1367. for i, p in pairs(InputFrameTable) do
  1368. if(p:IsA'TextLabel')then
  1369. TweenTransCol(p,C3.N(1,0,0),i)
  1370. end
  1371. end
  1372. Input_Time = 0
  1373. InputFrameTable = {}
  1374. Input = ""
  1375. end
  1376. end
  1377. if(k == 'z' and not Stroked)then
  1378. for i, p in pairs(InputFrameTable) do
  1379. if(p:IsA'TextLabel')then
  1380. TweenTransCol(p,C3.N(1,1,0),i)
  1381. end
  1382. end
  1383. Input_Time = 0
  1384. InputFrameTable = {}
  1385. Input = ""
  1386. Puncc()
  1387. elseif(k == 'x' and not Stroked)then
  1388. for i, p in pairs(InputFrameTable) do
  1389. if(p:IsA'TextLabel')then
  1390. TweenTransCol(p,C3.N(1,1,0),i)
  1391. end
  1392. end
  1393. Input_Time = 0
  1394. InputFrameTable = {}
  1395. Input = ""
  1396. Kick()
  1397. elseif(k == 'c' and not Stroked)then
  1398. for i, p in pairs(InputFrameTable) do
  1399. if(p:IsA'TextLabel')then
  1400. TweenTransCol(p,C3.N(1,1,0),i)
  1401. end
  1402. end
  1403. Input_Time = 0
  1404. InputFrameTable = {}
  1405. Input = ""
  1406. Stomp()
  1407. end
  1408. end)
  1409. coroutine.wrap(function()
  1410. while true do
  1411. if(Input_Time > 0)then
  1412. Input_Time = Input_Time - Input_Lose
  1413. elseif(Input_Time <= 0)then
  1414. for i, p in pairs(InputFrameTable) do
  1415. if(p:IsA'TextLabel')then
  1416. TweenTransCol(p,C3.N(1,0,0), i)
  1417. end
  1418. end
  1419. InputFrameTable = {}
  1420. Input = ""
  1421. elseif Input_Time > Input_MaxTime then
  1422. Input_Time = Input_MaxTime
  1423. end
  1424. swait()
  1425. end
  1426. end)()
  1427.  
  1428. Keystrokes['q'] = {
  1429. Name="Bring 'em over",
  1430. Conditions = function()
  1431. return true
  1432. end,
  1433. Callback = function()
  1434. Attack = true
  1435. NeutralAnims = false
  1436. WalkSpeed = 0
  1437. local goto = Mouse.Hit.p
  1438. Root.CFrame = CF.N(Root.CFrame.p,V3.N(goto.x,Root.CFrame.y,goto.z))
  1439. for i = 0, 3, 0.1 do
  1440. swait()
  1441. local Alpha = .3
  1442. RJ.C0 = RJ.C0:lerp(CFrame.new(-0.0510073863, -0.177250788, 0.05712194, -0.182426915, 0.022137044, 0.982970238, 0.120450944, 0.992719352, -2.41795169e-06, -0.975813508, 0.118399248, -0.183765143),Alpha)
  1443. LH.C0 = LH.C0:lerp(CFrame.new(-0.604434133, -0.882030666, 0.180245519, 0.924347997, 0.267335325, -0.272236466, -0.268687189, 0.962661088, 0.0330331177, 0.270902306, 0.042612344, 0.961663246),Alpha)
  1444. RH.C0 = RH.C0:lerp(CFrame.new(0.767681181, -0.927049637, 0.0170091763, 4.27663326e-06, 0.069873251, -0.997555912, 1.91666186e-06, 0.997555971, 0.0698732436, 1.00000012, -2.21095979e-06, 4.14252281e-06),Alpha)
  1445. LS.C0 = LS.C0:lerp(CFrame.new(-1.50122738, 0.591973484, -0.00196724385, 0.977761686, 0.20953241, -0.00884582102, -0.209718227, 0.977007568, -0.0384031199, 0.000595718622, 0.0394042209, 0.999223292),Alpha)
  1446. RS.C0 = RS.C0:lerp(CFrame.new(1.37269974, 0.446900368, 0.165745839, 0.0792396814, -0.954313159, -0.288110435, 0.99677664, 0.0722112879, 0.0349590778, -0.0125570809, -0.289951831, 0.956959009),Alpha)
  1447. NK.C0 = NK.C0:lerp(CFrame.new(-0.000155583024, 1.4989965, -0.00558754429, -0.207874715, 0.126194224, -0.969981015, 0.0251481663, 0.992004871, 0.123670042, 0.977832198, 0.00131463073, -0.209386244),Alpha)
  1448. end
  1449. coroutine.wrap(function()
  1450. local grabPos = CF.N(RArm.CFrame*CF.N(0,-1,0).p,goto)
  1451. local grabbed;
  1452. for i = 0, 60 do
  1453. grabPos = grabPos*CF.N(0,0,-2)
  1454. Effect{
  1455. Frames=30,
  1456. Color=C3.N(1,1,1),
  1457. CFrame=grabPos,
  1458. Material=Enum.Material.Glass,
  1459. StartTrans=.5,
  1460. StartSize=V3.N(2,2,2),
  1461. EndSize=V3.N(.05,.05,.05),
  1462. RotInc={M.RNG(-10,10)/100,M.RNG(-10,10)/100,M.RNG(-10,10)/100},
  1463. }
  1464. local humanoid, closest = ClosestHumanoid(grabPos.p,3)
  1465. if(humanoid and closest)then
  1466. DealDamage{Who=closest.Parent,MinimumDamage=10,MaximumDamage=15,DamageFX={Type='None'}}
  1467. grabbed = closest
  1468. break
  1469. end
  1470. swait()
  1471. end
  1472. if(grabbed)then
  1473. Attack = true
  1474. NeutralAnims = false
  1475. for i = 0, .8, 0.1 do
  1476. swait()
  1477. local Alpha = .3
  1478. grabbed.Velocity = V3.N()
  1479. grabbed.CFrame = grabbed.CFrame:lerp(Root.CFrame*CF.N(0,0,-1),Alpha)
  1480. RJ.C0 = RJ.C0:lerp(CFrame.new(-0.00344634429, 0.00628662109, -0.00148026343, 0.75930953, 0, -0.650729597, 0, 1, 0, 0.650729597, 0, 0.75930953),Alpha)
  1481. LH.C0 = LH.C0:lerp(CFrame.new(-0.609584928, -0.948172033, -0.124129198, 0.75930953, 0.107062548, 0.641861856, 0, 0.98637265, -0.164526939, -0.650729597, 0.124926873, 0.748962164),Alpha)
  1482. RH.C0 = RH.C0:lerp(CFrame.new(0.506190836, -1.02166057, 0.0191282965, 0.956118941, -0.135200605, -0.259918034, 0.140012994, 0.990149677, 8.89804198e-07, 0.257357597, -0.0363927521, 0.96563077),Alpha)
  1483. LS.C0 = LS.C0:lerp(CFrame.new(-1.51470876, 0.649386466, -0.323361427, 0.818944454, 0.231612742, -0.525057614, -0.272144943, 0.962256312, -1.45059369e-06, 0.505239666, 0.142892972, 0.851066709),Alpha)
  1484. RS.C0 = RS.C0:lerp(CFrame.new(1.22319663, 0.241768777, 0.194730282, 0.310893834, -0.834453106, -0.455008805, 0.937195122, 0.348804891, 0.000674404495, 0.15814656, -0.426641703, 0.890486717),Alpha)
  1485. NK.C0 = NK.C0:lerp(CFrame.new(0.000409625471, 1.49901021, -0.00495067239, 0.769376218, -0.0367253795, 0.637739301, -3.57576369e-07, 0.998346031, 0.0574919991, -0.638795853, -0.0442332104, 0.768103659),Alpha)
  1486. end
  1487. grabbed.CFrame = Root.CFrame*CF.N(0,0,-1)
  1488. NeutralAnims = true
  1489. Attack = false
  1490. end
  1491. Attack = false
  1492. end)()
  1493. for i = 0, .6, 0.1 do
  1494. swait()
  1495. local Alpha = .3
  1496. RJ.C0 = RJ.C0:lerp(CFrame.new(-0.0510072708, -0.208807454, 0.326068789, -0.182427108, 0.0221369285, 0.982970238, 0.241700143, 0.97007823, 0.0230099596, -0.953048587, 0.241781637, -0.18231906),Alpha)
  1497. LH.C0 = LH.C0:lerp(CFrame.new(-0.604433417, -0.882032454, 0.180244744, 0.924347878, 0.26733616, -0.272236586, -0.268688053, 0.96266073, 0.0330330804, 0.270902455, 0.0426126644, 0.961663187),Alpha)
  1498. RH.C0 = RH.C0:lerp(CFrame.new(0.791947305, -0.994135201, 0.0230249092, -0.00238485634, 0.149174631, -0.988808155, -0.0147245601, 0.988698423, 0.1491936, 0.999888837, 0.0149155706, -0.000161394477),Alpha)
  1499. LS.C0 = LS.C0:lerp(CFrame.new(-1.41238117, 0.628589571, -0.0269960687, 0.890909314, 0.453159511, -0.0304513574, -0.454070926, 0.887209237, -0.0817298144, -0.0100199133, 0.0866409391, 0.996189356),Alpha)
  1500. RS.C0 = RS.C0:lerp(CFrame.new(1.37269998, 0.446898848, 0.165745914, 0.0792380422, -0.954313397, -0.288110614, 0.996776819, 0.0722096413, 0.0349587798, -0.0125572607, -0.28995204, 0.95695895),Alpha)
  1501. NK.C0 = NK.C0:lerp(CFrame.new(-0.000153101981, 1.49899828, -0.00558736548, -0.207986385, 0.0819796473, -0.974690378, 0.023973655, 0.996609509, 0.078707546, 0.977838039, -0.00699678436, -0.209246561),Alpha)
  1502. end
  1503. NeutralAnims = true
  1504. WalkSpeed = 16
  1505. end
  1506. }
  1507.  
  1508. Keystrokes['e'] = {
  1509. Name="Life Sap",
  1510. Condition = function()
  1511. return true
  1512. end,
  1513. Callback = function()
  1514. Attack = true
  1515. NeutralAnims = false
  1516. for i = 0, 1, 0.1 do
  1517. swait()
  1518. local Alpha = .3
  1519. RJ.C0 = RJ.C0:lerp(CFrame.new(-1.78813934e-07, 0.0222498477, 0.288053364, 1, 0, 0, 0, 0.966386974, -0.257091999, 0, 0.257091999, 0.966386974),Alpha)
  1520. LH.C0 = LH.C0:lerp(CFrame.new(-0.506628156, -1.03462243, -0.0130991042, 0.975768089, 0.131600946, 0.174808547, -0.173704952, 0.951709092, 0.253133655, -0.133054227, -0.27736485, 0.951506972),Alpha)
  1521. RH.C0 = RH.C0:lerp(CFrame.new(0.516979098, -1.03480744, 0.017331183, 0.957670093, -0.0549535789, -0.282574326, 0.123692922, 0.96492672, 0.231552571, 0.259938926, -0.256703377, 0.930878818),Alpha)
  1522. LS.C0 = LS.C0:lerp(CFrame.new(-1.51486635, 0.548972011, -0.0415423587, 0.933580399, 0.35836795, 0, -0.346322119, 0.902199924, 0.257091999, 0.0921335295, -0.240016058, 0.966386974),Alpha)
  1523. RS.C0 = RS.C0:lerp(CFrame.new(1.52708983, 0.574780107, 0.0518868491, 0.933580399, -0.35836795, 0, 0.346322119, 0.902199924, 0.257091999, -0.0921335295, -0.240016058, 0.966386974),Alpha)
  1524. NK.C0 = NK.C0:lerp(CFrame.new(8.60053115e-05, 1.49901581, -0.00497283787, 0.999878228, 0.000898618076, -0.015587193, -1.03958882e-06, 0.99834621, 0.0574890226, 0.0156130753, -0.0574819893, 0.998224556),Alpha)
  1525. end
  1526. for i = 0, 1, 0.1 do
  1527. swait()
  1528. local Alpha = .3
  1529. RJ.C0 = RJ.C0:lerp(CFrame.new(0, -0.242604285, -0.23000811, 1, 0, 0, 0, 0.879526675, 0.475849807, 0, -0.475849807, 0.879526675),Alpha)
  1530. LH.C0 = LH.C0:lerp(CFrame.new(-0.496665001, -0.624262273, -0.594773114, 1, 0, 0, 0, 0.949131668, -0.314879715, 0, 0.314879715, 0.949131668),Alpha)
  1531. RH.C0 = RH.C0:lerp(CFrame.new(0.498333931, -0.991058588, 0.0170181114, 1, 0, 0, 0, 1.00000024, -3.09944153e-06, 0, 3.09944153e-06, 1.00000024),Alpha)
  1532. LS.C0 = LS.C0:lerp(CFrame.new(-1.34355807, 0.687274098, -0.352896392, 0.937636614, -0.347616881, 0, -0.165413424, -0.446174204, -0.879526675, 0.30573833, 0.824676394, -0.475849807),Alpha)
  1533. RS.C0 = RS.C0:lerp(CFrame.new(1.23112309, 0.723540187, -0.3898817, 0.915779233, 0.401682049, 0, 0.191140339, -0.435773373, -0.879526675, -0.353290111, 0.805452287, -0.475849807),Alpha)
  1534. NK.C0 = NK.C0:lerp(CFrame.new(8.58306885e-05, 1.49900424, -0.0049726367, 1, 0, 0, 0, 0.879526675, -0.475849807, 0, 0.475849807, 0.879526675),Alpha)
  1535. end
  1536. end
  1537. }
  1538.  
  1539. Keystrokes['r'] = {
  1540. Name="Brawler's Saw",
  1541. Conditions = function()
  1542. return true
  1543. end,
  1544. Callback = function()
  1545. Attack = true
  1546. NeutralAnims = false
  1547. for i = 0, 2.5, 0.1 do
  1548. swait()
  1549. local Alpha = .3
  1550. RJ.C0 = RJ.C0:lerp(CFrame.new(-0.00241782935, 0.00628662109, -0.000712112407, 0.891995728, 0, -0.452043861, 0, 1, 0, 0.452043861, 0, 0.891995728),Alpha)
  1551. LH.C0 = LH.C0:lerp(CFrame.new(-0.447529852, -0.992140234, 0.00763394497, 0.990388036, 0.0491364636, 0.129294902, -0.0487229787, 0.998792112, -0.00636110455, -0.129451275, 3.29688191e-07, 0.991585791),Alpha)
  1552. RH.C0 = RH.C0:lerp(CFrame.new(0.498332977, -0.991056442, 0.0170079917, 0.973056912, 0, -0.230565488, 0, 1, 0, 0.230565488, 0, 0.973056912),Alpha)
  1553. LS.C0 = LS.C0:lerp(CFrame.new(-1.42013586, 0.605196059, 0.00038655274, 0.969952703, 0.24329406, 3.39746475e-06, -0.24329406, 0.969952643, -4.26664229e-07, -3.39746475e-06, -4.02331352e-07, 1.00000012),Alpha)
  1554. RS.C0 = RS.C0:lerp(CFrame.new(1.31736588, 0.369182765, 0.32312727, 0.588012218, -0.67716819, -0.442363083, 0.783412337, 0.340714902, 0.519787073, -0.201263577, -0.652193785, 0.730846226)*CF.A(M.RRNG(-9,9),M.RRNG(-9,9),M.RRNG(-9,9)),Alpha)
  1555. NK.C0 = NK.C0:lerp(CFrame.new(0.000306192786, 1.49900877, -0.00493463874, 0.898944378, -0.0251847897, 0.437338293, -3.57576369e-07, 0.998346031, 0.0574919991, -0.438062817, -0.0516822711, 0.89745754),Alpha)
  1556. Effect{
  1557. Frames=5,
  1558. Mesh={Type=Enum.MeshType.FileMesh,ID='rbxassetid://74322089'},
  1559. CFrame=RArm.CFrame*CF.N(0,-1,0),
  1560. Color=C3.N(1,1,1),
  1561. StartTrans = .6,
  1562. StartSize=V3.N(2.5,2.5,2.5),
  1563. EndSize=V3.N(2.5,2.5,2.5),
  1564. }
  1565. end
  1566. local oWS = WalkSpeed
  1567. WalkSpeed = 0
  1568. for i = 0, .2, 0.1 do
  1569. swait()
  1570. local Alpha = .3
  1571. RJ.C0 = RJ.C0:lerp(CFrame.new(0, -1.24850976, -0.658175886, 1, 0, 0, 0, 0.533581018, 0.845749021, 0, -0.845749021, 0.533581018),Alpha)
  1572. LH.C0 = LH.C0:lerp(CFrame.new(-0.496665955, 0.203642964, -0.161101282, 1, 0, 0, 0, 0.73303467, -0.680191398, 0, 0.680191398, 0.73303467),Alpha)
  1573. RH.C0 = RH.C0:lerp(CFrame.new(0.498332977, -0.838229656, -0.136581317, 1, 0, 0, 0, 0.999863148, -0.0165473819, 0, 0.0165473819, 0.999863148),Alpha)
  1574. LS.C0 = LS.C0:lerp(CFrame.new(-1.45851445, 0.646472394, 0.00037931616, 0.974747658, 0.223309547, -2.86613204e-06, -0.223309547, 0.974747777, -3.12924385e-06, 2.09361315e-06, 3.69548798e-06, 1.00000012),Alpha)
  1575. RS.C0 = RS.C0:lerp(CFrame.new(1.4324038, 0.276735246, -0.488369644, 0.986704886, -0.0762845874, 0.143507153, 0.154859453, 0.709243894, -0.687743962, -0.049317304, 0.700823784, 0.711627722),Alpha)
  1576. NK.C0 = NK.C0:lerp(CFrame.new(8.62792367e-05, 1.49899888, -0.00499115884, 0.999878109, 0.000899905805, -0.0155876474, -2.22306699e-06, 0.998345971, 0.0574939549, 0.0156136034, -0.0574868619, 0.998224258),Alpha)
  1577. end
  1578. -- create saws
  1579. if(State ~= 'Jump' and State ~= 'Fall')then
  1580. coroutine.wrap(function()
  1581. local bigSaw = Part(workspace,C3.N(1,1,1),Enum.Material.Plastic,V3.N(6.4,6.4,0.4),Root.CFrame*CF.N(0,-2,0)*CF.A(0,M.R(90),0),true,false)
  1582. bigSaw.Transparency = .4
  1583. Mesh(bigSaw,Enum.MeshType.FileMesh,'rbxassetid://74322089','',V3.N(5,5,2.5))
  1584. local pos = Root.CFrame*CF.N(0,-2,0)
  1585. local rad = 0
  1586. for i = 0, Frame_Speed*2 do
  1587. pos = pos*CF.N(0,0,-.6)
  1588. AOEDamage(bigSaw.CFrame.p,2,{Debounce=.05,MinimumDamage=1,MaximumDamage=1,Sound={ID=1145359868,Pitch=1.25},DamageFX={Type='Knockback',Origin=pos,KnockBack=35,KnockUp=0}})
  1589. bigSaw.CFrame = pos*CF.A(0,M.R(90),0)*CF.A(0,0,M.R(-i*4))
  1590. swait()
  1591. end
  1592. Effect{
  1593. Mesh={Type=Enum.MeshType.FileMesh,ID='rbxassetid://74322089'},
  1594. CFrame=bigSaw.CFrame,
  1595. Color=C3.N(1,1,1),
  1596. StartTrans = .4,
  1597. StartSize=V3.N(5,5,2.5),
  1598. EndSize=V3.N(10,10,2.5)
  1599. }
  1600. bigSaw:Destroy()
  1601. for s = 1, 3 do
  1602. local smallSaw = Part(workspace,C3.N(1,1,1),Enum.Material.Plastic,V3.N(3.2,3.2,0.4),pos*CF.A(M.R(s*45),0,0),true,false)
  1603. smallSaw.Transparency = .4
  1604. smallSaw.CFrame = pos*CF.A(0,M.R(90),0)
  1605. Mesh(smallSaw,Enum.MeshType.FileMesh,'rbxassetid://74322089','',V3.N(2.5,2.5,2.5))
  1606. local pos = pos*CF.A(0,M.R(90-s*45),0)
  1607. coroutine.wrap(function()
  1608. for i = 0, Frame_Speed*2 do
  1609. pos = pos*CF.N(0,0,-1.2)
  1610. AOEDamage(smallSaw.CFrame.p,2,{Debounce=.05,MinimumDamage=1,MaximumDamage=1,DamageFX={Type='Knockback',Origin=pos,KnockBack=70,KnockUp=0}})
  1611. smallSaw.CFrame = pos*CF.A(0,M.R(90),0)*CF.A(0,0,M.R(-i*8))
  1612. swait()
  1613. end
  1614. smallSaw:destroy()
  1615. Effect{
  1616. Mesh={Type=Enum.MeshType.FileMesh,ID='rbxassetid://74322089'},
  1617. CFrame=smallSaw.CFrame,
  1618. Color=C3.N(1,1,1),
  1619. StartTrans = .4,
  1620. StartSize=V3.N(2.5,2.5,2.5),
  1621. EndSize=V3.N(5,5,2.5)
  1622. }
  1623. end)()
  1624. end
  1625. end)()
  1626. end
  1627. for i = 0, 1.5, 0.1 do
  1628. swait()
  1629. local Alpha = .3
  1630. RJ.C0 = RJ.C0:lerp(CFrame.new(0.00521737337, -0.661216378, -1.07386422, 0.935296118, -0.195601285, 0.294892073, 0, 0.833343804, 0.552755117, -0.353866041, -0.516989768, 0.779423177),Alpha)
  1631. LH.C0 = LH.C0:lerp(CFrame.new(-0.496661186, -0.19598335, -0.531912327, 1, 0, 0, 0, 0.733029962, -0.680196524, 0, 0.680196524, 0.733029902),Alpha)
  1632. RH.C0 = RH.C0:lerp(CFrame.new(0.513545156, -0.952762842, 0.0106689036, 0.935296118, 0.286595523, -0.207567319, -0.195601285, 0.90752387, 0.371672928, 0.294892073, -0.307023793, 0.904861927),Alpha)
  1633. LS.C0 = LS.C0:lerp(CFrame.new(-1.51847279, 0.38471666, 0.192567378, 0.974748015, 0.188941494, 0.119027033, -0.223307669, 0.824733615, 0.519565523, 1.93715096e-06, -0.533025205, 0.846099436),Alpha)
  1634. RS.C0 = RS.C0:lerp(CFrame.new(1.40426719, 0.828945518, -0.503636062, 0.986705124, 0.0460958779, 0.155846745, 0.158296123, -0.48981002, -0.85733819, 0.0368154943, 0.870609879, -0.490594834),Alpha)
  1635. NK.C0 = NK.C0:lerp(CFrame.new(8.26204196e-05, 1.50093818, 0.34676975, 0.999878049, 0.000899977982, -0.0155854225, -0.0079856813, 0.887322009, -0.461081535, 0.0134143233, 0.461149812, 0.887220979),Alpha)
  1636. end
  1637. WalkSpeed = oWS
  1638. Attack = false
  1639. NeutralAnims = true
  1640. end
  1641. }
  1642.  
  1643. --// Wrap it all up \\--
  1644.  
  1645. --[[coroutine.wrap(function()
  1646. while true do
  1647. local h,p = CastRay(Root.CFrame.p,Root.CFrame*CF.N(0,-1,0).p,4)
  1648. if(h)then
  1649. Effect{
  1650. Frames=15,
  1651. Mesh='Blast',
  1652. StartSize=V3.N(.05,.01,.05)*10,
  1653. EndSize=V3.N(.5,.01,.5)*10,
  1654. Color=C3.N(1,1,1),
  1655. CFrame=CF.N(p)*CF.A(M.R(M.RNG(-5,5)),M.RRNG(-5,5),0)
  1656. }
  1657. end
  1658. swait(2)
  1659. end
  1660. end)()]]
  1661.  
  1662. while true do
  1663. swait()
  1664. Sine = Sine + Change
  1665. if(not Music or not Music.Parent)then
  1666. Music = Sound(Torso,MusicID,1,3,true,false,true)
  1667. Music.Name = 'Music'
  1668. end
  1669. Music.SoundId = "rbxassetid://"..MusicID
  1670. Music.Parent = Torso
  1671. Music.Pitch = 1
  1672. Music.Volume = 1
  1673. if(not Muted)then
  1674. Music:Resume()
  1675. else
  1676. Music:Pause()
  1677. end
  1678.  
  1679.  
  1680. if(God)then
  1681. Hum.MaxHealth = 1e100
  1682. Hum.Health = 1e100
  1683. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1684. Hum.Name = M.RNG()*100
  1685. end
  1686.  
  1687. 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)
  1688.  
  1689. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1690. 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")
  1691. if(not Effects or not Effects.Parent)then
  1692. Effects = IN("Model",Char)
  1693. Effects.Name = "Effects"
  1694. end
  1695. if(State == 'Run')then
  1696. local wsVal = 7 / (Hum.WalkSpeed/16)
  1697. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1698. Change = 1
  1699. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.1*M.C(Sine/wsVal),0+.2*M.C(Sine/wsVal))*CF.A(M.R(8-0*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/1.5,0,0),.2)
  1700. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.1*M.C(Sine/wsVal),0-.2*M.C(Sine/wsVal))*CF.A(M.R(8+0*M.C(Sine/wsVal))+M.S(Sine/wsVal)/1.5,0,0),.2)
  1701. elseif(State == 'Walk')then
  1702. local wsVal = 7
  1703. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1704. Change = 1
  1705. RH.C1 = RH.C1:lerp(CF.N(0,1,0)* CF.N(0,0+.15*M.S(Sine/wsVal),0+.1*M.C(Sine/wsVal))*CF.A(M.R(0-30*M.C(Sine/wsVal)+-M.S(Sine/wsVal)),0,0),Alpha)
  1706. LH.C1 = LH.C1:lerp(CF.N(0,1,0)* CF.N(0,0-.15*M.S(Sine/wsVal),0-.1*M.C(Sine/wsVal))*CF.A(M.R(0+30*M.C(Sine/wsVal)+M.S(Sine/wsVal)),0,0),Alpha)
  1707.  
  1708. else
  1709. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1710. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1711. end
  1712. Hum.WalkSpeed = WalkSpeed
  1713. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1714. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  1715.  
  1716. if(NeutralAnims)then
  1717. if(State == 'Idle')then
  1718. local Alpha = .1
  1719. Change = 1
  1720. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1+.05*M.C(Sine/18),0)*CF.A(M.R(0+2.5*M.C(Sine/18)),M.R(35),M.R(0+2.5*M.C(Sine/18))),Alpha)
  1721. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,M.R(-35),M.R(5)),Alpha)
  1722. LS.C0 = LS.C0:lerp(LSC0*CF.N(.1,-.2+.1*M.S(Sine/18),-.5)*CF.A(M.R(135-7*M.C(Sine/18)),M.R(0+5*M.S(Sine/18)),M.R(25)),Alpha)
  1723. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,-.2+.1*M.S(Sine/18),-.4)*CF.A(M.R(135-7*M.C(Sine/18)),M.R(0-5*M.S(Sine/18)),M.R(25)),Alpha)
  1724. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.05*M.C(Sine/18),0)*CF.A(0,0,M.R(-10-2.5*M.C(Sine/18)))*CF.A(M.R(0-2.5*M.C(Sine/18)),0,0),Alpha)
  1725. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.05*M.C(Sine/18),-.2)*CF.A(M.R(0-2.5*M.C(Sine/18)),0,M.R(0-2.5*M.C(Sine/18))),Alpha)
  1726.  
  1727. -- idle
  1728. elseif(State == 'Run')then
  1729. local wsVal = 7 / (Hum.WalkSpeed/16)
  1730. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1731. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1732. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1733. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
  1734. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
  1735. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1736. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1737. elseif(State == 'Walk')then
  1738. local wsVal = 7 / (Hum.WalkSpeed/16)
  1739. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1740. local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
  1741. RJ.C0 = RJ.C0:lerp(CF.N(0,-.075-.1*M.C(Sine/(wsVal/2)+-M.S(Sine/(wsVal/2))/7),0)*CF.A(M.R(-9-2.5*M.C(Sine/(wsVal/2))),M.R(25+10*M.C(Sine/wsVal)),Root.RotVelocity.y/75),Alpha2)
  1742. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-M.R(25)-Head.RotVelocity.y/75,0),Alpha)
  1743. LS.C0 = LS.C0:lerp(LSC0*CF.N(.1,-.2+.1*M.S(Sine/18),-.5)*CF.A(M.R(115-7*M.C(Sine/18)),M.R(0+5*M.S(Sine/18)),M.R(15)),Alpha)
  1744. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,-.2+.1*M.S(Sine/18),-.4)*CF.A(M.R(115-7*M.C(Sine/18)),M.R(0-5*M.S(Sine/18)),M.R(15)),Alpha)
  1745. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(-25-10*M.C(Sine/wsVal)),0),Alpha)
  1746. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(-25-10*M.C(Sine/wsVal)),0),Alpha)
  1747. elseif(State == 'Jump')then
  1748. local Alpha = .1
  1749. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1750. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  1751. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  1752. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1753. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1754. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1755. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1756. elseif(State == 'Fall')then
  1757. local Alpha = .1
  1758. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1759. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1760. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1761. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1762. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1763. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1764. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1765. elseif(State == 'Paralyzed')then
  1766. -- paralyzed
  1767. elseif(State == 'Sit')then
  1768. -- sit
  1769. end
  1770. end
  1771.  
  1772. for i,v in next, BloodPuddles do
  1773. local mesh = i:FindFirstChild'CylinderMesh'
  1774. BloodPuddles[i] = v + 1
  1775. if(not mesh or i.Transparency >= 1)then
  1776. i:destroy()
  1777. BloodPuddles[i] = nil
  1778. elseif(v >= Frame_Speed*4)then
  1779. local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
  1780. i.Transparency = trans
  1781. if(mesh.Scale.Z > 0)then
  1782. mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
  1783. end
  1784. else
  1785. i.Transparency = 0
  1786. end
  1787. end
  1788. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement