Advertisement
Mitko1223tm

chara

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