XSleepyDemonX_17

uncreative edgy undertale spec

Oct 11th, 2019 (edited)
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.84 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = owner
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = owner
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. -- Created by Nekuwo --
  87. -- H e h e h e . . . ---
  88.  
  89.  
  90. --// Initializing \\--
  91. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  92. local Plrs = S.Players
  93. local Plr = owner
  94. local Char = Plr.Character
  95. local Hum = Char:FindFirstChildOfClass'Humanoid'
  96. local RArm = Char["Right Arm"]
  97. local LArm = Char["Left Arm"]
  98. local RLeg = Char["Right Leg"]
  99. local LLeg = Char["Left Leg"]
  100. local Root = Char:FindFirstChild'HumanoidRootPart'
  101. local Torso = Char.Torso
  102. local Head = Char.Head
  103. local NeutralAnims = true
  104. local Attack = false
  105. local BloodPuddles = {}
  106. local Effects = {}
  107. local Debounces = {Debounces={}}
  108. local Hit = {}
  109. local Sine = 0
  110. local Change = 1
  111. local Souls = 0
  112. --// Debounce System \\--
  113.  
  114.  
  115. function Debounces:New(name,cooldown)
  116. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  117. setmetatable(aaaaa,{__index = Debounces})
  118. Debounces.Debounces[name] = aaaaa
  119. return aaaaa
  120. end
  121.  
  122. function Debounces:Use(overrideUsable)
  123. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  124. if(self.Usable or overrideUsable)then
  125. self.Usable = false
  126. self.CoolingDown = true
  127. local LastUse = time()
  128. self.LastUse = LastUse
  129. delay(self.Cooldown or 2,function()
  130. if(self.LastUse == LastUse)then
  131. self.CoolingDown = false
  132. self.Usable = true
  133. end
  134. end)
  135. end
  136. end
  137.  
  138. function Debounces:Get(name)
  139. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  140. for i,v in next, Debounces.Debounces do
  141. if(i == name)then
  142. return v;
  143. end
  144. end
  145. end
  146.  
  147. function Debounces:GetProgressPercentage()
  148. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  149. if(self.CoolingDown and not self.Usable)then
  150. return math.max(
  151. math.floor(
  152. (
  153. (time()-self.LastUse)/self.Cooldown or 2
  154. )*100
  155. )
  156. )
  157. else
  158. return 100
  159. end
  160. end
  161.  
  162. --// Shortcut Variables \\--
  163. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  164. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  165. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  166. 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}
  167. local R3 = {N=Region3.new}
  168. local De = S.Debris
  169. local WS = workspace
  170. local Lght = S.Lighting
  171. local RepS = S.ReplicatedStorage
  172. local IN = Instance.new
  173. local CSK = ColorSequenceKeypoint.new
  174. local CS = ColorSequence.new
  175. --// Instance Creation Functions \\--
  176.  
  177. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  178. local Sound = IN("Sound")
  179. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  180. Sound.Pitch = pitch or 1
  181. Sound.Volume = volume or 1
  182. Sound.Looped = looped or false
  183. if(autoPlay)then
  184. coroutine.wrap(function()
  185. repeat wait() until Sound.IsLoaded
  186. Sound.Playing = autoPlay or false
  187. end)()
  188. end
  189. if(not looped and effect)then
  190. Sound.Stopped:connect(function()
  191. Sound.Volume = 0
  192. Sound:destroy()
  193. end)
  194. elseif(effect)then
  195. warn("Sound can't be looped and a sound effect!")
  196. end
  197. Sound.Parent =parent or Torso
  198. return Sound
  199. end
  200. function Part(parent,color,material,size,cframe,anchored,cancollide)
  201. local part = IN("Part")
  202. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  203. part.Material = (material or Enum.Material.SmoothPlastic)
  204. part.TopSurface,part.BottomSurface=10,10
  205. part.Size = (size or V3.N(1,1,1))
  206. part.CFrame = (cframe or CF.N(0,0,0))
  207. part.Anchored = (anchored or false)
  208. part.CanCollide = (cancollide or false)
  209. part.Parent = (parent or Char)
  210. return part
  211. end
  212. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  213. local part = IN("SpecialMesh")
  214. part.MeshId = meshid or ""
  215. part.TextureId = textid or ""
  216. part.Scale = scale or V3.N(1,1,1)
  217. part.Offset = offset or V3.N(0,0,0)
  218. part.MeshType = meshtype or Enum.MeshType.Sphere
  219. part.Parent = parent
  220. return part
  221. end
  222.  
  223. NewInstance = function(instance,parent,properties)
  224. local inst = Instance.new(instance,parent)
  225. if(properties)then
  226. for i,v in next, properties do
  227. pcall(function() inst[i] = v end)
  228. end
  229. end
  230. return inst;
  231. end
  232.  
  233. local face = Head:FindFirstChild'face'
  234. if(not face)then
  235. NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
  236. else
  237. face.Texture = "rbxassetid://120463437"
  238. end
  239.  
  240. --// Extended ROBLOX tables \\--
  241. 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})
  242. --// Customization \\--
  243.  
  244. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  245. local Remove_Hats = false
  246. local Remove_Clothing = true
  247. local PlayerSize = 1
  248. local DamageColor = BrickColor.new'Really black'
  249. local MusicID = 1326552262
  250. local WalkSpeed = 8
  251. local MaxSouls = 100
  252. local MaxHealth = 500
  253.  
  254.  
  255. if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end
  256.  
  257. --// Weapon and GUI creation, and Character Customization \\--
  258.  
  259. local Effects = IN("Folder",Char)
  260. Effects.Name = "Effects"
  261.  
  262. Hum.MaxHealth = MaxHealth
  263. Hum.Health = MaxHealth
  264.  
  265. 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)})
  266. local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://121944778","rbxassetid://362719969",V3.N(1,1,1),V3.N())
  267. local AuraEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(0,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)})
  268. local FireEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS(C3.N(0,0,0),C3.N(255,255,255)),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)})
  269.  
  270. local KTrail = NewInstance("Trail",Knife,{
  271. Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}),
  272. Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}),
  273. Color=CS(C3.N(0,0,0)),
  274. Enabled=false,
  275. Transparency=NumberSequence.new(0,1),
  276. Lifetime=1.25,
  277. })
  278.  
  279. NewInstance("PointLight",Knife,{Color=C3.N(1,0,0),Range=10,Brightness=3})
  280.  
  281.  
  282. Hum.DisplayDistanceType = 'None'
  283.  
  284. local naeeym2 = IN("BillboardGui",Char)
  285. naeeym2.AlwaysOnTop = true
  286. naeeym2.Size = UDim2.new(5,35,2,15)
  287. naeeym2.StudsOffset = V3.N(0,2.5,0)
  288. naeeym2.Adornee = Char.Head
  289. naeeym2.Name = "Name"
  290. naeeym2.PlayerToHideFrom = Plr
  291. local tecks2 = IN("TextLabel",naeeym2)
  292. tecks2.BackgroundTransparency = 1
  293. tecks2.TextScaled = true
  294. tecks2.BorderSizePixel = 0
  295. tecks2.Text = "Determination"
  296. tecks2.Font = Enum.Font.Fantasy
  297. tecks2.TextSize = 30
  298. tecks2.TextStrokeTransparency = 0
  299. tecks2.TextColor3 = C3.N(0,0,0)
  300. tecks2.TextStrokeColor3 = C3.N(.7,0,0)
  301. tecks2.Size = UDim2.new(1,0,0.5,0)
  302. tecks2.Parent = naeeym2
  303.  
  304.  
  305. IN("Shirt",Char)
  306. IN("Pants",Char)
  307.  
  308. Hum.WalkSpeed = WalkSpeed
  309. if(PlayerSize ~= 1)then
  310. for _,v in next, Char:GetDescendats() do
  311. if(v:IsA'BasePart')then
  312. v.Size = v.Size * PlayerSize
  313. end
  314. end
  315. end
  316.  
  317. for i = 1, 35 do
  318. local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
  319. FACE.Transparency = 0+(i-1)/35.2
  320. FACE.Name = 'ShadowFace'
  321. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  322. NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
  323. --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  324. end
  325.  
  326. local LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  327. local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  328. local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
  329.  
  330. local REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  331. local REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  332. local REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
  333.  
  334. local Hair = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false)
  335. local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://4055069248","rbxassetid://4055087027",V3.N(1.05,1.05,1.05),V3.N())
  336.  
  337.  
  338. pcall(function()
  339. Char.LeftWing:destroy()
  340. Char.ReaperShadowHead:destroy()
  341. end)
  342.  
  343.  
  344. local Music = Sound(Torso,MusicID,1,3,true,false,true)
  345. Music.Name = 'Music'
  346.  
  347. --// Stop animations \\--
  348. for _,v in next, Hum:GetPlayingAnimationTracks() do
  349. v:Stop();
  350. end
  351.  
  352. pcall(game.Destroy,Char:FindFirstChild'Animate')
  353. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  354.  
  355.  
  356. for _,v in next, Char:children() do
  357. if(v.Name == 'ShadowFace')then v:destroy() end
  358. end
  359. LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  360. LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  361. LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
  362.  
  363. REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  364. REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  365. REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
  366. for i = 1, 35 do
  367. local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
  368. FACE.Transparency = 0+(i-1)/35.2
  369. FACE.Name = 'ShadowFace'
  370. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  371. NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
  372. --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  373. end
  374. --// Joints \\--
  375.  
  376. 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)})
  377. 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)})
  378. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  379. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  380. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  381. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  382. local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)})
  383. local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,1,-.25)})
  384.  
  385. local LSC0 = LS.C0
  386. local RSC0 = RS.C0
  387. local NKC0 = NK.C0
  388. local LHC0 = LH.C0
  389. local RHC0 = RH.C0
  390. local RJC0 = RJ.C0
  391.  
  392. --// Artificial HB \\--
  393.  
  394. local ArtificialHB = IN("BindableEvent", script)
  395. ArtificialHB.Name = "Heartbeat"
  396.  
  397. script:WaitForChild("Heartbeat")
  398.  
  399. local tf = 0
  400. local allowframeloss = false
  401. local tossremainder = false
  402. local lastframe = tick()
  403. local frame = 1/Frame_Speed
  404. ArtificialHB:Fire()
  405.  
  406. game:GetService("RunService").Heartbeat:connect(function(s, p)
  407. tf = tf + s
  408. if tf >= frame then
  409. if allowframeloss then
  410. script.Heartbeat:Fire()
  411. lastframe = tick()
  412. else
  413. for i = 1, math.floor(tf / frame) do
  414. ArtificialHB:Fire()
  415. end
  416. lastframe = tick()
  417. end
  418. if tossremainder then
  419. tf = 0
  420. else
  421. tf = tf - frame * math.floor(tf / frame)
  422. end
  423. end
  424. end)
  425.  
  426. function swait(num)
  427. if num == 0 or num == nil then
  428. ArtificialHB.Event:wait()
  429. else
  430. for i = 0, num do
  431. ArtificialHB.Event:wait()
  432. end
  433. end
  434. end
  435.  
  436.  
  437. --// Effect Function(s) \\--
  438.  
  439. function Bezier(startpos, pos2, pos3, endpos, t)
  440. local A = startpos:lerp(pos2, t)
  441. local B = pos2:lerp(pos3, t)
  442. local C = pos3:lerp(endpos, t)
  443. local lerp1 = A:lerp(B, t)
  444. local lerp2 = B:lerp(C, t)
  445. local cubic = lerp1:lerp(lerp2, t)
  446. return cubic
  447. end
  448.  
  449. function Tween(obj,props,time,easing,direction,repeats,backwards)
  450. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  451. local tween = S.TweenService:Create(obj, info, props)
  452.  
  453. tween:Play()
  454. end
  455.  
  456. local FXTable = {}
  457.  
  458. coroutine.resume(coroutine.create(function()
  459. while true do
  460. for i = 1, #FXTable do
  461. local data = FXTable[i]
  462. if(data)then
  463. local Frame = data.Frame
  464. local FX = data.Effect or 'ResizeAndFade'
  465. local Parent = data.Parent or Effects
  466. local Color = data.Color or C3.N(0,0,0)
  467. local Size = data.Size or V3.N(1,1,1)
  468. local MoveDir = data.MoveDirection or nil
  469. local MeshData = data.Mesh or nil
  470. local SndData = data.Sound or nil
  471. local Frames = data.Frames or 45
  472. local CFra = data.CFrame or Torso.CFrame
  473. local Settings = data.FXSettings or {}
  474. local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound
  475. local grow = data.Grow
  476.  
  477. local MoveSpeed = nil;
  478. if(MoveDir)then
  479. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  480. end
  481. if(FX ~= 'Arc')then
  482. Frame = Frame + 1
  483. if(FX == "Fade")then
  484. Prt.Transparency = (Frame/Frames)
  485. elseif(FX == "Resize")then
  486. if(not Settings.EndSize)then
  487. Settings.EndSize = V3.N(0,0,0)
  488. end
  489. if(Settings.EndIsIncrement)then
  490. if(Msh)then
  491. Msh.Scale = Msh.Scale + Settings.EndSize
  492. else
  493. Prt.Size = Prt.Size + Settings.EndSize
  494. end
  495. else
  496. if(Msh)then
  497. Msh.Scale = Msh.Scale - grow/Frames
  498. else
  499. Prt.Size = Prt.Size - grow/Frames
  500. end
  501. end
  502. elseif(FX == "ResizeAndFade")then
  503. if(not Settings.EndSize)then
  504. Settings.EndSize = V3.N(0,0,0)
  505. end
  506. if(Settings.EndIsIncrement)then
  507. if(Msh)then
  508. Msh.Scale = Msh.Scale + Settings.EndSize
  509. else
  510. Prt.Size = Prt.Size + Settings.EndSize
  511. end
  512. else
  513. if(Msh)then
  514. Msh.Scale = Msh.Scale - grow/Frames
  515. else
  516. Prt.Size = Prt.Size - grow/Frames
  517. end
  518. end
  519. Prt.Transparency = (Frame/Frames)
  520. end
  521. if(Settings.RandomizeCFrame)then
  522. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  523. end
  524. if(MoveDir and MoveSpeed)then
  525. local Orientation = Prt.Orientation
  526. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  527. Prt.Orientation = Orientation
  528. end
  529. if(Prt.Transparency >= 1 or Frame >= Frames)then
  530. Prt:destroy()
  531. table.remove(FXTable,i)
  532. else
  533. data.Frame = Frame
  534. end
  535. else
  536. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  537. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  538. if(start and endP)then
  539. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  540. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  541. Frame = Frame + (Settings.Speed or 0.01)
  542. if(Settings.Home)then
  543. endP = Settings.Home.CFrame
  544. end
  545. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  546. if(Prt.Transparency >= 1 or Frame >= Frames)then
  547. if(Settings.RemoveOnGoal)then
  548. Prt:destroy()
  549. end
  550. end
  551. else
  552. Prt:destroy()
  553. end
  554. end
  555. end
  556. end
  557. swait()
  558. end
  559. end))
  560.  
  561. function Effect(data)
  562. local FX = data.Effect or 'ResizeAndFade'
  563. local Parent = data.Parent or Effects
  564. local Color = data.Color or C3.N(0,0,0)
  565. local Size = data.Size or V3.N(1,1,1)
  566. local MoveDir = data.MoveDirection or nil
  567. local MeshData = data.Mesh or nil
  568. local SndData = data.Sound or nil
  569. local Frames = data.Frames or 45
  570. local Manual = data.Manual or nil
  571. local Material = data.Material or nil
  572. local CFra = data.CFrame or Torso.CFrame
  573. local Settings = data.FXSettings or {}
  574. local Shape = data.Shape or Enum.PartType.Block
  575. local Snd,Prt,Msh;
  576. coroutine.wrap(function()
  577. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  578. Prt = Manual
  579. else
  580. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  581. Prt.Shape = Shape
  582. end
  583. if(typeof(MeshData) == 'table')then
  584. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  585. elseif(typeof(MeshData) == 'Instance')then
  586. Msh = MeshData:Clone()
  587. Msh.Parent = Prt
  588. elseif(Shape == Enum.PartType.Block)then
  589. Msh = Mesh(Prt,Enum.MeshType.Brick)
  590. end
  591. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  592. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  593. end
  594. if(Snd)then
  595. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  596. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  597. end
  598. Size = (Msh and Msh.Scale or Size)
  599. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  600.  
  601. local MoveSpeed = nil;
  602. if(MoveDir)then
  603. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  604. end
  605. if(FX ~= 'Arc')then
  606. for Frame = 1, Frames do
  607. if(FX == "Fade")then
  608. Prt.Transparency = (Frame/Frames)
  609. elseif(FX == "Resize")then
  610. if(not Settings.EndSize)then
  611. Settings.EndSize = V3.N(0,0,0)
  612. end
  613. if(Settings.EndIsIncrement)then
  614. if(Msh)then
  615. Msh.Scale = Msh.Scale + Settings.EndSize
  616. else
  617. Prt.Size = Prt.Size + Settings.EndSize
  618. end
  619. else
  620. if(Msh)then
  621. Msh.Scale = Msh.Scale - grow/Frames
  622. else
  623. Prt.Size = Prt.Size - grow/Frames
  624. end
  625. end
  626. elseif(FX == "ResizeAndFade")then
  627. if(not Settings.EndSize)then
  628. Settings.EndSize = V3.N(0,0,0)
  629. end
  630. if(Settings.EndIsIncrement)then
  631. if(Msh)then
  632. Msh.Scale = Msh.Scale + Settings.EndSize
  633. else
  634. Prt.Size = Prt.Size + Settings.EndSize
  635. end
  636. else
  637. if(Msh)then
  638. Msh.Scale = Msh.Scale - grow/Frames
  639. else
  640. Prt.Size = Prt.Size - grow/Frames
  641. end
  642. end
  643. Prt.Transparency = (Frame/Frames)
  644. end
  645. if(Settings.RandomizeCFrame)then
  646. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  647. end
  648. if(MoveDir and MoveSpeed)then
  649. local Orientation = Prt.Orientation
  650. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  651. Prt.Orientation = Orientation
  652. end
  653. swait()
  654. end
  655. Prt:destroy()
  656. else
  657. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  658. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  659. if(start and endP)then
  660. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  661. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  662. for Frame = 0, 1, (Settings.Speed or 0.01) do
  663. if(Settings.Home)then
  664. endP = Settings.Home.CFrame
  665. end
  666. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  667. end
  668. if(Settings.RemoveOnGoal)then
  669. Prt:destroy()
  670. end
  671. else
  672. Prt:destroy()
  673. assert(start,"You need a start position!")
  674. assert(endP,"You need a start position!")
  675. end
  676. end
  677. end)()
  678. return Prt,Msh,Snd
  679. end
  680.  
  681.  
  682.  
  683. function SoulSteal(whom,human)
  684. local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso')
  685. local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end)
  686. if(torso and torso:IsA'BasePart' and alive == true)then
  687. whom:FindFirstChildOfClass'Humanoid'.Health = 0
  688. whom:BreakJoints()
  689. local Model = IN("Model",Effects)
  690. warn('Soul stolen from '..whom.Name)
  691. Model.Name = whom.Name.."'s Soul"
  692. 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)
  693. Soul.CanCollide=false
  694. Mesh(Soul,Enum.MeshType.Sphere)
  695. Soul.Name = 'Head'
  696. if(whom.Name == 'CKbackup')then
  697. Soul.Color = C3.N(1,1,1)
  698. 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)})
  699. end
  700. local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)})
  701. local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)})
  702. local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)})
  703. 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})
  704. NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)})
  705.  
  706. local turdso = Soul:Clone()
  707. turdso.Name = "Torso"
  708. turdso.CanCollide = false
  709. turdso.Anchored = true
  710. turdso.CFrame = Soul.CFrame
  711. turdso.Parent = Model
  712. turdso.Size = V3.N()
  713. turdso.Transparency=1
  714. local Distance = math.huge
  715. repeat
  716. Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1)
  717. turdso.CFrame = Soul.CFrame
  718. Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude
  719. swait()
  720. until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2
  721. if(Soul.Parent and Hoom.Health > 0)then
  722. Model:destroy()
  723. Effect{
  724. Effect="ResizeAndFade",
  725. Mesh={Enum.MeshType.Sphere},
  726. Color = Soul.Color,
  727. CFrame=Torso.CFrame,
  728. Size=V3.N(3,3,3),
  729. Material=Enum.Material.Neon,
  730. Sound={SoundId=444667859,Pitch=1,Volume=2.5},
  731. FXSettings={
  732. EndSize=V3.N(6,6,6),
  733. }
  734. }
  735. Souls = Souls + (human and 1 or .1)
  736. warn("Souls: "..Souls)
  737. MaxHealth = MaxHealth + Hoom.Health
  738. Hum.Health = Hum.Health + Hoom.Health
  739. for i = 1, 5 do
  740. Effect{
  741. Effect="Fade",
  742. Color = Soul.Color,
  743. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  744. }
  745. end
  746. else
  747.  
  748. warn("Soul destroyed!")
  749. for i = 1, 5 do
  750. Effect{
  751. Effect="Fade",
  752. Color = Soul.Color,
  753. CFrame=Soul.CFrame,
  754. MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  755. }
  756. end
  757. Effect{
  758. Effect="ResizeAndFade",
  759. Mesh={Enum.MeshType.Sphere},
  760. Sound={SoundId=444667859,Pitch=1,Volume=5},
  761. Color = Soul.Color,
  762. CFrame=Soul.CFrame,
  763. Size=V3.N(3,3,3),
  764. Material=Enum.Material.Neon,
  765. FXSettings={
  766. EndSize=V3.N(6,6,6),
  767. }
  768. }
  769. Model:destroy()
  770. end
  771. end
  772. end
  773.  
  774. --// Other Functions \\ --
  775.  
  776. function getRegion(point,range,ignore)
  777. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  778. end
  779.  
  780. function clerp(startCF,endCF,alpha)
  781. return startCF:lerp(endCF, alpha)
  782. end
  783.  
  784. function GetTorso(char)
  785. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  786. end
  787.  
  788. function ShowDamage(Pos, Text, Time, Color)
  789. coroutine.wrap(function()
  790. local Rate = (1 / Frame_Speed)
  791. local Pos = (Pos or Vector3.new(0, 0, 0))
  792. local Text = (Text or "")
  793. local Time = (Time or 2)
  794. local Color = (Color or Color3.new(1, 0, 1))
  795. local EffectPart = NewInstance("Part",Effects,{
  796. Material=Enum.Material.SmoothPlastic,
  797. Reflectance = 0,
  798. Transparency = 1,
  799. BrickColor = BrickColor.new(Color),
  800. Name = "Effect",
  801. Size = Vector3.new(0,0,0),
  802. Anchored = true,
  803. CFrame = CF.N(Pos)
  804. })
  805. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  806. Size = UDim2.new(1.25, 0, 1.25, 0),
  807. Adornee = EffectPart,
  808. })
  809. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  810. BackgroundTransparency = 1,
  811. Size = UDim2.new(1, 0, 1, 0),
  812. Text = Text,
  813. Font = "Arcade",
  814. TextColor3 = Color,
  815. TextStrokeColor3 = Color3.new(0,0,0),
  816. TextStrokeTransparency=0,
  817. TextScaled = true,
  818. })
  819. S.Debris:AddItem(EffectPart, (Time))
  820. EffectPart.Parent = workspace
  821. delay(0, function()
  822. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  823. local Frames = (Time / Rate)
  824. for Frame = 1, Frames do
  825. swait()
  826. local Percent = (Frame / Frames)
  827. TextLabel.TextTransparency = Percent
  828. TextLabel.TextStrokeTransparency = Percent
  829. end
  830. if EffectPart and EffectPart.Parent then
  831. EffectPart:Destroy()
  832. end
  833. end) end)()
  834. end
  835.  
  836. function Kill(whom)
  837. if(whom.Name ~= 'Nebula_Zorua')then
  838. local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil
  839. coroutine.wrap(SoulSteal)(whom,isPlr)
  840. for _,v in next, whom:children() do
  841. if(v:IsA'BasePart')then
  842. v.Parent = Effects
  843. v:ClearAllChildren()
  844. v.Anchored = true
  845. v.CanCollide = false
  846. v.Transparency = 1
  847. local dust = NewInstance("ParticleEmitter",v,{
  848. Color = ColorSequence.new(C3.N(1,1,1)),
  849. LightEmission=0,
  850. LightInfluence=1,
  851. Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)},
  852. Texture="rbxassetid://284205403",
  853. Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)},
  854. Lifetime = NumberRange.new(1),
  855. Rate=150,
  856. Acceleration = V3.N(0,10,0),
  857. Speed = NumberRange.new(5),
  858. Enabled = true
  859. })
  860. delay(1, function()
  861. dust.Enabled = false
  862. S.Debris:AddItem(v,2)
  863. end)
  864. end
  865. end
  866. else
  867. warn"nope. nawt happenin'"
  868. end
  869. end
  870.  
  871. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  872. if(who)then
  873. local hum = who:FindFirstChildOfClass'Humanoid'
  874. local Damage = M.RNG(minDam,maxDam)
  875. local canHit = true
  876. if(hum)then
  877. for _, p in pairs(Hit) do
  878. if p[1] == hum then
  879. if(time() - p[2] < 0.4) then
  880. canHit = false
  881. else
  882. Hit[_] = nil
  883. end
  884. end
  885. end
  886. if(canHit)then
  887. table.insert(Hit,{hum,time()})
  888. if(GetTorso(who))then
  889. Sound(GetTorso(who),406913243,1,10,false,true,true)
  890. end
  891. if(hum.Health >= math.huge)then
  892. Kill(who)
  893. if(who:FindFirstChild'Head' and hum.Health > 0)then
  894. 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)
  895. end
  896. else
  897. local player = S.Players:GetPlayerFromCharacter(who)
  898. if(Type == "Fire")then
  899. --idk..
  900. else
  901. local c = Instance.new("ObjectValue",hum)
  902. c.Name = "creator"
  903. c.Value = Plr
  904. game:service'Debris':AddItem(c,0.35)
  905. local Crit = false
  906. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  907. Crit = true
  908. Damage = Damage*(critMult or 2)
  909. end
  910. Damage = Damage*((Souls/5)+1)
  911. if(who:FindFirstChild'Head' and hum.Health > 0)then
  912. 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'Crimson'.Color or DamageColor.Color))
  913. end
  914.  
  915. if(hum.Health - Damage <= 0)then
  916. Kill(who)
  917. else
  918. hum.Health = hum.Health - Damage
  919. if(Type == 'Knockback' and GetTorso(who))then
  920. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  921. local body = NewInstance('BodyVelocity',GetTorso(who),{
  922. P = 500,
  923. maxForce = V3.N(math.huge,0,math.huge),
  924. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  925. })
  926. game:service'Debris':AddItem(body,.5)
  927. elseif(Type == "Electric")then
  928. if(M.RNG(1,100) >= critChance)then
  929. if(who:FindFirstChild'Head' and hum.Health > 0)then
  930. 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)
  931. end
  932. local asd = hum.WalkSpeed/2
  933. hum.WalkSpeed = asd
  934. local paralyzed = true
  935. coroutine.wrap(function()
  936. while paralyzed do
  937. swait(25)
  938. if(M.RNG(1,25) == 1)then
  939. if(who:FindFirstChild'Head' and hum.Health > 0)then
  940. 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)
  941. end
  942. hum.PlatformStand = true
  943. end
  944. end
  945. end)()
  946. delay(4, function()
  947. paralyzed = false
  948. hum.WalkSpeed = hum.WalkSpeed + asd
  949. end)
  950. end
  951.  
  952. elseif(Type == 'Knockdown' and GetTorso(who))then
  953. local rek = GetTorso(who)
  954. hum.PlatformStand = true
  955. delay(1,function()
  956. hum.PlatformStand = false
  957. end)
  958. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  959. local bodvol = NewInstance("BodyVelocity",rek,{
  960. velocity = angle * Knock,
  961. P = 5000,
  962. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  963. })
  964. local rl = NewInstance("BodyAngularVelocity",rek,{
  965. P = 3000,
  966. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  967. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  968. })
  969. game:GetService("Debris"):AddItem(bodvol, .5)
  970. game:GetService("Debris"):AddItem(rl, .5)
  971. end
  972. end
  973. end
  974. end
  975. end
  976. end
  977. end
  978. end
  979.  
  980.  
  981. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  982. for _,v in next, getRegion(where,range,{Char}) do
  983. if(v.Name ~= 'Nebula_Zorua')then
  984. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  985. DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
  986. end
  987. end
  988. end
  989. end
  990.  
  991. function AOEKill(where,range)
  992. for _,v in next, getRegion(where,range,{Char,Effects}) do
  993. local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end)
  994. if(v.Name ~= 'Nebula_Zorua')then
  995. if(v.Parent and alive == true)then
  996. coroutine.wrap(Kill)(v.Parent)
  997. end
  998. end
  999. end
  1000. end
  1001.  
  1002. function AOEHeal(where,range,amount)
  1003. local healed = {}
  1004. for _,v in next, getRegion(where,range,{Char}) do
  1005. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1006. if(hum and not healed[hum])then
  1007. hum.Health = hum.Health + amount
  1008. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1009. 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)
  1010. end
  1011. end
  1012. end
  1013. end
  1014.  
  1015.  
  1016. --// Attack Functions \\--
  1017.  
  1018.  
  1019. function Slash()
  1020. Attack = true
  1021. NeutralAnims = false
  1022. local sound = Sound(Knife,437475935,1,5,false,true,false)
  1023. for i = 0, 2, 0.1 do
  1024. swait()
  1025. local Alpha = .2
  1026. 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)
  1027. 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)
  1028. 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)
  1029. 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)
  1030. 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)
  1031. 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)
  1032. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1033. end
  1034. KTrail.Enabled = true
  1035. sound:Play()
  1036. for i = 0, 2.5, 0.1 do
  1037. swait()
  1038. AOEDamage(Knife.CFrame.p,1,15,30,0,"Normal",0,1)
  1039. local Alpha = .25
  1040. 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)
  1041. 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)
  1042. 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)
  1043. 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)
  1044. 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)
  1045. 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)
  1046. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1047. end
  1048. KTrail.Enabled = false
  1049. Attack = false
  1050. NeutralAnims = true
  1051. end
  1052.  
  1053. Mouse.Button1Down:connect(function()
  1054. if(Attack)then return end
  1055. Slash()
  1056. end)
  1057.  
  1058. Mouse.KeyDown:connect(function(k)
  1059. if(Attack)then return end
  1060. if(k == 'z')then AOEKill(Root.CFrame.p,25) end -- TODO: Animation and effects
  1061. if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 32 or 8) end
  1062. end)
  1063.  
  1064.  
  1065. function Refuse()
  1066. Attack = true
  1067. warn("G o o d b y e , p o o r s o u l .")
  1068. local oMH = MaxHealth
  1069. MaxHealth = "inf"
  1070. Hum.MaxHealth = "inf"
  1071. Hum.Health = "inf"
  1072. Char.Parent = nil
  1073. Hum:destroy()
  1074. if(not _G.RefusedAnimation)then
  1075. _G.RefusedAnimation = true
  1076.  
  1077.  
  1078. local Soul;
  1079. function Soul(where,decalId)
  1080. local destroy = false
  1081. local soul = NewInstance("Part",workspace)
  1082. soul.Name = "Soul"
  1083. soul.Transparency=1
  1084. soul.Size = V3.N(2,2,.05)
  1085. soul.Anchored=true
  1086. soul.CanCollide=false
  1087. soul.CFrame = where
  1088. local heartF = NewInstance("Decal",soul,{Face=Enum.NormalId.Front,Texture="rbxassetid://"..decalId})
  1089. local heartB = NewInstance("Decal",soul,{Face=Enum.NormalId.Back,Texture="rbxassetid://"..decalId})
  1090. return soul,heartF,heartB
  1091. end
  1092. local owo = Root.CFrame
  1093. local s,f,b = Soul(owo,1569347904)
  1094. swait(60)
  1095. local snd = Sound(s,862552636,1,5,false,false,false)
  1096. snd:Play()
  1097. f.Texture = "rbxassetid://1569348344"
  1098. b.Texture = "rbxassetid://1569348344"
  1099. swait(15)
  1100. snd:Stop()
  1101. swait(60)
  1102. print'lol'
  1103. for i = 0, 6, .1 do
  1104. swait()
  1105. s.CFrame = owo * CF.N(M.RNG(-50,50)/100,M.RNG(-50,50)/100,M.RNG(-50,50)/100)
  1106. end
  1107. local snd = Sound(s,862552636,1,5,false,false,false)
  1108. snd:Play()
  1109. s.CFrame = owo
  1110. f.Texture = "rbxassetid://1569347904"
  1111. b.Texture = "rbxassetid://1569347904"
  1112. swait(15)
  1113. snd:Stop()
  1114. swait(60)
  1115.  
  1116. s:destroy()
  1117. end
  1118.  
  1119. RJ.Parent = Char
  1120. LS.Parent = Char
  1121. RS.Parent = Char
  1122. LH.Parent = Char
  1123. RH.Parent = Char
  1124. NK.Parent = Char
  1125.  
  1126. LArm.Parent = Char
  1127. RArm.Parent = Char
  1128. LLeg.Parent = Char
  1129. LArm.Parent = Char
  1130. Root.Parent = Char
  1131. Torso.Parent = Char
  1132. Head.Parent = Char
  1133.  
  1134. Knife.Parent = Char
  1135. Hair.Parent = Char
  1136.  
  1137. HW.Parent = Char
  1138. HW2.Parent = Char
  1139.  
  1140.  
  1141. REye:destroy()
  1142. LEye:destroy()
  1143.  
  1144. for _,v in next, Char:children() do
  1145. if(v.Name == 'ShadowFace')then v:destroy() end
  1146. end
  1147. LEye = Part(Char,C3.N(1,1,1),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  1148. LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  1149. LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
  1150.  
  1151. REye = Part(Char,C3.N(1,1,1),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  1152. REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  1153. REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
  1154. for i = 1, 35 do
  1155. local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
  1156. FACE.Transparency = 0+(i-1)/35.2
  1157. FACE.Name = 'ShadowFace'
  1158. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1159. NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
  1160. --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  1161. end
  1162. Hum = NewInstance("Humanoid",Char,{DisplayDistanceType='None'})
  1163. ConnectHum()
  1164. MaxHealth = oMH
  1165. Hum.MaxHealth = MaxHealth
  1166. Hum.Health = MaxHealth
  1167. swait(5)
  1168. Char.Parent = workspace
  1169.  
  1170. Attack = false
  1171. end
  1172.  
  1173. function ConnectHum()
  1174. Hum.Died:connect(Refuse)
  1175. end
  1176. ConnectHum()
  1177.  
  1178. local AuraEmitter = NewInstance("ParticleEmitter",RArm,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(0,0,0)),CSK(0.5,C3.N(0,0,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)})
  1179. local FireEmitter = NewInstance("ParticleEmitter",RArm,{EmissionDirection='Back',Color=CS(C3.N(0,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(1,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)})
  1180.  
  1181. local AuraEmitter = NewInstance("ParticleEmitter",LArm,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(0,0,0)),CSK(0.5,C3.N(0,0,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)})
  1182. local FireEmitter = NewInstance("ParticleEmitter",LArm,{EmissionDirection='Back',Color=CS(C3.N(0,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(1,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)})
  1183.  
  1184. local AuraEmitter = NewInstance("ParticleEmitter",LLeg,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(0,0,0)),CSK(0.5,C3.N(0,0,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)})
  1185. local FireEmitter = NewInstance("ParticleEmitter",RLeg,{EmissionDirection='Back',Color=CS(C3.N(0,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(1,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)})
  1186.  
  1187. local AuraEmitter = NewInstance("ParticleEmitter",Torso,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(0,0,0)),CSK(0.5,C3.N(0,0,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)})
  1188. local FireEmitter = NewInstance("ParticleEmitter",Torso,{EmissionDirection='Back',Color=CS(C3.N(0,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(1,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)})
  1189.  
  1190. local AuraEmitter = NewInstance("ParticleEmitter",Head,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(0,0,0)),CSK(0.5,C3.N(0,0,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)})
  1191. local FireEmitter = NewInstance("ParticleEmitter",Head,{EmissionDirection='Back',Color=CS(C3.N(0,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(1,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)})
  1192.  
  1193.  
  1194. --// Wrap it all up \\--
  1195. while true do
  1196. swait()
  1197. Sine = Sine + Change
  1198. if(not Music)then
  1199. Music = Sound(Torso,MusicID,1,3,true,false,true)
  1200. Music.Name = 'Music'
  1201. end
  1202. Music.Pitch = 1
  1203. Music.Volume = 5
  1204. Music.SoundId = "rbxassetid://"..MusicID
  1205. Music.Parent = Torso
  1206. Music:Resume()
  1207. 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)
  1208. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1209. 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")
  1210. if(not Effects or not Effects.Parent)then
  1211. Effects = IN("Model",Char)
  1212. Effects.Name = "Effects"
  1213. end
  1214. Hum.WalkSpeed = WalkSpeed
  1215. if(State == 'Walk')then
  1216. if(Hum.WalkSpeed >= 24)then
  1217. local wsVal = 22 / (Hum.WalkSpeed/16)
  1218. local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1)
  1219. Change = 2
  1220. 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)
  1221. 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)
  1222. else
  1223. Change = .9
  1224. local wsVal = 8 / (Hum.WalkSpeed/8)
  1225. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1226. 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)
  1227. 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)
  1228. end
  1229. else
  1230. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1)
  1231. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1)
  1232. end
  1233.  
  1234. if(Hum.MaxHealth ~= MaxHealth)then
  1235. Hum.MaxHealth = MaxHealth
  1236. end
  1237. Hum.DisplayDistanceType='None'
  1238. if(NeutralAnims)then
  1239. if(State == 'Idle')then
  1240. Change = 1
  1241. local Alpha = .1
  1242. 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)
  1243. 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)
  1244. 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)
  1245. 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)
  1246. 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)
  1247. 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)
  1248. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1249. -- idle
  1250. elseif(State == 'Walk')then
  1251. if(Hum.WalkSpeed >= 24)then
  1252. local wsVal = 22 / (Hum.WalkSpeed/16)
  1253. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1254. 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)
  1255. 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)
  1256. 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)
  1257. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(15),0,0),Alpha)
  1258. 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)
  1259. 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)
  1260. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1261. else
  1262. local wsVal = 8 / (Hum.WalkSpeed/8)
  1263. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1264. 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)
  1265. 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)
  1266. 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)
  1267. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1268. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
  1269. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
  1270. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1271. end
  1272. elseif(State == 'Jump' or State == 'Fall')then
  1273. if(Walking)then
  1274. local Alpha = .2
  1275. 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)
  1276. 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)
  1277. 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)
  1278. 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)
  1279. 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)
  1280. 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)
  1281. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1282. else
  1283. local Alpha = .2
  1284. 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)
  1285. 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)
  1286. 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)
  1287. 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)
  1288. 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)
  1289. 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)
  1290. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1291. end
  1292. elseif(State == 'Paralyzed')then
  1293. -- paralyzed
  1294. elseif(State == 'Sit')then
  1295. -- sit
  1296. end
  1297. end
  1298. end
Add Comment
Please, Sign In to add comment