Advertisement
5325325325

Untitled

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