Advertisement
good_scripter

Untitled

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