Advertisement
dfhaslfusad

Untitled

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