kilcrafter

Bye Bye v2

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