Advertisement
Wweroblox12121212

Untitled

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