Advertisement
megaluxe

ee

Aug 19th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.74 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};
  2. do
  3. script.Parent = InternalData.RealOwner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  5. local function createObject (connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  17. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  18. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  19. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  20. Event.OnServerEvent:Connect(function(FiredBy,Input)
  21. if FiredBy ~= InternalData.RealOwner then return end
  22. if Input.MouseEvent then
  23. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  24. Mouse:TriggerEvent("Move")
  25. elseif Input.Sound then
  26. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  27. else
  28. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  29. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  30. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  31. for _,Action in pairs(ContextActionService.Actions) do
  32. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  33. end
  34. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  35. end
  36. end)
  37. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  38. Event.Parent = NLS([[
  39. local Player = owner;
  40. local Sounds = {};
  41. local Event = script:WaitForChild("UserInput");
  42. local UserInputService = game:GetService("UserInputService");
  43. local Mouse = Player:GetMouse();
  44. local Input = function(Input,gameProcessedEvent)
  45. if gameProcessedEvent then return end
  46. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  47. end
  48. Event.OnClientEvent:connect(function(Args)
  49. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  50. end)
  51. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  52. local Hit,Target
  53. while wait(1/30) do
  54. for x,Sound in pairs(Sounds) do
  55. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  56. end
  57. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  58. Hit = Mouse.Hit;Target = Mouse.Target;
  59. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  60. end
  61. end
  62. ]],InternalData.RealOwner.Character)
  63. end
  64. InternalData.NewOwner = setmetatable({},{
  65. __index = function (self,Index)
  66. local Type = type(InternalData.RealOwner[Index])
  67. if Type == "function" then
  68. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  69. return function (self)return InternalData["Mouse"] end
  70. end
  71. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  72. elseif Index == "FakePlayer" then
  73. return true
  74. end
  75. return InternalData.RealOwner[Index]
  76. end;
  77. __tostring = function(self) return tostring(InternalData.RealOwner) end
  78. })
  79. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  80. if Library == "RbxUtility" then
  81. return setmetatable({},{
  82. __tostring = function() return "RbxUtility" end;
  83. __index = function(self, Index)
  84. if Index:lower() == "create" then
  85. return function(Type)
  86. return function(Data)
  87. Data = Data or {}
  88. local Inst = Instance.new(Type)
  89. for x,y in pairs(Data) do
  90. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  91. if y == owner then y = InternalData.RealOwner end
  92. Inst[x] = y
  93. end
  94. return Inst
  95. end
  96. end
  97. end
  98. return InternalData.LoadLibrary(Library)[Index]
  99. end
  100. })
  101. end
  102. return InternalData.LoadLibrary(Library)
  103. end
  104. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  105. __index = function (self,Index)
  106. if Index:lower() == 'new' then
  107. return function (Type, Parent)
  108. if Parent == owner then Parent = InternalData.RealOwner end
  109. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  110. local Real = InternalData.RealInstance.new(Type,Parent)
  111. if not Type then return end
  112. if Type == "BillboardGui" then
  113. local ToReturn = setmetatable({},{
  114. __index = function (self,Index)
  115. if type(Real[Index]) == "function" then
  116. if Index:lower() == "clone" then
  117. return function (self)
  118. local Real = Real:Clone()
  119. local ToReturn = setmetatable({RealObject = Real},{
  120. __index = function (self,Index)
  121. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  122. return Real[Index]
  123. end;
  124. __newindex = function (self,Index,Value)
  125. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  126. if Value == owner then Value = InternalData.RealOwner end
  127. Real[Index] = Value
  128. end;
  129. __tostring = function(self) return tostring(Real) end;
  130. })
  131. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  132. end
  133. end
  134. return function (self,...) return Real[Index](Real,...)end
  135. end
  136. return Real[Index]
  137. end;
  138. __newindex = function (self,Index,Value)
  139. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  140. if Value == owner then Value = InternalData.RealOwner end
  141. Real[Index] = Value
  142. end;
  143. __tostring = function(self) return tostring(Real) end;
  144. })
  145. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  146. elseif Type:lower() == "sound" then
  147. Real.Parent = owner.Character;
  148. local ToReturn = setmetatable({RealObject = Real},{
  149. __index = function (self,Index)
  150. if Index:lower() == "playbackloudness" then
  151. return InternalData.SoundLoudness[Real] or 0
  152. elseif type(Real[Index]) == "function" then
  153. if Index:lower() == "clone" then
  154. return function (self)
  155. local Real = Real:Clone()
  156. local ToReturn = setmetatable({},{
  157. __index = function (self,Index)
  158. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  159. return Real[Index]
  160. end;
  161. __newindex = function (self,Index,Value)
  162. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  163. if Value == owner then Value = InternalData.RealOwner end
  164. Real[Index] = Value
  165. end;
  166. __tostring = function(self) return tostring(Real) end;
  167. })
  168. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  169. end
  170. end
  171. return function (self,...) return Real[Index](Real,...)end
  172. end
  173. return Real[Index]
  174. end;
  175. __newindex = function (self,Index,Value)
  176. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  177. if Value == owner then Value = InternalData.RealOwner end
  178. Real[Index] = Value
  179. end;
  180. __tostring = function(self) return tostring(Real) end;
  181. })
  182. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  183. else
  184. local ToReturn = setmetatable({RealObject = Real},{
  185. __index = function (self,Index)
  186. if type(Real[Index]) == "function" then
  187. if Index:lower() == "clone" then
  188. return function (self)
  189. local Real = Real:Clone()
  190. local ToReturn = setmetatable({},{
  191. __index = function (self,Index)
  192. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  193. return Real[Index]
  194. end;
  195. __newindex = function (self,Index,Value)
  196. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  197. if Value == owner then Value = InternalData.RealOwner end
  198. Real[Index] = Value
  199. end;
  200. __tostring = function(self) return tostring(Real) end;
  201. })
  202. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  203. end
  204. end
  205. return function (self,...) return Real[Index](Real,...)end
  206. end
  207. return Real[Index]
  208. end;
  209. __newindex = function (self,Index,Value)
  210. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  211. if Value == owner then Value = InternalData.RealOwner end
  212. Real[Index] = Value
  213. end;
  214. __tostring = function(self) return tostring(Real) end;
  215. })
  216. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  217. end
  218. end
  219. end
  220. return InternalData.RealInstance[Index]
  221. end;
  222. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  223. });
  224. InternalData.RealGame = game;game = setmetatable({},{
  225. __index = function (self,Index)
  226. if InternalData.RealGame[Index] then
  227. local Type = type(InternalData.RealGame[Index])
  228. if Type == "function" then
  229. if Index:lower() == "getservice" or Index:lower() == "service" then
  230. return function (self,Service)
  231. local FakeServices = {
  232. ["players"] = function()
  233. return setmetatable({},{
  234. __index = function (self2,Index2)
  235. local RealService = InternalData.RealGame:GetService(Service)
  236. local Type2 = type(RealService[Index2])
  237. if Type2 == "function" then
  238. return function (self,...) return RealService[Index2](RealService,...)end
  239. else
  240. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  241. return RealService[Index2]
  242. end
  243. end;
  244. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  245. })
  246. end;
  247. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  248. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  249. ["debris"] = function()
  250. return setmetatable({},{
  251. __index = function(self2,Index2)
  252. local RealService = InternalData.RealGame:GetService(Service)
  253. local Type2 = type(RealService[Index2])
  254. if Type2 == "function" then
  255. if Index2:lower() == "additem" then
  256. return function (self,Item,Time)
  257. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  258. return RealService:AddItem(Item,Time)
  259. end
  260. end
  261. return function (self,...) return RealService[Index2](RealService,...) end
  262. end
  263. return RealService[Index2]
  264. end;
  265. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  266. })
  267. end;
  268. ["runservice"] = function()
  269. return setmetatable({},{
  270. __index = function(self2,Index2)
  271. local RealService = InternalData.RealGame:GetService(Service)
  272. local Type2 = type(RealService[Index2])
  273. if Type2 == "function" then
  274. return function (self,...) return RealService[Index2](RealService,...) end
  275. else
  276. local RunServices = {
  277. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  278. ["renderstepped"] = function() return RealService["Stepped"] end
  279. }
  280. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  281. return RealService[Index2]
  282. end
  283. end;
  284. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  285. })
  286. end
  287. }
  288. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  289. return InternalData.RealGame:GetService(Service)
  290. end
  291. end
  292. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  293. else
  294. if game:GetService(Index) then return game:GetService(Index) end
  295. return InternalData.RealGame[Index]
  296. end
  297. end
  298. return nil
  299. end;
  300. __tostring = function(self) return tostring(InternalData.game) end
  301. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  302.  
  303. --//Paste script below this line.
  304. -- Created by Nebula_Zorua --
  305. -- Your DeTERMINATION --
  306. -- Y o u a c t l i k e y o u h a v e a c h o i c e. =) --
  307. -- Discord: Nebula the Zorua#6969
  308. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  309.  
  310.  
  311. --// Initializing \\--
  312. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  313. local Plrs = S.Players
  314. local Plr = Plrs.LocalPlayer
  315. local Char = Plr.Character
  316. local Hum = Char:FindFirstChildOfClass'Humanoid'
  317. local RArm = Char["Right Arm"]
  318. local LArm = Char["Left Arm"]
  319. local RLeg = Char["Right Leg"]
  320. local LLeg = Char["Left Leg"]
  321. local Root = Char:FindFirstChild'HumanoidRootPart'
  322. local Torso = Char.Torso
  323. local Head = Char.Head
  324. local NeutralAnims = true
  325. local Attack = false
  326. local BloodPuddles = {}
  327. local Effects = {}
  328. local Debounces = {Debounces={}}
  329. local Mouse = Plr:GetMouse()
  330. local Hit = {}
  331. local Sine = 0
  332. local Change = 1
  333. local Souls = 0
  334. --// Debounce System \\--
  335.  
  336.  
  337. function Debounces:New(name,cooldown)
  338. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  339. setmetatable(aaaaa,{__index = Debounces})
  340. Debounces.Debounces[name] = aaaaa
  341. return aaaaa
  342. end
  343.  
  344. function Debounces:Use(overrideUsable)
  345. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  346. if(self.Usable or overrideUsable)then
  347. self.Usable = false
  348. self.CoolingDown = true
  349. local LastUse = time()
  350. self.LastUse = LastUse
  351. delay(self.Cooldown or 2,function()
  352. if(self.LastUse == LastUse)then
  353. self.CoolingDown = false
  354. self.Usable = true
  355. end
  356. end)
  357. end
  358. end
  359.  
  360. function Debounces:Get(name)
  361. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  362. for i,v in next, Debounces.Debounces do
  363. if(i == name)then
  364. return v;
  365. end
  366. end
  367. end
  368.  
  369. function Debounces:GetProgressPercentage()
  370. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  371. if(self.CoolingDown and not self.Usable)then
  372. return math.max(
  373. math.floor(
  374. (
  375. (time()-self.LastUse)/self.Cooldown or 2
  376. )*100
  377. )
  378. )
  379. else
  380. return 100
  381. end
  382. end
  383.  
  384. --// Shortcut Variables \\--
  385. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  386. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  387. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  388. 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}
  389. local R3 = {N=Region3.new}
  390. local De = S.Debris
  391. local WS = workspace
  392. local Lght = S.Lighting
  393. local RepS = S.ReplicatedStorage
  394. local IN = Instance.new
  395. local CSK = ColorSequenceKeypoint.new
  396. local CS = ColorSequence.new
  397. --// Instance Creation Functions \\--
  398.  
  399. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  400. local Sound = IN("Sound")
  401. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  402. Sound.Pitch = pitch or 1
  403. Sound.Volume = volume or 1
  404. Sound.Looped = looped or false
  405. if(autoPlay)then
  406. coroutine.wrap(function()
  407. repeat wait() until Sound.IsLoaded
  408. Sound.Playing = autoPlay or false
  409. end)()
  410. end
  411. if(not looped and effect)then
  412. Sound.Stopped:connect(function()
  413. Sound.Volume = 0
  414. Sound:destroy()
  415. end)
  416. elseif(effect)then
  417. warn("Sound can't be looped and a sound effect!")
  418. end
  419. Sound.Parent =parent or Torso
  420. return Sound
  421. end
  422. function Part(parent,color,material,size,cframe,anchored,cancollide)
  423. local part = IN("Part")
  424. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  425. part.Material = (material or Enum.Material.SmoothPlastic)
  426. part.TopSurface,part.BottomSurface=10,10
  427. part.Size = (size or V3.N(1,1,1))
  428. part.CFrame = (cframe or CF.N(0,0,0))
  429. part.Anchored = (anchored or false)
  430. part.CanCollide = (cancollide or false)
  431. part.Parent = (parent or Char)
  432. return part
  433. end
  434. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  435. local part = IN("SpecialMesh")
  436. part.MeshId = meshid or ""
  437. part.TextureId = textid or ""
  438. part.Scale = scale or V3.N(1,1,1)
  439. part.Offset = offset or V3.N(0,0,0)
  440. part.MeshType = meshtype or Enum.MeshType.Sphere
  441. part.Parent = parent
  442. return part
  443. end
  444.  
  445. NewInstance = function(instance,parent,properties)
  446. local inst = Instance.new(instance,parent)
  447. if(properties)then
  448. for i,v in next, properties do
  449. pcall(function() inst[i] = v end)
  450. end
  451. end
  452. return inst;
  453. end
  454.  
  455.  
  456.  
  457. --// Extended ROBLOX tables \\--
  458. local Instance = setmetatable({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})
  459. --// Customization \\--
  460.  
  461. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  462. local Remove_Hats = false
  463. local Remove_Clothing = true
  464. local PlayerSize = 1
  465. local DamageColor = BrickColor.new'Really red'
  466. local MusicID = 935501955
  467. local WalkSpeed = 8
  468. local MaxSouls = 100
  469. local MaxHealth = 500
  470.  
  471.  
  472. if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end
  473.  
  474. --// Weapon and GUI creation, and Character Customization \\--
  475.  
  476. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  477. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  478. local Effects = IN("Folder",Char)
  479. Effects.Name = "Effects"
  480.  
  481. Hum.MaxHealth = MaxHealth
  482. Hum.Health = MaxHealth
  483.  
  484. local Knife = NewInstance("Part",Char,{Name='Knife',Size=V3.N(.4,3,.7),Anchored=false,CanCollide=false,Locked=true,Archivable=false,Reflectance=.01,Color=C3.N(0,0,0)})
  485. local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://121944778","rbxassetid://362719969",V3.N(1,1,1),V3.N())
  486. local AuraEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(1,0,0)),CSK(0.5,C3.N(1,1,0)),CSK(1,C3.RGB(255,191,0))},LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0,1),LockedToPart=true,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(0)})
  487. local FireEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS(C3.N(1,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(0.755,0,0),NumberSequenceKeypoint.new(1,0,0)},Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0.35,1),Lifetime=NumberRange.new(1,2),Rate=150,Speed=NumberRange.new(3)})
  488.  
  489. local KTrail = NewInstance("Trail",Knife,{
  490. Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}),
  491. Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}),
  492. Color=CS(C3.N(1,0,0)),
  493. Enabled=false,
  494. Transparency=NumberSequence.new(0,1),
  495. Lifetime=1.25,
  496. })
  497. local Hair = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false)
  498. local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://250264520","rbxassetid://75975464",V3.N(1.05,1.05,1.05),V3.N())
  499.  
  500. NewInstance("PointLight",Knife,{Color=C3.N(1,0,0),Range=10,Brightness=3})
  501.  
  502.  
  503. Hum.DisplayDistanceType = 'None'
  504.  
  505. local naeeym2 = IN("BillboardGui",Char)
  506. naeeym2.AlwaysOnTop = true
  507. naeeym2.Size = UDim2.new(5,35,2,15)
  508. naeeym2.StudsOffset = V3.N(0,2.5,0)
  509. naeeym2.Adornee = Char.Head
  510. naeeym2.Name = "Name"
  511. naeeym2.PlayerToHideFrom = Plr
  512. local tecks2 = IN("TextLabel",naeeym2)
  513. tecks2.BackgroundTransparency = 1
  514. tecks2.TextScaled = true
  515. tecks2.BorderSizePixel = 0
  516. tecks2.Text = "Chara"
  517. tecks2.Font = Enum.Font.Bodoni
  518. tecks2.TextSize = 30
  519. tecks2.TextStrokeTransparency = 0
  520. tecks2.TextColor3 = C3.N(0,0,0)
  521. tecks2.TextStrokeColor3 = C3.N(.7,0,0)
  522. tecks2.Size = UDim2.new(1,0,0.5,0)
  523. tecks2.Parent = naeeym2
  524.  
  525.  
  526. IN("Shirt",Char)
  527. IN("Pants",Char)
  528.  
  529. Hum.WalkSpeed = WalkSpeed
  530. if(PlayerSize ~= 1)then
  531. for _,v in next, Char:GetDescendats() do
  532. if(v:IsA'BasePart')then
  533. v.Size = v.Size * PlayerSize
  534. end
  535. end
  536. end
  537.  
  538.  
  539. for i = 1, 35 do
  540. local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
  541. FACE.Transparency = 0+(i-1)/35.2
  542. FACE.Name = 'ShadowFace'
  543. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  544. NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
  545. --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  546. end
  547.  
  548. local LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  549. local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  550. local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
  551.  
  552. local REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  553. local REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  554. local REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
  555.  
  556.  
  557. pcall(function()
  558. Char.LeftWing:destroy()
  559. Char.ReaperShadowHead:destroy()
  560. end)
  561.  
  562.  
  563. local Music = Sound(Torso,MusicID,1,3,true,false,true)
  564. Music.Name = 'Music'
  565.  
  566. --// Stop animations \\--
  567. for _,v in next, Hum:GetPlayingAnimationTracks() do
  568. v:Stop();
  569. end
  570.  
  571. pcall(game.Destroy,Char:FindFirstChild'Animate')
  572. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  573.  
  574. --// Joints \\--
  575.  
  576. 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)})
  577. 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)})
  578. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  579. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  580. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  581. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  582. local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)})
  583. local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,.25,0)})
  584.  
  585. local LSC0 = LS.C0
  586. local RSC0 = RS.C0
  587. local NKC0 = NK.C0
  588. local LHC0 = LH.C0
  589. local RHC0 = RH.C0
  590. local RJC0 = RJ.C0
  591.  
  592. --// Artificial HB \\--
  593.  
  594. local ArtificialHB = IN("BindableEvent", script)
  595. ArtificialHB.Name = "Heartbeat"
  596.  
  597. script:WaitForChild("Heartbeat")
  598.  
  599. local tf = 0
  600. local allowframeloss = false
  601. local tossremainder = false
  602. local lastframe = tick()
  603. local frame = 1/Frame_Speed
  604. ArtificialHB:Fire()
  605.  
  606. game:GetService("RunService").Heartbeat:connect(function(s, p)
  607. tf = tf + s
  608. if tf >= frame then
  609. if allowframeloss then
  610. script.Heartbeat:Fire()
  611. lastframe = tick()
  612. else
  613. for i = 1, math.floor(tf / frame) do
  614. ArtificialHB:Fire()
  615. end
  616. lastframe = tick()
  617. end
  618. if tossremainder then
  619. tf = 0
  620. else
  621. tf = tf - frame * math.floor(tf / frame)
  622. end
  623. end
  624. end)
  625.  
  626. function swait(num)
  627. if num == 0 or num == nil then
  628. ArtificialHB.Event:wait()
  629. else
  630. for i = 0, num do
  631. ArtificialHB.Event:wait()
  632. end
  633. end
  634. end
  635.  
  636.  
  637. --// Effect Function(s) \\--
  638.  
  639. function Bezier(startpos, pos2, pos3, endpos, t)
  640. local A = startpos:lerp(pos2, t)
  641. local B = pos2:lerp(pos3, t)
  642. local C = pos3:lerp(endpos, t)
  643. local lerp1 = A:lerp(B, t)
  644. local lerp2 = B:lerp(C, t)
  645. local cubic = lerp1:lerp(lerp2, t)
  646. return cubic
  647. end
  648.  
  649. function Tween(obj,props,time,easing,direction,repeats,backwards)
  650. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  651. local tween = S.TweenService:Create(obj, info, props)
  652.  
  653. tween:Play()
  654. end
  655.  
  656. local FXTable = {}
  657.  
  658. coroutine.resume(coroutine.create(function()
  659. while true do
  660. for i = 1, #FXTable do
  661. local data = FXTable[i]
  662. if(data)then
  663. local Frame = data.Frame
  664. local FX = data.Effect or 'ResizeAndFade'
  665. local Parent = data.Parent or Effects
  666. local Color = data.Color or C3.N(0,0,0)
  667. local Size = data.Size or V3.N(1,1,1)
  668. local MoveDir = data.MoveDirection or nil
  669. local MeshData = data.Mesh or nil
  670. local SndData = data.Sound or nil
  671. local Frames = data.Frames or 45
  672. local CFra = data.CFrame or Torso.CFrame
  673. local Settings = data.FXSettings or {}
  674. local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound
  675. local grow = data.Grow
  676.  
  677. local MoveSpeed = nil;
  678. if(MoveDir)then
  679. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  680. end
  681. if(FX ~= 'Arc')then
  682. Frame = Frame + 1
  683. if(FX == "Fade")then
  684. Prt.Transparency = (Frame/Frames)
  685. elseif(FX == "Resize")then
  686. if(not Settings.EndSize)then
  687. Settings.EndSize = V3.N(0,0,0)
  688. end
  689. if(Settings.EndIsIncrement)then
  690. if(Msh)then
  691. Msh.Scale = Msh.Scale + Settings.EndSize
  692. else
  693. Prt.Size = Prt.Size + Settings.EndSize
  694. end
  695. else
  696. if(Msh)then
  697. Msh.Scale = Msh.Scale - grow/Frames
  698. else
  699. Prt.Size = Prt.Size - grow/Frames
  700. end
  701. end
  702. elseif(FX == "ResizeAndFade")then
  703. if(not Settings.EndSize)then
  704. Settings.EndSize = V3.N(0,0,0)
  705. end
  706. if(Settings.EndIsIncrement)then
  707. if(Msh)then
  708. Msh.Scale = Msh.Scale + Settings.EndSize
  709. else
  710. Prt.Size = Prt.Size + Settings.EndSize
  711. end
  712. else
  713. if(Msh)then
  714. Msh.Scale = Msh.Scale - grow/Frames
  715. else
  716. Prt.Size = Prt.Size - grow/Frames
  717. end
  718. end
  719. Prt.Transparency = (Frame/Frames)
  720. end
  721. if(Settings.RandomizeCFrame)then
  722. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  723. end
  724. if(MoveDir and MoveSpeed)then
  725. local Orientation = Prt.Orientation
  726. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  727. Prt.Orientation = Orientation
  728. end
  729. if(Prt.Transparency >= 1 or Frame >= Frames)then
  730. Prt:destroy()
  731. table.remove(FXTable,i)
  732. else
  733. data.Frame = Frame
  734. end
  735. else
  736. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  737. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  738. if(start and endP)then
  739. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  740. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  741. Frame = Frame + (Settings.Speed or 0.01)
  742. if(Settings.Home)then
  743. endP = Settings.Home.CFrame
  744. end
  745. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  746. if(Prt.Transparency >= 1 or Frame >= Frames)then
  747. if(Settings.RemoveOnGoal)then
  748. Prt:destroy()
  749. end
  750. end
  751. else
  752. Prt:destroy()
  753. end
  754. end
  755. end
  756. end
  757. swait()
  758. end
  759. end))
  760.  
  761. function Effect(data)
  762. local FX = data.Effect or 'ResizeAndFade'
  763. local Parent = data.Parent or Effects
  764. local Color = data.Color or C3.N(0,0,0)
  765. local Size = data.Size or V3.N(1,1,1)
  766. local MoveDir = data.MoveDirection or nil
  767. local MeshData = data.Mesh or nil
  768. local SndData = data.Sound or nil
  769. local Frames = data.Frames or 45
  770. local Manual = data.Manual or nil
  771. local Material = data.Material or nil
  772. local CFra = data.CFrame or Torso.CFrame
  773. local Settings = data.FXSettings or {}
  774. local Shape = data.Shape or Enum.PartType.Block
  775. local Snd,Prt,Msh;
  776. coroutine.wrap(function()
  777. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  778. Prt = Manual
  779. else
  780. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  781. Prt.Shape = Shape
  782. end
  783. if(typeof(MeshData) == 'table')then
  784. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  785. elseif(typeof(MeshData) == 'Instance')then
  786. Msh = MeshData:Clone()
  787. Msh.Parent = Prt
  788. elseif(Shape == Enum.PartType.Block)then
  789. Msh = Mesh(Prt,Enum.MeshType.Brick)
  790. end
  791. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  792. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  793. end
  794. if(Snd)then
  795. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  796. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  797. end
  798. Size = (Msh and Msh.Scale or Size)
  799. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  800.  
  801. local MoveSpeed = nil;
  802. if(MoveDir)then
  803. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  804. end
  805. if(FX ~= 'Arc')then
  806. for Frame = 1, Frames do
  807. if(FX == "Fade")then
  808. Prt.Transparency = (Frame/Frames)
  809. elseif(FX == "Resize")then
  810. if(not Settings.EndSize)then
  811. Settings.EndSize = V3.N(0,0,0)
  812. end
  813. if(Settings.EndIsIncrement)then
  814. if(Msh)then
  815. Msh.Scale = Msh.Scale + Settings.EndSize
  816. else
  817. Prt.Size = Prt.Size + Settings.EndSize
  818. end
  819. else
  820. if(Msh)then
  821. Msh.Scale = Msh.Scale - grow/Frames
  822. else
  823. Prt.Size = Prt.Size - grow/Frames
  824. end
  825. end
  826. elseif(FX == "ResizeAndFade")then
  827. if(not Settings.EndSize)then
  828. Settings.EndSize = V3.N(0,0,0)
  829. end
  830. if(Settings.EndIsIncrement)then
  831. if(Msh)then
  832. Msh.Scale = Msh.Scale + Settings.EndSize
  833. else
  834. Prt.Size = Prt.Size + Settings.EndSize
  835. end
  836. else
  837. if(Msh)then
  838. Msh.Scale = Msh.Scale - grow/Frames
  839. else
  840. Prt.Size = Prt.Size - grow/Frames
  841. end
  842. end
  843. Prt.Transparency = (Frame/Frames)
  844. end
  845. if(Settings.RandomizeCFrame)then
  846. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  847. end
  848. if(MoveDir and MoveSpeed)then
  849. local Orientation = Prt.Orientation
  850. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  851. Prt.Orientation = Orientation
  852. end
  853. swait()
  854. end
  855. Prt:destroy()
  856. else
  857. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  858. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  859. if(start and endP)then
  860. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  861. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  862. for Frame = 0, 1, (Settings.Speed or 0.01) do
  863. if(Settings.Home)then
  864. endP = Settings.Home.CFrame
  865. end
  866. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  867. end
  868. if(Settings.RemoveOnGoal)then
  869. Prt:destroy()
  870. end
  871. else
  872. Prt:destroy()
  873. assert(start,"You need a start position!")
  874. assert(endP,"You need a start position!")
  875. end
  876. end
  877. end)()
  878. return Prt,Msh,Snd
  879. end
  880.  
  881.  
  882.  
  883. function SoulSteal(whom,human)
  884. local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso')
  885. local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end)
  886. if(torso and torso:IsA'BasePart' and alive == true)then
  887. whom:FindFirstChildOfClass'Humanoid'.Health = 0
  888. whom:BreakJoints()
  889. local Model = IN("Model",Effects)
  890. warn('Soul stolen from '..whom.Name)
  891. Model.Name = whom.Name.."'s Soul"
  892. local Soul = Part(Model,(human and BrickColor.new'Really red' or BrickColor.new(C3.N(1,1,1))),'Glass',V3.N(1,1,1),torso.CFrame,true,false)
  893. Soul.CanCollide=false
  894. Mesh(Soul,Enum.MeshType.Sphere)
  895. Soul.Name = 'Head'
  896. if(whom.Name == 'CKbackup')then
  897. Soul.Color = C3.N(1,1,1)
  898. local DripEmitter = NewInstance("ParticleEmitter",Soul,{EmissionDirection='Bottom',Color=CS(Soul.Color),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://243132757",Transparency=NumberSequence.new(0,1),LockedToPart=false,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(5)})
  899. end
  900. local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)})
  901. local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)})
  902. local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)})
  903. local Trail = NewInstance("Trail",Soul,{Attachment0=AT0,Attachment1=AT1,Transparency=NumberSequence.new(0),FaceCamera = true,Texture="rbxassetid://945758042",LightEmission=.3,Color=CS(Soul.Color),Lifetime=.5,MinLength=0})
  904. NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)})
  905.  
  906. local turdso = Soul:Clone()
  907. turdso.Name = "Torso"
  908. turdso.CanCollide = false
  909. turdso.Anchored = true
  910. turdso.CFrame = Soul.CFrame
  911. turdso.Parent = Model
  912. turdso.Size = V3.N()
  913. turdso.Transparency=1
  914. local Distance = math.huge
  915. repeat
  916. Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1)
  917. turdso.CFrame = Soul.CFrame
  918. Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude
  919. swait()
  920. until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2
  921. if(Soul.Parent and Hoom.Health > 0)then
  922. Model:destroy()
  923. Effect{
  924. Effect="ResizeAndFade",
  925. Mesh={Enum.MeshType.Sphere},
  926. Color = Soul.Color,
  927. CFrame=Torso.CFrame,
  928. Size=V3.N(3,3,3),
  929. Material=Enum.Material.Neon,
  930. Sound={SoundId=444667859,Pitch=1,Volume=2.5},
  931. FXSettings={
  932. EndSize=V3.N(6,6,6),
  933. }
  934. }
  935. Souls = Souls + (human and 1 or .1)
  936. warn("Souls: "..Souls)
  937. MaxHealth = MaxHealth + Hoom.Health
  938. Hum.Health = Hum.Health + Hoom.Health
  939. for i = 1, 5 do
  940. Effect{
  941. Effect="Fade",
  942. Color = Soul.Color,
  943. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  944. }
  945. end
  946. else
  947.  
  948. warn("Soul destroyed!")
  949. for i = 1, 5 do
  950. Effect{
  951. Effect="Fade",
  952. Color = Soul.Color,
  953. CFrame=Soul.CFrame,
  954. MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  955. }
  956. end
  957. Effect{
  958. Effect="ResizeAndFade",
  959. Mesh={Enum.MeshType.Sphere},
  960. Sound={SoundId=444667859,Pitch=1,Volume=5},
  961. Color = Soul.Color,
  962. CFrame=Soul.CFrame,
  963. Size=V3.N(3,3,3),
  964. Material=Enum.Material.Neon,
  965. FXSettings={
  966. EndSize=V3.N(6,6,6),
  967. }
  968. }
  969. Model:destroy()
  970. end
  971. end
  972. end
  973.  
  974. --// Other Functions \\ --
  975.  
  976. function getRegion(point,range,ignore)
  977. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  978. end
  979.  
  980. function clerp(startCF,endCF,alpha)
  981. return startCF:lerp(endCF, alpha)
  982. end
  983.  
  984. function GetTorso(char)
  985. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  986. end
  987.  
  988. function ShowDamage(Pos, Text, Time, Color)
  989. coroutine.wrap(function()
  990. local Rate = (1 / Frame_Speed)
  991. local Pos = (Pos or Vector3.new(0, 0, 0))
  992. local Text = (Text or "")
  993. local Time = (Time or 2)
  994. local Color = (Color or Color3.new(1, 0, 1))
  995. local EffectPart = NewInstance("Part",Effects,{
  996. Material=Enum.Material.SmoothPlastic,
  997. Reflectance = 0,
  998. Transparency = 1,
  999. BrickColor = BrickColor.new(Color),
  1000. Name = "Effect",
  1001. Size = Vector3.new(0,0,0),
  1002. Anchored = true,
  1003. CFrame = CF.N(Pos)
  1004. })
  1005. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  1006. Size = UDim2.new(1.25, 0, 1.25, 0),
  1007. Adornee = EffectPart,
  1008. })
  1009. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  1010. BackgroundTransparency = 1,
  1011. Size = UDim2.new(1, 0, 1, 0),
  1012. Text = Text,
  1013. Font = "Arcade",
  1014. TextColor3 = Color,
  1015. TextStrokeColor3 = Color3.new(0,0,0),
  1016. TextStrokeTransparency=0,
  1017. TextScaled = true,
  1018. })
  1019. S.Debris:AddItem(EffectPart, (Time))
  1020. EffectPart.Parent = workspace
  1021. delay(0, function()
  1022. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1023. local Frames = (Time / Rate)
  1024. for Frame = 1, Frames do
  1025. swait()
  1026. local Percent = (Frame / Frames)
  1027. TextLabel.TextTransparency = Percent
  1028. TextLabel.TextStrokeTransparency = Percent
  1029. end
  1030. if EffectPart and EffectPart.Parent then
  1031. EffectPart:Destroy()
  1032. end
  1033. end) end)()
  1034. end
  1035.  
  1036. function Kill(whom)
  1037. if(whom.Name ~= 'Nebula_Zorua')then
  1038. local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil
  1039. coroutine.wrap(SoulSteal)(whom,isPlr)
  1040. for _,v in next, whom:children() do
  1041. if(v:IsA'BasePart')then
  1042. v.Parent = Effects
  1043. v:ClearAllChildren()
  1044. v.Anchored = true
  1045. v.CanCollide = false
  1046. v.Transparency = 1
  1047. local dust = NewInstance("ParticleEmitter",v,{
  1048. Color = ColorSequence.new(C3.N(1,1,1)),
  1049. LightEmission=0,
  1050. LightInfluence=1,
  1051. Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)},
  1052. Texture="rbxassetid://284205403",
  1053. Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)},
  1054. Lifetime = NumberRange.new(1),
  1055. Rate=150,
  1056. Acceleration = V3.N(0,10,0),
  1057. Speed = NumberRange.new(5),
  1058. Enabled = true
  1059. })
  1060. delay(1, function()
  1061. dust.Enabled = false
  1062. S.Debris:AddItem(v,2)
  1063. end)
  1064. end
  1065. end
  1066. else
  1067. warn"nope. nawt happenin'"
  1068. end
  1069. end
  1070.  
  1071. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  1072. if(who)then
  1073. local hum = who:FindFirstChildOfClass'Humanoid'
  1074. local Damage = M.RNG(minDam,maxDam)
  1075. local canHit = true
  1076. if(hum)then
  1077. for _, p in pairs(Hit) do
  1078. if p[1] == hum then
  1079. if(time() - p[2] < 0.4) then
  1080. canHit = false
  1081. else
  1082. Hit[_] = nil
  1083. end
  1084. end
  1085. end
  1086. if(canHit)then
  1087. table.insert(Hit,{hum,time()})
  1088. if(GetTorso(who))then
  1089. Sound(GetTorso(who),406913243,1,10,false,true,true)
  1090. end
  1091. if(hum.Health >= math.huge)then
  1092. Kill(who)
  1093. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1094. 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))), "INSTANT", 3, DamageColor.Color)
  1095. end
  1096. else
  1097. local player = S.Players:GetPlayerFromCharacter(who)
  1098. if(Type == "Fire")then
  1099. --idk..
  1100. else
  1101. local c = Instance.new("ObjectValue",hum)
  1102. c.Name = "creator"
  1103. c.Value = Plr
  1104. game:service'Debris':AddItem(c,0.35)
  1105. local Crit = false
  1106. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  1107. Crit = true
  1108. Damage = Damage*(critMult or 2)
  1109. end
  1110. Damage = Damage*((Souls/5)+1)
  1111. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1112. 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))), (Crit and "[CRIT] " or "").. math.floor(Damage), 3, (Crit and BrickColor.new'New Yeller'.Color or DamageColor.Color))
  1113. end
  1114.  
  1115. if(hum.Health - Damage <= 0)then
  1116. Kill(who)
  1117. else
  1118. hum.Health = hum.Health - Damage
  1119. if(Type == 'Knockback' and GetTorso(who))then
  1120. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  1121. local body = NewInstance('BodyVelocity',GetTorso(who),{
  1122. P = 500,
  1123. maxForce = V3.N(math.huge,0,math.huge),
  1124. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  1125. })
  1126. game:service'Debris':AddItem(body,.5)
  1127. elseif(Type == "Electric")then
  1128. if(M.RNG(1,100) >= critChance)then
  1129. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1130. 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))), "[PARALYZED]", 3, BrickColor.new"New Yeller".Color)
  1131. end
  1132. local asd = hum.WalkSpeed/2
  1133. hum.WalkSpeed = asd
  1134. local paralyzed = true
  1135. coroutine.wrap(function()
  1136. while paralyzed do
  1137. swait(25)
  1138. if(M.RNG(1,25) == 1)then
  1139. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1140. 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))), "[STATIC]", 3, BrickColor.new"New Yeller".Color)
  1141. end
  1142. hum.PlatformStand = true
  1143. end
  1144. end
  1145. end)()
  1146. delay(4, function()
  1147. paralyzed = false
  1148. hum.WalkSpeed = hum.WalkSpeed + asd
  1149. end)
  1150. end
  1151.  
  1152. elseif(Type == 'Knockdown' and GetTorso(who))then
  1153. local rek = GetTorso(who)
  1154. hum.PlatformStand = true
  1155. delay(1,function()
  1156. hum.PlatformStand = false
  1157. end)
  1158. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  1159. local bodvol = NewInstance("BodyVelocity",rek,{
  1160. velocity = angle * Knock,
  1161. P = 5000,
  1162. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1163. })
  1164. local rl = NewInstance("BodyAngularVelocity",rek,{
  1165. P = 3000,
  1166. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1167. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1168. })
  1169. game:GetService("Debris"):AddItem(bodvol, .5)
  1170. game:GetService("Debris"):AddItem(rl, .5)
  1171. end
  1172. end
  1173. end
  1174. end
  1175. end
  1176. end
  1177. end
  1178. end
  1179.  
  1180.  
  1181. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  1182. for _,v in next, getRegion(where,range,{Char}) do
  1183. if(v.Name ~= 'Nebula_Zorua')then
  1184. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  1185. DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
  1186. end
  1187. end
  1188. end
  1189. end
  1190.  
  1191. function AOEKill(where,range)
  1192. for _,v in next, getRegion(where,range,{Char,Effects}) do
  1193. local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end)
  1194. if(v.Name ~= 'Nebula_Zorua')then
  1195. if(v.Parent and alive == true)then
  1196. coroutine.wrap(Kill)(v.Parent)
  1197. end
  1198. end
  1199. end
  1200. end
  1201.  
  1202. function AOEHeal(where,range,amount)
  1203. local healed = {}
  1204. for _,v in next, getRegion(where,range,{Char}) do
  1205. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1206. if(hum and not healed[hum])then
  1207. hum.Health = hum.Health + amount
  1208. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1209. 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)
  1210. end
  1211. end
  1212. end
  1213. end
  1214.  
  1215.  
  1216. --// Attack Functions \\--
  1217.  
  1218.  
  1219. function Slash()
  1220. Attack = true
  1221. NeutralAnims = false
  1222. local sound = Sound(Knife,437475935,1,5,false,true,false)
  1223. for i = 0, 2, 0.1 do
  1224. swait()
  1225. local Alpha = .2
  1226. RJ.C0 = clerp(RJ.C0,CFrame.new(0.0343287587, 0.00629056804, 0.0572580174, 0.943793893, 0.00207689893, 0.330528289, 1.0000764e-06, 0.99998033, -0.00628630351, -0.330534875, 0.00593330665, 0.943775296),Alpha)
  1227. LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.021652732, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha)
  1228. RH.C0 = clerp(RH.C0,CFrame.new(0.498511612, -0.990985274, 0.0154910646, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha)
  1229. LS.C0 = clerp(LS.C0,CFrame.new(-1.32692134, 0.474511296, -0.0055731535, 0.934981823, 0.354351997, 0.0156129003, -0.354479939, 0.93504262, 0.00628374517, -0.0123721063, -0.0114096552, 0.999858379),Alpha)
  1230. RS.C0 = clerp(RS.C0,CFrame.new(1.12629449, 0.369358033, -0.486052871, 0.490151912, 0.65154773, 0.57899636, 0.721657813, 0.0691910982, -0.688783586, -0.488836735, 0.755445719, -0.436280251),Alpha)
  1231. NK.C0 = clerp(NK.C0,CFrame.new(-0.0118216109, 1.49854016, -0.0795068145, 0.943793833, 0.0190048125, -0.329988182, 0.00207654224, 0.997985244, 0.0634154305, 0.330528468, -0.0605363287, 0.94185257),Alpha)
  1232. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1233. end
  1234. KTrail.Enabled = true
  1235. sound:Play()
  1236. for i = 0, 2.5, 0.1 do
  1237. swait()
  1238. AOEDamage(Knife.CFrame.p,1,15,30,0,"Normal",0,1)
  1239. local Alpha = .25
  1240. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0352100767, 0.00629066909, -0.0097481478, 0.817972422, -0.00361463916, -0.575246274, -1.74103582e-06, 0.99998033, -0.00628598873, 0.575257719, 0.00514276745, 0.817956269),Alpha)
  1241. LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.0216572341, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha)
  1242. RH.C0 = clerp(RH.C0,CFrame.new(0.498511702, -0.990985274, 0.0154905058, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha)
  1243. LS.C0 = clerp(LS.C0,CFrame.new(-1.32694602, 0.474510223, -0.00555660389, 0.934981823, 0.354351729, 0.0156157613, -0.354479671, 0.935042739, 0.00628153514, -0.012375474, -0.0114085823, 0.999858379),Alpha)
  1244. RS.C0 = clerp(RS.C0,CFrame.new(1.23906493, 0.406229913, 0.00231830776, 0.49015066, -0.849889755, 0.193494052, 0.721655607, 0.520183682, 0.456752002, -0.488841236, -0.0842411816, 0.868295968),Alpha)
  1245. NK.C0 = clerp(NK.C0,CFrame.new(0.0315471888, 1.49887729, -0.0257819965, 0.817972481, -0.0330747738, 0.574305832, -0.00361499586, 0.998030663, 0.0626262054, -0.575246155, -0.0533026271, 0.81624186),Alpha)
  1246. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1247. end
  1248. KTrail.Enabled = false
  1249. Attack = false
  1250. NeutralAnims = true
  1251. end
  1252.  
  1253. Mouse.Button1Down:connect(function()
  1254. if(Attack)then return end
  1255. Slash()
  1256. end)
  1257.  
  1258. Mouse.KeyDown:connect(function(k)
  1259. if(Attack)then return end
  1260. if(k == 'z')then AOEKill(Root.CFrame.p,25) end -- TODO: Animation and effects
  1261. if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 32 or 8) end
  1262. end)
  1263.  
  1264.  
  1265. function Refuse()
  1266. Attack = true
  1267. warn("B u t i t r e f u s e d.")
  1268. local oMH = MaxHealth
  1269. MaxHealth = "inf"
  1270. Hum.MaxHealth = "inf"
  1271. Hum.Health = "inf"
  1272. Char.Parent = nil
  1273. Hum:destroy()
  1274. if(not _G.RefusedAnimation)then
  1275. _G.RefusedAnimation = true
  1276.  
  1277.  
  1278. local Soul;
  1279. function Soul(where,decalId)
  1280. local destroy = false
  1281. local soul = NewInstance("Part",workspace)
  1282. soul.Name = "Soul"
  1283. soul.Transparency=1
  1284. soul.Size = V3.N(2,2,.05)
  1285. soul.Anchored=true
  1286. soul.CanCollide=false
  1287. soul.CFrame = where
  1288. local heartF = NewInstance("Decal",soul,{Face=Enum.NormalId.Front,Texture="rbxassetid://"..decalId})
  1289. local heartB = NewInstance("Decal",soul,{Face=Enum.NormalId.Back,Texture="rbxassetid://"..decalId})
  1290. return soul,heartF,heartB
  1291. end
  1292. local owo = Root.CFrame
  1293. local s,f,b = Soul(owo,1569347904)
  1294. swait(60)
  1295. local snd = Sound(s,862552636,1,5,false,false,false)
  1296. snd:Play()
  1297. f.Texture = "rbxassetid://1569348344"
  1298. b.Texture = "rbxassetid://1569348344"
  1299. swait(15)
  1300. snd:Stop()
  1301. swait(60)
  1302. print'lol'
  1303. for i = 0, 6, .1 do
  1304. swait()
  1305. s.CFrame = owo * CF.N(M.RNG(-50,50)/100,M.RNG(-50,50)/100,M.RNG(-50,50)/100)
  1306. end
  1307. local snd = Sound(s,862552636,1,5,false,false,false)
  1308. snd:Play()
  1309. s.CFrame = owo
  1310. f.Texture = "rbxassetid://1569347904"
  1311. b.Texture = "rbxassetid://1569347904"
  1312. swait(15)
  1313. snd:Stop()
  1314. swait(60)
  1315.  
  1316. s:destroy()
  1317. end
  1318.  
  1319. RJ.Parent = Char
  1320. LS.Parent = Char
  1321. RS.Parent = Char
  1322. LH.Parent = Char
  1323. RH.Parent = Char
  1324. NK.Parent = Char
  1325.  
  1326. LArm.Parent = Char
  1327. RArm.Parent = Char
  1328. LLeg.Parent = Char
  1329. LArm.Parent = Char
  1330. Root.Parent = Char
  1331. Torso.Parent = Char
  1332. Head.Parent = Char
  1333.  
  1334. Knife.Parent = Char
  1335. Hair.Parent = Char
  1336.  
  1337. HW.Parent = Char
  1338. HW2.Parent = Char
  1339.  
  1340.  
  1341. REye:destroy()
  1342. LEye:destroy()
  1343.  
  1344. for _,v in next, Char:children() do
  1345. if(v.Name == 'ShadowFace')then v:destroy() end
  1346. end
  1347. LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  1348. LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  1349. LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
  1350.  
  1351. REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  1352. REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  1353. REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
  1354. for i = 1, 35 do
  1355. local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
  1356. FACE.Transparency = 0+(i-1)/35.2
  1357. FACE.Name = 'ShadowFace'
  1358. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1359. NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
  1360. --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  1361. end
  1362. Hum = NewInstance("Humanoid",Char,{DisplayDistanceType='None'})
  1363. ConnectHum()
  1364. MaxHealth = oMH
  1365. Hum.MaxHealth = MaxHealth
  1366. Hum.Health = MaxHealth
  1367. swait(5)
  1368. Char.Parent = workspace
  1369.  
  1370. Attack = false
  1371. end
  1372.  
  1373. function ConnectHum()
  1374. Hum.Died:connect(Refuse)
  1375. end
  1376. ConnectHum()
  1377.  
  1378.  
  1379. --// Wrap it all up \\--
  1380. while true do
  1381. swait()
  1382. Sine = Sine + Change
  1383. if(not Music)then
  1384. Music = Sound(Torso,MusicID,1,3,true,false,true)
  1385. Music.Name = 'Music'
  1386. end
  1387. Music.Pitch = 1
  1388. Music.Volume = 5
  1389. Music.SoundId = "rbxassetid://"..MusicID
  1390. Music.Parent = Torso
  1391. Music:Resume()
  1392. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * 4), Char)
  1393. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1394. 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 "Walk" or hitfloor and "Idle")
  1395. if(not Effects or not Effects.Parent)then
  1396. Effects = IN("Model",Char)
  1397. Effects.Name = "Effects"
  1398. end
  1399. Hum.WalkSpeed = WalkSpeed
  1400. if(State == 'Walk')then
  1401. if(Hum.WalkSpeed >= 24)then
  1402. local wsVal = 22 / (Hum.WalkSpeed/16)
  1403. local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1)
  1404. Change = 2
  1405. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(25+45*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha)
  1406. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(25-45*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha)
  1407. else
  1408. Change = .9
  1409. local wsVal = 8 / (Hum.WalkSpeed/8)
  1410. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1411. LH.C1 = LH.C1:lerp(CF.N(0,1-.2*M.C(Sine/wsVal)/2,.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))-M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0-3*M.C(Sine/wsVal)),0,0),Alpha)
  1412. RH.C1 = RH.C1:lerp(CF.N(0,1+.2*M.C(Sine/wsVal)/2,-.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0+3*M.C(Sine/wsVal)),0,0),Alpha)
  1413. end
  1414. else
  1415. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1)
  1416. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1)
  1417. end
  1418. for _,v in next, Char:children() do
  1419. if(v:IsA'Accessory')then
  1420. v:destroy()
  1421. elseif(v:IsA'Shirt')then
  1422. v.ShirtTemplate = "rbxassetid://344089667"
  1423. elseif(v:IsA'Pants')then
  1424. v.PantsTemplate = "rbxassetid://344084364"
  1425. elseif(v:IsA'CharacterMesh')then
  1426. v:destroy()
  1427. elseif(v:FindFirstChildOfClass'ShirtGraphic')then
  1428. v:FindFirstChildOfClass'ShirtGraphic':destroy()
  1429. end
  1430. end
  1431. local face = Head:FindFirstChild'face'
  1432. if(not face)then
  1433. NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
  1434. else
  1435. face.Texture = "rbxassetid://404306534"
  1436. end
  1437. RArm.BrickColor = BrickColor.new'Pastel brown'
  1438. LArm.BrickColor = BrickColor.new'Pastel brown'
  1439. RLeg.BrickColor = BrickColor.new'Pastel brown'
  1440. LLeg.BrickColor = BrickColor.new'Pastel brown'
  1441. Torso.BrickColor = BrickColor.new'Pastel brown'
  1442. Head.BrickColor = BrickColor.new'Pastel brown'
  1443. Hum.Name = 'Chara'
  1444. if(Hum.MaxHealth ~= MaxHealth)then
  1445. Hum.MaxHealth = MaxHealth
  1446. end
  1447. Hum.DisplayDistanceType='None'
  1448. if(NeutralAnims)then
  1449. if(State == 'Idle')then
  1450. Change = 1
  1451. local Alpha = .1
  1452. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0999571308, 0+.05*M.C(Sine/16), -0.237876296, 0.857335567, -0.00323621999, -0.514731407, 0, 0.99998033, -0.00628707698, 0.51474154, 0.00539013464, 0.85731858),Alpha)
  1453. LH.C0 = clerp(LH.C0,CFrame.new(-0.536091685, -0.991042495-.05*M.C(Sine/16), -0.0134909991, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha)
  1454. RH.C0 = clerp(RH.C0,CFrame.new(0.529067397, -0.991597891-.05*M.C(Sine/16), -0.0818087086, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha)
  1455. LS.C0 = clerp(LS.C0,CFrame.new(-1.32175505, 0.156236127+.15*M.C(Sine/16), 0.233877867, 0.877554953, -0.456876248, 0.145469457, 0.259513229, 0.707695842, 0.657129884, -0.403175086, -0.538916171, 0.739607573),Alpha)
  1456. RS.C0 = clerp(RS.C0,CFrame.new(1.2516855, 0.604915917+.15*M.C(Sine/16), -0.0189059302, 0.915104508, -0.287113011, -0.283108115, 0.301054537, 0.953587949, 0.00603589695, 0.268235415, -0.0907544345, 0.959069014),Alpha)
  1457. NK.C0 = clerp(NK.C0,CFrame.new(1.79447234e-05, 1.49895597, -0.0143749639, 0.769539058, -0.360377938, 0.527197778, 0.387706369, 0.919646919, 0.0627188534, -0.507438183, 0.156133309, 0.847424924),Alpha)
  1458. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1459. -- idle
  1460. elseif(State == 'Walk')then
  1461. if(Hum.WalkSpeed >= 24)then
  1462. local wsVal = 22 / (Hum.WalkSpeed/16)
  1463. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1464. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15),M.R(0-15*M.S(Sine/wsVal)/2),0),Alpha)
  1465. 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+15*M.S(Sine/wsVal))),Alpha)
  1466. 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+15*M.S(Sine/wsVal))),Alpha)
  1467. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(15),0,0),Alpha)
  1468. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha)
  1469. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha)
  1470. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1471. else
  1472. local wsVal = 8 / (Hum.WalkSpeed/8)
  1473. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1474. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.05*M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(0-5*M.S(Sine/wsVal)/2),0),Alpha)
  1475. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-25*M.S(Sine/wsVal)),0,M.R(5-5*M.S(Sine/wsVal))),Alpha)
  1476. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+25*M.S(Sine/wsVal)),0,M.R(-5-5*M.S(Sine/wsVal))),Alpha)
  1477. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1478. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
  1479. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
  1480. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1481. end
  1482. elseif(State == 'Jump' or State == 'Fall')then
  1483. if(Walking)then
  1484. local Alpha = .2
  1485. RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha)
  1486. LH.C0 = clerp(LH.C0,CFrame.new(-0.497912645, -1.0987643, -0.0683324337, 0.999878228, 0.00860835519, 0.0130246133, -0.00010142161, 0.837816596, -0.545952022, -0.015611981, 0.545884132, 0.837715328),Alpha)
  1487. RH.C0 = clerp(RH.C0,CFrame.new(0.499978393, -1.16382337, 0.109293163, 0.999878228, -0.0120433727, 0.00993486121, -0.00010142161, 0.631323814, 0.775519371, -0.015611981, -0.775425911, 0.631245613),Alpha)
  1488. LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha)
  1489. RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha)
  1490. NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha)
  1491. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1492. else
  1493. local Alpha = .2
  1494. RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha)
  1495. LH.C0 = clerp(LH.C0,CFrame.new(-0.504374504, -0.291219354, -0.487436086, 0.999878228, -0.00438931212, 0.0149825988, -0.00010142161, 0.957819223, 0.287371844, -0.015611981, -0.287338346, 0.957701981),Alpha)
  1496. RH.C0 = clerp(RH.C0,CFrame.new(0.453094482, -0.871358454, 0.0898642987, 0.985589385, -0.168456957, 0.0153662469, 0.162863791, 0.969548643, 0.182895929, -0.0457084104, -0.177757636, 0.983012319),Alpha)
  1497. LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha)
  1498. RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha)
  1499. NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha)
  1500. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1501. end
  1502. elseif(State == 'Paralyzed')then
  1503. -- paralyzed
  1504. elseif(State == 'Sit')then
  1505. -- sit
  1506. end
  1507. end
  1508. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement