Advertisement
PowerSans124

Sonic Exe BAD FAULIT

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