Advertisement
Toey8415

Bug time

Aug 3rd, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.95 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5.  
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. Cam = workspace.CurrentCamera
  9. Backpack = Player.Backpack
  10. Character = Player.Character
  11. Humanoid = Character.Humanoid
  12. Mouse = Player:GetMouse()
  13. RootPart = Character["HumanoidRootPart"]
  14. Torso = Character["Torso"]
  15. Head = Character["Head"]
  16. RightArm = Character["Right Arm"]
  17. LeftArm = Character["Left Arm"]
  18. RightLeg = Character["Right Leg"]
  19. LeftLeg = Character["Left Leg"]
  20. RootJoint = RootPart["RootJoint"]
  21. Neck = Torso["Neck"]
  22. RightShoulder = Torso["Right Shoulder"]
  23. LeftShoulder = Torso["Left Shoulder"]
  24. RightHip = Torso["Right Hip"]
  25. LeftHip = Torso["Left Hip"]
  26. local sick = Instance.new("Sound",Character)
  27. sick.SoundId = "rbxassetid://652769726"
  28. sick.Looped = true
  29. sick.Pitch = 1
  30. sick.Volume = 4
  31. sick:Play()
  32.  
  33. IT = Instance.new
  34. CF = CFrame.new
  35. VT = Vector3.new
  36. RAD = math.rad
  37. C3 = Color3.new
  38. UD2 = UDim2.new
  39. BRICKC = BrickColor.new
  40. ANGLES = CFrame.Angles
  41. EULER = CFrame.fromEulerAnglesXYZ
  42. COS = math.cos
  43. ACOS = math.acos
  44. SIN = math.sin
  45. ASIN = math.asin
  46. ABS = math.abs
  47. MRANDOM = math.random
  48. FLOOR = math.floor
  49.  
  50. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  51. local NEWMESH = IT(MESH)
  52. if MESH == "SpecialMesh" then
  53. NEWMESH.MeshType = MESHTYPE
  54. if MESHID ~= "nil" and MESHID ~= "" then
  55. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  56. end
  57. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  58. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  59. end
  60. end
  61. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  62. NEWMESH.Scale = SCALE
  63. NEWMESH.Parent = PARENT
  64. return NEWMESH
  65. end
  66.  
  67. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  68. local NEWPART = IT("Part")
  69. NEWPART.formFactor = FORMFACTOR
  70. NEWPART.Reflectance = REFLECTANCE
  71. NEWPART.Transparency = TRANSPARENCY
  72. NEWPART.CanCollide = false
  73. NEWPART.Locked = true
  74. NEWPART.Anchored = true
  75. if ANCHOR == false then
  76. NEWPART.Anchored = false
  77. end
  78. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  79. NEWPART.Name = NAME
  80. NEWPART.Size = SIZE
  81. NEWPART.Position = Torso.Position
  82. NEWPART.Material = MATERIAL
  83. NEWPART:BreakJoints()
  84. NEWPART.Parent = PARENT
  85. return NEWPART
  86. end
  87.  
  88. --//=================================\\
  89. --|| CUSTOMIZATION
  90. --\\=================================//
  91.  
  92. Player_Size = 1 --Size of the player.
  93. Animation_Speed = 3
  94. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  95.  
  96. local Speed = 16
  97. local Effects2 = {}
  98.  
  99. --//=================================\\
  100. --|| END OF CUSTOMIZATION
  101. --\\=================================//
  102.  
  103. local function weldBetween(a, b)
  104. local weldd = Instance.new("ManualWeld")
  105. weldd.Part0 = a
  106. weldd.Part1 = b
  107. weldd.C0 = CFrame.new()
  108. weldd.C1 = b.CFrame:inverse() * a.CFrame
  109. weldd.Parent = a
  110. return weldd
  111. end
  112.  
  113. --//=================================\\
  114. --|| USEFUL VALUES
  115. --\\=================================//
  116.  
  117. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  118. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  119. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  120. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  121. local CHANGEDEFENSE = 0
  122. local CHANGEDAMAGE = 0
  123. local CHANGEMOVEMENT = 0
  124. local ANIM = "Idle"
  125. local ATTACK = false
  126. local EQUIPPED = false
  127. local HOLD = false
  128. local COMBO = 1
  129. local Rooted = false
  130. local SINE = 0
  131. local KEYHOLD = false
  132. local CHANGE = 2 / Animation_Speed
  133. local WALKINGANIM = false
  134. local WALK = 0
  135. local VALUE1 = false
  136. local VALUE2 = false
  137. local ROBLOXIDLEANIMATION = IT("Animation")
  138. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  139. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  140. --ROBLOXIDLEANIMATION.Parent = Humanoid
  141. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  142. WEAPONGUI.Name = "Weapon GUI"
  143. local Effects = IT("Folder", Character)
  144. Effects.Name = "Effects"
  145. local ANIMATOR = Humanoid.Animator
  146. local ANIMATE = Character.Animate
  147. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  148. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  149. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  150. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  151. local UNANCHOR = true
  152.  
  153. local SKILLTEXTCOLOR = C3(0,0,0)
  154.  
  155. local naeeym2 = Instance.new("BillboardGui",Character)
  156. naeeym2.AlwaysOnTop = true
  157. naeeym2.Size = UDim2.new(5,35,2,35)
  158. naeeym2.StudsOffset = Vector3.new(0,2,0)
  159. naeeym2.Adornee = Character.Head
  160. naeeym2.Name = "Name"
  161. naeeym2.PlayerToHideFrom = Player
  162. local tecks2 = Instance.new("TextLabel",naeeym2)
  163. tecks2.BackgroundTransparency = 1
  164. tecks2.TextScaled = true
  165. tecks2.BorderSizePixel = 0
  166. tecks2.Text = Player.Name..", The Ultimate Edgelord"
  167. tecks2.Font = "Antique"
  168. tecks2.TextSize = 30
  169. tecks2.TextStrokeTransparency = 0
  170. tecks2.TextColor3 = Color3.new(0,0,0)
  171. tecks2.TextStrokeColor3 = Color3.new(0.2,0.2,0.2)
  172. tecks2.Size = UDim2.new(1,0,0.5,0)
  173. tecks2.Parent = naeeym2
  174.  
  175. --//=================================\\
  176. --\\=================================//
  177.  
  178.  
  179. --//=================================\\
  180. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  181. --\\=================================//
  182.  
  183. ArtificialHB = Instance.new("BindableEvent", script)
  184. ArtificialHB.Name = "ArtificialHB"
  185.  
  186. script:WaitForChild("ArtificialHB")
  187.  
  188. frame = Frame_Speed
  189. tf = 0
  190. allowframeloss = false
  191. tossremainder = false
  192. lastframe = tick()
  193. script.ArtificialHB:Fire()
  194.  
  195. game:GetService("RunService").Heartbeat:connect(function(s, p)
  196. tf = tf + s
  197. if tf >= frame then
  198. if allowframeloss then
  199. script.ArtificialHB:Fire()
  200. lastframe = tick()
  201. else
  202. for i = 1, math.floor(tf / frame) do
  203. script.ArtificialHB:Fire()
  204. end
  205. lastframe = tick()
  206. end
  207. if tossremainder then
  208. tf = 0
  209. else
  210. tf = tf - frame * math.floor(tf / frame)
  211. end
  212. end
  213. end)
  214.  
  215. --//=================================\\
  216. --\\=================================//
  217.  
  218.  
  219.  
  220.  
  221.  
  222. --//=================================\\
  223. --|| SOME FUNCTIONS
  224. --\\=================================//
  225.  
  226. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  227. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  228. end
  229.  
  230. function PositiveAngle(NUMBER)
  231. if NUMBER >= 0 then
  232. NUMBER = 0
  233. end
  234. return NUMBER
  235. end
  236.  
  237. function NegativeAngle(NUMBER)
  238. if NUMBER <= 0 then
  239. NUMBER = 0
  240. end
  241. return NUMBER
  242. end
  243.  
  244. function Swait(NUMBER)
  245. if NUMBER == 0 or NUMBER == nil then
  246. ArtificialHB.Event:wait()
  247. else
  248. for i = 1, NUMBER do
  249. ArtificialHB.Event:wait()
  250. end
  251. end
  252. end
  253.  
  254. function QuaternionFromCFrame(cf)
  255. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  256. local trace = m00 + m11 + m22
  257. if trace > 0 then
  258. local s = math.sqrt(1 + trace)
  259. local recip = 0.5 / s
  260. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  261. else
  262. local i = 0
  263. if m11 > m00 then
  264. i = 1
  265. end
  266. if m22 > (i == 0 and m00 or m11) then
  267. i = 2
  268. end
  269. if i == 0 then
  270. local s = math.sqrt(m00 - m11 - m22 + 1)
  271. local recip = 0.5 / s
  272. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  273. elseif i == 1 then
  274. local s = math.sqrt(m11 - m22 - m00 + 1)
  275. local recip = 0.5 / s
  276. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  277. elseif i == 2 then
  278. local s = math.sqrt(m22 - m00 - m11 + 1)
  279. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  280. end
  281. end
  282. end
  283.  
  284. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  285. local xs, ys, zs = x + x, y + y, z + z
  286. local wx, wy, wz = w * xs, w * ys, w * zs
  287. local xx = x * xs
  288. local xy = x * ys
  289. local xz = x * zs
  290. local yy = y * ys
  291. local yz = y * zs
  292. local zz = z * zs
  293. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  294. end
  295.  
  296. function QuaternionSlerp(a, b, t)
  297. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  298. local startInterp, finishInterp;
  299. if cosTheta >= 0.0001 then
  300. if (1 - cosTheta) > 0.0001 then
  301. local theta = ACOS(cosTheta)
  302. local invSinTheta = 1 / SIN(theta)
  303. startInterp = SIN((1 - t) * theta) * invSinTheta
  304. finishInterp = SIN(t * theta) * invSinTheta
  305. else
  306. startInterp = 1 - t
  307. finishInterp = t
  308. end
  309. else
  310. if (1 + cosTheta) > 0.0001 then
  311. local theta = ACOS(-cosTheta)
  312. local invSinTheta = 1 / SIN(theta)
  313. startInterp = SIN((t - 1) * theta) * invSinTheta
  314. finishInterp = SIN(t * theta) * invSinTheta
  315. else
  316. startInterp = t - 1
  317. finishInterp = t
  318. end
  319. end
  320. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  321. end
  322.  
  323. function Clerp(a, b, t)
  324. local qa = {QuaternionFromCFrame(a)}
  325. local qb = {QuaternionFromCFrame(b)}
  326. local ax, ay, az = a.x, a.y, a.z
  327. local bx, by, bz = b.x, b.y, b.z
  328. local _t = 1 - t
  329. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  330. end
  331.  
  332. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  333. local frame = IT("Frame")
  334. frame.BackgroundTransparency = TRANSPARENCY
  335. frame.BorderSizePixel = BORDERSIZEPIXEL
  336. frame.Position = POSITION
  337. frame.Size = SIZE
  338. frame.BackgroundColor3 = COLOR
  339. frame.BorderColor3 = BORDERCOLOR
  340. frame.Name = NAME
  341. frame.Parent = PARENT
  342. return frame
  343. end
  344.  
  345. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  346. local label = IT("TextLabel")
  347. label.BackgroundTransparency = 1
  348. label.Size = UD2(1, 0, 1, 0)
  349. label.Position = UD2(0, 0, 0, 0)
  350. label.TextColor3 = TEXTCOLOR
  351. label.TextStrokeTransparency = STROKETRANSPARENCY
  352. label.TextTransparency = TRANSPARENCY
  353. label.FontSize = TEXTFONTSIZE
  354. label.Font = TEXTFONT
  355. label.BorderSizePixel = BORDERSIZEPIXEL
  356. label.TextScaled = false
  357. label.Text = TEXT
  358. label.Name = NAME
  359. label.Parent = PARENT
  360. return label
  361. end
  362.  
  363. function NoOutlines(PART)
  364. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  365. end
  366.  
  367.  
  368. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  369. local NEWWELD = IT(TYPE)
  370. NEWWELD.Part0 = PART0
  371. NEWWELD.Part1 = PART1
  372. NEWWELD.C0 = C0
  373. NEWWELD.C1 = C1
  374. NEWWELD.Parent = PARENT
  375. return NEWWELD
  376. end
  377.  
  378. local S = IT("Sound")
  379.  
  380. function CreateSound(ID, PARENT, VOLUME, PITCH)
  381. local NEWSOUND = nil
  382. coroutine.resume(coroutine.create(function()
  383. NEWSOUND = S:Clone()
  384. NEWSOUND.Parent = PARENT
  385. NEWSOUND.Volume = VOLUME
  386. NEWSOUND.Pitch = PITCH
  387. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  388. Swait()
  389. NEWSOUND:play()
  390. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  391. end))
  392. return NEWSOUND
  393. end
  394.  
  395. function CFrameFromTopBack(at, top, back)
  396. local right = top:Cross(back)
  397. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  398. end
  399.  
  400. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  401. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  402. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  403. wave.CFrame = CFRAME
  404. coroutine.resume(coroutine.create(function(PART)
  405. for i = 1, WAIT do
  406. Swait()
  407. mesh.Scale = mesh.Scale + GROW
  408. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  409. if DOESROT == true then
  410. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  411. end
  412. wave.Transparency = wave.Transparency + (0.5/WAIT)
  413. if wave.Transparency > 0.99 then
  414. wave:remove()
  415. end
  416. end
  417. end))
  418. end
  419.  
  420. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  421. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  422. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  423. wave.CFrame = CFRAME
  424. coroutine.resume(coroutine.create(function(PART)
  425. for i = 1, WAIT do
  426. Swait()
  427. mesh.Scale = mesh.Scale + GROW
  428. if DOESROT == true then
  429. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  430. end
  431. wave.Transparency = wave.Transparency + (0.5/WAIT)
  432. if wave.Transparency > 0.99 then
  433. wave:remove()
  434. end
  435. end
  436. end))
  437. end
  438.  
  439. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  440. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  441. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  442. wave.CFrame = CFRAME
  443. coroutine.resume(coroutine.create(function(PART)
  444. for i = 1, WAIT do
  445. Swait()
  446. mesh.Scale = mesh.Scale + GROW
  447. wave.Transparency = wave.Transparency + (1/WAIT)
  448. if wave.Transparency > 0.99 then
  449. wave:remove()
  450. end
  451. end
  452. end))
  453. end
  454.  
  455. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  456. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  457. local mesh = nil
  458. if KIND == "Base" then
  459. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  460. elseif KIND == "Thin" then
  461. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  462. elseif KIND == "Round" then
  463. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  464. end
  465. wave.CFrame = CFRAME
  466. coroutine.resume(coroutine.create(function(PART)
  467. for i = 1, WAIT do
  468. Swait()
  469. mesh.Scale = mesh.Scale + GROW/10
  470. wave.Transparency = wave.Transparency + (0.5/WAIT)
  471. if wave.Transparency > 0.99 then
  472. wave:remove()
  473. end
  474. end
  475. end))
  476. end
  477.  
  478. function MakeForm(PART,TYPE)
  479. if TYPE == "Cyl" then
  480. local MSH = IT("CylinderMesh",PART)
  481. elseif TYPE == "Ball" then
  482. local MSH = IT("SpecialMesh",PART)
  483. MSH.MeshType = "Sphere"
  484. elseif TYPE == "Wedge" then
  485. local MSH = IT("SpecialMesh",PART)
  486. MSH.MeshType = "Wedge"
  487. end
  488. end
  489.  
  490. function SpawnKnife(SIZE,ISGRABBED,LIMB,ROT,ROT2,DOESDODAMAGE,DAMAGE)
  491. SIZE = SIZE / 2
  492. local WELD = nil
  493. local KNIFEMODEL = IT("Model",Effects)
  494. KNIFEMODEL.Name = "Knife"
  495. local HandlePart = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Handle", VT(0.2,1.5,0.2)*SIZE,false)
  496. MakeForm(HandlePart,"Cyl")
  497. if ISGRABBED == true then
  498. WELD = CreateWeldOrSnapOrMotor("Weld", HandlePart, LIMB, HandlePart, CF(0, -1, 0) * ANGLES(RAD(ROT), RAD(ROT2), RAD(0)), CF(0, 0, 0))
  499. end
  500. local BladePart = CreatePart(3, KNIFEMODEL, "Neon", 0,1, "Really red", "BladeHolder", VT(0.2,2.8+(3.25/1.5),0.2)*SIZE,false)
  501. BladePart.CFrame = HandlePart.CFrame*CF(0,-2.8*SIZE,-0.05*SIZE)
  502. weldBetween(HandlePart,BladePart)
  503. local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,2.8,1)*SIZE,false)
  504. MakeForm(Part,"Wedge")
  505. Part.CFrame = BladePart.CFrame*CF(0,-1.475*SIZE,0.45*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0))
  506. weldBetween(BladePart,Part)
  507. local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,3.25/1.5,0.5)*SIZE,false)
  508. MakeForm(Part,"Wedge")
  509. Part.CFrame = BladePart.CFrame*CF(0,1*SIZE,1.2*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0))
  510. weldBetween(BladePart,Part)
  511. local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,3.25/1.5,1)*SIZE,false)
  512. Part.CFrame = BladePart.CFrame*CF(0,1*SIZE,0.45*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0))
  513. weldBetween(BladePart,Part)
  514. local A = IT("Attachment",BladePart)
  515. A.Position = VT(0,BladePart.Size.Y/2,0)
  516. local B = IT("Attachment",BladePart)
  517. B.Position = VT(0,-BladePart.Size.Y/2,0)
  518. local Trail = IT("Trail",BladePart)
  519. Trail.Attachment0 = A
  520. Trail.Attachment1 = B
  521. Trail.Lifetime = 0.2
  522. Trail.Color = ColorSequence.new(BRICKC"Really red".Color)
  523. Trail.Transparency = NumberSequence.new(0, 1)
  524. for _, c in pairs(KNIFEMODEL:GetChildren()) do
  525. if c.ClassName == "Part" then
  526. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  527. end
  528. end
  529. if DOESDODAMAGE == true then
  530. local HIT = false
  531. BladePart.CanCollide = true
  532. local TOUCHED = BladePart.Touched:Connect(function(hit)
  533. if HIT == false then
  534. if hit ~= nil then
  535. if hit.Parent ~= nil then
  536. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
  537. HIT = true
  538. ApplyDamage(hit.Parent:FindFirstChildOfClass("Humanoid"),DAMAGE,2,2)
  539. wait(0.1)
  540. HIT = false
  541. end
  542. end
  543. end
  544. end
  545. end)
  546. end
  547. return KNIFEMODEL,WELD,BladePart
  548. end
  549.  
  550. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  551. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  552. if HITFLOOR ~= nil then
  553. if HITFLOOR.Parent ~= Effects and HITFLOOR.Parent ~= Character then
  554. if HITFLOOR.Name == "BloodPuddle" then
  555. local DIST = (Position - HITFLOOR.Position).Magnitude
  556. if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
  557. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  558. end
  559. else
  560. if HITFLOOR.Anchored == true then
  561. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
  562. BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
  563. MakeForm(BLOOD,"Cyl")
  564. coroutine.resume(coroutine.create(function()
  565. Swait(75)
  566. while true do
  567. Swait()
  568. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  569. if BLOOD.Size.Z < 0.051 then
  570. BLOOD:remove()
  571. break
  572. end
  573. end
  574. end))
  575. end
  576. end
  577. end
  578. end
  579. end
  580.  
  581. function SprayBlood(POSITION,DIRECTION,BloodSize,DoesTable,Table)
  582. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false)
  583. BLOOD.CFrame = CF(POSITION)
  584. MakeForm(BLOOD,"Ball")
  585. local bv = Instance.new("BodyVelocity",BLOOD)
  586. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  587. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3),MRANDOM(-3,3)/30,MRANDOM(-3,3))).lookVector*65
  588. bv.Name = "MOVE"
  589. Debris:AddItem(bv,0.05)
  590. coroutine.resume(coroutine.create(function()
  591. local HASTOUCHEDGROUND = false
  592. local HIT = BLOOD.Touched:Connect(function(hit)
  593. if hit.Anchored == true then
  594. HASTOUCHEDGROUND = true
  595. if DoesTable == true then
  596. AddChildrenToTable(BLOOD.Position,workspace,15,Table)
  597. end
  598. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  599. end
  600. end)
  601. for i = 1, 75 do
  602. Swait()
  603. if i > 5 then
  604. BLOOD.CanCollide = true
  605. end
  606. if HASTOUCHEDGROUND == true then
  607. break
  608. end
  609. end
  610. BLOOD:remove()
  611. end))
  612. end
  613.  
  614. function CheckTableForString(Table, String)
  615. for i, v in pairs(Table) do
  616. if string.find(string.lower(String), string.lower(v)) then
  617. return true
  618. end
  619. end
  620. return false
  621. end
  622.  
  623. function CheckIntangible(Hit)
  624. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  625. if Hit and Hit.Parent then
  626. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  627. return true
  628. end
  629. end
  630. return false
  631. end
  632.  
  633. Debris = game:GetService("Debris")
  634.  
  635. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  636. local Direction = CFrame.new(StartPos, Vec).lookVector
  637. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  638. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  639. if RayHit and CheckIntangible(RayHit) then
  640. if DelayIfHit then
  641. wait()
  642. end
  643. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  644. end
  645. return RayHit, RayPos, RayNormal
  646. end
  647.  
  648. function turnto(position)
  649. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  650. end
  651.  
  652. --//=================================\\
  653. --|| WEAPON CREATION
  654. --\\=================================//
  655.  
  656. Humanoid.Died:connect(function()
  657. ATTACK = true
  658. end)
  659.  
  660. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  661. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  662. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  663. --local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  664. local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  665.  
  666. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Blade Dance", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 1")
  667. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Reaper Dash", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 2")
  668. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Blossoming Blood", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 3")
  669. --local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Blood Ram", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 4")
  670. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Suffering Prison", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 5")
  671.  
  672. --//=================================\\
  673. --|| DAMAGE FUNCTIONS
  674. --\\=================================//
  675.  
  676. function StatLabel(CFRAME, TEXT, COLOR)
  677. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  678. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  679. local BODYGYRO = IT("BodyGyro", STATPART)
  680. game:GetService("Debris"):AddItem(STATPART ,5)
  681. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  682. BILLBOARDGUI.Adornee = STATPART
  683. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  684. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  685. BILLBOARDGUI.AlwaysOnTop = false
  686. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  687. TEXTLABEL.BackgroundTransparency = 1
  688. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  689. TEXTLABEL.Text = TEXT
  690. TEXTLABEL.Font = "Fantasy"
  691. TEXTLABEL.FontSize="Size42"
  692. TEXTLABEL.TextColor3 = COLOR
  693. TEXTLABEL.TextStrokeTransparency = 0
  694. TEXTLABEL.TextScaled = true
  695. TEXTLABEL.TextWrapped = true
  696. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  697. for i = 1, 50 do
  698. Swait()
  699. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  700. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  701. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  702. end
  703. THEPART.Parent = nil
  704. end),STATPART, TEXTLABEL)
  705. end
  706.  
  707. --//=================================\\
  708. --|| DAMAGING
  709. --\\=================================//
  710.  
  711. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  712. local defence = Instance.new("BoolValue",Humanoid.Parent)
  713. defence.Name = ("HitBy"..Player.Name)
  714. game:GetService("Debris"):AddItem(defence, 0.001)
  715. if Humanoid.Health ~= 0 then
  716. local CritChance = MRANDOM(1,100)
  717. if CritChance < CritRate + 1 then
  718. Damage = Damage*CritMultiplier
  719. end
  720. if Damage > Humanoid.Health then
  721. Damage = math.ceil(Humanoid.Health)
  722. if Damage == 0 then
  723. Damage = 0.1
  724. end
  725. end
  726. Humanoid.Health = Humanoid.Health - Damage
  727. if Humanoid.Parent:FindFirstChild("Head") then
  728. CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1)
  729. if CritChance < CritRate + 1 then
  730. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  731. else
  732. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, SKILLTEXTCOLOR)
  733. end
  734. end
  735. end
  736. end
  737.  
  738. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  739. local dmg = math.random(min,max)
  740. for i,v in ipairs(workspace:GetChildren()) do
  741. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  742. local body = v:GetChildren()
  743. for part = 1, #body do
  744. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  745. if(body[part].Position - position).Magnitude < radius then
  746. if v.ClassName == "Model" then
  747. if v:FindFirstChildOfClass("Humanoid") then
  748. if CanBeDodgedByJumping == true then
  749. if body[part].Position.Y < position.Y+5 then
  750. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  751. end
  752. else
  753. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  754. end
  755. local bv = Instance.new("BodyVelocity")
  756. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  757. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  758. bv.Parent = body[part]
  759. Debris:AddItem(bv,0.2)
  760. end
  761. end
  762. end
  763. end
  764. end
  765. end
  766. if v:FindFirstChild("HitBy"..Player.Name) then
  767. v:FindFirstChild("HitBy"..Player.Name):remove()
  768. end
  769. end
  770. end
  771.  
  772. --//=================================\\
  773. --|| ATTACK FUNCTIONS AND STUFF
  774. --\\=================================//
  775.  
  776. function Stab()
  777. ATTACK = true
  778. Rooted = false
  779. local KNIFE,WELD,BLADE = SpawnKnife(1,true,RightArm,0,90,true,5)
  780. CreateSound("92597369", BLADE, 5, 2)
  781. for i=0, 0.3, 0.1 / Animation_Speed do
  782. Swait()
  783. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
  784. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed)
  785. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  786. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  787. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  788. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  789. end
  790. KNIFE:remove()
  791. ATTACK = false
  792. Rooted = false
  793. end
  794.  
  795. function BladeDance()
  796. ATTACK = true
  797. Rooted = false
  798. for i=0, 1, 0.1 / Animation_Speed do
  799. Swait()
  800. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  801. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  802. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  803. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  804. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  805. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  806. end
  807. Rooted = true
  808. local I = 0
  809. local KNIFE1,WELD1,BLADE1 = SpawnKnife(MRANDOM(8,25)/10,true,RightArm,90,0,true,10)
  810. local KNIFE2,WELD2,BLADE2 = SpawnKnife(MRANDOM(8,25)/10,true,LeftArm,-90,180,true,10)
  811. for i=0, 1.5, 0.1 / Animation_Speed do
  812. Swait()
  813. I = I + 1
  814. CreateSound("92597369", BLADE1, 5, 1.5)
  815. CreateSound("92597369", BLADE2, 5, 1.5)
  816. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3)
  817. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(I*30)), 2 / Animation_Speed)
  818. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  819. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  820. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  821. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  822. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  823. end
  824. for i=0, 0.3, 0.1 / Animation_Speed do
  825. Swait()
  826. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 2 / Animation_Speed)
  827. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed)
  828. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  829. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  830. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  831. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  832. end
  833. KNIFE1:remove()
  834. KNIFE2:remove()
  835. ATTACK = false
  836. Rooted = false
  837. end
  838.  
  839. function AddChildrenToTable(FROM,PARENT,DIST,TABLE)
  840. for _, c in pairs(PARENT:GetChildren()) do
  841. if c.ClassName == "Model" then
  842. if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  843. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  844. local TORSO = (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso"))
  845. if (TORSO.Position - FROM).Magnitude < DIST then
  846. table.insert(TABLE,c)
  847. end
  848. AddChildrenToTable(FROM,c,DIST,TABLE)
  849. elseif c.ClassName == "Folder" then
  850. AddChildrenToTable(FROM,c,DIST,TABLE)
  851. end
  852. end
  853. end
  854. end
  855.  
  856. function ReaperDash()
  857. ATTACK = true
  858. Rooted = false
  859. local KNIFE,WELD,BLADE = SpawnKnife(2,true,RightArm,90,0,false,15)
  860. for i=0, 1, 0.1 / Animation_Speed do
  861. Swait()
  862. WELD.C0 = Clerp(WELD.C0,CF(0, -1, 0) * ANGLES(RAD(90), RAD(-25), RAD(0)), 2 / Animation_Speed)
  863. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  864. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
  865. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  866. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  867. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  868. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  869. end
  870. CreateSound("92597369", BLADE, 10, 0.7)
  871. local HITBODIES = {}
  872. local HASHITBODY = false
  873. Rooted = true
  874. BLADE.CanCollide = true
  875. local TOUCHED = BLADE.Touched:Connect(function(hit)
  876. if hit ~= nil then
  877. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  878. local HITBOD = hit.Parent
  879. if HITBOD:FindFirstChild("IsHitBy"..Player.Name) == nil then
  880. local E = IT("Beam",HITBOD)
  881. E.Name = ("IsHitBy"..Player.Name)
  882. Debris:AddItem(E,1)
  883. table.insert(HITBODIES,HITBOD)
  884. HASHITBODY = true
  885. end
  886. end
  887. end
  888. end)
  889. for i=0, 0.8, 0.1 / Animation_Speed do
  890. Swait()
  891. if HASHITBODY == true then
  892. break
  893. end
  894. CreateWave(VT(0,0,0),15,BLADE.CFrame*CF(0,-BLADE.Size.Y/1.8,0),true,2,"Really red",VT(0.6,0.1,0.6))
  895. RootPart.CFrame = RootPart.CFrame*CF(0,0,-1)
  896. WELD.C0 = Clerp(WELD.C0,CF(0, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 2 / Animation_Speed)
  897. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
  898. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed)
  899. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  900. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  901. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  902. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  903. end
  904. if HASHITBODY == true then
  905. AddChildrenToTable(Torso.Position,workspace,10,HITBODIES)
  906. BLADE.CanCollide = false
  907. CreateSound("511715134", BLADE, 10, 1)
  908. for i=0, 1.5, 0.1 / Animation_Speed do
  909. Swait()
  910. for e=1,#HITBODIES do
  911. if HITBODIES[e]~=nil then
  912. local BOD = HITBODIES[e]
  913. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  914. if TORS then
  915. TORS.Anchored = true
  916. Slice("Round",0.5,15,TORS.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(-0.01,0,-0.01))
  917. CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], TORS, 5, 1)
  918. end
  919. end
  920. end
  921. WELD.C0 = Clerp(WELD.C0,CF(0, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 2 / Animation_Speed)
  922. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, MRANDOM(-15,15)/15, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
  923. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed)
  924. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  925. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  926. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  927. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  928. end
  929. TOUCHED:disconnect()
  930. for e=1,#HITBODIES do
  931. if HITBODIES[e]~=nil then
  932. local BOD = HITBODIES[e]
  933. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  934. if TORS then
  935. TORS.Anchored = false
  936. local HUM = BOD:FindFirstChildOfClass("Humanoid")
  937. if HUM then
  938. ApplyDamage(HUM,25,2,1.3)
  939. end
  940. end
  941. end
  942. end
  943. for i=0, 0.3, 0.1 / Animation_Speed do
  944. Swait()
  945. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 2 / Animation_Speed)
  946. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed)
  947. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  948. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  949. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  950. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  951. end
  952. HITBODIES = {}
  953. end
  954. KNIFE:remove()
  955. ATTACK = false
  956. Rooted = false
  957. end
  958.  
  959. function BlossomingBlood()
  960. ATTACK = true
  961. Rooted = true
  962. local HITBODIES = {}
  963. local KNIFE,WELD,BLADE = SpawnKnife(4,true,RightArm,90,0,false,15)
  964. for i=0, 1, 0.1 / Animation_Speed do
  965. Swait()
  966. WELD.C0 = Clerp(WELD.C0,CF(0, -1, 0) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  967. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
  968. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-25)), 1 / Animation_Speed)
  969. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  970. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  971. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  972. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  973. end
  974. for i = 1, 150 do
  975. Swait()
  976. if MRANDOM(1,3) == 1 then
  977. MagicSphere(VT(1,1,1),15,BLADE.CFrame*CF(0,-BLADE.Size.Y/2,0),"Really red",VT(1,1,1))
  978. MagicSphere(VT(1,1,1),15,CF(BLADE.CFrame*CF(MRANDOM(-25,25),-BLADE.Size.Y/2,MRANDOM(-25,25)).p,BLADE.Position),"Really red",VT(1,0,0))
  979. end
  980. SprayBlood(BLADE.CFrame*CF(0,-BLADE.Size.Y,0).p,BLADE.CFrame*CF(MRANDOM(-15,15),-BLADE.Size.Y*2,MRANDOM(-15,15)).p,25,true,HITBODIES)
  981. end
  982. for i = 1, 25 do
  983. AddChildrenToTable(Torso.Position,workspace,20,HITBODIES)
  984. end
  985. if #HITBODIES ~= 0 then
  986. for i=0, 0.1, 0.1 / Animation_Speed do
  987. Swait()
  988. WELD.C0 = Clerp(WELD.C0,CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 2.5 / Animation_Speed)
  989. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 2 / Animation_Speed)
  990. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed)
  991. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  992. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  993. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  994. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  995. end
  996. coroutine.resume(coroutine.create(function()
  997. for e=1,#HITBODIES do
  998. Swait()
  999. if HITBODIES[e]~=nil then
  1000. local BOD = HITBODIES[e]
  1001. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  1002. if TORS then
  1003. Slice("Thin",0.5,35,CF(TORS.Position,Torso.Position)*ANGLES(RAD(0),RAD(-90),RAD(0)),"Really red",VT(0.01,0,0.01))
  1004. local HUM = BOD:FindFirstChildOfClass("Humanoid")
  1005. if HUM then
  1006. ApplyDamage(HUM,3,2,1.3)
  1007. end
  1008. end
  1009. end
  1010. end
  1011. HITBODIES = {}
  1012. end))
  1013. for i=0, 0.6, 0.1 / Animation_Speed do
  1014. Swait()
  1015. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1016. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed)
  1017. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1018. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-42)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1019. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1020. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1021. end
  1022. end
  1023. KNIFE:remove()
  1024. ATTACK = false
  1025. Rooted = false
  1026. end
  1027.  
  1028. function SufferingPrison()
  1029. ATTACK = true
  1030. Rooted = true
  1031. local INNERKNIFES = {}
  1032. local OUTERKNIFES = {}
  1033. for i=0, 2, 0.1 / Animation_Speed do
  1034. Swait()
  1035. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1036. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1037. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1038. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1039. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1040. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1041. end
  1042. local RELEASE = false
  1043. local LOOP = 0
  1044. for i = 1, 25 do
  1045. local PART = CreatePart(3, Effects, "Glass", 0, 1, "Maroon", "Hold", VT(0,0,0),false)
  1046. local KNIFE,WELD,BLADE = SpawnKnife(2,true,PART,0,0,true,75)
  1047. table.insert(INNERKNIFES,{KNIFE,BLADE,PART})
  1048. end
  1049. for i = 1, 25 do
  1050. local PART = CreatePart(3, Effects, "Glass", 0, 1, "Maroon", "Hold", VT(0,0,0),false)
  1051. local KNIFE,WELD,BLADE = SpawnKnife(3,true,PART,0,0,true,75)
  1052. table.insert(OUTERKNIFES,{KNIFE,BLADE,PART})
  1053. end
  1054. CreateSound("1368605755", Torso, 10, 1)
  1055. coroutine.resume(coroutine.create(function()
  1056. repeat
  1057. for e=1,#INNERKNIFES do
  1058. if INNERKNIFES[e]~=nil then
  1059. local STUFF = INNERKNIFES[e]
  1060. local KNIFE = STUFF[1]
  1061. local PART = STUFF[3]
  1062. PART.Velocity = VT(0,0,0)
  1063. PART.CFrame = CF(RootPart.Position,RootPart.Position+VT(0,0,1))*ANGLES(RAD(0),RAD(5+(e*(360/#INNERKNIFES)+LOOP)),RAD(0))*CF(0,0,-10)*ANGLES(RAD(-90),RAD(90),RAD(0))
  1064. end
  1065. end
  1066. for q=1,#OUTERKNIFES do
  1067. if OUTERKNIFES[q]~=nil then
  1068. local STUFF = OUTERKNIFES[q]
  1069. local KNIFE = STUFF[1]
  1070. local PART = STUFF[3]
  1071. PART.Velocity = VT(0,0,0)
  1072. PART.CFrame = CF(RootPart.Position,RootPart.Position+VT(0,0,1))*ANGLES(RAD(0),RAD(q*(360/#OUTERKNIFES)+LOOP),RAD(0))*CF(0,0,-25)*ANGLES(RAD(-90),RAD(90),RAD(0))
  1073. end
  1074. end
  1075. Swait()
  1076. LOOP = LOOP + 1
  1077. if LOOP == 360 then
  1078. LOOP = 0
  1079. end
  1080. until RELEASE == true
  1081. end))
  1082. for i=0, 2, 0.1 / Animation_Speed do
  1083. Swait()
  1084. Slice("Round",0.5,15,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(-0.01,0,-0.01))
  1085. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1086. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1087. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1088. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1089. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1090. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1091. end
  1092. CreateSound("1368637781", Torso, 10, 1)
  1093. RELEASE = true
  1094. MagicSphere(VT(5,5,5),35,Torso.CFrame,C3(1,0,0),VT(1,1,1))
  1095. CreateRing(VT(0,0,0),false,0,45,CF(Torso.Position)*ANGLES(RAD(90),RAD(0),RAD(0)),C3(1,0,0),VT(0.5,0.5,0))
  1096. for e=1,#INNERKNIFES do
  1097. if INNERKNIFES[e]~=nil then
  1098. local STUFF = INNERKNIFES[e]
  1099. local KNIFE = STUFF[1]
  1100. local BLADE = STUFF[2]
  1101. local PART = STUFF[3]
  1102. BLADE.CanCollide = false
  1103. PART.Velocity = VT(0,0,0)
  1104. local bv = Instance.new("BodyVelocity")
  1105. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1106. bv.velocity = CF(PART.CFrame.p,PART.CFrame*CF(0,-1,0).p).lookVector*400
  1107. bv.Parent = PART
  1108. Debris:AddItem(KNIFE,1)
  1109. end
  1110. end
  1111. for q=1,#OUTERKNIFES do
  1112. if OUTERKNIFES[q]~=nil then
  1113. local STUFF = OUTERKNIFES[q]
  1114. local KNIFE = STUFF[1]
  1115. local BLADE = STUFF[2]
  1116. local PART = STUFF[3]
  1117. BLADE.CanCollide = false
  1118. PART.Velocity = VT(0,0,0)
  1119. local bv = Instance.new("BodyVelocity")
  1120. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1121. bv.velocity = CF(PART.CFrame.p,PART.CFrame*CF(0,-1,0).p).lookVector*200
  1122. bv.Parent = PART
  1123. Debris:AddItem(KNIFE,1)
  1124. end
  1125. end
  1126. ATTACK = false
  1127. Rooted = false
  1128. end
  1129.  
  1130. --//=================================\\
  1131. --|| ASSIGN THINGS TO KEYS
  1132. --\\=================================//
  1133.  
  1134. function MouseDown(Mouse)
  1135. if ATTACK == false then
  1136. Stab()
  1137. end
  1138. end
  1139.  
  1140. function MouseUp(Mouse)
  1141. HOLD = false
  1142. end
  1143.  
  1144. function KeyDown(Key)
  1145. KEYHOLD = true
  1146. if Key == "z" and ATTACK == false then
  1147. BladeDance()
  1148. end
  1149.  
  1150. if Key == "b" and ATTACK == false then
  1151. ReaperDash()
  1152. end
  1153.  
  1154. if Key == "c" and ATTACK == false then
  1155. BlossomingBlood()
  1156. end
  1157.  
  1158. if Key == "x" and ATTACK == false then
  1159. SufferingPrison()
  1160. end
  1161. end
  1162.  
  1163. function KeyUp(Key)
  1164. KEYHOLD = false
  1165. end
  1166.  
  1167. Mouse.Button1Down:connect(function(NEWKEY)
  1168. MouseDown(NEWKEY)
  1169. end)
  1170. Mouse.Button1Up:connect(function(NEWKEY)
  1171. MouseUp(NEWKEY)
  1172. end)
  1173. Mouse.KeyDown:connect(function(NEWKEY)
  1174. KeyDown(NEWKEY)
  1175. end)
  1176. Mouse.KeyUp:connect(function(NEWKEY)
  1177. KeyUp(NEWKEY)
  1178. end)
  1179.  
  1180. --//=================================\\
  1181. --\\=================================//
  1182.  
  1183.  
  1184. function unanchor()
  1185. if UNANCHOR == true then
  1186. g = Character:GetChildren()
  1187. for i = 1, #g do
  1188. if g[i].ClassName == "Part" then
  1189. g[i].Anchored = false
  1190. end
  1191. end
  1192. end
  1193. end
  1194.  
  1195. --//=================================\\
  1196. --|| WRAP THE WHOLE SCRIPT UP
  1197. --\\=================================//
  1198.  
  1199. Humanoid.Changed:connect(function(Jump)
  1200. if Jump == "Jump" and (Disable_Jump == true) then
  1201. Humanoid.Jump = false
  1202. end
  1203. end)
  1204.  
  1205. while true do
  1206. Swait()
  1207. ANIMATE.Parent = nil
  1208. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1209. IDLEANIMATION:Play()
  1210. SINE = SINE + CHANGE
  1211. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1212. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1213. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1214. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1215. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1216. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1217. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1218. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1219. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1220. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1221. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1222. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1223. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1224. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1225. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1226. end
  1227. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1228. ANIM = "Jump"
  1229. if ATTACK == false then
  1230. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1231. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1232. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1233. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1234. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1235. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1236. end
  1237. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1238. ANIM = "Fall"
  1239. if ATTACK == false then
  1240. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1241. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1242. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1243. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1244. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1245. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1246. end
  1247. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1248. ANIM = "Idle"
  1249. if ATTACK == false then
  1250. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 - 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1251. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  1252. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1253. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1254. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1255. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1256. end
  1257. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1258. ANIM = "Walk"
  1259. WALK = WALK + 1 / Animation_Speed
  1260. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1261. WALK = 0
  1262. if WALKINGANIM == true then
  1263. WALKINGANIM = false
  1264. elseif WALKINGANIM == false then
  1265. WALKINGANIM = true
  1266. end
  1267. end
  1268. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1269. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1270. if ATTACK == false then
  1271. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1272. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1273. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1274. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1275. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1276. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1277. end
  1278. end
  1279. if HITFLOOR ~= nil then
  1280. if MRANDOM(1,2) == 1 then
  1281. local HITFLOOR,HITPOS,NORMAL = Raycast(LeftLeg.Position, (CF(LeftLeg.Position, LeftLeg.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1282. Slice("Round",0.1,35,CF(HITPOS+VT(0,0.1,0),HITPOS+VT(0,0.1,0)+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),"Really black",VT(0.001,0,0.001))
  1283. Slice("Round",0.1,45,CF(HITPOS+VT(0,0.1,0),HITPOS+VT(0,0.1,0)+NORMAL)*ANGLES(RAD(90),RAD(MRANDOM(-180,180)),RAD(0)),"Really black",VT(0,0,0))
  1284. local HITFLOOR,HITPOS,NORMAL = Raycast(RightLeg.Position, (CF(RightLeg.Position, RightLeg.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1285. Slice("Round",0.1,35,CF(HITPOS+VT(0,0.1,0),HITPOS+VT(0,0.1,0)+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),"Really black",VT(0.001,0,0.001))
  1286. Slice("Round",0.1,45,CF(HITPOS+VT(0,0.1,0),HITPOS+VT(0,0.1,0)+NORMAL)*ANGLES(RAD(90),RAD(MRANDOM(-180,180)),RAD(0)),"Really black",VT(0,0,0))
  1287. end
  1288. end
  1289. unanchor()
  1290. Humanoid.MaxHealth = "inf"
  1291. Humanoid.Health = "inf"
  1292. if Rooted == false then
  1293. Disable_Jump = false
  1294. Humanoid.WalkSpeed = Speed
  1295. elseif Rooted == true then
  1296. Disable_Jump = true
  1297. Humanoid.WalkSpeed = 0
  1298. end
  1299. sick.Parent = Character
  1300. local MATHS = {"0","1"}
  1301. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1302. Humanoid.PlatformStand = false
  1303. end
  1304.  
  1305. --//=================================\\
  1306. --\\=================================//
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312. --//====================================================\\--
  1313. --|| END OF SCRIPT
  1314. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement