Advertisement
WagnerJunio07

Bye bye Remake FE

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