Advertisement
Godofadmin1337

chara

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