Advertisement
Nudrius

Pumped Up Kicks Script

Mar 5th, 2019
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.39 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("Skool Shooter")
  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://2142456858"
  875. music.Volume = 10
  876. music:Play()
  877. music.Looped = true
  878.  
  879. Character.Head.face.Texture = "http://www.roblox.com/asset/?id=701379058"
  880.  
  881. --//=================================\\
  882. --|| WEAPON CREATION
  883. --\\=================================//
  884.  
  885. local Knife = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false)
  886. 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))
  887. CreateMesh("SpecialMesh", Knife, "FileMesh", "470094777", "470149026", VT(0.2,0.2,0.2), VT(0,0,0))
  888. local A = IT("Attachment",Knife)
  889. A.Position = VT(-0, 0.2, 0.136)
  890. local B = IT("Attachment",Knife)
  891. B.Position = VT(-0, -0.95, -0.982)
  892. local Trail = IT("Trail",Knife)
  893. Trail.Attachment0 = B
  894. Trail.Attachment1 = A
  895. Trail.Lifetime = 0.1
  896. Trail.Transparency = NumberSequence.new(0.5, 1)
  897. Trail.Texture = "http://www.roblox.com/asset/?id=1472703539"
  898. Trail.Enabled = true
  899. Humanoid.DisplayDistanceType = "None"
  900. Humanoid.MaxHealth = 800
  901. Humanoid.Health = 800
  902.  
  903. local STEP = CreateSound(131436155, Torso, 3, 1, true)
  904. STEP.Playing = false
  905. STEP.Looped = false
  906. local STEPPING = false
  907. Humanoid.Running:Connect(function(speed)
  908. if STEPPING == false then
  909. STEPPING = true
  910. repeat
  911. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  912. wait(8/TORSOVELOCITY)
  913. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  914. if TORSOVELOCITY > 1 and Torso.Transparency ~= 1 and HITFLOOR ~= nil then
  915. STEP.Parent = Torso
  916. STEP.Pitch = MRANDOM(8,12)/10
  917. STEP:Play()
  918. end
  919. until TORSOVELOCITY < 0.6
  920. STEPPING = false
  921. end
  922. end)
  923.  
  924. for _, c in pairs(Weapon:GetChildren()) do
  925. if c.ClassName == "Part" then
  926. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  927. end
  928. end
  929.  
  930. local SKILLTEXTCOLOR = C3(0,0,0)
  931. local SKILLFONT = "SciFi"
  932. local SKILLTEXTSIZE = 7
  933.  
  934. Weapon.Parent = Character
  935.  
  936. Humanoid.Died:connect(function()
  937. ATTACK = true
  938. end)
  939.  
  940. --//=================================\\
  941. --|| DAMAGE FUNCTIONS
  942. --\\=================================//
  943.  
  944. function StatLabel(CFRAME, TEXT, COLOR)
  945. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  946. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  947. local BODYGYRO = IT("BodyGyro", STATPART)
  948. game:GetService("Debris"):AddItem(STATPART ,5)
  949. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  950. BILLBOARDGUI.Adornee = STATPART
  951. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  952. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  953. BILLBOARDGUI.AlwaysOnTop = false
  954. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  955. TEXTLABEL.BackgroundTransparency = 1
  956. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  957. TEXTLABEL.Text = TEXT
  958. TEXTLABEL.Font = SKILLFONT
  959. TEXTLABEL.FontSize="Size42"
  960. TEXTLABEL.TextColor3 = COLOR
  961. TEXTLABEL.TextStrokeTransparency = 0
  962. TEXTLABEL.TextScaled = true
  963. TEXTLABEL.TextWrapped = true
  964. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  965. for i = 1, 50 do
  966. Swait()
  967. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  968. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  969. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  970. end
  971. THEPART.Parent = nil
  972. end),STATPART, TEXTLABEL)
  973. end
  974.  
  975. --//=================================\\
  976. --|| DAMAGING
  977. --\\=================================//
  978.  
  979. function ApplyDamage(Humanoid,Damage,TorsoPart)
  980. local defence = Instance.new("BoolValue",Humanoid.Parent)
  981. defence.Name = ("HitBy"..Player.Name)
  982. game:GetService("Debris"):AddItem(defence, 0.001)
  983. Damage = Damage * DAMAGEMULTIPLIER
  984. if Humanoid.Health ~= 0 then
  985. local CritChance = MRANDOM(1,100)
  986. if Damage > Humanoid.Health then
  987. Damage = math.ceil(Humanoid.Health)
  988. if Damage == 0 then
  989. Damage = 0.1
  990. end
  991. end
  992. Humanoid.Health = Humanoid.Health - Damage
  993. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  994. end
  995. end
  996.  
  997. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  998. local CHILDREN = workspace:GetDescendants()
  999. for index, CHILD in pairs(CHILDREN) do
  1000. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1001. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1002. if HUM then
  1003. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1004. if TORSO then
  1005. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1006. if INSTAKILL == true then
  1007. CHILD:BreakJoints()
  1008. else
  1009. local DMG = MRANDOM(MINDMG,MAXDMG)
  1010. ApplyDamage(HUM,DMG,TORSO)
  1011. end
  1012. if FLING > 0 then
  1013. for _, c in pairs(CHILD:GetChildren()) do
  1014. if c:IsA("BasePart") then
  1015. local bv = Instance.new("BodyVelocity")
  1016. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1017. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1018. bv.Parent = c
  1019. Debris:AddItem(bv,0.05)
  1020. end
  1021. end
  1022. end
  1023. end
  1024. end
  1025. end
  1026. end
  1027. end
  1028. end
  1029.  
  1030. --//=================================\\
  1031. --|| ATTACK FUNCTIONS AND STUFF
  1032. --\\=================================//
  1033.  
  1034. function Cloaked()
  1035. CLOAKED = true
  1036. Speed = 0
  1037. local POS = RootPart.Position
  1038. local DISTANCE = 99999
  1039. for i = 1, 15 do
  1040. wait()
  1041. for _, c in pairs(Character:GetChildren()) do
  1042. if c:IsA("BasePart") and c ~= RootPart then
  1043. c.Transparency = c.Transparency + 1/15
  1044. elseif c.ClassName == "Accessory" then
  1045. c.Handle.Transparency = c.Handle.Transparency + 1/15
  1046. end
  1047. end
  1048. Trail.Transparency = NumberSequence.new(0.5+((i/15)/2), 1)
  1049. Knife.Transparency = Knife.Transparency + 1/15
  1050. end
  1051. Speed = 5
  1052. repeat
  1053. wait()
  1054. DISTANCE = (RootPart.Position - POS).Magnitude
  1055. until DISTANCE > 45 or CLOAKED == false
  1056. Speed = 0
  1057. for i = 1, 15 do
  1058. wait()
  1059. for _, c in pairs(Character:GetChildren()) do
  1060. if c:IsA("BasePart") and c ~= RootPart then
  1061. c.Transparency = 1 - i/15
  1062. elseif c.ClassName == "Accessory" then
  1063. c.Handle.Transparency = 1 - i/15
  1064. end
  1065. end
  1066. Trail.Transparency = NumberSequence.new(1-((0.5/15)*i), 1)
  1067. Knife.Transparency = 1 - i/15
  1068. end
  1069. Speed = 12
  1070. CLOAKED = false
  1071. end
  1072.  
  1073. Character["Body Colors"].HeadColor = BrickColor.new("Really black")
  1074. Character["Body Colors"].TorsoColor = BrickColor.new("Really black")
  1075. Character["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  1076. Character["Body Colors"].RightArmColor = BrickColor.new("Really black")
  1077. Character["Body Colors"].LeftLegColor = BrickColor.new("Really black")
  1078. Character["Body Colors"].RightLegColor = BrickColor.new("Really black")
  1079.  
  1080. function Attack()
  1081. PLAYANIMS = false
  1082. ATTACK = true
  1083. Rooted = false
  1084. local TARGET = nil
  1085. Knife.CanCollide = true
  1086. local HUMAN = nil
  1087. local TORSOPART = nil
  1088. local HIT = Knife.Touched:Connect(function(hit)
  1089. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  1090. local HITBODY = hit.Parent
  1091. local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
  1092. local TORSO = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
  1093. if TORSO and HUM.Health > 0 then
  1094. TARGET = HITBODY
  1095. TORSOPART = TORSO
  1096. HUMAN = HUM
  1097. end
  1098. end
  1099. end)
  1100. for i=0, 0.4, 0.1 / Animation_Speed do
  1101. Swait()
  1102. if TARGET then
  1103. break
  1104. end
  1105. 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)
  1106. 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)
  1107. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1108. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1109. 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)
  1110. 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)
  1111. end
  1112. CreateSound(143501853,Knife,2,MRANDOM(8,13)/10,false)
  1113. for i=0, 0.5, 0.1 / Animation_Speed do
  1114. Swait()
  1115. if TARGET then
  1116. break
  1117. end
  1118. 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)
  1119. 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)
  1120. 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)
  1121. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1122. 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)
  1123. 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)
  1124. end
  1125. Knife.CanCollide = false
  1126. if TARGET then
  1127. CLOAKED = false
  1128. local DISPOSE = false
  1129. Rooted = true
  1130. coroutine.resume(coroutine.create(function()
  1131. repeat
  1132. Swait()
  1133. if TORSOPART then
  1134. TORSOPART.Anchored = true
  1135. TORSOPART.CFrame = RootPart.CFrame*CF(0,0,-2.2)
  1136. end
  1137. until DISPOSE == true
  1138. TORSOPART.Anchored = false
  1139. end))
  1140. for i=0, 0.5, 0.1 / Animation_Speed do
  1141. Swait()
  1142. 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)
  1143. 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)
  1144. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -1.3) * ANGLES(RAD(90), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1145. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1146. 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)
  1147. 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)
  1148. end
  1149. CreateSound(28144268,Knife,2,MRANDOM(8,13)/10,false)
  1150. CreateSound(180083298,TORSOPART,5,MRANDOM(8,13)/10,false)
  1151. coroutine.resume(coroutine.create(function()
  1152. for i = 1, 750 do
  1153. Swait()
  1154. if HUMAN and TORSOPART then
  1155. if HUMAN.Health > 0 then
  1156. 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)
  1157. HUMAN.Health = HUMAN.Health - 1
  1158. HUMAN.WalkSpeed = MRANDOM(5,45)
  1159. else
  1160. break
  1161. end
  1162. else
  1163. break
  1164. end
  1165. end
  1166. local SCREAMS = {160718677,337800380}
  1167. if HUMAN and TORSOPART then
  1168. if HUMAN.Health == 0 then
  1169. local HEAD = TORSOPART.Parent:FindFirstChild("Head")
  1170. if HEAD then
  1171. CreateSound(SCREAMS[MRANDOM(1,#SCREAMS)],HEAD,5,MRANDOM(13,15)/10,false)
  1172. local FACE = HEAD:FindFirstChild("face")
  1173. if FACE then
  1174. FACE.Texture = "http://www.roblox.com/asset/?id=145854465"
  1175. end
  1176. end
  1177. if TORSOPART.Name == "Torso" then
  1178. Ragdoll(TORSOPART.Parent,Torso)
  1179. elseif TORSOPART.Name == "UpperTorso" then
  1180. R15Ragdoll(TORSOPART.Parent)
  1181. end
  1182. end
  1183. HUMAN.WalkSpeed = 16
  1184. end
  1185. end))
  1186. for i=0, 0.2, 0.1 / Animation_Speed do
  1187. Swait()
  1188. 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)
  1189. 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)
  1190. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2, 0.75, -1.3) * ANGLES(RAD(90), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1191. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1192. 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)
  1193. 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)
  1194. end
  1195. DISPOSE = true
  1196. local bv = Instance.new("BodyVelocity")
  1197. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1198. bv.velocity = CF(TORSOPART.Position,TORSOPART.CFrame*CF(0,5,-15).p).lookVector*75
  1199. bv.Parent = TORSOPART
  1200. Debris:AddItem(bv,0.05)
  1201. for i=0, 0.5, 0.1 / Animation_Speed do
  1202. Swait()
  1203. 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)
  1204. 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)
  1205. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1206. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1207. 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)
  1208. 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)
  1209. end
  1210. end
  1211. HIT:disconnect()
  1212. ATTACK = false
  1213. Rooted = false
  1214. PLAYANIMS = true
  1215. end
  1216.  
  1217. function Taunt()
  1218. ATTACK = true
  1219. Rooted = true
  1220. PLAYANIMS = false
  1221. CreateSound(135017578,Torso,5,MRANDOM(8,9)/10,false)
  1222. for i=0, 1, 0.1 / Animation_Speed do
  1223. Swait()
  1224. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.8) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1225. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1226. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0, -0.5) * ANGLES(RAD(15), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1227. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1228. 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)
  1229. 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)
  1230. end
  1231. PLAYANIMS = true
  1232. ATTACK = false
  1233. Rooted = false
  1234. end
  1235.  
  1236. CV="Maroon"
  1237. Player = game.Players.LocalPlayer
  1238. Character = Player.Character
  1239. local txt = Instance.new("BillboardGui", Character)
  1240. txt.Adornee = Character .Head
  1241. txt.Name = "_status"
  1242. txt.Size = UDim2.new(2, 0, 1.2, 0)
  1243. txt.StudsOffset = Vector3.new(-9, 8, 0)
  1244. local text = Instance.new("TextLabel", txt)
  1245. text.Size = UDim2.new(10, 0, 7, 0)
  1246. text.FontSize = "Size24"
  1247. text.TextScaled = true
  1248. text.TextTransparency = 0
  1249. text.BackgroundTransparency = 1
  1250. text.TextTransparency = 0
  1251. text.TextStrokeTransparency = 0
  1252. text.Font = "Bodoni"
  1253. text.TextStrokeColor3 = Color3.new(255,0,0)
  1254.  
  1255. v=Instance.new("Part")
  1256. v.Name = "ColorBrick"
  1257. v.Parent=Player.Character
  1258. v.FormFactor="Symmetric"
  1259. v.Anchored=true
  1260. v.CanCollide=false
  1261. v.BottomSurface="Smooth"
  1262. v.TopSurface="Smooth"
  1263. v.Size=Vector3.new(3,3,3)
  1264. v.Transparency=1
  1265. v.CFrame=Character.Torso.CFrame
  1266. v.BrickColor=BrickColor.new(CV)
  1267. v.Transparency=1
  1268. text.TextColor3 = Color3.new(0,0,0)
  1269. v.Shape="Block"
  1270. text.Text = "Murderer"
  1271. -------------------------------------
  1272.  
  1273. local Hair2 = Instance.new("Part", Character)
  1274. Hair2.Name = "Hair2"
  1275. Hair2.CanCollide = false
  1276. Hair2.BrickColor = BrickColor.new("Institutional white")
  1277. Hair2.Transparency = 0
  1278. Hair2.Material = "Plastic"
  1279. Hair2.Size = Vector3.new(1, 1, 2)
  1280. Hair2.TopSurface = Enum.SurfaceType.Smooth
  1281. Hair2.BottomSurface = Enum.SurfaceType.Smooth
  1282.  
  1283. local Weld = Instance.new("Weld", Hair2)
  1284. Weld.Part0 = Head
  1285. Weld.Part1 = Hair2
  1286. Weld.C1 = CFrame.new(0, -.6, 0)
  1287. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  1288.  
  1289. local M2 = Instance.new("SpecialMesh")
  1290. M2.Parent = Hair2
  1291. M2.MeshId = "http://www.roblox.com/asset/?id=346578029"
  1292. M2.TextureId = "http://www.roblox.com/asset/?id=82907376"
  1293. M2.Scale = Vector3.new(1, 1, 1)
  1294.  
  1295. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  1296. local acs = Instance.new("Part")
  1297. acs.CanCollide = false
  1298. acs.Anchored = false
  1299. acs.Size = Vector3.new(0,0,0)
  1300. acs.CFrame = attachmentpart.CFrame
  1301. acs.Parent = Character
  1302. acs.BrickColor = color
  1303. local meshs = Instance.new("SpecialMesh")
  1304. meshs.MeshId = mesh
  1305. meshs.TextureId = texture
  1306. meshs.Parent = acs
  1307. meshs.Scale = scale
  1308. meshs.Offset = offset
  1309. weldBetween(attachmentpart,acs)
  1310. end
  1311.  
  1312. createaccessory(Head,"http://www.roblox.com/asset/?id=210118899","",VT(1, 1, 1),VT(0, 0.25, 0.1),BrickColor.new"Really black")
  1313.  
  1314. --//=================================\\
  1315. --|| ASSIGN THINGS TO KEYS
  1316. --\\=================================//
  1317.  
  1318. function MouseDown(Mouse)
  1319. HOLD = true
  1320. if ATTACK == false then
  1321. Attack()
  1322. end
  1323. end
  1324.  
  1325. function MouseUp(Mouse)
  1326. HOLD = false
  1327. end
  1328.  
  1329. function KeyDown(Key)
  1330. KEYHOLD = true
  1331. if Key == "z" and ATTACK == false then
  1332. if CLOAKED == false then
  1333. Cloaked()
  1334. else
  1335. CLOAKED = false
  1336. end
  1337. end
  1338.  
  1339. if Key == "t" and ATTACK == false then
  1340. Taunt()
  1341. end
  1342.  
  1343. if string.byte(Key) == 50 and ATTACK == false and CLOAKED == false then
  1344. if Speed == 12 then
  1345. Speed = 30
  1346. elseif Speed == 30 then
  1347. Speed = 12
  1348. end
  1349. end
  1350. end
  1351.  
  1352. function KeyUp(Key)
  1353. KEYHOLD = false
  1354. end
  1355.  
  1356. Mouse.Button1Down:connect(function(NEWKEY)
  1357. MouseDown(NEWKEY)
  1358. end)
  1359. Mouse.Button1Up:connect(function(NEWKEY)
  1360. MouseUp(NEWKEY)
  1361. end)
  1362. Mouse.KeyDown:connect(function(NEWKEY)
  1363. KeyDown(NEWKEY)
  1364. end)
  1365. Mouse.KeyUp:connect(function(NEWKEY)
  1366. KeyUp(NEWKEY)
  1367. end)
  1368.  
  1369. --//=================================\\
  1370. --\\=================================//
  1371.  
  1372. function unanchor()
  1373. if UNANCHOR == true then
  1374. g = Character:GetChildren()
  1375. for i = 1, #g do
  1376. if g[i].ClassName == "Part" then
  1377. g[i].Anchored = false
  1378. end
  1379. end
  1380. end
  1381. end
  1382.  
  1383. --//=================================\\
  1384. --|| WRAP THE WHOLE SCRIPT UP
  1385. --\\=================================//
  1386. Player_Size = 1
  1387.  
  1388. Humanoid.Changed:connect(function(Jump)
  1389. if Jump == "Jump" and (Disable_Jump == true) then
  1390. Humanoid.Jump = false
  1391. end
  1392. end)
  1393.  
  1394. while true do
  1395. Swait()
  1396. script.Parent = WEAPONGUI
  1397. ANIMATE.Parent = nil
  1398. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1399. v:Stop();
  1400. end
  1401. SINE = SINE + CHANGE
  1402. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1403. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1404. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1405. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1406. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1407. 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)
  1408. 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)
  1409. 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)
  1410. 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)
  1411. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1412. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1413. 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)
  1414. 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)
  1415. 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)
  1416. end
  1417. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1418. ANIM = "Jump"
  1419. if PLAYANIMS == true then
  1420. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1421. 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)
  1422. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1423. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1424. 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)
  1425. 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)
  1426. end
  1427. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1428. ANIM = "Fall"
  1429. if PLAYANIMS == true then
  1430. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1431. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1432. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1433. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1434. 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)
  1435. 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)
  1436. end
  1437. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1438. ANIM = "Idle"
  1439. if PLAYANIMS == true then
  1440. 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)
  1441. 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)
  1442. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1443. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1444. 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)
  1445. 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)
  1446. end
  1447. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1448. ANIM = "Walk"
  1449. if PLAYANIMS == true then
  1450. if Humanoid.WalkSpeed <= 17 then
  1451. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1452. 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)
  1453. 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)
  1454. 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)
  1455. 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)
  1456. 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)
  1457. else
  1458. 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)
  1459. 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)
  1460. 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)
  1461. 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)
  1462. 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)
  1463. 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)
  1464. end
  1465. end
  1466. end
  1467. unanchor()
  1468. if Rooted == false then
  1469. Disable_Jump = false
  1470. Humanoid.WalkSpeed = Speed
  1471. elseif Rooted == true then
  1472. Disable_Jump = true
  1473. Humanoid.WalkSpeed = 0
  1474. end
  1475. if Head:FindFirstChildOfClass("Sound") then
  1476. Head:FindFirstChildOfClass("Sound"):remove()
  1477. end
  1478. Humanoid.Health = Humanoid.Health + 1
  1479. end
  1480.  
  1481.  
  1482.  
  1483. --//=================================\\
  1484. --\\=================================//
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490. --//====================================================\\--
  1491. --|| END OF SCRIPT
  1492. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement