Advertisement
Beeish

Untitled

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