Advertisement
TheKolbyDeveloper

mord

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