Advertisement
Guest User

chara

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