EdgyHedgehog

Shackluster Knife

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