Advertisement
Somedud

Boxer Chara

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