Advertisement
Amokah

test

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