Advertisement
Ninja_Camper

trash 2.0 (chara)

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