Advertisement
Hermaxs

Untitled

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