Advertisement
WagnerJunio07

Chara

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