Advertisement
Guest User

Untitled

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