Advertisement
Void_scripter0

Bye bye bye

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