Advertisement
artucox7

Demoniac Chara

May 4th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.49 KB | None | 0 0
  1. --\\Created by Nebula_Zoura//--
  2. --\\Edit By Artucox7//--
  3.  
  4. --// Initializing \\--
  5. wait(1)
  6.  
  7. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  8. local Plrs = S.Players
  9. local Plr = Plrs.LocalPlayer
  10. local Char = Plr.Character
  11. local Hum = Char:FindFirstChildOfClass'Humanoid'
  12. local RArm = Char["Right Arm"]
  13. local LArm = Char["Left Arm"]
  14. local RLeg = Char["Right Leg"]
  15. local LLeg = Char["Left Leg"]
  16. local Root = Char:FindFirstChild'HumanoidRootPart'
  17. local Torso = Char.Torso
  18. local Head = Char.Head
  19. local NeutralAnims = true
  20. local Attack = false
  21. local BloodPuddles = {}
  22. local Effects = {}
  23. local Debounces = {Debounces={}}
  24. local Mouse = Plr:GetMouse()
  25. local Hit = {}
  26. local Sine = 0
  27. local Change = 1
  28. local Souls = 0
  29. local istransformed = nil
  30. local SuperChariskM = nil
  31. local PowerOfShad = nil
  32. --// Debounce System \\--
  33.  
  34. CF = CFrame.new
  35. angles = CFrame.Angles
  36. attack = false
  37. timetofly = true
  38. istransformed = nil
  39. SuperChariskM = nil
  40. PowerOfShad = nil
  41. Euler = CFrame.fromEulerAnglesXYZ
  42. Rad = math.rad
  43. IT = Instance.new
  44. BrickC = BrickColor.new
  45. Cos = math.cos
  46. Acos = math.acos
  47. Sin = math.sin
  48. Asin = math.asin
  49. Abs = math.abs
  50. Mrandom = math.random
  51. Floor = math.floor
  52. random = math.random
  53. radian = math.rad
  54. Vec3 = Vector3.new
  55. cFrame = CFrame.new
  56. Euler = CFrame.fromEulerAnglesXYZ
  57.  
  58.  
  59.  
  60. function Debounces:New(name,cooldown)
  61. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  62. setmetatable(aaaaa,{__index = Debounces})
  63. Debounces.Debounces[name] = aaaaa
  64. return aaaaa
  65. end
  66.  
  67. function Debounces:Use(overrideUsable)
  68. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  69. if(self.Usable or overrideUsable)then
  70. self.Usable = false
  71. self.CoolingDown = true
  72. local LastUse = time()
  73. self.LastUse = LastUse
  74. delay(self.Cooldown or 2,function()
  75. if(self.LastUse == LastUse)then
  76. self.CoolingDown = false
  77. self.Usable = true
  78. end
  79. end)
  80. end
  81. end
  82.  
  83. function Debounces:Get(name)
  84. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  85. for i,v in next, Debounces.Debounces do
  86. if(i == name)then
  87. return v;
  88. end
  89. end
  90. end
  91.  
  92. function Debounces:GetProgressPercentage()
  93. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  94. if(self.CoolingDown and not self.Usable)then
  95. return math.max(
  96. math.floor(
  97. (
  98. (time()-self.LastUse)/self.Cooldown or 2
  99. )*100
  100. )
  101. )
  102. else
  103. return 100
  104. end
  105. end
  106.  
  107. --// Shortcut Variables \\--
  108. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  109. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  110. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  111. 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}
  112. local R3 = {N=Region3.new}
  113. local De = S.Debris
  114. local WS = workspace
  115. local Lght = S.Lighting
  116. local RepS = S.ReplicatedStorage
  117. local IN = Instance.new
  118. local CSK = ColorSequenceKeypoint.new
  119. local CS = ColorSequence.new
  120. --// Instance Creation Functions \\--
  121.  
  122. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  123. local Sound = IN("Sound")
  124. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  125. Sound.Pitch = pitch or 1
  126. Sound.Volume = volume or 1
  127. Sound.Looped = looped or false
  128. if(autoPlay)then
  129. coroutine.wrap(function()
  130. repeat wait() until Sound.IsLoaded
  131. Sound.Playing = autoPlay or false
  132. end)()
  133. end
  134. if(not looped and effect)then
  135. Sound.Stopped:connect(function()
  136. Sound.Volume = 0
  137. Sound:destroy()
  138. end)
  139. elseif(effect)then
  140. warn("Sound can't be looped and a sound effect!")
  141. end
  142. Sound.Parent =parent or Torso
  143. return Sound
  144. end
  145. function Part(parent,color,material,size,cframe,anchored,cancollide)
  146. local part = IN("Part")
  147. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  148. part.Material = (material or Enum.Material.SmoothPlastic)
  149. part.TopSurface,part.BottomSurface=10,10
  150. part.Size = (size or V3.N(1,1,1))
  151. part.CFrame = (cframe or CF.N(0,0,0))
  152. part.Anchored = (anchored or false)
  153. part.CanCollide = (cancollide or false)
  154. part.Parent = (parent or Char)
  155. return part
  156. end
  157. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  158. local part = IN("SpecialMesh")
  159. part.MeshId = meshid or ""
  160. part.TextureId = textid or ""
  161. part.Scale = scale or V3.N(1,1,1)
  162. part.Offset = offset or V3.N(0,0,0)
  163. part.MeshType = meshtype or Enum.MeshType.Sphere
  164. part.Parent = parent
  165. return part
  166. end
  167.  
  168. NewInstance = function(instance,parent,properties)
  169. local inst = Instance.new(instance,parent)
  170. if(properties)then
  171. for i,v in next, properties do
  172. pcall(function() inst[i] = v end)
  173. end
  174. end
  175. return inst;
  176. end
  177.  
  178.  
  179. --// Extended ROBLOX tables \\--
  180. 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})
  181. --// Customization \\--
  182.  
  183. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  184. local Remove_Hats = false
  185. local Remove_Clothing = true
  186. local PlayerSize = 1
  187. local DamageColor = BrickColor.new'Really red'
  188. local MusicID = 335958739
  189. local WalkSpeed = 8
  190. local MaxSouls = 100
  191. local MaxHealth = 500
  192.  
  193.  
  194. if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end
  195.  
  196. --// Weapon and GUI creation, and Character Customization \\--
  197.  
  198. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  199. local Effects = IN("Folder",Char)
  200. Effects.Name = "Effects"
  201.  
  202. Hum.MaxHealth = MaxHealth
  203. Hum.Health = MaxHealth
  204.  
  205. 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)})
  206. local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://121944778","rbxassetid://362719969",V3.N(1,1,1),V3.N())
  207. 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)})
  208. 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)})
  209.  
  210. local KTrail = NewInstance("Trail",Knife,{
  211. Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}),
  212. Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}),
  213. Color=CS(C3.N(1,0,0)),
  214. Enabled=false,
  215. Transparency=NumberSequence.new(0,1),
  216. Lifetime=1.25,
  217. })
  218. local Hair = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false)
  219. local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://250264520","rbxassetid://75975464",V3.N(1.05,1.05,1.05),V3.N())
  220.  
  221. NewInstance("PointLight",Knife,{Color=C3.N(1,0,0),Range=10,Brightness=3})
  222.  
  223.  
  224. Hum.DisplayDistanceType = 'None'
  225.  
  226. -- Farewell Infortality.
  227. -- Version: 2.82
  228. -- Instances:
  229. local TAG = Instance.new("BillboardGui")
  230. local Tag = Instance.new("TextLabel")
  231. --Properties:
  232. TAG.Name = "TAG"
  233. TAG.Parent = Head
  234. TAG.LightInfluence = 1
  235. TAG.MaxDistance = 65
  236. TAG.Size = UDim2.new(0, 200, 0, 50)
  237. TAG.StudsOffset = Vector3.new(0, 2, 0)
  238.  
  239. Tag.Parent = TAG
  240. Tag.BackgroundColor3 = Color3.new(1, 1, 1)
  241. Tag.BackgroundTransparency = 1
  242. Tag.Size = UDim2.new(0, 200, 0, 50)
  243. Tag.Font = Enum.Font.Arcade
  244. Tag.Text = "Chara LV ???"
  245. Tag.TextColor3 = Color3.new(1, 0, 0)
  246. Tag.TextScaled = true
  247. Tag.TextSize = 50
  248. Tag.TextStrokeTransparency = 0
  249. Tag.TextWrapped = true
  250. Tag.TextXAlignment = Enum.TextXAlignment.Left
  251.  
  252. -- Farewell Infortality.
  253. -- Version: 2.82
  254. -- Instances:
  255. local Buttons = Instance.new("ScreenGui")
  256. local TextLabel = Instance.new("TextLabel")
  257. local Text = Instance.new("TextLabel")
  258. --Properties:
  259. Buttons.Name = "Buttons"
  260. Buttons.Parent = Plr.PlayerGui
  261. Buttons.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  262.  
  263. TextLabel.Parent = Buttons
  264. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  265. TextLabel.BackgroundTransparency = 1
  266. TextLabel.BorderSizePixel = 4
  267. TextLabel.Position = UDim2.new(0.783878505, 0, 0.777988553, 0)
  268. TextLabel.Size = UDim2.new(0, 185, 0, 42)
  269. TextLabel.Font = Enum.Font.SourceSans
  270. TextLabel.Text = "(Left Click) Slash"
  271. TextLabel.TextColor3 = Color3.new(1, 0, 0)
  272. TextLabel.TextScaled = true
  273. TextLabel.TextSize = 14
  274. TextLabel.TextStrokeTransparency = 0
  275. TextLabel.TextWrapped = true
  276. TextLabel.TextXAlignment = Enum.TextXAlignment.Right
  277. TextLabel.TextYAlignment = Enum.TextYAlignment.Top
  278.  
  279. Text.Name = "Text"
  280. Text.Parent = Buttons
  281. Text.BackgroundColor3 = Color3.new(1, 1, 1)
  282. Text.BackgroundTransparency = 1
  283. Text.BorderSizePixel = 4
  284. Text.Position = UDim2.new(0.783878505, 0, 0.880455375, 0)
  285. Text.Size = UDim2.new(0, 185, 0, 42)
  286. Text.Font = Enum.Font.SourceSans
  287. Text.Text = "(M) Frisk Mode"
  288. Text.TextColor3 = Color3.new(0.192157, 0.811765, 1)
  289. Text.TextScaled = true
  290. Text.TextSize = 14
  291. Text.TextStrokeTransparency = 0
  292. Text.TextWrapped = true
  293. Text.TextXAlignment = Enum.TextXAlignment.Right
  294. Text.TextYAlignment = Enum.TextYAlignment.Top
  295. -- Scripts:
  296.  
  297.  
  298. Hum.WalkSpeed = WalkSpeed
  299. if(PlayerSize ~= 1)then
  300. for _,v in next, Char:GetDescendats() do
  301. if(v:IsA'BasePart')then
  302. v.Size = v.Size * PlayerSize
  303. end
  304. end
  305. end
  306.  
  307.  
  308. local FHead = Instance.new("Part", Char)
  309. FHead.Name = "FHead"
  310. FHead.CanCollide = false
  311. FHead.BrickColor = BrickColor.new("Really black")
  312. FHead.Size = Vector3.new(1.20000005, 0.600000024, 1)
  313. FHead.CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  314. FHead.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  315. local Mesh = Instance.new("SpecialMesh", FHead)
  316. Mesh.Scale = Vector3.new(1.25999999, 1.5, 1.25999999)
  317. local Weld = Instance.new("Weld", FHead)
  318. Weld.Part0 = FHead
  319. Weld.Part1 = Head
  320. Weld.C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  321. FHead.CanCollide = false
  322.  
  323. local Eye2 = Instance.new("Part", Head)
  324. Eye2.Name = "Eye2"
  325. Eye2.Parent = Head
  326. Eye2.CFrame = Head.CFrame
  327. Eye2.BrickColor = BrickColor.new("Really red")
  328. Eye2.Material = "Neon"
  329. Eye2.formFactor = "Symmetric"
  330. Eye2.Size = Vector3.new(0.16, 0.16, 0.16)
  331. Eye2.CanCollide = false
  332. Eye2.Shape = "Ball"
  333. Eye2.TopSurface = "Smooth"
  334. Eye2.BottomSurface = "Smooth"
  335. Eye2.Locked = false
  336. ----------------------
  337. local Weld = Instance.new("Weld", Eye2)
  338. Weld.Part0 = Head
  339. Weld.C0 = CFrame.new(0.125,0.275,-0.56)*CFrame.Angles(0, 0, 0)
  340. Weld.Part1 = Eye2
  341.  
  342. local Eye3 = Instance.new("Part", Head)
  343. Eye3.Name = "Eye3"
  344. Eye3.Parent = Head
  345. Eye3.CFrame = Head.CFrame
  346. Eye3.BrickColor = BrickColor.new("Bright blue")
  347. Eye3.Material = "Neon"
  348. Eye3.formFactor = "Symmetric"
  349. Eye3.Size = Vector3.new(0.16, 0.16, 0.16)
  350. Eye3.CanCollide = false
  351. Eye3.Shape = "Ball"
  352. Eye3.TopSurface = "Smooth"
  353. Eye3.BottomSurface = "Smooth"
  354. Eye3.Locked = false
  355. Eye3.Transparency = 1
  356. ----------------------
  357. local Weld = Instance.new("Weld", Eye3)
  358. Weld.Part0 = Head
  359. Weld.C0 = CFrame.new(-0.105,0.275,-0.56)*CFrame.Angles(0, 0, 0)
  360. Weld.Part1 = Eye3
  361.  
  362. local Firep = Instance.new("Part", Head)
  363. Firep.Name = "Eye2"
  364. Firep.Parent = Head
  365. Firep.CFrame = Head.CFrame
  366. Firep.BrickColor = BrickColor.new("Really red")
  367. Firep.Material = "Neon"
  368. Firep.formFactor = "Symmetric"
  369. Firep.Size = Vector3.new(0.16, 0.16, 0.16)
  370. Firep.CanCollide = false
  371. Firep.Shape = "Ball"
  372. Firep.TopSurface = "Smooth"
  373. Firep.BottomSurface = "Smooth"
  374. Firep.Transparency = 1
  375. Firep.Locked = false
  376. ----------------------
  377. local Weld = Instance.new("Weld", Firep)
  378. Weld.Part0 = Head
  379. Weld.C0 = CFrame.new(0.325,0.265,-0.54)*CFrame.Angles(0, 0, 0)
  380. Weld.Part1 = Firep
  381.  
  382. Head.face.Texture = "rbxassetid://404306534"
  383.  
  384. pcall(function()
  385. Char.LeftWing:destroy()
  386. Char.ReaperShadowHead:destroy()
  387. end)
  388.  
  389. --// Died \\--
  390.  
  391. Char.Humanoid.Died:Connect(function()
  392. Buttons:Destroy()
  393. end)
  394.  
  395.  
  396.  
  397. --\\ Wing //--
  398.  
  399. local Wing1 = Instance.new("Part", Torso)
  400. Wing1.Name = "Wing1"
  401. Wing1.CFrame = Torso.CFrame
  402. Wing1.BrickColor = BrickColor.new("Really red")
  403. Wing1.Material = "Neon"
  404. Wing1.formFactor = "Symmetric"
  405. Wing1.Size = Vector3.new(0.16, 0.3, 0.42)
  406. Wing1.Orientation = Vector3.new(-16.27, 36.79, 53.31)
  407. Wing1.CanCollide = false
  408. Wing1.TopSurface = "Smooth"
  409. Wing1.BottomSurface = "Smooth"
  410. Wing1.Transparency = 1
  411. Wing1.Locked = false
  412. local Weld = Instance.new("Weld", Wing1)
  413. Weld.Part0 = Torso
  414. Weld.C0 = CFrame.new(-0.51,0.46,0.44)*CFrame.Angles(0, 0, 200)
  415. Weld.Part1 = Wing1
  416.  
  417. local Wing2 = Instance.new("Part", Torso)
  418. Wing2.Name = "Wing2"
  419. Wing2.CFrame = Torso.CFrame
  420. Wing2.BrickColor = BrickColor.new("Really red")
  421. Wing2.Material = "Neon"
  422. Wing2.formFactor = "Symmetric"
  423. Wing2.Size = Vector3.new(00.16, 0.3, 0.42)
  424. Wing2.CanCollide = false
  425. Wing2.TopSurface = "Smooth"
  426. Wing2.BottomSurface = "Smooth"
  427. Wing2.Transparency = 1
  428. Wing2.Locked = false
  429. local Weld2 = Instance.new("Weld", Wing2)
  430. Weld2.Part0 = Torso
  431. Weld2.C0 = CFrame.new(0.48,0.46,0.47)*CFrame.Angles(0, 0, -200)
  432. Weld2.Part1 = Wing2
  433.  
  434. local WingF1 = Instance.new("Fire", Wing1)
  435. WingF1.Size = 2
  436. WingF1.Heat = 25
  437. WingF1.Color = Color3.new(0,0,0)
  438. WingF1.SecondaryColor = Color3.new(0,0,0)
  439. local WingF2 = Instance.new("Fire", Wing2)
  440. WingF2.Size = 2
  441. WingF2.Heat = 25
  442. WingF2.Color = Color3.new(0,0,0)
  443. WingF2.SecondaryColor = Color3.new(0,0,0)
  444. local WingF3 = Instance.new("Fire", Wing1)
  445. WingF3.Size = 2
  446. WingF3.Heat = 25
  447. WingF3.Color = Color3.new(0,0,0)
  448. WingF3.SecondaryColor = Color3.new(0,0,0)
  449. local WingF4 = Instance.new("Fire", Wing2)
  450. WingF4.Size = 2
  451. WingF4.Heat = 25
  452. WingF4.Color = Color3.new(0,0,0)
  453. WingF4.SecondaryColor = Color3.new(0,0,0)
  454. local WingF5 = Instance.new("Fire", Wing1)
  455. WingF5.Size = 2
  456. WingF5.Heat = 25
  457. WingF5.Color = Color3.new(0,0,0)
  458. WingF5.SecondaryColor = Color3.new(0,0,0)
  459. local WingF6 = Instance.new("Fire", Wing2)
  460. WingF6.Size = 2
  461. WingF6.Heat = 25
  462. WingF6.Color = Color3.new(0,0,0)
  463. WingF6.SecondaryColor = Color3.new(0,0,0)
  464. WingF5:Clone()
  465. WingF6:Clone()
  466. WingF5:Clone()
  467. WingF6:Clone()
  468. WingF5:Clone()
  469. WingF6:Clone()
  470.  
  471. --// Stop animations \\--
  472. for _,v in next, Hum:GetPlayingAnimationTracks() do
  473. v:Stop();
  474. end
  475.  
  476. pcall(game.Destroy,Char:FindFirstChild'Animate')
  477. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  478.  
  479. --// Joints \\--
  480.  
  481. 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)})
  482. 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)})
  483. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  484. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  485. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  486. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  487. local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)})
  488. local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,.25,0)})
  489.  
  490. local LSC0 = LS.C0
  491. local RSC0 = RS.C0
  492. local NKC0 = NK.C0
  493. local LHC0 = LH.C0
  494. local RHC0 = RH.C0
  495. local RJC0 = RJ.C0
  496.  
  497. --// Artificial HB \\--
  498.  
  499. local ArtificialHB = IN("BindableEvent", script)
  500. ArtificialHB.Name = "Heartbeat"
  501.  
  502. script:WaitForChild("Heartbeat")
  503.  
  504. local tf = 0
  505. local allowframeloss = false
  506. local tossremainder = false
  507. local lastframe = tick()
  508. local frame = 1/Frame_Speed
  509. ArtificialHB:Fire()
  510.  
  511. game:GetService("RunService").Heartbeat:connect(function(s, p)
  512. tf = tf + s
  513. if tf >= frame then
  514. if allowframeloss then
  515. script.Heartbeat:Fire()
  516. lastframe = tick()
  517. else
  518. for i = 1, math.floor(tf / frame) do
  519. ArtificialHB:Fire()
  520. end
  521. lastframe = tick()
  522. end
  523. if tossremainder then
  524. tf = 0
  525. else
  526. tf = tf - frame * math.floor(tf / frame)
  527. end
  528. end
  529. end)
  530.  
  531. function swait(num)
  532. if num == 0 or num == nil then
  533. ArtificialHB.Event:wait()
  534. else
  535. for i = 0, num do
  536. ArtificialHB.Event:wait()
  537. end
  538. end
  539. end
  540.  
  541.  
  542. --// Effect Function(s) \\--
  543.  
  544. function Bezier(startpos, pos2, pos3, endpos, t)
  545. local A = startpos:lerp(pos2, t)
  546. local B = pos2:lerp(pos3, t)
  547. local C = pos3:lerp(endpos, t)
  548. local lerp1 = A:lerp(B, t)
  549. local lerp2 = B:lerp(C, t)
  550. local cubic = lerp1:lerp(lerp2, t)
  551. return cubic
  552. end
  553.  
  554. function Tween(obj,props,time,easing,direction,repeats,backwards)
  555. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  556. local tween = S.TweenService:Create(obj, info, props)
  557.  
  558. tween:Play()
  559. end
  560.  
  561. local FXTable = {}
  562.  
  563. coroutine.resume(coroutine.create(function()
  564. while true do
  565. for i = 1, #FXTable do
  566. local data = FXTable[i]
  567. if(data)then
  568. local Frame = data.Frame
  569. local FX = data.Effect or 'ResizeAndFade'
  570. local Parent = data.Parent or Effects
  571. local Color = data.Color or C3.N(0,0,0)
  572. local Size = data.Size or V3.N(1,1,1)
  573. local MoveDir = data.MoveDirection or nil
  574. local MeshData = data.Mesh or nil
  575. local SndData = data.Sound or nil
  576. local Frames = data.Frames or 45
  577. local CFra = data.CFrame or Torso.CFrame
  578. local Settings = data.FXSettings or {}
  579. local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound
  580. local grow = data.Grow
  581.  
  582. local MoveSpeed = nil;
  583. if(MoveDir)then
  584. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  585. end
  586. if(FX ~= 'Arc')then
  587. Frame = Frame + 1
  588. if(FX == "Fade")then
  589. Prt.Transparency = (Frame/Frames)
  590. elseif(FX == "Resize")then
  591. if(not Settings.EndSize)then
  592. Settings.EndSize = V3.N(0,0,0)
  593. end
  594. if(Settings.EndIsIncrement)then
  595. if(Msh)then
  596. Msh.Scale = Msh.Scale + Settings.EndSize
  597. else
  598. Prt.Size = Prt.Size + Settings.EndSize
  599. end
  600. else
  601. if(Msh)then
  602. Msh.Scale = Msh.Scale - grow/Frames
  603. else
  604. Prt.Size = Prt.Size - grow/Frames
  605. end
  606. end
  607. elseif(FX == "ResizeAndFade")then
  608. if(not Settings.EndSize)then
  609. Settings.EndSize = V3.N(0,0,0)
  610. end
  611. if(Settings.EndIsIncrement)then
  612. if(Msh)then
  613. Msh.Scale = Msh.Scale + Settings.EndSize
  614. else
  615. Prt.Size = Prt.Size + Settings.EndSize
  616. end
  617. else
  618. if(Msh)then
  619. Msh.Scale = Msh.Scale - grow/Frames
  620. else
  621. Prt.Size = Prt.Size - grow/Frames
  622. end
  623. end
  624. Prt.Transparency = (Frame/Frames)
  625. end
  626. if(Settings.RandomizeCFrame)then
  627. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  628. end
  629. if(MoveDir and MoveSpeed)then
  630. local Orientation = Prt.Orientation
  631. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  632. Prt.Orientation = Orientation
  633. end
  634. if(Prt.Transparency >= 1 or Frame >= Frames)then
  635. Prt:destroy()
  636. table.remove(FXTable,i)
  637. else
  638. data.Frame = Frame
  639. end
  640. else
  641. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  642. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  643. if(start and endP)then
  644. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  645. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  646. Frame = Frame + (Settings.Speed or 0.01)
  647. if(Settings.Home)then
  648. endP = Settings.Home.CFrame
  649. end
  650. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  651. if(Prt.Transparency >= 1 or Frame >= Frames)then
  652. if(Settings.RemoveOnGoal)then
  653. Prt:destroy()
  654. end
  655. end
  656. else
  657. Prt:destroy()
  658. end
  659. end
  660. end
  661. end
  662. swait()
  663. end
  664. end))
  665.  
  666. function Effect(data)
  667. local FX = data.Effect or 'ResizeAndFade'
  668. local Parent = data.Parent or Effects
  669. local Color = data.Color or C3.N(0,0,0)
  670. local Size = data.Size or V3.N(1,1,1)
  671. local MoveDir = data.MoveDirection or nil
  672. local MeshData = data.Mesh or nil
  673. local SndData = data.Sound or nil
  674. local Frames = data.Frames or 45
  675. local Manual = data.Manual or nil
  676. local Material = data.Material or nil
  677. local CFra = data.CFrame or Torso.CFrame
  678. local Settings = data.FXSettings or {}
  679. local Shape = data.Shape or Enum.PartType.Block
  680. local Snd,Prt,Msh;
  681. coroutine.wrap(function()
  682. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  683. Prt = Manual
  684. else
  685. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  686. Prt.Shape = Shape
  687. end
  688. if(typeof(MeshData) == 'table')then
  689. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  690. elseif(typeof(MeshData) == 'Instance')then
  691. Msh = MeshData:Clone()
  692. Msh.Parent = Prt
  693. elseif(Shape == Enum.PartType.Block)then
  694. Msh = Mesh(Prt,Enum.MeshType.Brick)
  695. end
  696. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  697. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  698. end
  699. if(Snd)then
  700. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  701. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  702. end
  703. Size = (Msh and Msh.Scale or Size)
  704. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  705.  
  706. local MoveSpeed = nil;
  707. if(MoveDir)then
  708. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  709. end
  710. if(FX ~= 'Arc')then
  711. for Frame = 1, Frames do
  712. if(FX == "Fade")then
  713. Prt.Transparency = (Frame/Frames)
  714. elseif(FX == "Resize")then
  715. if(not Settings.EndSize)then
  716. Settings.EndSize = V3.N(0,0,0)
  717. end
  718. if(Settings.EndIsIncrement)then
  719. if(Msh)then
  720. Msh.Scale = Msh.Scale + Settings.EndSize
  721. else
  722. Prt.Size = Prt.Size + Settings.EndSize
  723. end
  724. else
  725. if(Msh)then
  726. Msh.Scale = Msh.Scale - grow/Frames
  727. else
  728. Prt.Size = Prt.Size - grow/Frames
  729. end
  730. end
  731. elseif(FX == "ResizeAndFade")then
  732. if(not Settings.EndSize)then
  733. Settings.EndSize = V3.N(0,0,0)
  734. end
  735. if(Settings.EndIsIncrement)then
  736. if(Msh)then
  737. Msh.Scale = Msh.Scale + Settings.EndSize
  738. else
  739. Prt.Size = Prt.Size + Settings.EndSize
  740. end
  741. else
  742. if(Msh)then
  743. Msh.Scale = Msh.Scale - grow/Frames
  744. else
  745. Prt.Size = Prt.Size - grow/Frames
  746. end
  747. end
  748. Prt.Transparency = (Frame/Frames)
  749. end
  750. if(Settings.RandomizeCFrame)then
  751. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  752. end
  753. if(MoveDir and MoveSpeed)then
  754. local Orientation = Prt.Orientation
  755. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  756. Prt.Orientation = Orientation
  757. end
  758. swait()
  759. end
  760. Prt:destroy()
  761. else
  762. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  763. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  764. if(start and endP)then
  765. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  766. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  767. for Frame = 0, 1, (Settings.Speed or 0.01) do
  768. if(Settings.Home)then
  769. endP = Settings.Home.CFrame
  770. end
  771. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  772. end
  773. if(Settings.RemoveOnGoal)then
  774. Prt:destroy()
  775. end
  776. else
  777. Prt:destroy()
  778. assert(start,"You need a start position!")
  779. assert(endP,"You need a start position!")
  780. end
  781. end
  782. end)()
  783. return Prt,Msh,Snd
  784. end
  785.  
  786.  
  787.  
  788. function SoulSteal(whom,human)
  789. local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso')
  790. local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end)
  791. if(torso and torso:IsA'BasePart' and alive == true)then
  792. whom:FindFirstChildOfClass'Humanoid'.Health = 0
  793. whom:BreakJoints()
  794. local Model = IN("Model",Effects)
  795. warn('Soul stolen from '..whom.Name)
  796. Model.Name = whom.Name.."'s Soul"
  797. 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)
  798. Soul.CanCollide=false
  799. Mesh(Soul,Enum.MeshType.Sphere)
  800. Soul.Name = 'Head'
  801. if(whom.Name == 'CKbackup')then
  802. Soul.Color = C3.N(1,1,1)
  803. 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)})
  804. end
  805. local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)})
  806. local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)})
  807. local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)})
  808. 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})
  809. NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)})
  810.  
  811. local turdso = Soul:Clone()
  812. turdso.Name = "Torso"
  813. turdso.CanCollide = false
  814. turdso.Anchored = true
  815. turdso.CFrame = Soul.CFrame
  816. turdso.Parent = Model
  817. turdso.Size = V3.N()
  818. turdso.Transparency=1
  819. local Distance = math.huge
  820. repeat
  821. Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1)
  822. turdso.CFrame = Soul.CFrame
  823. Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude
  824. swait()
  825. until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2
  826. if(Soul.Parent and Hoom.Health > 0)then
  827. Model:destroy()
  828. Effect{
  829. Effect="ResizeAndFade",
  830. Mesh={Enum.MeshType.Sphere},
  831. Color = Soul.Color,
  832. CFrame=Torso.CFrame,
  833. Size=V3.N(3,3,3),
  834. Material=Enum.Material.Neon,
  835. Sound={SoundId=444667859,Pitch=1,Volume=2.5},
  836. FXSettings={
  837. EndSize=V3.N(6,6,6),
  838. }
  839. }
  840. Souls = Souls + (human and 1 or .1)
  841. warn("Souls: "..Souls)
  842. MaxHealth = MaxHealth + Hoom.Health
  843. Hum.Health = Hum.Health + Hoom.Health
  844. for i = 1, 5 do
  845. Effect{
  846. Effect="Fade",
  847. Color = Soul.Color,
  848. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  849. }
  850. end
  851. else
  852.  
  853. warn("Soul destroyed!")
  854. for i = 1, 5 do
  855. Effect{
  856. Effect="Fade",
  857. Color = Soul.Color,
  858. CFrame=Soul.CFrame,
  859. MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  860. }
  861. end
  862. Effect{
  863. Effect="ResizeAndFade",
  864. Mesh={Enum.MeshType.Sphere},
  865. Sound={SoundId=444667859,Pitch=1,Volume=5},
  866. Color = Soul.Color,
  867. CFrame=Soul.CFrame,
  868. Size=V3.N(3,3,3),
  869. Material=Enum.Material.Neon,
  870. FXSettings={
  871. EndSize=V3.N(6,6,6),
  872. }
  873. }
  874. Model:destroy()
  875. end
  876. end
  877. end
  878.  
  879. --// Other Functions \\ --
  880.  
  881. function getRegion(point,range,ignore)
  882. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  883. end
  884.  
  885. function clerp(startCF,endCF,alpha)
  886. return startCF:lerp(endCF, alpha)
  887. end
  888.  
  889. function GetTorso(char)
  890. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  891. end
  892.  
  893. function ShowDamage(Pos, Text, Time, Color)
  894. coroutine.wrap(function()
  895. local Rate = (1 / Frame_Speed)
  896. local Pos = (Pos or Vector3.new(0, 0, 0))
  897. local Text = (Text or "")
  898. local Time = (Time or 2)
  899. local Color = (Color or Color3.new(1, 0, 1))
  900. local EffectPart = NewInstance("Part",Effects,{
  901. Material=Enum.Material.SmoothPlastic,
  902. Reflectance = 0,
  903. Transparency = 1,
  904. BrickColor = BrickColor.new(Color),
  905. Name = "Effect",
  906. Size = Vector3.new(0,0,0),
  907. Anchored = true,
  908. CFrame = CF.N(Pos)
  909. })
  910. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  911. Size = UDim2.new(1.25, 0, 1.25, 0),
  912. Adornee = EffectPart,
  913. })
  914. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  915. BackgroundTransparency = 1,
  916. Size = UDim2.new(1, 0, 1, 0),
  917. Text = Text,
  918. Font = "Arcade",
  919. TextColor3 = Color,
  920. TextStrokeColor3 = Color3.new(0,0,0),
  921. TextStrokeTransparency=0,
  922. TextScaled = true,
  923. })
  924. S.Debris:AddItem(EffectPart, (Time))
  925. EffectPart.Parent = workspace
  926. delay(0, function()
  927. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  928. local Frames = (Time / Rate)
  929. for Frame = 1, Frames do
  930. swait()
  931. local Percent = (Frame / Frames)
  932. TextLabel.TextTransparency = Percent
  933. TextLabel.TextStrokeTransparency = Percent
  934. end
  935. if EffectPart and EffectPart.Parent then
  936. EffectPart:Destroy()
  937. end
  938. end) end)()
  939. end
  940.  
  941. function Kill(whom)
  942. if(whom.Name ~= 'Nebula_Zorua')then
  943. local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil
  944. for _,v in next, whom:children() do
  945. if(v:IsA'BasePart')then
  946. v.Parent = Effects
  947. v:ClearAllChildren()
  948. v.Anchored = true
  949. v.CanCollide = false
  950. v.Transparency = 1
  951. local dust = NewInstance("ParticleEmitter",v,{
  952. Color = ColorSequence.new(C3.N(1,1,1)),
  953. LightEmission=0,
  954. LightInfluence=1,
  955. Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)},
  956. Texture="rbxassetid://284205403",
  957. Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)},
  958. Lifetime = NumberRange.new(1),
  959. Rate=150,
  960. Acceleration = V3.N(0,10,0),
  961. Speed = NumberRange.new(5),
  962. Enabled = true
  963. })
  964. delay(1, function()
  965. dust.Enabled = false
  966. S.Debris:AddItem(v,2)
  967. end)
  968. end
  969. end
  970. else
  971. warn"nope. nawt happenin'"
  972. end
  973. end
  974.  
  975. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  976. if(who)then
  977. local hum = who:FindFirstChildOfClass'Humanoid'
  978. local Damage = M.RNG(minDam,maxDam)
  979. local canHit = true
  980. if(hum)then
  981. for _, p in pairs(Hit) do
  982. if p[1] == hum then
  983. if(time() - p[2] < 0.4) then
  984. canHit = false
  985. else
  986. Hit[_] = nil
  987. end
  988. end
  989. end
  990. if(canHit)then
  991. table.insert(Hit,{hum,time()})
  992. if(GetTorso(who))then
  993. Sound(GetTorso(who),406913243,1,10,false,true,true)
  994. end
  995. if(hum.Health >= math.huge)then
  996. Kill(who)
  997. if(who:FindFirstChild'Head' and hum.Health > 0)then
  998. 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)
  999. end
  1000. else
  1001. local player = S.Players:GetPlayerFromCharacter(who)
  1002. if(Type == "Fire")then
  1003. --idk..
  1004. else
  1005. local c = Instance.new("ObjectValue",hum)
  1006. c.Name = "creator"
  1007. c.Value = Plr
  1008. game:service'Debris':AddItem(c,0.35)
  1009. local Crit = false
  1010. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  1011. Crit = true
  1012. Damage = Damage*(critMult or 2)
  1013. end
  1014. Damage = Damage*((Souls/5)+1)
  1015. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1016. 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))
  1017. end
  1018.  
  1019. if(hum.Health - Damage <= 0)then
  1020. Kill(who)
  1021. else
  1022. hum.Health = hum.Health - Damage
  1023. if(Type == 'Knockback' and GetTorso(who))then
  1024. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  1025. local body = NewInstance('BodyVelocity',GetTorso(who),{
  1026. P = 500,
  1027. maxForce = V3.N(math.huge,0,math.huge),
  1028. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  1029. })
  1030. game:service'Debris':AddItem(body,.5)
  1031. elseif(Type == "Electric")then
  1032. if(M.RNG(1,100) >= critChance)then
  1033. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1034. 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)
  1035. end
  1036. local asd = hum.WalkSpeed/2
  1037. hum.WalkSpeed = asd
  1038. local paralyzed = true
  1039. coroutine.wrap(function()
  1040. while paralyzed do
  1041. swait(25)
  1042. if(M.RNG(1,25) == 1)then
  1043. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1044. 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)
  1045. end
  1046. hum.PlatformStand = true
  1047. end
  1048. end
  1049. end)()
  1050. delay(4, function()
  1051. paralyzed = false
  1052. hum.WalkSpeed = hum.WalkSpeed + asd
  1053. end)
  1054. end
  1055.  
  1056. elseif(Type == 'Knockdown' and GetTorso(who))then
  1057. local rek = GetTorso(who)
  1058. hum.PlatformStand = true
  1059. delay(1,function()
  1060. hum.PlatformStand = false
  1061. end)
  1062. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  1063. local bodvol = NewInstance("BodyVelocity",rek,{
  1064. velocity = angle * Knock,
  1065. P = 5000,
  1066. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1067. })
  1068. local rl = NewInstance("BodyAngularVelocity",rek,{
  1069. P = 3000,
  1070. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1071. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1072. })
  1073. game:GetService("Debris"):AddItem(bodvol, .5)
  1074. game:GetService("Debris"):AddItem(rl, .5)
  1075. end
  1076. end
  1077. end
  1078. end
  1079. end
  1080. end
  1081. end
  1082. end
  1083.  
  1084.  
  1085. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  1086. for _,v in next, getRegion(where,range,{Char}) do
  1087. if(v.Name ~= 'Nebula_Zorua')then
  1088. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  1089. DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
  1090. end
  1091. end
  1092. end
  1093. end
  1094.  
  1095. function AOEKill(where,range)
  1096. for _,v in next, getRegion(where,range,{Char,Effects}) do
  1097. local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end)
  1098. if(v.Name ~= 'Nebula_Zorua')then
  1099. if(v.Parent and alive == true)then
  1100. coroutine.wrap(Kill)(v.Parent)
  1101. end
  1102. end
  1103. end
  1104. end
  1105.  
  1106. function AOEHeal(where,range,amount)
  1107. local healed = {}
  1108. for _,v in next, getRegion(where,range,{Char}) do
  1109. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1110. if(hum and not healed[hum])then
  1111. hum.Health = hum.Health + amount
  1112. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1113. 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)
  1114. end
  1115. end
  1116. end
  1117. end
  1118.  
  1119.  
  1120. --// Attack Functions \\--
  1121.  
  1122.  
  1123. function Slash()
  1124. Attack = true
  1125. NeutralAnims = false
  1126. local sound = Sound(Knife,437475935,1,5,false,true,false)
  1127. for i = 0, 2, 0.1 do
  1128. swait()
  1129. local Alpha = .2
  1130. 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)
  1131. 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)
  1132. 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)
  1133. 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)
  1134. 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)
  1135. 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)
  1136. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1137. end
  1138. KTrail.Enabled = true
  1139. sound:Play()
  1140. for i = 0, 2.5, 0.1 do
  1141. swait()
  1142. AOEDamage(Knife.CFrame.p,1,15,40,0,"Normal",0,1)
  1143. local Alpha = .25
  1144. 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)
  1145. 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)
  1146. 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)
  1147. 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)
  1148. 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)
  1149. 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)
  1150. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1151. end
  1152. KTrail.Enabled = false
  1153. Attack = false
  1154. NeutralAnims = true
  1155. end
  1156.  
  1157. Mouse.Button1Down:connect(function()
  1158. if(Attack)then return end
  1159. Slash()
  1160. end)
  1161.  
  1162. Mouse.KeyDown:connect(function(k)
  1163. if(Attack)then return end
  1164. if(k == 'z')then AOEKill(Root.CFrame.p,25) end -- TODO: Animation and effects
  1165. if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 32 or 8) end
  1166. end)
  1167.  
  1168.  
  1169. function Refuse()
  1170. Attack = true
  1171. warn("B u t i t r e f u s e d.")
  1172. local oMH = MaxHealth
  1173. MaxHealth = "inf"
  1174. Hum.MaxHealth = "inf"
  1175. Hum.Health = "inf"
  1176. Char.Parent = nil
  1177. Hum:destroy()
  1178. if(not _G.RefusedAnimation)then
  1179. _G.RefusedAnimation = true
  1180.  
  1181.  
  1182. local Soul;
  1183. function Soul(where,decalId)
  1184. local destroy = false
  1185. local soul = NewInstance("Part",workspace)
  1186. soul.Name = "Soul"
  1187. soul.Transparency=1
  1188. soul.Size = V3.N(2,2,.05)
  1189. soul.Anchored=true
  1190. soul.CanCollide=false
  1191. soul.CFrame = where
  1192. local heartF = NewInstance("Decal",soul,{Face=Enum.NormalId.Front,Texture="rbxassetid://"..decalId})
  1193. local heartB = NewInstance("Decal",soul,{Face=Enum.NormalId.Back,Texture="rbxassetid://"..decalId})
  1194. return soul,heartF,heartB
  1195. end
  1196. local owo = Root.CFrame
  1197. local s,f,b = Soul(owo,1569347904)
  1198. swait(60)
  1199. local snd = Sound(s,862552636,1,5,false,false,false)
  1200. snd:Play()
  1201. f.Texture = "rbxassetid://1569348344"
  1202. b.Texture = "rbxassetid://1569348344"
  1203. swait(15)
  1204. snd:Stop()
  1205. swait(60)
  1206. print'lol'
  1207. for i = 0, 6, .1 do
  1208. swait()
  1209. s.CFrame = owo * CF.N(M.RNG(-50,50)/100,M.RNG(-50,50)/100,M.RNG(-50,50)/100)
  1210. end
  1211. local snd = Sound(s,862552636,1,5,false,false,false)
  1212. snd:Play()
  1213. s.CFrame = owo
  1214. f.Texture = "rbxassetid://1569347904"
  1215. b.Texture = "rbxassetid://1569347904"
  1216. swait(15)
  1217. snd:Stop()
  1218. swait(60)
  1219.  
  1220. s:destroy()
  1221. end
  1222.  
  1223. RJ.Parent = Char
  1224. LS.Parent = Char
  1225. RS.Parent = Char
  1226. LH.Parent = Char
  1227. RH.Parent = Char
  1228. NK.Parent = Char
  1229.  
  1230. LArm.Parent = Char
  1231. RArm.Parent = Char
  1232. LLeg.Parent = Char
  1233. LArm.Parent = Char
  1234. Root.Parent = Char
  1235. Torso.Parent = Char
  1236. Head.Parent = Char
  1237.  
  1238. Knife.Parent = Char
  1239. Hair.Parent = Char
  1240.  
  1241. HW.Parent = Char
  1242. HW2.Parent = Char
  1243.  
  1244.  
  1245.  
  1246. Hum = NewInstance("Humanoid",Char,{DisplayDistanceType='None'})
  1247. ConnectHum()
  1248. MaxHealth = oMH
  1249. Hum.MaxHealth = MaxHealth
  1250. Hum.Health = MaxHealth
  1251. swait(5)
  1252. Char.Parent = workspace
  1253.  
  1254. Attack = false
  1255. end
  1256.  
  1257. function ConnectHum()
  1258. Hum.Died:connect(Refuse)
  1259. end
  1260. ConnectHum()
  1261.  
  1262. Char.Shirt:Destroy()
  1263. Char.Pants:Destroy()
  1264.  
  1265. local Spark = Instance.new("Fire", Firep)
  1266. Spark.Heat = 25000
  1267. Spark.Size = 2
  1268. Spark.Color = Color3.new(255,0,0)
  1269. Spark.SecondaryColor = Color3.new(0,0,0)
  1270. Spark.Name = "EyeS"
  1271.  
  1272. local shirt = Instance.new("Shirt", Char)
  1273. local pants = Instance.new("Pants", Char)
  1274. shirt.ShirtTemplate = "rbxassetid://451644755"
  1275. pants.PantsTemplate = "rbxassetid://358183960"
  1276.  
  1277. --//Functions\\--
  1278.  
  1279. function Transform()
  1280. if istransformed == nil then
  1281. print("Transformed")
  1282. Spark.Enabled = false
  1283. istransformed = true
  1284. shirt.ShirtTemplate = "rbxassetid://326437611"
  1285. pants.PantsTemplate = "rbxassetid://344084200"
  1286. MusicID = 971019793
  1287. KnifeMesh.TextureId = "http://www.roblox.com/asset/?id=155296247"
  1288. Tag.Text = "Frisk LV 10"
  1289. Tag.TextColor3 = Color3.new(209,203,225)
  1290. Text.Text = "(M) Chara Mode"
  1291. TextLabel.TextColor3 = Color3.new(0.192157, 0.811765, 1)
  1292. Text.TextColor3 = Color3.new(1, 0, 0)
  1293. Eye3.Transparency = 0
  1294. Eye2.Transparency = 1
  1295. WingF1.Enabled = false
  1296. WingF2.Enabled = false
  1297. WingF3.Enabled = false
  1298. WingF4.Enabled = false
  1299. WingF5.Enabled = false
  1300. WingF6.Enabled = false
  1301. Head.face.Texture = "rbxassetid://13079565"
  1302. elseif istransformed == true then
  1303. print("Untransformed")
  1304. Spark.Enabled = true
  1305. istransformed = nil
  1306. shirt.ShirtTemplate = "rbxassetid://451644755"
  1307. pants.PantsTemplate = "rbxassetid://358183960"
  1308. MusicID = 1273733746
  1309. KnifeMesh.TextureId = "rbxassetid://362719969"
  1310. Tag.Text = "Chara LV ???"
  1311. Tag.TextColor3 = Color3.new(255,0,0)
  1312. Text.Text = "(M) Frisk Mode"
  1313. Text.TextColor3 = Color3.new(0.192157, 0.811765, 1)
  1314. TextLabel.TextColor3 = Color3.new(1, 0, 0)
  1315. Eye3.Transparency = 1
  1316. Eye2.Transparency = 0
  1317. WingF1.Enabled = true
  1318. WingF2.Enabled = true
  1319. WingF3.Enabled = true
  1320. WingF4.Enabled = true
  1321. WingF5.Enabled = true
  1322. WingF6.Enabled = true
  1323. Head.face.Texture = "rbxassetid://404306534"
  1324. end
  1325.  
  1326. end
  1327.  
  1328. function STransform()
  1329. if istransformed == nil then
  1330. print("Transformed")
  1331. KnifeMesh.TextureId = "rbxassetid://362719969"
  1332. Spark.Enabled = true
  1333. istransformed = true
  1334. Tag.Text = "ChArIsK LV 65658882598"
  1335. Head.face.Texture = "rbxassetid://3154867843"
  1336. Eye2.Transparency = 0
  1337. Eye3.Transparency = 0
  1338. MusicID = 1273733746
  1339. pants.PantsTemplate = "rbxassetid://358183960"
  1340. shirt.ShirtTemplate = "rbxassetid://326437611"
  1341. Tag.TextColor3 = Color3.new(255,0,0)
  1342. WingF1.Enabled = true
  1343. WingF2.Enabled = false
  1344. WingF3.Enabled = true
  1345. WingF4.Enabled = false
  1346. WingF5.Enabled = true
  1347. WingF6.Enabled = false
  1348. elseif istransformed == true then
  1349. istransformed = nil
  1350. print("Untransformed")
  1351. KnifeMesh.TextureId = "rbxassetid://362719969"
  1352. Spark.Enabled = true
  1353. Eye2.Transparency = 0
  1354. Eye3.Transparency = 1
  1355. MusicID = 335958739
  1356. Tag.Text = "Chara LV ???"
  1357. Head.face.Texture = "rbxassetid://404306534"
  1358. shirt.ShirtTemplate = "rbxassetid://451644755"
  1359. pants.PantsTemplate = "rbxassetid://358183960"
  1360. Tag.TextColor3 = Color3.new(255,0,0)
  1361. WingF1.Enabled = true
  1362. WingF2.Enabled = true
  1363. WingF3.Enabled = true
  1364. WingF4.Enabled = true
  1365. WingF5.Enabled = true
  1366. WingF6.Enabled = true
  1367. end
  1368. end
  1369.  
  1370. function TimeStop()
  1371. if PowerOfShad == nil then
  1372. PowerOfShad = true
  1373. local CC = Instance.new("ColorCorrectionEffect", game.Lighting)
  1374. CC.Brightness = -1
  1375. CC.Name = "Effect"
  1376. wait(1)
  1377. CC.TintColor = Color3.new(255, 0, 0)
  1378. CC.Brightness = -0.4
  1379. CC.Contrast = 1
  1380. CC.Saturation = 1
  1381.  
  1382. elseif PowerOfShad == true then
  1383. PowerOfShad = nil
  1384. wait(1)
  1385. game.Lighting.Effect.Brightness = -1
  1386. game.Lighting.Effect:Destroy()
  1387.  
  1388. end
  1389. end
  1390.  
  1391.  
  1392. --// KeyConfig \\--
  1393.  
  1394. function clicked(Key)
  1395. if Key == "m" then
  1396. Transform()
  1397. elseif Key == "n" then
  1398. STransform()
  1399. elseif Key == "f" then
  1400. TimeStop()
  1401. end
  1402. end
  1403. game.Players.LocalPlayer:GetMouse().keyDown:connect(clicked)
  1404.  
  1405. --// Wrap it all up \\--
  1406. while true do
  1407. swait()
  1408. Sine = Sine + Change
  1409. if(not Music)then
  1410. Music = Sound(Torso,MusicID,1,1,true,false,true)
  1411. Music.Name = 'Music'
  1412. end
  1413. Music.Pitch = 1
  1414. Music.Volume = 5
  1415. Music.SoundId = "rbxassetid://"..MusicID
  1416. Music.Parent = Torso
  1417. Music:Resume()
  1418. 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)
  1419. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1420. 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")
  1421. if(not Effects or not Effects.Parent)then
  1422. Effects = IN("Model",Char)
  1423. Effects.Name = "Effects"
  1424. end
  1425. Hum.WalkSpeed = WalkSpeed
  1426. if(State == 'Walk')then
  1427. if(Hum.WalkSpeed >= 24)then
  1428. local wsVal = 22 / (Hum.WalkSpeed/16)
  1429. local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1)
  1430. Change = 2
  1431. 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)
  1432. 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)
  1433. else
  1434. Change = .9
  1435. local wsVal = 8 / (Hum.WalkSpeed/8)
  1436. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1437. 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)
  1438. 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)
  1439. end
  1440. else
  1441. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1)
  1442. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1)
  1443. end
  1444.  
  1445.  
  1446. RArm.BrickColor = BrickColor.new'Pastel brown'
  1447. LArm.BrickColor = BrickColor.new'Pastel brown'
  1448. RLeg.BrickColor = BrickColor.new'Pastel brown'
  1449. LLeg.BrickColor = BrickColor.new'Pastel brown'
  1450. Torso.BrickColor = BrickColor.new'Pastel brown'
  1451. Head.BrickColor = BrickColor.new'Pastel brown'
  1452. Hum.Name = 'Chara'
  1453. for _,v in next, Char:children() do
  1454. if(v:IsA'Accessory')then
  1455. v:destroy()
  1456. end
  1457. end
  1458.  
  1459. if(Hum.MaxHealth ~= MaxHealth)then
  1460. Hum.MaxHealth = MaxHealth
  1461. end
  1462. Hum.DisplayDistanceType='None'
  1463. if(NeutralAnims)then
  1464. if(State == 'Idle')then
  1465. Change = 1
  1466. local Alpha = .1
  1467. 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)
  1468. 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)
  1469. 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)
  1470. 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)
  1471. 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)
  1472. 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)
  1473. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1474. -- idle
  1475. elseif(State == 'Walk')then
  1476. if(Hum.WalkSpeed >= 24)then
  1477. local wsVal = 22 / (Hum.WalkSpeed/16)
  1478. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1479. 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)
  1480. 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)
  1481. 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)
  1482. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(15),0,0),Alpha)
  1483. 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)
  1484. 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)
  1485. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1486. else
  1487. local wsVal = 8 / (Hum.WalkSpeed/8)
  1488. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1489. 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)
  1490. 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)
  1491. 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)
  1492. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1493. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
  1494. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
  1495. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1496. end
  1497. elseif(State == 'Jump' or State == 'Fall')then
  1498. if(Walking)then
  1499. local Alpha = .2
  1500. 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)
  1501. 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)
  1502. 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)
  1503. 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)
  1504. 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)
  1505. 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)
  1506. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1507. else
  1508. local Alpha = .2
  1509. 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)
  1510. 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)
  1511. 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)
  1512. 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)
  1513. 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)
  1514. 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)
  1515. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1516. end
  1517. elseif(State == 'Paralyzed')then
  1518. -- paralyzed
  1519. elseif(State == 'Sit')then
  1520. -- sit
  1521. end
  1522. end
  1523. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement