Advertisement
GodOfDuckz

xStep [rage n00b]

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