Advertisement
Mediakiller7Cool

TestEdit

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