Advertisement
Insanity_Mark

PEQER

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