Advertisement
1x11337

the ROBLOX

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