Advertisement
McRoblox132

lavender Town Script (chara Edit)

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