Advertisement
Robert666121

Putin

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