Advertisement
Goo345

idk

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