AsukaOS

Fe Shackluster's Knife

Sep 21st, 2018
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.22 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. wait(0.2)
  6. --https://github.com/Mokiros/roblox-FE-compatibility
  7. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  8. local Player,game,owner = owner,game
  9. local RealPlayer = Player
  10. do
  11. print("FE Compatibility code by Mokiros")
  12. local rp = RealPlayer
  13. script.Parent = rp.Character
  14.  
  15. --RemoteEvent for communicating
  16. local Event = Instance.new("RemoteEvent")
  17. Event.Name = "UserInput_Event"
  18.  
  19. --Fake event to make stuff like Mouse.KeyDown work
  20. local function fakeEvent()
  21. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  22. t.connect = t.Connect
  23. return t
  24. end
  25.  
  26. --Creating fake input objects with fake variables
  27. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  28. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  29. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  30. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  31. end}
  32. --Merged 2 functions into one by checking amount of arguments
  33. CAS.UnbindAction = CAS.BindAction
  34.  
  35. --This function will trigger the events that have been :Connect()'ed
  36. local function te(self,ev,...)
  37. local t = m[ev]
  38. if t and t._fakeEvent then
  39. for _,f in pairs(t.Functions) do
  40. f(...)
  41. end
  42. end
  43. end
  44. m.TrigEvent = te
  45. UIS.TrigEvent = te
  46.  
  47. Event.OnServerEvent:Connect(function(plr,io)
  48. if plr~=rp then return end
  49. m.Target = io.Target
  50. m.Hit = io.Hit
  51. if not io.isMouse then
  52. local b = io.UserInputState == Enum.UserInputState.Begin
  53. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  54. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  55. end
  56. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  57. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  58. end
  59. for _,t in pairs(CAS.Actions) do
  60. for _,k in pairs(t.Keys) do
  61. if k==io.KeyCode then
  62. t.Function(t.Name,io.UserInputState,io)
  63. end
  64. end
  65. end
  66. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  67. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  68. end
  69. end)
  70. Event.Parent = NLS([==[
  71. local Player = game:GetService("Players").LocalPlayer
  72. local Event = script:WaitForChild("UserInput_Event")
  73.  
  74. local Mouse = Player:GetMouse()
  75. local UIS = game:GetService("UserInputService")
  76. local input = function(io,a)
  77. if a then return end
  78. --Since InputObject is a client-side instance, we create and pass table instead
  79. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  80. end
  81. UIS.InputBegan:Connect(input)
  82. UIS.InputEnded:Connect(input)
  83.  
  84. local h,t
  85. --Give the server mouse data 30 times every second, but only if the values changed
  86. --If player is not moving their mouse, client won't fire events
  87. while wait(1/30) do
  88. if h~=Mouse.Hit or t~=Mouse.Target then
  89. h,t=Mouse.Hit,Mouse.Target
  90. Event:FireServer({isMouse=true,Target=t,Hit=h})
  91. end
  92. end]==],Player.Character)
  93.  
  94. ----Sandboxed game object that allows the usage of client-side methods and services
  95. --Real game object
  96. local _rg = game
  97.  
  98. --Metatable for fake service
  99. local fsmt = {
  100. __index = function(self,k)
  101. local s = rawget(self,"_RealService")
  102. if s then
  103. return typeof(s[k])=="function"
  104. and function(_,...)return s[k](s,...)end or s[k]
  105. end
  106. end,
  107. __newindex = function(self,k,v)
  108. local s = rawget(self,"_RealService")
  109. if s then s[k]=v end
  110. end
  111. }
  112. local function FakeService(t,RealService)
  113. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  114. return setmetatable(t,fsmt)
  115. end
  116.  
  117. --Fake game object
  118. local g = {
  119. GetService = function(self,s)
  120. return rawget(self,s) or _rg:GetService(s)
  121. end,
  122. Players = FakeService({
  123. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  124. },"Players"),
  125. UserInputService = FakeService(UIS,"UserInputService"),
  126. ContextActionService = FakeService(CAS,"ContextActionService"),
  127. RunService = FakeService({
  128. _btrs = {},
  129. RenderStepped = _rg:GetService("RunService").Heartbeat,
  130. BindToRenderStep = function(self,name,_,fun)
  131. self._btrs[name] = self.Heartbeat:Connect(fun)
  132. end,
  133. UnbindFromRenderStep = function(self,name)
  134. self._btrs[name]:Disconnect()
  135. end,
  136. },"RunService")
  137. }
  138. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  139. g.service = g.GetService
  140. FakeService(g,game)
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. Player = game:GetService("Players").LocalPlayer
  145. PlayerGui = Player.PlayerGui
  146. Cam = workspace.CurrentCamera
  147. Backpack = Player.Backpack
  148. Character = Player.Character
  149. Humanoid = Character.Humanoid
  150. Mouse = Player:GetMouse()
  151. RootPart = Character["HumanoidRootPart"]
  152. Torso = Character["Torso"]
  153. Head = Character["Head"]
  154. RightArm = Character["Right Arm"]
  155. LeftArm = Character["Left Arm"]
  156. RightLeg = Character["Right Leg"]
  157. LeftLeg = Character["Left Leg"]
  158. RootJoint = RootPart["RootJoint"]
  159. Neck = Torso["Neck"]
  160. RightShoulder = Torso["Right Shoulder"]
  161. LeftShoulder = Torso["Left Shoulder"]
  162. RightHip = Torso["Right Hip"]
  163. LeftHip = Torso["Left Hip"]
  164.  
  165. IT = Instance.new
  166. CF = CFrame.new
  167. VT = Vector3.new
  168. RAD = math.rad
  169. C3 = Color3.new
  170. UD2 = UDim2.new
  171. BRICKC = BrickColor.new
  172. ANGLES = CFrame.Angles
  173. EULER = CFrame.fromEulerAnglesXYZ
  174. COS = math.cos
  175. ACOS = math.acos
  176. SIN = math.sin
  177. ASIN = math.asin
  178. ABS = math.abs
  179. MRANDOM = math.random
  180. FLOOR = math.floor
  181.  
  182. --//=================================\\
  183. --|| USEFUL VALUES
  184. --\\=================================//
  185.  
  186. Animation_Speed = 3
  187. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  188. local Speed = 12
  189. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  190. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  191. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  192. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  193. local DAMAGEMULTIPLIER = 1
  194. local ANIM = "Idle"
  195. local ATTACK = false
  196. local EQUIPPED = false
  197. local HOLD = false
  198. local COMBO = 1
  199. local Rooted = false
  200. local SINE = 0
  201. local KEYHOLD = false
  202. local CHANGE = 2 / Animation_Speed
  203. local WALKINGANIM = false
  204. local VALUE1 = false
  205. local VALUE2 = false
  206. local ROBLOXIDLEANIMATION = IT("Animation")
  207. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  208. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  209. --ROBLOXIDLEANIMATION.Parent = Humanoid
  210. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  211. WEAPONGUI.Name = "Weapon GUI"
  212. local Weapon = IT("Model")
  213. Weapon.Name = "Adds"
  214. local Effects = IT("Folder", Weapon)
  215. Effects.Name = "Effects"
  216. local ANIMATOR = Humanoid.Animator
  217. local ANIMATE = Character.Animate
  218. local UNANCHOR = true
  219. local PLAYANIMS = true
  220. local CLOAKED = false
  221.  
  222. --//=================================\\
  223. --\\=================================//
  224.  
  225.  
  226. --//=================================\\
  227. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  228. --\\=================================//
  229.  
  230. ArtificialHB = Instance.new("BindableEvent", script)
  231. ArtificialHB.Name = "ArtificialHB"
  232.  
  233. script:WaitForChild("ArtificialHB")
  234.  
  235. frame = Frame_Speed
  236. tf = 0
  237. allowframeloss = false
  238. tossremainder = false
  239. lastframe = tick()
  240. script.ArtificialHB:Fire()
  241.  
  242. game:GetService("RunService").Heartbeat:connect(function(s, p)
  243. tf = tf + s
  244. if tf >= frame then
  245. if allowframeloss then
  246. script.ArtificialHB:Fire()
  247. lastframe = tick()
  248. else
  249. for i = 1, math.floor(tf / frame) do
  250. script.ArtificialHB:Fire()
  251. end
  252. lastframe = tick()
  253. end
  254. if tossremainder then
  255. tf = 0
  256. else
  257. tf = tf - frame * math.floor(tf / frame)
  258. end
  259. end
  260. end)
  261.  
  262. --//=================================\\
  263. --\\=================================//
  264.  
  265. --//=================================\\
  266. --|| SOME FUNCTIONS
  267. --\\=================================//
  268.  
  269. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  270. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  271. end
  272.  
  273. function PositiveAngle(NUMBER)
  274. if NUMBER >= 0 then
  275. NUMBER = 0
  276. end
  277. return NUMBER
  278. end
  279.  
  280. function NegativeAngle(NUMBER)
  281. if NUMBER <= 0 then
  282. NUMBER = 0
  283. end
  284. return NUMBER
  285. end
  286.  
  287. function Swait(NUMBER)
  288. if NUMBER == 0 or NUMBER == nil then
  289. ArtificialHB.Event:wait()
  290. else
  291. for i = 1, NUMBER do
  292. ArtificialHB.Event:wait()
  293. end
  294. end
  295. end
  296.  
  297. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  298. local NEWMESH = IT(MESH)
  299. if MESH == "SpecialMesh" then
  300. NEWMESH.MeshType = MESHTYPE
  301. if MESHID ~= "nil" and MESHID ~= "" then
  302. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  303. end
  304. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  305. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  306. end
  307. end
  308. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  309. NEWMESH.Scale = SCALE
  310. NEWMESH.Parent = PARENT
  311. return NEWMESH
  312. end
  313.  
  314. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  315. local NEWPART = IT("Part")
  316. NEWPART.formFactor = FORMFACTOR
  317. NEWPART.Reflectance = REFLECTANCE
  318. NEWPART.Transparency = TRANSPARENCY
  319. NEWPART.CanCollide = false
  320. NEWPART.Locked = true
  321. NEWPART.Anchored = true
  322. if ANCHOR == false then
  323. NEWPART.Anchored = false
  324. end
  325. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  326. NEWPART.Name = NAME
  327. NEWPART.Size = SIZE
  328. NEWPART.Position = Torso.Position
  329. NEWPART.Material = MATERIAL
  330. NEWPART:BreakJoints()
  331. NEWPART.Parent = PARENT
  332. return NEWPART
  333. end
  334.  
  335. local function weldBetween(a, b)
  336. local weldd = Instance.new("ManualWeld")
  337. weldd.Part0 = a
  338. weldd.Part1 = b
  339. weldd.C0 = CFrame.new()
  340. weldd.C1 = b.CFrame:inverse() * a.CFrame
  341. weldd.Parent = a
  342. return weldd
  343. end
  344.  
  345.  
  346. function QuaternionFromCFrame(cf)
  347. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  348. local trace = m00 + m11 + m22
  349. if trace > 0 then
  350. local s = math.sqrt(1 + trace)
  351. local recip = 0.5 / s
  352. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  353. else
  354. local i = 0
  355. if m11 > m00 then
  356. i = 1
  357. end
  358. if m22 > (i == 0 and m00 or m11) then
  359. i = 2
  360. end
  361. if i == 0 then
  362. local s = math.sqrt(m00 - m11 - m22 + 1)
  363. local recip = 0.5 / s
  364. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  365. elseif i == 1 then
  366. local s = math.sqrt(m11 - m22 - m00 + 1)
  367. local recip = 0.5 / s
  368. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  369. elseif i == 2 then
  370. local s = math.sqrt(m22 - m00 - m11 + 1)
  371. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  372. end
  373. end
  374. end
  375.  
  376. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  377. local xs, ys, zs = x + x, y + y, z + z
  378. local wx, wy, wz = w * xs, w * ys, w * zs
  379. local xx = x * xs
  380. local xy = x * ys
  381. local xz = x * zs
  382. local yy = y * ys
  383. local yz = y * zs
  384. local zz = z * zs
  385. 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))
  386. end
  387.  
  388. function QuaternionSlerp(a, b, t)
  389. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  390. local startInterp, finishInterp;
  391. if cosTheta >= 0.0001 then
  392. if (1 - cosTheta) > 0.0001 then
  393. local theta = ACOS(cosTheta)
  394. local invSinTheta = 1 / SIN(theta)
  395. startInterp = SIN((1 - t) * theta) * invSinTheta
  396. finishInterp = SIN(t * theta) * invSinTheta
  397. else
  398. startInterp = 1 - t
  399. finishInterp = t
  400. end
  401. else
  402. if (1 + cosTheta) > 0.0001 then
  403. local theta = ACOS(-cosTheta)
  404. local invSinTheta = 1 / SIN(theta)
  405. startInterp = SIN((t - 1) * theta) * invSinTheta
  406. finishInterp = SIN(t * theta) * invSinTheta
  407. else
  408. startInterp = t - 1
  409. finishInterp = t
  410. end
  411. end
  412. 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
  413. end
  414.  
  415. function Clerp(a, b, t)
  416. local qa = {QuaternionFromCFrame(a)}
  417. local qb = {QuaternionFromCFrame(b)}
  418. local ax, ay, az = a.x, a.y, a.z
  419. local bx, by, bz = b.x, b.y, b.z
  420. local _t = 1 - t
  421. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  422. end
  423.  
  424. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  425. local frame = IT("Frame")
  426. frame.BackgroundTransparency = TRANSPARENCY
  427. frame.BorderSizePixel = BORDERSIZEPIXEL
  428. frame.Position = POSITION
  429. frame.Size = SIZE
  430. frame.BackgroundColor3 = COLOR
  431. frame.BorderColor3 = BORDERCOLOR
  432. frame.Name = NAME
  433. frame.Parent = PARENT
  434. return frame
  435. end
  436.  
  437. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  438. local label = IT("TextLabel")
  439. label.BackgroundTransparency = 1
  440. label.Size = UD2(1, 0, 1, 0)
  441. label.Position = UD2(0, 0, 0, 0)
  442. label.TextColor3 = TEXTCOLOR
  443. label.TextStrokeTransparency = STROKETRANSPARENCY
  444. label.TextTransparency = TRANSPARENCY
  445. label.FontSize = TEXTFONTSIZE
  446. label.Font = TEXTFONT
  447. label.BorderSizePixel = BORDERSIZEPIXEL
  448. label.TextScaled = false
  449. label.Text = TEXT
  450. label.Name = NAME
  451. label.Parent = PARENT
  452. return label
  453. end
  454.  
  455. function NoOutlines(PART)
  456. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  457. end
  458.  
  459. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  460. local NEWWELD = IT(TYPE)
  461. NEWWELD.Part0 = PART0
  462. NEWWELD.Part1 = PART1
  463. NEWWELD.C0 = C0
  464. NEWWELD.C1 = C1
  465. NEWWELD.Parent = PARENT
  466. return NEWWELD
  467. end
  468.  
  469. local S = IT("Sound")
  470. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  471. local NEWSOUND = nil
  472. coroutine.resume(coroutine.create(function()
  473. NEWSOUND = S:Clone()
  474. NEWSOUND.Parent = PARENT
  475. NEWSOUND.Volume = VOLUME
  476. NEWSOUND.Pitch = PITCH
  477. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  478. NEWSOUND:play()
  479. if DOESLOOP == true then
  480. NEWSOUND.Looped = true
  481. else
  482. repeat wait(1) until NEWSOUND.Playing == false
  483. NEWSOUND:remove()
  484. end
  485. end))
  486. return NEWSOUND
  487. end
  488.  
  489. function MakeForm(PART,TYPE)
  490. if TYPE == "Cyl" then
  491. local MSH = IT("CylinderMesh",PART)
  492. elseif TYPE == "Ball" then
  493. local MSH = IT("SpecialMesh",PART)
  494. MSH.MeshType = "Sphere"
  495. elseif TYPE == "Wedge" then
  496. local MSH = IT("SpecialMesh",PART)
  497. MSH.MeshType = "Wedge"
  498. end
  499. end
  500.  
  501. function CFrameFromTopBack(at, top, back)
  502. local right = top:Cross(back)
  503. 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)
  504. end
  505.  
  506. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  507. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  508. if HITFLOOR ~= nil then
  509. if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  510. if HITFLOOR.Name == "BloodPuddle" then
  511. local DIST = (Position - HITFLOOR.Position).Magnitude
  512. 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
  513. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  514. end
  515. else
  516. if HITFLOOR.Anchored == true then
  517. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
  518. BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
  519. MakeForm(BLOOD,"Cyl")
  520. coroutine.resume(coroutine.create(function()
  521. Swait(75)
  522. while true do
  523. Swait()
  524. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  525. if BLOOD.Size.Z < 0.051 then
  526. BLOOD:remove()
  527. break
  528. end
  529. end
  530. end))
  531. end
  532. end
  533. end
  534. end
  535. end
  536.  
  537. function SprayBlood(POSITION,DIRECTION,BloodSize)
  538. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.3,0.3,0.3),false)
  539. BLOOD.CFrame = CF(POSITION)
  540. MakeForm(BLOOD,"Ball")
  541. local bv = Instance.new("BodyVelocity",BLOOD)
  542. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  543. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*75
  544. bv.Name = "MOVE"
  545. Debris:AddItem(bv,0.05)
  546. coroutine.resume(coroutine.create(function()
  547. local HASTOUCHEDGROUND = false
  548. local HIT = BLOOD.Touched:Connect(function(hit)
  549. if hit.Anchored == true then
  550. HASTOUCHEDGROUND = true
  551. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  552. end
  553. end)
  554. wait(5)
  555. if HASTOUCHEDGROUND == false then
  556. BLOOD:remove()
  557. end
  558. end))
  559. end
  560.  
  561. Debris = game:GetService("Debris")
  562.  
  563. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  564. local DIRECTION = CF(StartPos,EndPos).lookVector
  565. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  566. end
  567.  
  568. function turnto(position)
  569. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  570. end
  571.  
  572. function recurse(root,callback,i)
  573. i= i or 0
  574. for _,v in pairs(root:GetChildren()) do
  575. i = i + 1
  576. callback(i,v)
  577.  
  578. if #v:GetChildren() > 0 then
  579. i = recurse(v,callback,i)
  580. end
  581. end
  582.  
  583. return i
  584. end
  585.  
  586. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  587. attachmentName = attachmentName.."RigAttachment"
  588. local constraint = Instance.new(className.."Constraint")
  589. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  590. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  591. constraint.Name = "RagdollConstraint"..part1.Name
  592.  
  593. for _,propertyData in next,properties or {} do
  594. constraint[propertyData[1]] = propertyData[2]
  595. end
  596.  
  597. constraint.Parent = character
  598. end
  599.  
  600. function getAttachment0(character, attachmentName)
  601. for _,child in next,character:GetChildren() do
  602. local attachment = child:FindFirstChild(attachmentName)
  603. if attachment then
  604. return attachment
  605. end
  606. end
  607. end
  608.  
  609. function R15Ragdoll(character)
  610. recurse(character, function(_,v)
  611. if v:IsA("Attachment") then
  612. v.Axis = Vector3.new(0, 1, 0)
  613. v.SecondaryAxis = Vector3.new(0, 0, 1)
  614. v.Rotation = Vector3.new(0, 0, 0)
  615. end
  616. end)
  617. for _,child in next,character:GetChildren() do
  618. if child:IsA("Accoutrement") then
  619. for _,part in next,child:GetChildren() do
  620. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  621. local attachment1 = part:FindFirstChildOfClass("Attachment")
  622. local attachment0 = getAttachment0(character,attachment1.Name)
  623. if attachment0 and attachment1 then
  624. local constraint = Instance.new("HingeConstraint")
  625. constraint.Attachment0 = attachment0
  626. constraint.Attachment1 = attachment1
  627. constraint.LimitsEnabled = true
  628. constraint.UpperAngle = 0
  629. constraint.LowerAngle = 0
  630. constraint.Parent = character
  631. end
  632. elseif part.Name == "HumanoidRootPart" then
  633. part:remove()
  634. end
  635. end
  636. end
  637. end
  638.  
  639. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  640. {"LimitsEnabled",true};
  641. {"UpperAngle",5};
  642. })
  643. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  644. {"LimitsEnabled",true};
  645. {"UpperAngle",15};
  646. })
  647.  
  648. local handProperties = {
  649. {"LimitsEnabled", true};
  650. {"UpperAngle",0};
  651. {"LowerAngle",0};
  652. }
  653. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  654. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  655.  
  656. local shinProperties = {
  657. {"LimitsEnabled", true};
  658. {"UpperAngle", 0};
  659. {"LowerAngle", -75};
  660. }
  661. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  662. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  663.  
  664. local footProperties = {
  665. {"LimitsEnabled", true};
  666. {"UpperAngle", 15};
  667. {"LowerAngle", -45};
  668. }
  669. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  670. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  671.  
  672. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  673. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  674. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  675. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  676. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  677. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  678. end
  679.  
  680. function Ragdoll(Character2,CharTorso)
  681. Character2:BreakJoints()
  682. local hum = Character2:findFirstChild("Humanoid")
  683. hum:remove()
  684. local function Scan(ch)
  685. local e
  686. for e = 1,#ch do
  687. Scan(ch[e]:GetChildren())
  688. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  689. ch[e]:remove()
  690. end
  691. end
  692. end
  693. local NEWHUM = IT("Humanoid")
  694. NEWHUM.Name = "Corpse"
  695. NEWHUM.Health = 0
  696. NEWHUM.MaxHealth = 0
  697. NEWHUM.PlatformStand = true
  698. NEWHUM.Parent = Character2
  699. NEWHUM.DisplayDistanceType = "None"
  700.  
  701. local ch = Character2:GetChildren()
  702. local i
  703. for i = 1,#ch do
  704. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  705. ch[i]:remove()
  706. end
  707. end
  708.  
  709. local Torso2 = Character2.Torso
  710. local movevector = Vector3.new()
  711.  
  712. if Torso2 then
  713. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  714. local Head = Character2:FindFirstChild("Head")
  715. if Head then
  716. local Neck = Instance.new("Weld")
  717. Neck.Name = "Neck"
  718. Neck.Part0 = Torso2
  719. Neck.Part1 = Head
  720. Neck.C0 = CFrame.new(0, 1.5, 0)
  721. Neck.C1 = CFrame.new()
  722. Neck.Parent = Torso2
  723.  
  724. end
  725. local Limb = Character2:FindFirstChild("Right Arm")
  726. if Limb then
  727.  
  728. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  729. local Joint = Instance.new("Glue")
  730. Joint.Name = "RightShoulder"
  731. Joint.Part0 = Torso2
  732. Joint.Part1 = Limb
  733. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  734. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  735. Joint.Parent = Torso2
  736.  
  737. local B = Instance.new("Part")
  738. B.TopSurface = 0
  739. B.BottomSurface = 0
  740. B.formFactor = "Symmetric"
  741. B.Size = Vector3.new(1, 1, 1)
  742. B.Transparency = 1
  743. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  744. B.Parent = Character2
  745. local W = Instance.new("Weld")
  746. W.Part0 = Limb
  747. W.Part1 = B
  748. W.C0 = CFrame.new(0, -0.5, 0)
  749. W.Parent = Limb
  750.  
  751. end
  752. local Limb = Character2:FindFirstChild("Left Arm")
  753. if Limb then
  754.  
  755. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  756. local Joint = Instance.new("Glue")
  757. Joint.Name = "LeftShoulder"
  758. Joint.Part0 = Torso2
  759. Joint.Part1 = Limb
  760. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  761. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  762. Joint.Parent = Torso2
  763.  
  764. local B = Instance.new("Part")
  765. B.TopSurface = 0
  766. B.BottomSurface = 0
  767. B.formFactor = "Symmetric"
  768. B.Size = Vector3.new(1, 1, 1)
  769. B.Transparency = 1
  770. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  771. B.Parent = Character2
  772. local W = Instance.new("Weld")
  773. W.Part0 = Limb
  774. W.Part1 = B
  775. W.C0 = CFrame.new(0, -0.5, 0)
  776. W.Parent = Limb
  777.  
  778. end
  779. local Limb = Character2:FindFirstChild("Right Leg")
  780. if Limb then
  781.  
  782. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  783. local Joint = Instance.new("Glue")
  784. Joint.Name = "RightHip"
  785. Joint.Part0 = Torso2
  786. Joint.Part1 = Limb
  787. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  788. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  789. Joint.Parent = Torso2
  790.  
  791. local B = Instance.new("Part")
  792. B.TopSurface = 0
  793. B.BottomSurface = 0
  794. B.formFactor = "Symmetric"
  795. B.Size = Vector3.new(1, 1, 1)
  796. B.Transparency = 1
  797. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  798. B.Parent = Character2
  799. local W = Instance.new("Weld")
  800. W.Part0 = Limb
  801. W.Part1 = B
  802. W.C0 = CFrame.new(0, -0.5, 0)
  803. W.Parent = Limb
  804.  
  805. end
  806. local Limb = Character2:FindFirstChild("Left Leg")
  807. if Limb then
  808.  
  809. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  810. local Joint = Instance.new("Glue")
  811. Joint.Name = "LeftHip"
  812. Joint.Part0 = Torso2
  813. Joint.Part1 = Limb
  814. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  815. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  816. Joint.Parent = Torso2
  817.  
  818. local B = Instance.new("Part")
  819. B.TopSurface = 0
  820. B.BottomSurface = 0
  821. B.formFactor = "Symmetric"
  822. B.Size = Vector3.new(1, 1, 1)
  823. B.Transparency = 1
  824. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  825. B.Parent = Character2
  826. local W = Instance.new("Weld")
  827. W.Part0 = Limb
  828. W.Part1 = B
  829. W.C0 = CFrame.new(0, -0.5, 0)
  830. W.Parent = Limb
  831.  
  832. end
  833. --[
  834. local Bar = Instance.new("Part")
  835. Bar.TopSurface = 0
  836. Bar.BottomSurface = 0
  837. Bar.formFactor = "Symmetric"
  838. Bar.Size = Vector3.new(1, 1, 1)
  839. Bar.Transparency = 1
  840. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  841. Bar.Parent = Character2
  842. local Weld = Instance.new("Weld")
  843. Weld.Part0 = Torso2
  844. Weld.Part1 = Bar
  845. Weld.C0 = CFrame.new(0, 0.5, 0)
  846. Weld.Parent = Torso2
  847. --]]
  848. end
  849. Character2.Parent = workspace
  850. Debris:AddItem(Character2,5)
  851.  
  852. return Character2,Torso2
  853. end
  854.  
  855. --//=================================\\
  856. --|| WEAPON CREATION
  857. --\\=================================//
  858.  
  859. local Knife = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false)
  860. local Grip = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Knife, CF(0,-1.2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0.3, 0))
  861. CreateMesh("SpecialMesh", Knife, "FileMesh", "470094777", "470149026", VT(0.2,0.2,0.2), VT(0,0,0))
  862. local A = IT("Attachment",Knife)
  863. A.Position = VT(-0, 0.2, 0.136)
  864. local B = IT("Attachment",Knife)
  865. B.Position = VT(-0, -0.95, -0.982)
  866. local Trail = IT("Trail",Knife)
  867. Trail.Attachment0 = B
  868. Trail.Attachment1 = A
  869. Trail.Lifetime = 0.1
  870. Trail.Transparency = NumberSequence.new(0.5, 1)
  871. Trail.Texture = "http://www.roblox.com/asset/?id=1472703539"
  872. Trail.Enabled = true
  873. Humanoid.DisplayDistanceType = "None"
  874. Humanoid.MaxHealth = 800
  875. Humanoid.Health = 800
  876.  
  877. local STEP = CreateSound(131436155, Torso, 3, 1, true)
  878. STEP.Playing = false
  879. STEP.Looped = false
  880. local STEPPING = false
  881. Humanoid.Running:Connect(function(speed)
  882. if STEPPING == false then
  883. STEPPING = true
  884. repeat
  885. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  886. wait(8/TORSOVELOCITY)
  887. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  888. if TORSOVELOCITY > 1 and Torso.Transparency ~= 1 and HITFLOOR ~= nil then
  889. STEP.Parent = Torso
  890. STEP.Pitch = MRANDOM(8,12)/10
  891. STEP:Play()
  892. end
  893. until TORSOVELOCITY < 0.6
  894. STEPPING = false
  895. end
  896. end)
  897.  
  898. for _, c in pairs(Weapon:GetChildren()) do
  899. if c.ClassName == "Part" then
  900. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  901. end
  902. end
  903.  
  904. local SKILLTEXTCOLOR = C3(0,0,0)
  905. local SKILLFONT = "SciFi"
  906. local SKILLTEXTSIZE = 7
  907.  
  908. Weapon.Parent = Character
  909.  
  910. Humanoid.Died:connect(function()
  911. ATTACK = true
  912. end)
  913.  
  914. --//=================================\\
  915. --|| DAMAGE FUNCTIONS
  916. --\\=================================//
  917.  
  918. function StatLabel(CFRAME, TEXT, COLOR)
  919. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  920. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  921. local BODYGYRO = IT("BodyGyro", STATPART)
  922. game:GetService("Debris"):AddItem(STATPART ,5)
  923. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  924. BILLBOARDGUI.Adornee = STATPART
  925. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  926. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  927. BILLBOARDGUI.AlwaysOnTop = false
  928. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  929. TEXTLABEL.BackgroundTransparency = 1
  930. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  931. TEXTLABEL.Text = TEXT
  932. TEXTLABEL.Font = SKILLFONT
  933. TEXTLABEL.FontSize="Size42"
  934. TEXTLABEL.TextColor3 = COLOR
  935. TEXTLABEL.TextStrokeTransparency = 0
  936. TEXTLABEL.TextScaled = true
  937. TEXTLABEL.TextWrapped = true
  938. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  939. for i = 1, 50 do
  940. Swait()
  941. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  942. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  943. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  944. end
  945. THEPART.Parent = nil
  946. end),STATPART, TEXTLABEL)
  947. end
  948.  
  949. --//=================================\\
  950. --|| DAMAGING
  951. --\\=================================//
  952.  
  953. function ApplyDamage(Humanoid,Damage,TorsoPart)
  954. local defence = Instance.new("BoolValue",Humanoid.Parent)
  955. defence.Name = ("HitBy"..Player.Name)
  956. game:GetService("Debris"):AddItem(defence, 0.001)
  957. Damage = Damage * DAMAGEMULTIPLIER
  958. if Humanoid.Health ~= 0 then
  959. local CritChance = MRANDOM(1,100)
  960. if Damage > Humanoid.Health then
  961. Damage = math.ceil(Humanoid.Health)
  962. if Damage == 0 then
  963. Damage = 0.1
  964. end
  965. end
  966. Humanoid.Health = Humanoid.Health - Damage
  967. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  968. end
  969. end
  970.  
  971. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  972. local CHILDREN = workspace:GetDescendants()
  973. for index, CHILD in pairs(CHILDREN) do
  974. if CHILD.ClassName == "Model" and CHILD ~= Character then
  975. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  976. if HUM then
  977. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  978. if TORSO then
  979. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  980. if INSTAKILL == true then
  981. CHILD:BreakJoints()
  982. else
  983. local DMG = MRANDOM(MINDMG,MAXDMG)
  984. ApplyDamage(HUM,DMG,TORSO)
  985. end
  986. if FLING > 0 then
  987. for _, c in pairs(CHILD:GetChildren()) do
  988. if c:IsA("BasePart") then
  989. local bv = Instance.new("BodyVelocity")
  990. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  991. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  992. bv.Parent = c
  993. Debris:AddItem(bv,0.05)
  994. end
  995. end
  996. end
  997. end
  998. end
  999. end
  1000. end
  1001. end
  1002. end
  1003.  
  1004. --//=================================\\
  1005. --|| ATTACK FUNCTIONS AND STUFF
  1006. --\\=================================//
  1007.  
  1008. function Cloaked()
  1009. CLOAKED = true
  1010. Speed = 0
  1011. local POS = RootPart.Position
  1012. local DISTANCE = 99999
  1013. for i = 1, 15 do
  1014. wait()
  1015. for _, c in pairs(Character:GetChildren()) do
  1016. if c:IsA("BasePart") and c ~= RootPart then
  1017. c.Transparency = c.Transparency + 1/15
  1018. elseif c.ClassName == "Accessory" then
  1019. c.Handle.Transparency = c.Handle.Transparency + 1/15
  1020. end
  1021. end
  1022. Trail.Transparency = NumberSequence.new(0.5+((i/15)/2), 1)
  1023. Knife.Transparency = Knife.Transparency + 1/15
  1024. end
  1025. Speed = 5
  1026. repeat
  1027. wait()
  1028. DISTANCE = (RootPart.Position - POS).Magnitude
  1029. until DISTANCE > 45 or CLOAKED == false
  1030. Speed = 0
  1031. for i = 1, 15 do
  1032. wait()
  1033. for _, c in pairs(Character:GetChildren()) do
  1034. if c:IsA("BasePart") and c ~= RootPart then
  1035. c.Transparency = 1 - i/15
  1036. elseif c.ClassName == "Accessory" then
  1037. c.Handle.Transparency = 1 - i/15
  1038. end
  1039. end
  1040. Trail.Transparency = NumberSequence.new(1-((0.5/15)*i), 1)
  1041. Knife.Transparency = 1 - i/15
  1042. end
  1043. Speed = 12
  1044. CLOAKED = false
  1045. end
  1046.  
  1047. function Attack()
  1048. PLAYANIMS = false
  1049. ATTACK = true
  1050. Rooted = false
  1051. local TARGET = nil
  1052. Knife.CanCollide = true
  1053. local HUMAN = nil
  1054. local TORSOPART = nil
  1055. local HIT = Knife.Touched:Connect(function(hit)
  1056. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  1057. local HITBODY = hit.Parent
  1058. local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
  1059. local TORSO = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
  1060. if TORSO and HUM.Health > 0 then
  1061. TARGET = HITBODY
  1062. TORSOPART = TORSO
  1063. HUMAN = HUM
  1064. end
  1065. end
  1066. end)
  1067. for i=0, 0.4, 0.1 / Animation_Speed do
  1068. Swait()
  1069. if TARGET then
  1070. break
  1071. end
  1072. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1073. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
  1074. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1075. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1076. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1077. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1078. end
  1079. CreateSound(143501853,Knife,2,MRANDOM(8,13)/10,false)
  1080. for i=0, 0.5, 0.1 / Animation_Speed do
  1081. Swait()
  1082. if TARGET then
  1083. break
  1084. end
  1085. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed)
  1086. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1087. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1088. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1089. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / 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(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1091. end
  1092. Knife.CanCollide = false
  1093. if TARGET then
  1094. CLOAKED = false
  1095. local DISPOSE = false
  1096. Rooted = true
  1097. coroutine.resume(coroutine.create(function()
  1098. repeat
  1099. Swait()
  1100. if TORSOPART then
  1101. TORSOPART.Anchored = true
  1102. TORSOPART.CFrame = RootPart.CFrame*CF(0,0,-2.2)
  1103. end
  1104. until DISPOSE == true
  1105. TORSOPART.Anchored = false
  1106. end))
  1107. for i=0, 0.5, 0.1 / Animation_Speed do
  1108. Swait()
  1109. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1110. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
  1111. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -1.3) * ANGLES(RAD(90), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1112. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1113. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1114. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1115. end
  1116. CreateSound(28144268,Knife,2,MRANDOM(8,13)/10,false)
  1117. CreateSound(180083298,TORSOPART,5,MRANDOM(8,13)/10,false)
  1118. coroutine.resume(coroutine.create(function()
  1119. for i = 1, 750 do
  1120. Swait()
  1121. if HUMAN and TORSOPART then
  1122. if HUMAN.Health > 0 then
  1123. SprayBlood(TORSOPART.CFrame*CF(0,TORSOPART.Size.Y/2,-TORSOPART.Size.Z/2).p,TORSOPART.CFrame*CF(MRANDOM(-3,3)/15,TORSOPART.Size.Y+MRANDOM(-3,3)/35,-TORSOPART.Size.Z*MRANDOM(8,25)/10).p,MRANDOM(15,35)/10)
  1124. HUMAN.Health = HUMAN.Health - 1
  1125. HUMAN.WalkSpeed = MRANDOM(5,45)
  1126. else
  1127. break
  1128. end
  1129. else
  1130. break
  1131. end
  1132. end
  1133. local SCREAMS = {160718677,337800380}
  1134. if HUMAN and TORSOPART then
  1135. if HUMAN.Health == 0 then
  1136. local HEAD = TORSOPART.Parent:FindFirstChild("Head")
  1137. if HEAD then
  1138. CreateSound(SCREAMS[MRANDOM(1,#SCREAMS)],HEAD,5,MRANDOM(13,15)/10,false)
  1139. local FACE = HEAD:FindFirstChild("face")
  1140. if FACE then
  1141. FACE.Texture = "http://www.roblox.com/asset/?id=145854465"
  1142. end
  1143. end
  1144. if TORSOPART.Name == "Torso" then
  1145. Ragdoll(TORSOPART.Parent,Torso)
  1146. elseif TORSOPART.Name == "UpperTorso" then
  1147. R15Ragdoll(TORSOPART.Parent)
  1148. end
  1149. end
  1150. HUMAN.WalkSpeed = 16
  1151. end
  1152. end))
  1153. for i=0, 0.2, 0.1 / Animation_Speed do
  1154. Swait()
  1155. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1156. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
  1157. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2, 0.75, -1.3) * ANGLES(RAD(90), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1158. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1159. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1160. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1161. end
  1162. DISPOSE = true
  1163. local bv = Instance.new("BodyVelocity")
  1164. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1165. bv.velocity = CF(TORSOPART.Position,TORSOPART.CFrame*CF(0,5,-15).p).lookVector*75
  1166. bv.Parent = TORSOPART
  1167. Debris:AddItem(bv,0.05)
  1168. for i=0, 0.5, 0.1 / Animation_Speed do
  1169. Swait()
  1170. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1171. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 1 / Animation_Speed)
  1172. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1173. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1174. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(110), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1175. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1176. end
  1177. end
  1178. HIT:disconnect()
  1179. ATTACK = false
  1180. Rooted = false
  1181. PLAYANIMS = true
  1182. end
  1183.  
  1184. function Taunt()
  1185. ATTACK = true
  1186. Rooted = true
  1187. PLAYANIMS = false
  1188. CreateSound(159882303,Torso,5,MRANDOM(8,9)/10,false)
  1189. for i=0, 1.5, 0.1 / Animation_Speed do
  1190. Swait()
  1191. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1192. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(35), RAD(0)), 1 / Animation_Speed)
  1193. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(140)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1194. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-140)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1195. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1196. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1197. end
  1198. PLAYANIMS = true
  1199. ATTACK = false
  1200. Rooted = false
  1201. end
  1202.  
  1203. --//=================================\\
  1204. --|| ASSIGN THINGS TO KEYS
  1205. --\\=================================//
  1206.  
  1207. function MouseDown(Mouse)
  1208. HOLD = true
  1209. if ATTACK == false then
  1210. Attack()
  1211. end
  1212. end
  1213.  
  1214. function MouseUp(Mouse)
  1215. HOLD = false
  1216. end
  1217.  
  1218. function KeyDown(Key)
  1219. KEYHOLD = true
  1220. if Key == "z" and ATTACK == false then
  1221. if CLOAKED == false then
  1222. Cloaked()
  1223. else
  1224. CLOAKED = false
  1225. end
  1226. end
  1227.  
  1228. if Key == "t" and ATTACK == false then
  1229. Taunt()
  1230. end
  1231.  
  1232. if string.byte(Key) == 50 and ATTACK == false and CLOAKED == false then
  1233. if Speed == 12 then
  1234. Speed = 30
  1235. elseif Speed == 30 then
  1236. Speed = 12
  1237. end
  1238. end
  1239. end
  1240.  
  1241. function KeyUp(Key)
  1242. KEYHOLD = false
  1243. end
  1244.  
  1245. Mouse.Button1Down:connect(function(NEWKEY)
  1246. MouseDown(NEWKEY)
  1247. end)
  1248. Mouse.Button1Up:connect(function(NEWKEY)
  1249. MouseUp(NEWKEY)
  1250. end)
  1251. Mouse.KeyDown:connect(function(NEWKEY)
  1252. KeyDown(NEWKEY)
  1253. end)
  1254. Mouse.KeyUp:connect(function(NEWKEY)
  1255. KeyUp(NEWKEY)
  1256. end)
  1257.  
  1258. --//=================================\\
  1259. --\\=================================//
  1260.  
  1261. function unanchor()
  1262. if UNANCHOR == true then
  1263. g = Character:GetChildren()
  1264. for i = 1, #g do
  1265. if g[i].ClassName == "Part" then
  1266. g[i].Anchored = false
  1267. end
  1268. end
  1269. end
  1270. end
  1271.  
  1272. --//=================================\\
  1273. --|| WRAP THE WHOLE SCRIPT UP
  1274. --\\=================================//
  1275.  
  1276. Humanoid.Changed:connect(function(Jump)
  1277. if Jump == "Jump" and (Disable_Jump == true) then
  1278. Humanoid.Jump = false
  1279. end
  1280. end)
  1281.  
  1282. while true do
  1283. Swait()
  1284. script.Parent = WEAPONGUI
  1285. ANIMATE.Parent = nil
  1286. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1287. v:Stop();
  1288. end
  1289. SINE = SINE + CHANGE
  1290. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1291. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1292. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1293. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1294. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1295. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1296. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
  1297. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1298. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1299. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1300. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1301. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1302. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1303. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1304. end
  1305. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1306. ANIM = "Jump"
  1307. if PLAYANIMS == true then
  1308. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1309. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1310. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1311. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1312. 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)
  1313. 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)
  1314. end
  1315. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1316. ANIM = "Fall"
  1317. if PLAYANIMS == true then
  1318. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1319. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1320. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1321. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1322. 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)
  1323. 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)
  1324. end
  1325. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1326. ANIM = "Idle"
  1327. if PLAYANIMS == true then
  1328. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1329. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1330. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(35), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1331. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1332. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1333. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1334. end
  1335. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1336. ANIM = "Walk"
  1337. if PLAYANIMS == true then
  1338. if Humanoid.WalkSpeed <= 17 then
  1339. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1340. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1341. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(20 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1342. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1343. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1344. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1345. else
  1346. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(5 * SIN(SINE / (WALKSPEEDVALUE / 2)))), 0.15 / Animation_Speed)
  1347. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(-5 * SIN(SINE / (WALKSPEEDVALUE / 2)))), 0.15 / Animation_Speed)
  1348. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(35+20 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1349. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(-35), RAD(0)) * ANGLES(RAD(35-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1350. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 2 / Animation_Speed)
  1351. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 2 / Animation_Speed)
  1352. end
  1353. end
  1354. end
  1355. unanchor()
  1356. if Rooted == false then
  1357. Disable_Jump = false
  1358. Humanoid.WalkSpeed = Speed
  1359. elseif Rooted == true then
  1360. Disable_Jump = true
  1361. Humanoid.WalkSpeed = 0
  1362. end
  1363. if Head:FindFirstChild("face") then
  1364. Head.face:remove()
  1365. elseif Head:FindFirstChildOfClass("Sound") then
  1366. Head:FindFirstChildOfClass("Sound"):remove()
  1367. end
  1368. Humanoid.Health = Humanoid.Health + 1
  1369. end
  1370.  
  1371. --//=================================\\
  1372. --\\=================================//
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378. --//====================================================\\--
  1379. --|| END OF SCRIPT
  1380. --\\====================================================//--
Add Comment
Please, Sign In to add comment