Advertisement
Abibi_r

Roblox Noob script (CHARA EDIT)

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