Advertisement
Guest User

asdgwawf

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