Advertisement
Dark_AJ1

bye c:

Feb 12th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.61 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. -- Created by Nebula_Zorua --
  153. -- Bai Bai (Bye bye Remake) --
  154. -- Bye-bye baby blue.. --
  155. -- I wish you could see the wicked truth.. --
  156. -- Caught up in a rush, it's killing you.. --
  157.  
  158. -- Discord: Nebula the Zorua#6969
  159. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  160.  
  161. wait(1/60)
  162.  
  163. --// Shortcut Variables \\--
  164. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  165. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  166. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  167. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  168. 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}
  169. local R3 = {N=Region3.new}
  170. local De = S.Debris
  171. local WS = workspace
  172. local Lght = S.Lighting
  173. local RepS = S.ReplicatedStorage
  174. local IN = Instance.new
  175. local Plrs = S.Players
  176.  
  177. --// Initializing \\--
  178. local Plr = Plrs.LocalPlayer
  179. local Char = Plr.Character
  180. local Hum = Char:FindFirstChildOfClass'Humanoid'
  181. local RArm = Char["Right Arm"]
  182. local LArm = Char["Left Arm"]
  183. local RLeg = Char["Right Leg"]
  184. local LLeg = Char["Left Leg"]
  185. local Root = Char:FindFirstChild'HumanoidRootPart'
  186. local Torso = Char.Torso
  187. local Head = Char.Head
  188. local NeutralAnims = true
  189. local Attack = false
  190. local Debounces = {Debounces={}}
  191. local Mouse = Plr:GetMouse()
  192. local Hit = {}
  193. local Sine = 0
  194. local Change = 1
  195. local GrabbedHead;
  196.  
  197. local Effects = IN("Folder",Char)
  198. Effects.Name = "Effects"
  199.  
  200.  
  201. --// Debounce System \\--
  202.  
  203.  
  204. function Debounces:New(name,cooldown)
  205. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  206. setmetatable(aaaaa,{__index = Debounces})
  207. Debounces.Debounces[name] = aaaaa
  208. return aaaaa
  209. end
  210.  
  211. function Debounces:Use(overrideUsable)
  212. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  213. if(self.Usable or overrideUsable)then
  214. self.Usable = false
  215. self.CoolingDown = true
  216. local LastUse = time()
  217. self.LastUse = LastUse
  218. delay(self.Cooldown or 2,function()
  219. if(self.LastUse == LastUse)then
  220. self.CoolingDown = false
  221. self.Usable = true
  222. end
  223. end)
  224. end
  225. end
  226.  
  227. function Debounces:Get(name)
  228. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  229. for i,v in next, Debounces.Debounces do
  230. if(i == name)then
  231. return v;
  232. end
  233. end
  234. end
  235.  
  236. function Debounces:GetProgressPercentage()
  237. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  238. if(self.CoolingDown and not self.Usable)then
  239. return math.max(
  240. math.floor(
  241. (
  242. (time()-self.LastUse)/self.Cooldown or 2
  243. )*100
  244. )
  245. )
  246. else
  247. return 100
  248. end
  249. end
  250.  
  251. --// Instance Creation Functions \\--
  252.  
  253. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  254. local Sound = IN("Sound")
  255. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  256. Sound.Pitch = pitch or 1
  257. Sound.Volume = volume or 1
  258. Sound.Looped = looped or false
  259. if(autoPlay)then
  260. coroutine.wrap(function()
  261. repeat wait() until Sound.IsLoaded
  262. Sound.Playing = autoPlay or false
  263. end)()
  264. end
  265. if(not looped and effect)then
  266. Sound.Stopped:connect(function()
  267. Sound.Volume = 0
  268. Sound:destroy()
  269. end)
  270. elseif(effect)then
  271. warn("Sound can't be looped and a sound effect!")
  272. end
  273. Sound.Parent =parent or Torso
  274. return Sound
  275. end
  276. function Part(parent,color,material,size,cframe,anchored,cancollide)
  277. local part = IN("Part")
  278. part.Parent = parent or Char
  279. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  280. part.Material = material or Enum.Material.SmoothPlastic
  281. part.TopSurface,part.BottomSurface=10,10
  282. part.Size = size or V3.N(1,1,1)
  283. part.CFrame = cframe or CF.N(0,0,0)
  284. part.CanCollide = cancollide or false
  285. part.Anchored = anchored or false
  286. return part
  287. end
  288.  
  289. function Weld(part0,part1,c0,c1)
  290. local weld = IN("Weld")
  291. weld.Parent = part0
  292. weld.Part0 = part0
  293. weld.Part1 = part1
  294. weld.C0 = c0 or CF.N()
  295. weld.C1 = c1 or CF.N()
  296. return weld
  297. end
  298.  
  299. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  300. local part = IN("SpecialMesh")
  301. part.MeshId = meshid or ""
  302. part.TextureId = textid or ""
  303. part.Scale = scale or V3.N(1,1,1)
  304. part.Offset = offset or V3.N(0,0,0)
  305. part.MeshType = meshtype or Enum.MeshType.Sphere
  306. part.Parent = parent
  307. return part
  308. end
  309.  
  310. NewInstance = function(instance,parent,properties)
  311. local inst = Instance.new(instance)
  312. inst.Parent = parent
  313. if(properties)then
  314. for i,v in next, properties do
  315. pcall(function() inst[i] = v end)
  316. end
  317. end
  318. return inst;
  319. end
  320.  
  321. function Clone(instance,parent,properties)
  322. local inst = instance:Clone()
  323. inst.Parent = parent
  324. if(properties)then
  325. for i,v in next, properties do
  326. pcall(function() inst[i] = v end)
  327. end
  328. end
  329. return inst;
  330. end
  331.  
  332. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  333. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  334. local Sound = IN("Sound")
  335. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  336. Sound.Pitch = pitch or 1
  337. Sound.Volume = volume or 1
  338. Sound.Looped = looped or false
  339. if(autoPlay)then
  340. coroutine.wrap(function()
  341. repeat wait() until Sound.IsLoaded
  342. Sound.Playing = autoPlay or false
  343. end)()
  344. end
  345. if(not looped and effect)then
  346. Sound.Stopped:connect(function()
  347. Sound.Volume = 0
  348. soundPart:destroy()
  349. end)
  350. elseif(effect)then
  351. warn("Sound can't be looped and a sound effect!")
  352. end
  353. Sound.Parent = soundPart
  354. return Sound
  355. end
  356.  
  357.  
  358. --// Extended ROBLOX tables \\--
  359. local Instance = setmetatable({AllChildren = function(where,callback,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do callback(v) end end, 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})
  360. --// Require stuff \\--
  361. function CamShake(who,times,intense,origin)
  362. coroutine.wrap(function()
  363. if(script:FindFirstChild'CamShake')then
  364. local cam = script.CamShake:Clone()
  365. cam:WaitForChild'intensity'.Value = intense
  366. cam:WaitForChild'times'.Value = times
  367.  
  368. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  369. cam.Parent = who
  370. wait()
  371. cam.Disabled = false
  372. elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
  373. local intensity = intense
  374. local cam = workspace.CurrentCamera
  375. for i = 1, times do
  376. local camDistFromOrigin
  377. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  378. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  379. elseif(typeof(origin) == 'Vector3')then
  380. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  381. end
  382. if(camDistFromOrigin)then
  383. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  384. end
  385. 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)
  386. swait()
  387. end
  388. end
  389. end)()
  390. end
  391.  
  392.  
  393. function CamShakeAll(times,intense,origin)
  394. for _,v in next, Plrs:players() do
  395. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  396. end
  397. end
  398.  
  399. function ServerScript(code)
  400. if(script:FindFirstChild'Loadstring')then
  401. local load = script.Loadstring:Clone()
  402. load:WaitForChild'Sauce'.Value = code
  403. load.Disabled = false
  404. load.Parent = workspace
  405. elseif(NS and typeof(NS) == 'function')then
  406. NS(code,workspace)
  407. else
  408. warn("no serverscripts lol")
  409. end
  410. end
  411.  
  412. function LocalOnPlayer(who,code)
  413. ServerScript([[
  414. wait()
  415. script.Parent=nil
  416. if(not _G.Http)then _G.Http = game:service'HttpService' end
  417.  
  418. local Http = _G.Http or game:service'HttpService'
  419.  
  420. local source = ]].."[["..code.."]]"..[[
  421. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  422. local asd = Http:PostAsync(link,source)
  423. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  424. local ID = Http:JSONDecode(asd).Result.Require_ID
  425. local vs = require(ID).VORTH_SCRIPT
  426. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  427. ]])
  428. end
  429.  
  430.  
  431. --// Customization \\--
  432.  
  433. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  434. local Remove_Hats = false
  435. local Remove_Clothing = false
  436. local PlayerSize = 1
  437. local DamageColor = BrickColor.new'Really red'
  438. local MusicID = 947588612
  439. local God = true
  440. local Muted = false
  441.  
  442. local WalkSpeed = 16
  443.  
  444. --// Weapon and GUI creation, and Character Customization \\--
  445.  
  446. local Halo = IN("Model",Char)
  447. Halo.Name = "Halo"
  448. local HaloHandle = NewInstance("Part",Halo,{Size=V3.N(.05,.05,.05),Transparency=1,CanCollide=false,Anchored=false,Locked=true,})
  449.  
  450. pcall(game.Destroy,Char:FindFirstChild'ReaperShadowHead')
  451.  
  452. for i = 1, 17.5 do
  453. local head = Part(Char,C3.N(0,0,0),Enum.Material.Fabric,V3.N(1.01,.5,1.01),CF.N(),false,false)
  454. head.Transparency = 0+(i-1)/17.6
  455. Mesh(head,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25))
  456. Weld(Head,head,CF.N(0,.35-(i-1)/37.5,0))
  457. end
  458.  
  459. for i = 1,320 do
  460. local part = NewInstance("Part",Halo,{BrickColor=BrickColor.new"Really black",Material=Enum.Material.Neon,Size=V3.N(0.1,0.1,0.1),Anchored=false,CanCollide=false,Locked=true})
  461. local weld = NewInstance("Weld",part,{Part0=HaloHandle,Part1=part,C0=CF.A(0,M.R(i),0)*CF.N(0,0,-.6)})
  462. end
  463.  
  464. local eye1 = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.15,.15),CF.N(),false,false)
  465. local eye1m = Mesh(eye1,Enum.MeshType.Sphere)
  466. Weld(eye1,Head,CF.N(-.09,-.26,.55))
  467.  
  468. local eye2 = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.15,.15),CF.N(),false,false)
  469. local eye2m = Mesh(eye2,Enum.MeshType.Sphere)
  470. Weld(eye2,Head,CF.N(.09,-.26,.55))
  471.  
  472. coroutine.wrap(function()
  473. while wait(3) do
  474. Tween(eye1m,{Scale=V3.N(1,.1,1)},.25,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,true)
  475. Tween(eye2m,{Scale=V3.N(1,.1,1)},.25,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,true)
  476. end
  477. end)()
  478.  
  479. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  480. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  481.  
  482.  
  483. for side = 1,2 do
  484. local LastPart = Head;
  485.  
  486. for i = 1,34 do
  487. local mult = (1-(i/38))
  488. if(LastPart == Head)then
  489. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  490. Weld(LastPart,Horn,CF.N((side == 1 and .3 or -.3),.3,-.2)*CF.A(0,M.R((side == 1 and -5 or 5)),0))
  491. LastPart = Horn
  492. else
  493. local Horn = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false)
  494. Weld(LastPart,Horn,CF.N(0,Horn.Size.Y/2,0)*CF.A(M.R(7),M.R(side == 1 and 3 or -3),0))
  495. LastPart = Horn
  496. end
  497. end
  498. end
  499.  
  500. local Music = Sound(Char,MusicID,1,3,true,false,true)
  501. Music.Name = 'Music'
  502.  
  503. --// Stop animations \\--
  504. for _,v in next, Hum:GetPlayingAnimationTracks() do
  505. v:Stop();
  506. end
  507.  
  508. pcall(game.Destroy,Char:FindFirstChild'Animate')
  509. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  510.  
  511. --// Joints \\--
  512.  
  513. 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)})
  514. 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)})
  515. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  516. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  517. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  518. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  519. local HW = NewInstance('Motor',Char,{Part0=Head,Part1=HaloHandle,C0=CF.N(0,.5,0)})
  520.  
  521. local LSC0 = LS.C0
  522. local RSC0 = RS.C0
  523. local NKC0 = NK.C0
  524. local LHC0 = LH.C0
  525. local RHC0 = RH.C0
  526. local RJC0 = RJ.C0
  527.  
  528. --// Artificial HB \\--
  529.  
  530. local ArtificialHB = IN("BindableEvent", script)
  531. ArtificialHB.Name = "Heartbeat"
  532.  
  533. script:WaitForChild("Heartbeat")
  534.  
  535. local tf = 0
  536. local allowframeloss = false
  537. local tossremainder = false
  538. local lastframe = tick()
  539. local frame = 1/Frame_Speed
  540. ArtificialHB:Fire()
  541.  
  542. game:GetService("RunService").Heartbeat:connect(function(s, p)
  543. tf = tf + s
  544. if tf >= frame then
  545. if allowframeloss then
  546. script.Heartbeat:Fire()
  547. lastframe = tick()
  548. else
  549. for i = 1, math.floor(tf / frame) do
  550. ArtificialHB:Fire()
  551. end
  552. lastframe = tick()
  553. end
  554. if tossremainder then
  555. tf = 0
  556. else
  557. tf = tf - frame * math.floor(tf / frame)
  558. end
  559. end
  560. end)
  561.  
  562. function swait(num)
  563. if num == 0 or num == nil then
  564. ArtificialHB.Event:wait()
  565. else
  566. for i = 0, num do
  567. ArtificialHB.Event:wait()
  568. end
  569. end
  570. end
  571.  
  572.  
  573. --// Effect Function(s) \\--
  574.  
  575. function Bezier(startpos, pos2, pos3, endpos, t)
  576. local A = startpos:lerp(pos2, t)
  577. local B = pos2:lerp(pos3, t)
  578. local C = pos3:lerp(endpos, t)
  579. local lerp1 = A:lerp(B, t)
  580. local lerp2 = B:lerp(C, t)
  581. local cubic = lerp1:lerp(lerp2, t)
  582. return cubic
  583. end
  584.  
  585. function SphereFX(duration,color,scale,pos,endScale,increment)
  586. return Effect{
  587. Effect='ResizeAndFade',
  588. Color=color,
  589. Size=scale,
  590. Mesh={MeshType=Enum.MeshType.Sphere},
  591. CFrame=pos,
  592. FXSettings={
  593. EndSize=endScale,
  594. EndIsIncrement=increment
  595. }
  596. }
  597. end
  598.  
  599. function BlastFX(duration,color,scale,pos,endScale,increment)
  600. return Effect{
  601. Effect='ResizeAndFade',
  602. Color=color,
  603. Size=scale,
  604. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  605. CFrame=pos,
  606. FXSettings={
  607. EndSize=endScale,
  608. EndIsIncrement=increment
  609. }
  610. }
  611. end
  612.  
  613. function BlockFX(duration,color,scale,pos,endScale,increment)
  614. return Effect{
  615. Effect='ResizeAndFade',
  616. Color=color,
  617. Size=scale,
  618. CFrame=pos,
  619. FXSettings={
  620. EndSize=endScale,
  621. EndIsIncrement=increment
  622. }
  623. }
  624. end
  625.  
  626. function ShootBullet(data)
  627. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  628. local Size = data.Size or V3.N(2,2,2)
  629. local Color = data.Color or BrickColor.new'Crimson'
  630. local StudsPerFrame = data.Speed or 10
  631. local Shape = data.Shape or 'Ball'
  632. local Frames = data.Frames or 160
  633. local Pos = data.Origin or Torso.CFrame
  634. local Direction = data.Direction or Mouse.Hit
  635. local Material = data.Material or Enum.Material.Neon
  636. local OnHit = data.HitFunction or function(hit,pos)
  637. Effect{
  638. Effect='ResizeAndFade',
  639. Color=Color,
  640. Size=V3.N(10,10,10),
  641. Mesh={MeshType=Enum.MeshType.Sphere},
  642. CFrame=CF.N(pos),
  643. FXSettings={
  644. EndSize=V3.N(.05,.05,.05),
  645. EndIsIncrement=true
  646. }
  647. }
  648. for i = 1, 5 do
  649. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  650. Effect{
  651. Effect='Fade',
  652. Frames=65,
  653. Size=V3.N(5,5,10),
  654. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  655. Mesh = {MeshType=Enum.MeshType.Sphere},
  656. Material=Enum.Material.Neon,
  657. Color=Color,
  658. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  659. }
  660. end
  661. end
  662.  
  663. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  664. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  665. if(Shape == 'Ball')then
  666. BMesh.MeshType = Enum.MeshType.Sphere
  667. elseif(Shape == 'Head')then
  668. BMesh.MeshType = Enum.MeshType.Head
  669. elseif(Shape == 'Cylinder')then
  670. BMesh.MeshType = Enum.MeshType.Cylinder
  671. end
  672.  
  673. coroutine.wrap(function()
  674. for i = 1, Frames+1 do
  675. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  676. if(hit)then
  677. OnHit(hit,pos,norm,dist)
  678. break;
  679. else
  680. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  681. end
  682. swait()
  683. end
  684. Bullet:destroy()
  685. end)()
  686.  
  687. end
  688.  
  689.  
  690. function Zap(data)
  691. local sCF,eCF = data.StartCFrame,data.EndCFrame
  692. assert(sCF,"You need a start CFrame!")
  693. assert(eCF,"You need an end CFrame!")
  694. local parts = data.PartCount or 15
  695. local zapRot = data.ZapRotation or {-5,5}
  696. local startThick = data.StartSize or 3;
  697. local endThick = data.EndSize or startThick/2;
  698. local color = data.Color or BrickColor.new'Electric blue'
  699. local delay = data.Delay or 35
  700. local delayInc = data.DelayInc or 0
  701. local lastLightning;
  702. local MagZ = (sCF.p - eCF.p).magnitude
  703. local thick = startThick
  704. local inc = (startThick/parts)-(endThick/parts)
  705.  
  706. for i = 1, parts do
  707. local pos = sCF.p
  708. if(lastLightning)then
  709. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  710. end
  711. delay = delay + delayInc
  712. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  713. 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)))
  714. if(parts == i)then
  715. local MagZ = (pos-eCF.p).magnitude
  716. zapPart.Size = V3.N(endThick,endThick,MagZ)
  717. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  718. 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)}}
  719. else
  720. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  721. end
  722.  
  723. lastLightning = zapPart
  724. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  725.  
  726. thick=thick-inc
  727.  
  728. end
  729. end
  730.  
  731. function Zap2(data)
  732. local Color = data.Color or BrickColor.new'Electric blue'
  733. local StartPos = data.Start or Torso.Position
  734. local EndPos = data.End or Mouse.Hit.p
  735. local SegLength = data.SegL or 2
  736. local Thicc = data.Thickness or 0.5
  737. local Fades = data.Fade or 45
  738. local Parent = data.Parent or Effects
  739. local MaxD = data.MaxDist or 200
  740. local Branch = data.Branches or false
  741. local Material = data.Material or Enum.Material.Neon
  742. local Raycasts = data.Raycasts or false
  743. local Offset = data.Offset or {0,360}
  744. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  745. if((StartPos-EndPos).magnitude > MaxD)then
  746. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  747. end
  748. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  749. if(Raycasts)then
  750. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  751. end
  752. local segments = dist/SegLength
  753. local model = IN("Model",Parent)
  754. model.Name = 'Lightning'
  755. local Last;
  756. for i = 1, segments do
  757. local size = (segments-i)/25
  758. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  759. if(AddMesh)then IN("CylinderMesh",prt) end
  760. if(Last and math.floor(segments) == i)then
  761. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  762. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  763. 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)
  764. elseif(not Last)then
  765. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  766. else
  767. 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)
  768. end
  769. Last = prt
  770. if(Branch)then
  771. local choice = M.RNG(1,7+((segments-i)*2))
  772. if(choice == 1)then
  773. local LastB;
  774. for i2 = 1,M.RNG(2,5) do
  775. local size2 = ((segments-i)/35)/i2
  776. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  777. if(AddMesh)then IN("CylinderMesh",prt) end
  778. if(not LastB)then
  779. 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)
  780. else
  781. 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)
  782. end
  783. LastB = prt
  784. end
  785. end
  786. end
  787. end
  788. if(Fades > 0)then
  789. coroutine.wrap(function()
  790. for i = 1, Fades do
  791. for _,v in next, model:children() do
  792. if(v:IsA'BasePart')then
  793. v.Transparency = (i/Fades)
  794. end
  795. end
  796. swait()
  797. end
  798. model:destroy()
  799. end)()
  800. else
  801. S.Debris:AddItem(model,.01)
  802. end
  803. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  804. end
  805.  
  806. function Tween(obj,props,time,easing,direction,repeats,backwards)
  807. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  808. local tween = S.TweenService:Create(obj, info, props)
  809.  
  810. tween:Play()
  811. end
  812.  
  813. function Effect(data)
  814. local FX = data.Effect or 'ResizeAndFade'
  815. local Parent = data.Parent or Effects
  816. local Color = data.Color or C3.N(0,0,0)
  817. local Size = data.Size or V3.N(1,1,1)
  818. local MoveDir = data.MoveDirection or nil
  819. local MeshData = data.Mesh or nil
  820. local SndData = data.Sound or nil
  821. local Frames = data.Frames or 45
  822. local Manual = data.Manual or nil
  823. local Material = data.Material or nil
  824. local CFra = data.CFrame or Torso.CFrame
  825. local Settings = data.FXSettings or {}
  826. local Shape = data.Shape or Enum.PartType.Block
  827. local Snd,Prt,Msh;
  828. local RotInc = data.RotInc or {0,0,0}
  829. if(typeof(RotInc) == 'number')then
  830. RotInc = {RotInc,RotInc,RotInc}
  831. end
  832. coroutine.wrap(function()
  833. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  834. Prt = Manual
  835. else
  836. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  837. Prt.Shape = Shape
  838. end
  839. if(typeof(MeshData) == 'table')then
  840. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  841. elseif(typeof(MeshData) == 'Instance')then
  842. Msh = MeshData:Clone()
  843. Msh.Parent = Prt
  844. elseif(Shape == Enum.PartType.Block)then
  845. Msh = Mesh(Prt,Enum.MeshType.Brick)
  846. end
  847. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  848. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  849. end
  850. if(Snd)then
  851. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  852. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  853. end
  854. Size = (Msh and Msh.Scale or Size)
  855. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  856.  
  857. local MoveSpeed = nil;
  858. if(MoveDir)then
  859. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  860. end
  861. if(FX ~= 'Arc')then
  862. for Frame = 1, Frames do
  863. if(FX == "Fade")then
  864. Prt.Transparency = (Frame/Frames)
  865. elseif(FX == "Resize")then
  866. if(not Settings.EndSize)then
  867. Settings.EndSize = V3.N(0,0,0)
  868. end
  869. if(Settings.EndIsIncrement)then
  870. if(Msh)then
  871. Msh.Scale = Msh.Scale + Settings.EndSize
  872. else
  873. Prt.Size = Prt.Size + Settings.EndSize
  874. end
  875. else
  876. if(Msh)then
  877. Msh.Scale = Msh.Scale - grow/Frames
  878. else
  879. Prt.Size = Prt.Size - grow/Frames
  880. end
  881. end
  882. elseif(FX == "ResizeAndFade")then
  883. if(not Settings.EndSize)then
  884. Settings.EndSize = V3.N(0,0,0)
  885. end
  886. if(Settings.EndIsIncrement)then
  887. if(Msh)then
  888. Msh.Scale = Msh.Scale + Settings.EndSize
  889. else
  890. Prt.Size = Prt.Size + Settings.EndSize
  891. end
  892. else
  893. if(Msh)then
  894. Msh.Scale = Msh.Scale - grow/Frames
  895. else
  896. Prt.Size = Prt.Size - grow/Frames
  897. end
  898. end
  899. Prt.Transparency = (Frame/Frames)
  900. end
  901. if(Settings.RandomizeCFrame)then
  902. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  903. else
  904. Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc))
  905. end
  906. if(MoveDir and MoveSpeed)then
  907. local Orientation = Prt.Orientation
  908. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  909. Prt.Orientation = Orientation
  910. end
  911. swait()
  912. end
  913. Prt:destroy()
  914. else
  915. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  916. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  917. if(start and endP)then
  918. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  919. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  920. for Frame = 0, 1, (Settings.Speed or 0.01) do
  921. if(Settings.Home)then
  922. endP = Settings.Home.CFrame
  923. end
  924. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  925. end
  926. if(Settings.RemoveOnGoal)then
  927. Prt:destroy()
  928. end
  929. else
  930. Prt:destroy()
  931. assert(start,"You need a start position!")
  932. assert(endP,"You need a start position!")
  933. end
  934. end
  935. end)()
  936. return Prt,Msh,Snd
  937. end
  938. function SoulSteal(whom)
  939. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  940. print(torso)
  941. if(torso and torso:IsA'BasePart')then
  942. local Model = Instance.new("Model",Effects)
  943. Model.Name = whom.Name.."'s Soul"
  944. whom:BreakJoints()
  945. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  946. Soul.Name = 'Head'
  947. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  948. Effect{
  949. Effect="Arc",
  950. Manual = Soul,
  951. FXSettings={
  952. Start=torso.CFrame,
  953. Home = Torso,
  954. RemoveOnGoal = true,
  955. }
  956. }
  957. local lastPoint = Soul.CFrame.p
  958.  
  959. for i = 0, 1, 0.01 do
  960. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  961. local mag = (lastPoint - Soul.Position).magnitude
  962. Effect{
  963. Effect = "Fade",
  964. CFrame = point * CF.N(0, mag/2, 0),
  965. Size = V3.N(.5,mag+.5,.5),
  966. Color = Soul.BrickColor
  967. }
  968. lastPoint = Soul.CFrame.p
  969. swait()
  970. end
  971. for i = 1, 5 do
  972. Effect{
  973. Effect="Fade",
  974. Color = BrickColor.new'Really red',
  975. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  976. }
  977. end
  978. end
  979. end
  980.  
  981. --// Other Functions \\ --
  982.  
  983. function CastRay(startPos,endPos,range,ignoreList)
  984. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  985. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  986. return part,pos,norm,(pos and (startPos-pos).magnitude)
  987. end
  988.  
  989. function getRegion(point,range,ignore)
  990. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  991. end
  992.  
  993. function clerp(startCF,endCF,alpha)
  994. return startCF:lerp(endCF, alpha)
  995. end
  996.  
  997. function GetTorso(char)
  998. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  999. end
  1000.  
  1001.  
  1002. function ShowDamage(Pos, Text, Time, Color)
  1003. coroutine.wrap(function()
  1004. local Rate = (1 / Frame_Speed)
  1005. local Pos = (Pos or Vector3.new(0, 0, 0))
  1006. local Text = (Text or "")
  1007. local Time = (Time or 2)
  1008. local Color = (Color or Color3.new(1, 0, 1))
  1009. local EffectPart = NewInstance("Part",Effects,{
  1010. Material=Enum.Material.SmoothPlastic,
  1011. Reflectance = 0,
  1012. Transparency = 1,
  1013. BrickColor = BrickColor.new(Color),
  1014. Name = "Effect",
  1015. Size = Vector3.new(0,0,0),
  1016. Anchored = true,
  1017. CFrame = CF.N(Pos)
  1018. })
  1019. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  1020. Size = UDim2.new(1.25, 0, 1.25, 0),
  1021. Adornee = EffectPart,
  1022. })
  1023. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  1024. BackgroundTransparency = 1,
  1025. Size = UDim2.new(1, 0, 1, 0),
  1026. Text = Text,
  1027. Font = "Bodoni",
  1028. TextColor3 = Color,
  1029. TextStrokeColor3 = Color3.new(0,0,0),
  1030. TextStrokeTransparency=0,
  1031. TextScaled = true,
  1032. })
  1033. S.Debris:AddItem(EffectPart, (Time))
  1034. EffectPart.Parent = workspace
  1035. delay(0, function()
  1036. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1037. local Frames = (Time / Rate)
  1038. for Frame = 1, Frames do
  1039. swait()
  1040. local Percent = (Frame / Frames)
  1041. TextLabel.TextTransparency = Percent
  1042. TextLabel.TextStrokeTransparency = Percent
  1043. end
  1044. if EffectPart and EffectPart.Parent then
  1045. EffectPart:Destroy()
  1046. end
  1047. end) end)()
  1048. end
  1049.  
  1050. function DealDamage(data)
  1051. local Who = data.Who;
  1052. local MinDam = data.MinimumDamage or 15;
  1053. local MaxDam = data.MaximumDamage or 30;
  1054. local MaxHP = data.MaxHP or 1e5;
  1055.  
  1056. local DB = data.Debounce or .2;
  1057.  
  1058. local CritData = data.Crit or {}
  1059. local CritChance = CritData.Chance or 0;
  1060. local CritMultiplier = CritData.Multiplier or 1;
  1061.  
  1062. local DamageEffects = data.DamageFX or {}
  1063. local DamageType = DamageEffects.Type or "Normal"
  1064. local DeathFunction = DamageEffects.DeathFunction
  1065.  
  1066. assert(Who,"Specify someone to damage!")
  1067.  
  1068. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  1069. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  1070.  
  1071. local canHit = true
  1072. if(Humanoid)then
  1073. for _, p in pairs(Hit) do
  1074. if p[1] == Humanoid then
  1075. if(time() - p[2] <= DB) then
  1076. canHit = false
  1077. else
  1078. Hit[_] = nil
  1079. end
  1080. end
  1081. end
  1082. if(canHit)then
  1083. table.insert(Hit,{Humanoid,time()})
  1084. local HitTorso = GetTorso(Who)
  1085. local player = S.Players:GetPlayerFromCharacter(Who)
  1086. if(not player or player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then
  1087. if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
  1088. print'Got kill'
  1089. Humanoid.Health = 0;
  1090. Who:BreakJoints();
  1091. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  1092. else
  1093. local c = Instance.new("ObjectValue",Hum)
  1094. c.Name = "creator"
  1095. c.Value = Plr
  1096. S.Debris:AddItem(c,0.35)
  1097. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  1098. 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)
  1099. end
  1100. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
  1101. Humanoid.Health = Humanoid.Health - DoneDamage
  1102.  
  1103. if(DamageType == 'Knockback' and HitTorso)then
  1104. local up = DamageEffects.KnockUp or 25
  1105. local back = DamageEffects.KnockBack or 25
  1106. local origin = DamageEffects.Origin or Root
  1107. local decay = DamageEffects.Decay or .5;
  1108.  
  1109. local bfos = Instance.new("BodyVelocity",HitTorso)
  1110. bfos.P = 20000
  1111. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1112. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1113. S.Debris:AddItem(bfos,decay)
  1114. end
  1115. end
  1116. end
  1117. end
  1118. end
  1119. end
  1120.  
  1121. function AOEDamage(where,range,options)
  1122. local hit = {}
  1123. for _,v in next, getRegion(where,range,{Char}) do
  1124. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
  1125. local callTable = {Who=v.Parent}
  1126. hit[v.Parent] = true
  1127. for _,v in next, options do callTable[_] = v end
  1128. DealDamage(callTable)
  1129. end
  1130. end
  1131. return hit
  1132. end
  1133.  
  1134. function AOEHeal(where,range,amount)
  1135. local healed = {}
  1136. for _,v in next, getRegion(where,range,{Char}) do
  1137. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1138. if(hum and not healed[hum])then
  1139. hum.Health = hum.Health + amount
  1140. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1141. 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)
  1142. end
  1143. end
  1144. end
  1145. end
  1146.  
  1147. function ClosestHumanoid(pos,range)
  1148. local mag,closest = math.huge;
  1149. for _,v in next, getRegion(pos,range or 10,{Char}) do
  1150. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
  1151. if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then
  1152. mag = (v.CFrame.p-pos).magnitude
  1153. closest = hum
  1154. end
  1155. end
  1156. return closest,(closest and GetTorso(closest.Parent) or nil)
  1157. end
  1158.  
  1159. function ByeBye()
  1160. local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
  1161.  
  1162. if(torso)then
  1163. local who = torso.Parent
  1164. local doAttack = false
  1165. Instance.AllChildren(who,function(v)
  1166. if(v.Name:lower():find"arm")then
  1167. doAttack = true
  1168. end
  1169. end, true)
  1170. if(not doAttack)then return end
  1171. WalkSpeed = 0
  1172. Hum.JumpPower = 0
  1173. Attack = true
  1174. NeutralAnims = false
  1175. Hum.AutoRotate = false
  1176. who.Parent = Char
  1177. local oRoot
  1178. coroutine.resume(coroutine.create(function()
  1179. repeat
  1180. swait()
  1181. torso.Anchored = true
  1182. Root.Anchored = true
  1183. until not Attack
  1184. Root.Anchored = false
  1185. torso.Anchored = false
  1186. Hum.AutoRotate = true
  1187. end))
  1188. torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
  1189. if(humanoid.RigType == Enum.HumanoidRigType.R6)then
  1190. for i = 0, 6, 0.1 do
  1191. swait()
  1192. local Alpha = .1
  1193. RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
  1194. LH.C0 = clerp(LH.C0,CFrame.new(-0.496486187, -0.990816116, 0.0216190033, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1195. RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154640805, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1196. LS.C0 = clerp(LS.C0,CFrame.new(-1.41749763, 0.558253706, 0.0724307299, 0.984057605, 0.177849606, 0.000124168335, -0.00111837965, 0.00688624149, -0.999975622, -0.177846164, 0.984033704, 0.00697536254),Alpha)
  1197. RS.C0 = clerp(RS.C0,CFrame.new(1.41673875, 0.529312432, -0.161725938, 0.9891271, -0.147063792, -0.000118533542, 0.000924787659, 0.00702595245, -0.999974966, 0.147060931, 0.989102244, 0.00708556268),Alpha)
  1198. NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha)
  1199. end
  1200. local RABC = (who:FindFirstChild'Right Arm' or who:FindFirstChild'RightUpperArm' or who:FindFirstChild'RightLowerArm' or who:FindFirstChild'RightHand' or IN("Part")).Color
  1201. local LABC = (who:FindFirstChild'Left Arm' or who:FindFirstChild'LeftUpperArm' or who:FindFirstChild'LeftLowerArm' or who:FindFirstChild'LeftHand' or IN("Part")).Color
  1202. Sound(Root,1093102664,.85,5,false,true,true)
  1203. Sound(Root,429400881,1,1,false,true,true)
  1204. local FRArm = NewInstance('Part',Effects,{Size=V3.N(1,2,1),Color=RABC,Material='Plastic',CanCollide=false,Anchored=false,Locked=true})
  1205. Mesh(FRArm,Enum.MeshType.FileMesh,"rbxasset://fonts/rightarm.mesh","",V3.N(1,1,1),V3.N())
  1206. local FLArm = NewInstance('Part',Effects,{Size=V3.N(1,2,1),Color=LABC,Material='Plastic',CanCollide=false,Anchored=false,Locked=true})
  1207. Mesh(FLArm,Enum.MeshType.FileMesh,"rbxasset://fonts/leftarm.mesh","",V3.N(1,1,1),V3.N())
  1208. local FRArmW = NewInstance('Weld',FRArm,{Part0=RArm,Part1=FRArm,C0=CF.N(0,-1.25,.65)*CF.A(M.R(90),0,0)})
  1209. local FLArmW = NewInstance('Weld',FLArm,{Part0=LArm,Part1=FLArm,C0=CF.N(0,-1.25,.65)*CF.A(M.R(90),0,0)})
  1210. Instance.AllChildren(who,function(v)
  1211. if(v.Name:lower():find"arm")then
  1212. v:destroy()
  1213. end
  1214. end, true)
  1215. for i = 0, 4, 0.1 do
  1216. swait()
  1217. local Alpha = .3
  1218. RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
  1219. LH.C0 = clerp(LH.C0,CFrame.new(-0.496486187, -0.990816116, 0.0216190033, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1220. RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154640805, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1221. LS.C0 = clerp(LS.C0,CFrame.new(-1.37231135, 0.556628764, -0.166760147, 0.49629873, 0.868151784, 0.000124280094, -0.00599422446, 0.00356988632, -0.999975622, -0.86813122, 0.496285975, 0.0069756275),Alpha)
  1222. RS.C0 = clerp(RS.C0,CFrame.new(1.36567199, 0.528297484, -0.299411327, 0.523141146, -0.852246106, -0.000118162308, 0.00597720221, 0.00380767859, -0.999974966, 0.852225304, 0.523127258, 0.00708600134),Alpha)
  1223. NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha)
  1224. end
  1225. for i = 0, 6, 0.1 do
  1226. swait()
  1227. local Alpha = .1
  1228. RJ.C0 = clerp(RJ.C0,CFrame.new(0.0228011385, 0.00629060203, 1.12518191, 0.0291582551, 0.00628361246, 0.999555051, -2.14977626e-06, 0.99998033, -0.00628622202, -0.99957478, 0.00018114649, 0.0291576944),Alpha)
  1229. LH.C0 = clerp(LH.C0,CFrame.new(-0.496488124, -0.990816116, 0.0216191448, 0.999878168, 0, 0.0156121869, -9.81426565e-05, 0.99998033, 0.00628552027, -0.0156118795, -0.00628628489, 0.999858439),Alpha)
  1230. RH.C0 = clerp(RH.C0,CFrame.new(0.23371309, -1.09946191, -0.482504547, -0.303610921, -0.951285303, 0.0536354929, 0.952085018, -0.305077851, -0.0214900374, 0.0368061513, 0.044540938, 0.998329341),Alpha)
  1231. LS.C0 = clerp(LS.C0,CFrame.new(-1.45626378, 0.69259727, 0.0175086595, 0.945088685, 0.326360583, 0.0172104035, -0.326625437, 0.945021749, 0.015810458, -0.011104295, -0.020563636, 0.999726892),Alpha)
  1232. RS.C0 = clerp(RS.C0,CFrame.new(1.08771467, 0.499947339, 0.367133379, -0.0391258858, -0.881180465, -0.471158326, 0.999125242, -0.0275285728, -0.0314841382, 0.014772892, -0.471978068, 0.881486535),Alpha)
  1233. NK.C0 = clerp(NK.C0,CFrame.new(-5.14835119e-06, 1.49894261, -0.0143871643, 0.204809442, 0.0562733002, -0.977182865, 0.00615302799, 0.998252332, 0.0587762482, 0.978782475, -0.0180505645, 0.204105228),Alpha)
  1234. end
  1235. Sound(Root,429400881,1,1,false,true,true)
  1236. torso:destroy()
  1237. who.Parent = workspace
  1238. for i = 0, 4, 0.1 do
  1239. swait()
  1240. local Alpha = .4
  1241. RJ.C0 = clerp(RJ.C0,CFrame.new(0.0181181245, 0.133765578, 0.82536447, 0.0327006169, 0.0161891486, 0.999334037, 0.633923531, 0.772680283, -0.0332608707, -0.772704244, 0.634588957, 0.0150044383),Alpha)
  1242. LH.C0 = clerp(LH.C0,CFrame.new(-0.771793485, -1.32007217, 0.06628979, 0.26972881, 0.962679863, 0.0222291686, -0.962770581, 0.269182026, 0.0247809235, 0.0178724024, -0.0280857105, 0.999445796),Alpha)
  1243. RH.C0 = clerp(RH.C0,CFrame.new(0.755022645, -1.37733042, -0.499431878, 0.36903578, -0.928792715, 0.034014143, 0.929390252, 0.368510485, -0.0208280198, 0.00681034196, 0.0392986946, 0.999204397),Alpha)
  1244. LS.C0 = clerp(LS.C0,CFrame.new(-1.30144882, 0.605753839, 0.0162189379, 0.771496534, 0.63600105, 0.017206654, -0.636225641, 0.771341264, 0.0158053432, -0.0032199882, -0.0231410768, 0.999727011),Alpha)
  1245. RS.C0 = clerp(RS.C0,CFrame.new(1.28942716, 0.343831509, 0.537701666, 0.553924322, -0.686421931, -0.471161366, 0.767158687, 0.640684545, -0.0314797312, 0.323474079, -0.344018102, 0.881485164),Alpha)
  1246. NK.C0 = clerp(NK.C0,CFrame.new(-1.08331442e-05, 1.49893129, -0.0143847037, 0.204810485, 0.0562703013, -0.977182984, 0.00615352392, 0.998252511, 0.0587732494, 0.978782296, -0.0180504955, 0.204106256),Alpha)
  1247. end
  1248. for i = 0, 4, 0.1 do
  1249. swait()
  1250. local Alpha = .1
  1251. RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
  1252. LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990816116, 0.0216189735, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1253. RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154631268, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1254. LS.C0 = clerp(LS.C0,CFrame.new(-1.47210145, 0.463549852, 0.020456871, 0.0483208001, 0.998709798, 0.0156119233, -0.99881655, 0.0482276753, 0.00628757617, 0.00552653754, -0.0158972703, 0.999858439),Alpha)
  1255. RS.C0 = clerp(RS.C0,CFrame.new(1.48960721, 0.46071431, -0.0257698279, 0.0482511185, -0.998713255, 0.0156119233, 0.99881053, 0.0483541042, 0.00628757617, -0.00703438697, 0.0152899725, 0.999858439),Alpha)
  1256. NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha)
  1257. end
  1258. FLArm.CanCollide = true
  1259. FRArm.CanCollide = true
  1260. FRArm.Parent = workspace
  1261. FLArm.Parent = workspace
  1262. FRArmW:destroy();
  1263. FLArmW:destroy();
  1264. delay(2, function()
  1265. for i = 0, 1, .05 do
  1266. FLArm.Transparency = i
  1267. FRArm.Transparency = i
  1268. swait()
  1269. end
  1270. FLArm:destroy()
  1271. FRArm:destroy()
  1272. end)
  1273. for i = 0, 3, 0.1 do
  1274. swait()
  1275. local Alpha = .1
  1276. RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
  1277. LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990816116, 0.0216189735, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1278. RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154631268, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1279. LS.C0 = clerp(LS.C0,CFrame.new(-1.47210145, 0.463549852, 0.020456871, 0.0483208001, 0.998709798, 0.0156119233, -0.99881655, 0.0482276753, 0.00628757617, 0.00552653754, -0.0158972703, 0.999858439),Alpha)
  1280. RS.C0 = clerp(RS.C0,CFrame.new(1.48960721, 0.46071431, -0.0257698279, 0.0482511185, -0.998713255, 0.0156119233, 0.99881053, 0.0483541042, 0.00628757617, -0.00703438697, 0.0152899725, 0.999858439),Alpha)
  1281. NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha)
  1282. end
  1283. else
  1284. for i = 0, 6, 0.1 do
  1285. swait()
  1286. local Alpha = .1
  1287. RJ.C0 = clerp(RJ.C0,CFrame.new(0.0228011385, 0.00629060203, 1.12518191, 0.0291582551, 0.00628361246, 0.999555051, -2.14977626e-06, 0.99998033, -0.00628622202, -0.99957478, 0.00018114649, 0.0291576944),Alpha)
  1288. LH.C0 = clerp(LH.C0,CFrame.new(-0.496488124, -0.990816116, 0.0216191448, 0.999878168, 0, 0.0156121869, -9.81426565e-05, 0.99998033, 0.00628552027, -0.0156118795, -0.00628628489, 0.999858439),Alpha)
  1289. RH.C0 = clerp(RH.C0,CFrame.new(0.23371309, -1.09946191, -0.482504547, -0.303610921, -0.951285303, 0.0536354929, 0.952085018, -0.305077851, -0.0214900374, 0.0368061513, 0.044540938, 0.998329341),Alpha)
  1290. LS.C0 = clerp(LS.C0,CFrame.new(-1.45626378, 0.69259727, 0.0175086595, 0.945088685, 0.326360583, 0.0172104035, -0.326625437, 0.945021749, 0.015810458, -0.011104295, -0.020563636, 0.999726892),Alpha)
  1291. RS.C0 = clerp(RS.C0,CFrame.new(1.08771467, 0.499947339, 0.367133379, -0.0391258858, -0.881180465, -0.471158326, 0.999125242, -0.0275285728, -0.0314841382, 0.014772892, -0.471978068, 0.881486535),Alpha)
  1292. NK.C0 = clerp(NK.C0,CFrame.new(-5.14835119e-06, 1.49894261, -0.0143871643, 0.204809442, 0.0562733002, -0.977182865, 0.00615302799, 0.998252332, 0.0587762482, 0.978782475, -0.0180505645, 0.204105228),Alpha)
  1293. end
  1294. Sound(Root,429400881,1,1,false,true,true)
  1295. torso:destroy()
  1296. who.Parent = workspace
  1297. for i = 0, 4, 0.1 do
  1298. swait()
  1299. local Alpha = .4
  1300. RJ.C0 = clerp(RJ.C0,CFrame.new(0.0181181245, 0.133765578, 0.82536447, 0.0327006169, 0.0161891486, 0.999334037, 0.633923531, 0.772680283, -0.0332608707, -0.772704244, 0.634588957, 0.0150044383),Alpha)
  1301. LH.C0 = clerp(LH.C0,CFrame.new(-0.771793485, -1.32007217, 0.06628979, 0.26972881, 0.962679863, 0.0222291686, -0.962770581, 0.269182026, 0.0247809235, 0.0178724024, -0.0280857105, 0.999445796),Alpha)
  1302. RH.C0 = clerp(RH.C0,CFrame.new(0.755022645, -1.37733042, -0.499431878, 0.36903578, -0.928792715, 0.034014143, 0.929390252, 0.368510485, -0.0208280198, 0.00681034196, 0.0392986946, 0.999204397),Alpha)
  1303. LS.C0 = clerp(LS.C0,CFrame.new(-1.30144882, 0.605753839, 0.0162189379, 0.771496534, 0.63600105, 0.017206654, -0.636225641, 0.771341264, 0.0158053432, -0.0032199882, -0.0231410768, 0.999727011),Alpha)
  1304. RS.C0 = clerp(RS.C0,CFrame.new(1.28942716, 0.343831509, 0.537701666, 0.553924322, -0.686421931, -0.471161366, 0.767158687, 0.640684545, -0.0314797312, 0.323474079, -0.344018102, 0.881485164),Alpha)
  1305. NK.C0 = clerp(NK.C0,CFrame.new(-1.08331442e-05, 1.49893129, -0.0143847037, 0.204810485, 0.0562703013, -0.977182984, 0.00615352392, 0.998252511, 0.0587732494, 0.978782296, -0.0180504955, 0.204106256),Alpha)
  1306. end
  1307. end
  1308. WalkSpeed = 16
  1309. Hum.AutoRotate = true
  1310. Hum.JumpPower = 50
  1311. Attack = false
  1312. NeutralAnims = true
  1313. end
  1314. end
  1315.  
  1316. function AttackTemp()
  1317. local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
  1318.  
  1319. if(torso)then
  1320. local who = torso.Parent
  1321. WalkSpeed = 0
  1322. Hum.JumpPower = 0
  1323. Attack = true
  1324. NeutralAnims = false
  1325. Hum.AutoRotate = false
  1326. who.Parent = Char
  1327. local oRoot
  1328. coroutine.resume(coroutine.create(function()
  1329. repeat
  1330. swait()
  1331. torso.Anchored = true
  1332. Root.Anchored = true
  1333. until not Attack
  1334. Root.Anchored = false
  1335. torso.Anchored = false
  1336. Hum.AutoRotate = true
  1337. end))
  1338. torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
  1339. WalkSpeed = 16
  1340. Hum.AutoRotate = true
  1341. Hum.JumpPower = 50
  1342. Attack = false
  1343. NeutralAnims = true
  1344. end
  1345. end
  1346.  
  1347. function Decapitate()
  1348. local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
  1349.  
  1350. if(torso)then
  1351. local who = torso.Parent
  1352. local haed = who:findFirstChild'Head'
  1353. if(not haed)then return end
  1354. WalkSpeed = 0
  1355. Hum.JumpPower = 0
  1356. Attack = true
  1357. NeutralAnims = false
  1358. Hum.AutoRotate = false
  1359. who.Parent = Char
  1360. coroutine.resume(coroutine.create(function()
  1361. repeat
  1362. swait()
  1363. torso.Anchored = true
  1364. Root.Anchored = true
  1365. until not Attack
  1366. Root.Anchored = false
  1367. torso.Anchored = false
  1368. Hum.AutoRotate = true
  1369. end))
  1370. torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
  1371. for i = 0, 4, 0.1 do
  1372. swait()
  1373. local Alpha = .1
  1374. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0164915957, 0.00628865417, -0.011430705, 0.968725562, -0.00156019977, -0.248129606, 5.33546881e-07, 0.99998033, -0.00628563575, 0.248134464, 0.00608892366, 0.968706489),Alpha)
  1375. LH.C0 = clerp(LH.C0,CFrame.new(-0.496484369, -0.990816116, 0.0216172226, 0.999878168, 0, 0.015611276, -9.81593039e-05, 0.99998033, 0.00628695311, -0.0156110227, -0.00628771912, 0.999858499),Alpha)
  1376. RH.C0 = clerp(RH.C0,CFrame.new(0.498541713, -0.990978837, 0.0154649867, 0.999878168, 0, 0.015611276, -9.81593039e-05, 0.99998033, 0.00628695311, -0.0156110227, -0.00628771912, 0.999858499),Alpha)
  1377. LS.C0 = clerp(LS.C0,CFrame.new(-1.44623137, 0.547813952, 0.11403431, 0.942572534, 0.149771333, 0.298539042, -0.145386592, 0.98868382, -0.0369770601, -0.300698817, -0.00855001062, 0.953680933),Alpha)
  1378. RS.C0 = clerp(RS.C0,CFrame.new(1.13921714, 0.575791061, 0.224009097, 0.504514813, -0.863395452, 0.00361199677, 0.206450492, 0.116572686, -0.971488237, 0.838357329, 0.49087587, 0.237061054),Alpha)
  1379. NK.C0 = clerp(NK.C0,CFrame.new(1.14493978e-05, 1.49894404, -0.0143940896, 1, 6.98491931e-08, -1.22189522e-06, 7.79982656e-09, 0.99796474, 0.0637697875, 1.1920929e-06, -0.0637697875, 0.99796468),Alpha)
  1380. end
  1381. who.Parent = workspace
  1382. Sound(Root,1093102664,.85,5,false,true,true)
  1383. Sound(Root,429400881,1,1,false,true,true)
  1384. GrabbedHead = Part(Char,haed.Color,haed.Material,haed.Size,CF.N(),false,false)
  1385. Mesh(GrabbedHead,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25))
  1386. local faic = haed:FindFirstChildOfClass'Decal'
  1387. if(faic)then
  1388. faic:Clone().Parent = GrabbedHead
  1389. end
  1390. haed:destroy()
  1391. local we = Weld(GrabbedHead,RArm,CF.N(0,0,1.25),CF.A(M.R(-90),0,0))
  1392. for i = 0, 4, 0.1 do
  1393. swait()
  1394. local Alpha = .4
  1395. RJ.C0 = clerp(RJ.C0,CFrame.new(0.0575693622, 0.00628520455, 0.101066932, 0.464999139, 0.00556624401, 0.885293782, -1.90408173e-06, 0.99998033, -0.00628633192, -0.885311186, 0.00292145251, 0.46498996),Alpha)
  1396. LH.C0 = clerp(LH.C0,CFrame.new(-0.496485323, -0.990816116, 0.0216203779, 0.999878287, 0, 0.0156088173, -9.81376506e-05, 0.99998033, 0.00628656521, -0.0156085193, -0.00628733169, 0.999858618),Alpha)
  1397. RH.C0 = clerp(RH.C0,CFrame.new(0.498545617, -0.990978718, 0.015469606, 0.999878287, 0, 0.0156088173, -9.81376506e-05, 0.99998033, 0.00628656521, -0.0156085193, -0.00628733169, 0.999858618),Alpha)
  1398. LS.C0 = clerp(LS.C0,CFrame.new(-1.44622684, 0.547813416, 0.114039615, 0.942572713, 0.149771467, 0.298538744, -0.145386502, 0.988683879, -0.036977727, -0.300698578, -0.00854929537, 0.953681111),Alpha)
  1399. RS.C0 = clerp(RS.C0,CFrame.new(1.45699549, 0.765083194, -0.0713857412, 0.939088941, -0.222480893, 0.261943519, 0.0847586989, -0.58871156, -0.803887427, 0.333058774, 0.77712369, -0.53399533),Alpha)
  1400. NK.C0 = clerp(NK.C0,CFrame.new(5.7298389e-06, 1.49894631, -0.0143892616, 1.00000012, 7.63684511e-08, -1.31130219e-06, 8.61473382e-09, 0.997964621, 0.0637715608, 1.40070915e-06, -0.0637715608, 0.997964621),Alpha)
  1401. end
  1402. WalkSpeed = 16
  1403. Hum.AutoRotate = true
  1404. Hum.JumpPower = 50
  1405. Attack = false
  1406. NeutralAnims = true
  1407. end
  1408. end
  1409.  
  1410. function TahHart()
  1411. local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5)
  1412.  
  1413. if(torso)then
  1414. local who = torso.Parent
  1415. WalkSpeed = 0
  1416. Hum.JumpPower = 0
  1417. Attack = true
  1418. NeutralAnims = false
  1419. Hum.AutoRotate = false
  1420. who.Parent = Char
  1421. local oRoot
  1422. coroutine.resume(coroutine.create(function()
  1423. repeat
  1424. swait()
  1425. torso.Anchored = true
  1426. Root.Anchored = true
  1427. until not Attack
  1428. Root.Anchored = false
  1429. torso.Anchored = false
  1430. Hum.AutoRotate = true
  1431. end))
  1432. torso.CFrame = Root.CFrame*CF.N(0,0,-1.5)
  1433. for i = 0, 5, 0.1 do
  1434. swait()
  1435. local Alpha = .1
  1436. RJ.C0 = clerp(RJ.C0,CFrame.new(0.0114063025, 0.0062906337, 0.823636711, 0.955660641, -0.00185238488, -0.29446438, 6.33202092e-07, 0.999980211, -0.00628851401, 0.294470191, 0.00600949815, 0.955641806),Alpha)
  1437. LH.C0 = clerp(LH.C0,CFrame.new(-0.496483088, -0.990816116, 0.0216204748, 0.988656521, 0, 0.150195315, -0.000944813946, 0.999980211, 0.00621921103, -0.15019232, -0.00629056897, 0.988636971),Alpha)
  1438. RH.C0 = clerp(RH.C0,CFrame.new(0.49854517, -0.990978718, 0.0154605517, 0.977690578, 0, -0.210051, 0.0013213401, 0.999980211, 0.00615022983, 0.210046858, -0.00629056897, 0.977671206),Alpha)
  1439. LS.C0 = clerp(LS.C0,CFrame.new(-1.44713593, 0.497297019, 0.0198487751, 0.9943645, 0.104860231, 0.0156133771, -0.104968622, 0.994455695, 0.00629058247, -0.0148671865, -0.0078940466, 0.999858439),Alpha)
  1440. RS.C0 = clerp(RS.C0,CFrame.new(1.24000025, 0.563622832, 0.0400094986, 0.952762961, -0.299521834, -0.0502950102, 0.122506656, 0.53053093, -0.838766456, 0.277911872, 0.792984128, 0.54216361),Alpha)
  1441. NK.C0 = clerp(NK.C0,CFrame.new(1.90698097e-06, 1.49894333, -0.0144055113, 1, -1.86264515e-09, 2.98023224e-08, -1.16415322e-10, 0.997964561, 0.0637710616, 0, -0.0637710616, 0.99796468),Alpha)
  1442. end
  1443. who.Parent = workspace
  1444. local hart = Part(Char,BrickColor.new'Crimson',Enum.Material.Granite,V3.N(1,1,1),CF.N(),false,false)
  1445. local hartM = Mesh(hart,Enum.MeshType.Sphere)
  1446. Weld(hart,RArm,CF.N(0,1,0))
  1447. Sound(torso,429400881,1,1,false,true,true)
  1448. who:breakJoints()
  1449. for i = 0, 6, 0.1 do
  1450. swait()
  1451. local Alpha = .4
  1452. RJ.C0 = clerp(RJ.C0,CFrame.new(0.00543917716, -0.0704322308, -0.407061756, 0.977658093, -0.00600946136, 0.210115746, -0.0923573971, 0.885655761, 0.455064833, -0.188824907, -0.464303493, 0.86531347),Alpha)
  1453. LH.C0 = clerp(LH.C0,CFrame.new(-0.598784626, -1.01931322, -0.151798934, 0.987478375, -0.00431044213, 0.157695964, 0.0628020391, 0.927741408, -0.36790216, -0.144715235, 0.373199016, 0.916395247),Alpha)
  1454. RH.C0 = clerp(RH.C0,CFrame.new(0.501758635, -1.05769944, 0.0147527754, 0.977738321, -0.0407438502, -0.205834419, -0.00124130305, 0.979826152, -0.199847892, 0.209824502, 0.195654422, 0.957963049),Alpha)
  1455. LS.C0 = clerp(LS.C0,CFrame.new(-1.46465385, 0.308270127, 0.182695374, 0.99436456, 0.0947658569, 0.0475270823, -0.104967438, 0.942948699, 0.315958142, -0.0148735195, -0.319166332, 0.947582006),Alpha)
  1456. RS.C0 = clerp(RS.C0,CFrame.new(0.439417332, 0.649217606, -0.612457514, 0.973174632, 0.169809118, 0.155229017, 0.177467406, -0.124685973, -0.97619611, -0.146412104, 0.97755748, -0.1514768),Alpha)
  1457. NK.C0 = clerp(NK.C0,CFrame.new(0.32833305, 1.49151981, 0.131428123, 0.92856133, 0.371179402, -1.95354223e-05, -0.326482415, 0.81671983, -0.475791991, -0.176588207, 0.441808343, 0.879557967),Alpha)
  1458. end
  1459. for i = 0, 5, 0.1 do
  1460. swait()
  1461. local Alpha = .3
  1462. RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
  1463. LH.C0 = clerp(LH.C0,CFrame.new(-0.516345143, -0.986586034, 0.0229242463, 0.995020688, 0.0737848207, 0.0670047402, -0.0743697062, 0.997211039, 0.00627362682, -0.0663549677, -0.0112255123, 0.997732997),Alpha)
  1464. RH.C0 = clerp(RH.C0,CFrame.new(0.477815509, -0.99112612, 0.0143765565, 0.99808538, -0.0329308398, -0.0523567572, 0.0333044007, 0.99942559, 0.00627828855, 0.0521199405, -0.0080099795, 0.998608768),Alpha)
  1465. LS.C0 = clerp(LS.C0,CFrame.new(-1.42035723, 0.493732512, 0.0194591247, 0.987250268, 0.158408627, 0.0156119233, -0.158521742, 0.987335503, 0.00628757617, -0.0144182015, -0.00868224166, 0.999858439),Alpha)
  1466. RS.C0 = clerp(RS.C0,CFrame.new(1.35784233, 0.380929202, -0.339150012, 0.890423656, 0.369434744, -0.265826464, -0.0434118584, -0.512461483, -0.857612193, -0.453057677, 0.775178194, -0.440269977),Alpha)
  1467. NK.C0 = clerp(NK.C0,CFrame.new(5.94183803e-06, 1.49894607, -0.0144022629, 0.903856337, 0.0358069614, -0.426334888, 0.00745311938, 0.995022535, 0.0993709341, 0.427770972, -0.0929945856, 0.899090827),Alpha)
  1468. end
  1469. Sound(torso,429400881,1,1,false,true,true)
  1470. for i = 0, 6, 0.1 do
  1471. swait()
  1472. local Alpha = .3
  1473. RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
  1474. LH.C0 = clerp(LH.C0,CFrame.new(-0.516345143, -0.986586034, 0.0229242463, 0.995020688, 0.0737848207, 0.0670047402, -0.0743697062, 0.997211039, 0.00627362682, -0.0663549677, -0.0112255123, 0.997732997),Alpha)
  1475. RH.C0 = clerp(RH.C0,CFrame.new(0.477815509, -0.99112612, 0.0143765565, 0.99808538, -0.0329308398, -0.0523567572, 0.0333044007, 0.99942559, 0.00627828855, 0.0521199405, -0.0080099795, 0.998608768),Alpha)
  1476. LS.C0 = clerp(LS.C0,CFrame.new(-1.42035723, 0.493732512, 0.0194591247, 0.987250268, 0.158408627, 0.0156119233, -0.158521742, 0.987335503, 0.00628757617, -0.0144182015, -0.00868224166, 0.999858439),Alpha)
  1477. RS.C0 = clerp(RS.C0,CFrame.new(1.38204277, 0.275569797, -0.148523852, 0.434954822, 0.860323608, -0.265814841, 0.300874919, -0.417092472, -0.857617736, -0.848698258, 0.293047935, -0.440266252),Alpha)
  1478. NK.C0 = clerp(NK.C0,CFrame.new(0.185457826, 1.49546897, -0.192251831, 0.865452588, 0.124405921, -0.485298753, 0.015648175, 0.961492956, 0.274383873, 0.500746369, -0.245060325, 0.83017987),Alpha)
  1479. end
  1480. hart:destroy()
  1481. WalkSpeed = 16
  1482. Hum.AutoRotate = true
  1483. Hum.JumpPower = 50
  1484. Attack = false
  1485. NeutralAnims = true
  1486. end
  1487. end
  1488.  
  1489. function YaYEET()
  1490. Attack = true
  1491. NeutralAnims = false
  1492. WalkSpeed = 2
  1493. for i = 0, 3, 0.1 do
  1494. swait()
  1495. local Alpha = .3
  1496. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00286240783, 0.00628161477, -0.00104881125, 0.812644184, -0.00366364187, -0.582748652, 1.25324027e-06, 0.99998033, -0.00628495822, 0.582760096, 0.00510670478, 0.81262815),Alpha)
  1497. LH.C0 = clerp(LH.C0,CFrame.new(-0.496485233, -0.990816236, 0.0216153599, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
  1498. RH.C0 = clerp(RH.C0,CFrame.new(0.498535216, -0.990978837, 0.0154625224, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
  1499. LS.C0 = clerp(LS.C0,CFrame.new(-1.54175317, 0.538998544, -0.350661546, 0.925994039, 0.377538294, -2.53279577e-05, -0.00177948072, 0.00429747393, -0.99998939, -0.377534091, 0.925984085, 0.0046512573),Alpha)
  1500. RS.C0 = clerp(RS.C0,CFrame.new(1.2351619, 0.597906828, 0.279773176, 0.93086189, 0.365330189, -0.00547149777, 0.134925321, -0.329796135, 0.934360683, 0.339545637, -0.870499015, -0.356286913),Alpha)
  1501. NK.C0 = clerp(NK.C0,CFrame.new(2.37277709e-06, 1.49894369, -0.0143988989, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
  1502. end
  1503. repeat swait()
  1504. local Alpha = .3
  1505. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00286240783, 0.00628161477, -0.00104881125, 0.812644184, -0.00366364187, -0.582748652, 1.25324027e-06, 0.99998033, -0.00628495822, 0.582760096, 0.00510670478, 0.81262815),Alpha)
  1506. LH.C0 = clerp(LH.C0,CFrame.new(-0.496485233, -0.990816236, 0.0216153599, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
  1507. RH.C0 = clerp(RH.C0,CFrame.new(0.498535216, -0.990978837, 0.0154625224, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
  1508. LS.C0 = clerp(LS.C0,CFrame.new(-1.54175317, 0.538998544, -0.350661546, 0.925994039, 0.377538294, -2.53279577e-05, -0.00177948072, 0.00429747393, -0.99998939, -0.377534091, 0.925984085, 0.0046512573),Alpha)
  1509. RS.C0 = clerp(RS.C0,CFrame.new(1.2351619, 0.597906828, 0.279773176, 0.93086189, 0.365330189, -0.00547149777, 0.134925321, -0.329796135, 0.934360683, 0.339545637, -0.870499015, -0.356286913),Alpha)
  1510. NK.C0 = clerp(NK.C0,CFrame.new(2.37277709e-06, 1.49894369, -0.0143988989, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha)
  1511. until not S.UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1)
  1512. for i = 0, .7, 0.1 do
  1513. swait()
  1514. local Alpha = .3
  1515. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.248571783, 0.00628784206, -0.324586183, 0.811912656, 0.00367011107, 0.583767474, -1.25562076e-06, 0.99998033, -0.00628506951, -0.583779037, 0.00510219391, 0.811896563),Alpha)
  1516. LH.C0 = clerp(LH.C0,CFrame.new(-0.496491075, -0.990815997, 0.0216309726, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
  1517. RH.C0 = clerp(RH.C0,CFrame.new(0.498523057, -0.990978718, 0.0154775968, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
  1518. LS.C0 = clerp(LS.C0,CFrame.new(-1.23150444, 0.50935328, 0.410490841, 0.925997376, -0.315732628, 0.206983045, -0.00177847152, 0.54460144, 0.838693202, -0.377526015, -0.776995718, 0.503737926),Alpha)
  1519. RS.C0 = clerp(RS.C0,CFrame.new(0.944793224, 0.478973299, -0.436145425, 0.805186868, 0.59043932, 0.055278115, -0.0953396112, 0.220887601, -0.970628381, -0.5853073, 0.776266813, 0.234148055),Alpha)
  1520. NK.C0 = clerp(NK.C0,CFrame.new(-6.4575579e-06, 1.49894357, -0.014398125, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
  1521. end
  1522. GrabbedHead.Parent = workspace
  1523. GrabbedHead.CanCollide = true
  1524. pcall(function() GrabbedHead.Weld:destroy() end)
  1525. GrabbedHead.Velocity = Mouse.Hit.lookVector*250
  1526. local ev;
  1527. local haed = GrabbedHead;
  1528. ev = GrabbedHead.Touched:connect(function(t)
  1529. if(t.Parent and t.Parent ~= Char and not t.Parent:IsDescendantOf(Char) and t.Parent:FindFirstChildOfClass'Humanoid')then
  1530. t.Parent:breakJoints()
  1531. end
  1532. if(ev and t.Parent ~= Char and not t.Parent:IsDescendantOf(Char))then
  1533. ev:disconnect()
  1534. ev = nil
  1535. delay(2, function()
  1536. for i = 0, 1, .05 do
  1537. haed.Transparency = i
  1538. swait()
  1539. end
  1540. haed:destroy()
  1541. end)
  1542. end
  1543. end)
  1544. GrabbedHead = nil
  1545. for i = 0, 4, 0.1 do
  1546. swait()
  1547. local Alpha = .3
  1548. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.248571783, 0.00628784206, -0.324586183, 0.811912656, 0.00367011107, 0.583767474, -1.25562076e-06, 0.99998033, -0.00628506951, -0.583779037, 0.00510219391, 0.811896563),Alpha)
  1549. LH.C0 = clerp(LH.C0,CFrame.new(-0.496491075, -0.990815997, 0.0216309726, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
  1550. RH.C0 = clerp(RH.C0,CFrame.new(0.498523057, -0.990978718, 0.0154775968, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
  1551. LS.C0 = clerp(LS.C0,CFrame.new(-1.23150444, 0.50935328, 0.410490841, 0.925997376, -0.315732628, 0.206983045, -0.00177847152, 0.54460144, 0.838693202, -0.377526015, -0.776995718, 0.503737926),Alpha)
  1552. RS.C0 = clerp(RS.C0,CFrame.new(0.944793224, 0.478973299, -0.436145425, 0.805186868, 0.59043932, 0.055278115, -0.0953396112, 0.220887601, -0.970628381, -0.5853073, 0.776266813, 0.234148055),Alpha)
  1553. NK.C0 = clerp(NK.C0,CFrame.new(-6.4575579e-06, 1.49894357, -0.014398125, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha)
  1554. end
  1555. Attack = false
  1556. NeutralAnims = true
  1557. WalkSpeed = 16
  1558. end
  1559.  
  1560.  
  1561. --// Wrap it all up \\--
  1562.  
  1563. Mouse.KeyDown:connect(function(k)
  1564. if(Attack)then return end
  1565. if(not GrabbedHead)then
  1566. if(k == 'z')then
  1567. ByeBye()
  1568. elseif(k == 'x')then
  1569. Decapitate()
  1570. elseif(k == 'c')then
  1571. TahHart()
  1572. end
  1573. end
  1574. end)
  1575.  
  1576. Mouse.Button1Down:connect(function()
  1577. if(Attack)then return end
  1578. if(GrabbedHead)then
  1579. YaYEET()
  1580. end
  1581. end)
  1582.  
  1583. local deg = 0
  1584. while true do
  1585. swait()
  1586. Sine = Sine + Change
  1587. if(not Music)then
  1588. Music = Sound(Torso,MusicID,1,1,true,false,true)
  1589. Music.Name = 'Music'
  1590. end
  1591. Music.SoundId = "rbxassetid://"..MusicID
  1592. Music.Parent = Torso
  1593. Music.Pitch = 1
  1594. Music.Volume = 1
  1595. if(not Muted)then
  1596. Music:Resume()
  1597. else
  1598. Music:Pause()
  1599. end
  1600.  
  1601.  
  1602. if(God)then
  1603. Hum.MaxHealth = 1e100
  1604. Hum.Health = 1e100
  1605. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1606. Hum.Name = M.RNG()*100
  1607. end
  1608.  
  1609. 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)
  1610.  
  1611. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1612. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed < 24 and "Walk" or "Run") or hitfloor and "Idle")
  1613. if(not Effects or not Effects.Parent)then
  1614. Effects = IN("Model",Char)
  1615. Effects.Name = "Effects"
  1616. end
  1617. if(State == 'Run')then
  1618. local wsVal = 7 / (Hum.WalkSpeed/16)
  1619. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1620. Change = 1
  1621. RH.C1 = RH.C1:lerp(CF.N(0,1-.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)
  1622. LH.C1 = LH.C1:lerp(CF.N(0,1+.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)
  1623. elseif(State == 'Walk')then
  1624. local wsVal = 7 / (Hum.WalkSpeed/16)
  1625. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1626. Change = 1
  1627. RH.C1 = RH.C1:lerp(CF.N(0,1-.5*M.C(Sine/wsVal)/2,0+.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15-35*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1628. LH.C1 = LH.C1:lerp(CF.N(0,1+.5*M.C(Sine/wsVal)/2,0-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15+35*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1629. else
  1630. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1631. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1632. end
  1633. Hum.WalkSpeed = WalkSpeed
  1634. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1635. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  1636. local face = Head:FindFirstChild'face'
  1637. if(not face)then
  1638. NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
  1639. else
  1640. face.Texture = "rbxassetid://404306534"
  1641. end
  1642.  
  1643. RArm.Color = C3.N(0.2,0.2,0.2)
  1644. LArm.Color = C3.N(0.2,0.2,0.2)
  1645. RLeg.Color = C3.N(0.2,0.2,0.2)
  1646. LLeg.Color = C3.N(0.2,0.2,0.2)
  1647. Torso.Color = C3.N(0.2,0.2,0.2)
  1648. Head.Color = C3.N(0.2,0.2,0.2)
  1649.  
  1650. deg = deg + 1
  1651. HW.C0 = HW.C0:lerp(CF.N(0,1.5,0)*CF.A(0,M.R(deg),0),.2)
  1652. if(NeutralAnims)then
  1653. if(State == 'Idle')then
  1654. local Alpha = .1
  1655. Change = 1
  1656. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1+.05*M.C(Sine/18),0),Alpha)
  1657. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-10-2.5*M.S(Sine/18)),M.R(20*M.C(Sine/18)),M.R(10)),Alpha)
  1658. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0+.1*M.S(Sine/18),0)*CF.A(0,M.R(5+5*M.C(Sine/18)),M.R(-10-5*M.C(Sine/18))),Alpha)
  1659. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0+.1*M.S(Sine/18),0)*CF.A(0,M.R(-5-5*M.C(Sine/18)),M.R(10+5*M.C(Sine/18))),Alpha)
  1660. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.05*M.C(Sine/18),0)*CF.A(0,0,M.R(-10)),Alpha)
  1661. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.05*M.C(Sine/18),-.2),Alpha)
  1662. -- idle
  1663. elseif(State == 'Run')then
  1664. local wsVal = 7 / (Hum.WalkSpeed/16)
  1665. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1666. local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
  1667. 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),Alpha2)
  1668. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1669. 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)
  1670. 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)
  1671. 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)
  1672. 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)
  1673. elseif(State == 'Walk')then
  1674. local wsVal = 7 / (Hum.WalkSpeed/16)
  1675. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1676. local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1)
  1677. RJ.C0 = RJ.C0:lerp(CF.N(0,-.175+.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(10*M.C(Sine/wsVal)),Root.RotVelocity.y/75),Alpha2)
  1678. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha)
  1679. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.27*M.C(Sine/wsVal))*CF.A(M.R(45*M.C(Sine/wsVal)),0,M.R(-5)+LArm.RotVelocity.y/75),Alpha)
  1680. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.27*M.C(Sine/wsVal))*CF.A(M.R(-45*M.C(Sine/wsVal)),0,M.R(5)-RArm.RotVelocity.y/75),Alpha)
  1681. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1682. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1683. elseif(State == 'Jump')then
  1684. local Alpha = .1
  1685. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1686. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  1687. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  1688. 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)
  1689. 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)
  1690. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1691. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1692. elseif(State == 'Fall')then
  1693. local Alpha = .1
  1694. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1695. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1696. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1697. 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)
  1698. 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)
  1699. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1700. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1701. elseif(State == 'Paralyzed')then
  1702. -- paralyzed
  1703. elseif(State == 'Sit')then
  1704. -- sit
  1705. end
  1706. end
  1707.  
  1708. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement