Advertisement
Scorpion2

Galactic hammer v3

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