Advertisement
Guest User

Purple Guy FE

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