SHOW:
|
|
- or go back to the newest paste.
| 1 | --//====================================================\\-- | |
| 2 | --|| WADDLING MADE BY SHACKLUSTER EDITED BY THEWADDLING | |
| 3 | --\\====================================================//-- | |
| 4 | ||
| 5 | wait(0.2) | |
| 6 | ||
| 7 | ||
| 8 | Player = game:GetService("Players").LocalPlayer
| |
| 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 | local sick = Instance.new("Sound",RootPart)
| |
| 28 | ||
| 29 | IT = Instance.new | |
| 30 | CF = CFrame.new | |
| 31 | VT = Vector3.new | |
| 32 | RAD = math.rad | |
| 33 | C3 = Color3.new | |
| 34 | UD2 = UDim2.new | |
| 35 | BRICKC = BrickColor.new | |
| 36 | ANGLES = CFrame.Angles | |
| 37 | EULER = CFrame.fromEulerAnglesXYZ | |
| 38 | COS = math.cos | |
| 39 | ACOS = math.acos | |
| 40 | SIN = math.sin | |
| 41 | ASIN = math.asin | |
| 42 | ABS = math.abs | |
| 43 | MRANDOM = math.random | |
| 44 | FLOOR = math.floor | |
| 45 | ||
| 46 | --//=================================\\ | |
| 47 | --|| USEFUL VALUES | |
| 48 | --\\=================================// | |
| 49 | ||
| 50 | Animation_Speed = 3 | |
| 51 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 52 | local Speed = 20 | |
| 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 MODE = "GoodCop" | |
| 84 | ||
| 85 | --//=================================\\ | |
| 86 | --\\=================================// | |
| 87 | ||
| 88 | ||
| 89 | --//=================================\\ | |
| 90 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 91 | --\\=================================// | |
| 92 | ||
| 93 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 94 | ArtificialHB.Name = "ArtificialHB" | |
| 95 | ||
| 96 | script:WaitForChild("ArtificialHB")
| |
| 97 | ||
| 98 | frame = Frame_Speed | |
| 99 | tf = 0 | |
| 100 | allowframeloss = false | |
| 101 | tossremainder = false | |
| 102 | lastframe = tick() | |
| 103 | script.ArtificialHB:Fire() | |
| 104 | ||
| 105 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 106 | tf = tf + s | |
| 107 | if tf >= frame then | |
| 108 | if allowframeloss then | |
| 109 | script.ArtificialHB:Fire() | |
| 110 | lastframe = tick() | |
| 111 | else | |
| 112 | for i = 1, math.floor(tf / frame) do | |
| 113 | script.ArtificialHB:Fire() | |
| 114 | end | |
| 115 | lastframe = tick() | |
| 116 | end | |
| 117 | if tossremainder then | |
| 118 | tf = 0 | |
| 119 | else | |
| 120 | tf = tf - frame * math.floor(tf / frame) | |
| 121 | end | |
| 122 | end | |
| 123 | end) | |
| 124 | ||
| 125 | --//=================================\\ | |
| 126 | --\\=================================// | |
| 127 | ||
| 128 | --//=================================\\ | |
| 129 | --|| SOME FUNCTIONS | |
| 130 | --\\=================================// | |
| 131 | ||
| 132 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 133 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 134 | end | |
| 135 | ||
| 136 | function PositiveAngle(NUMBER) | |
| 137 | if NUMBER >= 0 then | |
| 138 | NUMBER = 0 | |
| 139 | end | |
| 140 | return NUMBER | |
| 141 | end | |
| 142 | ||
| 143 | function NegativeAngle(NUMBER) | |
| 144 | if NUMBER <= 0 then | |
| 145 | NUMBER = 0 | |
| 146 | end | |
| 147 | return NUMBER | |
| 148 | end | |
| 149 | ||
| 150 | function Swait(NUMBER) | |
| 151 | if NUMBER == 0 or NUMBER == nil then | |
| 152 | ArtificialHB.Event:wait() | |
| 153 | else | |
| 154 | for i = 1, NUMBER do | |
| 155 | ArtificialHB.Event:wait() | |
| 156 | end | |
| 157 | end | |
| 158 | end | |
| 159 | ||
| 160 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 161 | local NEWMESH = IT(MESH) | |
| 162 | if MESH == "SpecialMesh" then | |
| 163 | NEWMESH.MeshType = MESHTYPE | |
| 164 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 165 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 166 | end | |
| 167 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 168 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 169 | end | |
| 170 | end | |
| 171 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 172 | NEWMESH.Scale = SCALE | |
| 173 | NEWMESH.Parent = PARENT | |
| 174 | return NEWMESH | |
| 175 | end | |
| 176 | ||
| 177 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 178 | local NEWPART = IT("Part")
| |
| 179 | NEWPART.formFactor = FORMFACTOR | |
| 180 | NEWPART.Reflectance = REFLECTANCE | |
| 181 | NEWPART.Transparency = TRANSPARENCY | |
| 182 | NEWPART.CanCollide = false | |
| 183 | NEWPART.Locked = true | |
| 184 | NEWPART.Anchored = true | |
| 185 | if ANCHOR == false then | |
| 186 | NEWPART.Anchored = false | |
| 187 | end | |
| 188 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 189 | NEWPART.Name = NAME | |
| 190 | NEWPART.Size = SIZE | |
| 191 | NEWPART.Position = Torso.Position | |
| 192 | NEWPART.Material = MATERIAL | |
| 193 | NEWPART:BreakJoints() | |
| 194 | NEWPART.Parent = PARENT | |
| 195 | return NEWPART | |
| 196 | end | |
| 197 | ||
| 198 | local function weldBetween(a, b) | |
| 199 | local weldd = Instance.new("ManualWeld")
| |
| 200 | weldd.Part0 = a | |
| 201 | weldd.Part1 = b | |
| 202 | weldd.C0 = CFrame.new() | |
| 203 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 204 | weldd.Parent = a | |
| 205 | return weldd | |
| 206 | end | |
| 207 | ||
| 208 | ||
| 209 | function QuaternionFromCFrame(cf) | |
| 210 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 211 | local trace = m00 + m11 + m22 | |
| 212 | if trace > 0 then | |
| 213 | local s = math.sqrt(1 + trace) | |
| 214 | local recip = 0.5 / s | |
| 215 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 216 | else | |
| 217 | local i = 0 | |
| 218 | if m11 > m00 then | |
| 219 | i = 1 | |
| 220 | end | |
| 221 | if m22 > (i == 0 and m00 or m11) then | |
| 222 | i = 2 | |
| 223 | end | |
| 224 | if i == 0 then | |
| 225 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 226 | local recip = 0.5 / s | |
| 227 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 228 | elseif i == 1 then | |
| 229 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 230 | local recip = 0.5 / s | |
| 231 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 232 | elseif i == 2 then | |
| 233 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 234 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 235 | end | |
| 236 | end | |
| 237 | end | |
| 238 | ||
| 239 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 240 | local xs, ys, zs = x + x, y + y, z + z | |
| 241 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 242 | local xx = x * xs | |
| 243 | local xy = x * ys | |
| 244 | local xz = x * zs | |
| 245 | local yy = y * ys | |
| 246 | local yz = y * zs | |
| 247 | local zz = z * zs | |
| 248 | 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)) | |
| 249 | end | |
| 250 | ||
| 251 | function QuaternionSlerp(a, b, t) | |
| 252 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 253 | local startInterp, finishInterp; | |
| 254 | if cosTheta >= 0.0001 then | |
| 255 | if (1 - cosTheta) > 0.0001 then | |
| 256 | local theta = ACOS(cosTheta) | |
| 257 | local invSinTheta = 1 / SIN(theta) | |
| 258 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 259 | finishInterp = SIN(t * theta) * invSinTheta | |
| 260 | else | |
| 261 | startInterp = 1 - t | |
| 262 | finishInterp = t | |
| 263 | end | |
| 264 | else | |
| 265 | if (1 + cosTheta) > 0.0001 then | |
| 266 | local theta = ACOS(-cosTheta) | |
| 267 | local invSinTheta = 1 / SIN(theta) | |
| 268 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 269 | finishInterp = SIN(t * theta) * invSinTheta | |
| 270 | else | |
| 271 | startInterp = t - 1 | |
| 272 | finishInterp = t | |
| 273 | end | |
| 274 | end | |
| 275 | 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 | |
| 276 | end | |
| 277 | ||
| 278 | function Clerp(a, b, t) | |
| 279 | local qa = {QuaternionFromCFrame(a)}
| |
| 280 | local qb = {QuaternionFromCFrame(b)}
| |
| 281 | local ax, ay, az = a.x, a.y, a.z | |
| 282 | local bx, by, bz = b.x, b.y, b.z | |
| 283 | local _t = 1 - t | |
| 284 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 285 | end | |
| 286 | ||
| 287 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 288 | local frame = IT("Frame")
| |
| 289 | frame.BackgroundTransparency = TRANSPARENCY | |
| 290 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 291 | frame.Position = POSITION | |
| 292 | frame.Size = SIZE | |
| 293 | frame.BackgroundColor3 = COLOR | |
| 294 | frame.BorderColor3 = BORDERCOLOR | |
| 295 | frame.Name = NAME | |
| 296 | frame.Parent = PARENT | |
| 297 | return frame | |
| 298 | end | |
| 299 | ||
| 300 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 301 | local label = IT("TextLabel")
| |
| 302 | label.BackgroundTransparency = 1 | |
| 303 | label.Size = UD2(1, 0, 1, 0) | |
| 304 | label.Position = UD2(0, 0, 0, 0) | |
| 305 | label.TextColor3 = TEXTCOLOR | |
| 306 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 307 | label.TextTransparency = TRANSPARENCY | |
| 308 | label.FontSize = TEXTFONTSIZE | |
| 309 | label.Font = TEXTFONT | |
| 310 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 311 | label.TextScaled = false | |
| 312 | label.Text = TEXT | |
| 313 | label.Name = NAME | |
| 314 | label.Parent = PARENT | |
| 315 | return label | |
| 316 | end | |
| 317 | ||
| 318 | function NoOutlines(PART) | |
| 319 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 320 | end | |
| 321 | ||
| 322 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 323 | local NEWWELD = IT(TYPE) | |
| 324 | NEWWELD.Part0 = PART0 | |
| 325 | NEWWELD.Part1 = PART1 | |
| 326 | NEWWELD.C0 = C0 | |
| 327 | NEWWELD.C1 = C1 | |
| 328 | NEWWELD.Parent = PARENT | |
| 329 | return NEWWELD | |
| 330 | end | |
| 331 | ||
| 332 | local S = IT("Sound")
| |
| 333 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 334 | local NEWSOUND = nil | |
| 335 | coroutine.resume(coroutine.create(function() | |
| 336 | NEWSOUND = S:Clone() | |
| 337 | NEWSOUND.Parent = PARENT | |
| 338 | NEWSOUND.Volume = VOLUME | |
| 339 | NEWSOUND.Pitch = PITCH | |
| 340 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 341 | NEWSOUND:play() | |
| 342 | if DOESLOOP == true then | |
| 343 | NEWSOUND.Looped = true | |
| 344 | else | |
| 345 | repeat wait(1) until NEWSOUND.Playing == false | |
| 346 | NEWSOUND:remove() | |
| 347 | end | |
| 348 | end)) | |
| 349 | return NEWSOUND | |
| 350 | end | |
| 351 | ||
| 352 | function CFrameFromTopBack(at, top, back) | |
| 353 | local right = top:Cross(back) | |
| 354 | 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) | |
| 355 | end | |
| 356 | ||
| 357 | --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})
| |
| 358 | function WACKYEFFECT(Table) | |
| 359 | local TYPE = (Table.EffectType or "Sphere") | |
| 360 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 361 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 362 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 363 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 364 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 365 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 366 | local ROTATION1 = (Table.RotationX or 0) | |
| 367 | local ROTATION2 = (Table.RotationY or 0) | |
| 368 | local ROTATION3 = (Table.RotationZ or 0) | |
| 369 | local MATERIAL = (Table.Material or "Neon") | |
| 370 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 371 | local TIME = (Table.Time or 45) | |
| 372 | local SOUNDID = (Table.SoundID or nil) | |
| 373 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 374 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 375 | coroutine.resume(coroutine.create(function() | |
| 376 | local PLAYSSOUND = false | |
| 377 | local SOUND = nil | |
| 378 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 379 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 380 | PLAYSSOUND = true | |
| 381 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 382 | end | |
| 383 | EFFECT.Color = COLOR | |
| 384 | local MSH = nil | |
| 385 | if TYPE == "Sphere" then | |
| 386 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 387 | elseif TYPE == "Block" or TYPE == "Box" then | |
| 388 | MSH = IT("BlockMesh",EFFECT)
| |
| 389 | MSH.Scale = SIZE | |
| 390 | elseif TYPE == "Wave" then | |
| 391 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 392 | elseif TYPE == "Ring" then | |
| 393 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 394 | elseif TYPE == "Slash" then | |
| 395 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 396 | elseif TYPE == "Round Slash" then | |
| 397 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 398 | elseif TYPE == "Swirl" then | |
| 399 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 400 | elseif TYPE == "Skull" then | |
| 401 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 402 | elseif TYPE == "Crystal" then | |
| 403 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 404 | end | |
| 405 | if MSH ~= nil then | |
| 406 | local MOVESPEED = nil | |
| 407 | if MOVEDIRECTION ~= nil then | |
| 408 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 409 | end | |
| 410 | local GROWTH = SIZE - ENDSIZE | |
| 411 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 412 | if TYPE == "Block" then | |
| 413 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 414 | else | |
| 415 | EFFECT.CFrame = CFRAME | |
| 416 | end | |
| 417 | for LOOP = 1, TIME+1 do | |
| 418 | Swait() | |
| 419 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 420 | if TYPE == "Wave" then | |
| 421 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 422 | end | |
| 423 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 424 | if TYPE == "Block" then | |
| 425 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 426 | else | |
| 427 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 428 | end | |
| 429 | if MOVEDIRECTION ~= nil then | |
| 430 | local ORI = EFFECT.Orientation | |
| 431 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 432 | EFFECT.Orientation = ORI | |
| 433 | end | |
| 434 | end | |
| 435 | if PLAYSSOUND == false then | |
| 436 | EFFECT:remove() | |
| 437 | else | |
| 438 | repeat Swait() until SOUND.Playing == false | |
| 439 | EFFECT:remove() | |
| 440 | end | |
| 441 | else | |
| 442 | if PLAYSSOUND == false then | |
| 443 | EFFECT:remove() | |
| 444 | else | |
| 445 | repeat Swait() until SOUND.Playing == false | |
| 446 | EFFECT:remove() | |
| 447 | end | |
| 448 | end | |
| 449 | end)) | |
| 450 | end | |
| 451 | ||
| 452 | function MakeForm(PART,TYPE) | |
| 453 | if TYPE == "Cyl" then | |
| 454 | local MSH = IT("CylinderMesh",PART)
| |
| 455 | elseif TYPE == "Ball" then | |
| 456 | local MSH = IT("SpecialMesh",PART)
| |
| 457 | MSH.MeshType = "Sphere" | |
| 458 | elseif TYPE == "Wedge" then | |
| 459 | local MSH = IT("SpecialMesh",PART)
| |
| 460 | MSH.MeshType = "Wedge" | |
| 461 | elseif TYPE == "Head" then | |
| 462 | local MSH = IT("SpecialMesh",PART)
| |
| 463 | MSH.Scale = VT(1.25,1.25,1.25) | |
| 464 | end | |
| 465 | end | |
| 466 | ||
| 467 | Debris = game:GetService("Debris")
| |
| 468 | ||
| 469 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 470 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 471 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 472 | end | |
| 473 | ||
| 474 | function CharacterFade(COLOR,TIMER) | |
| 475 | coroutine.resume(coroutine.create(function() | |
| 476 | local FADE = IT("Model",Effects)
| |
| 477 | FADE.Name = "FadingEffect" | |
| 478 | for _, c in pairs(Character:GetChildren()) do | |
| 479 | if c.ClassName == "Part" and c ~= RootPart then | |
| 480 | local FADER = c:Clone() | |
| 481 | FADER.Color = COLOR | |
| 482 | FADER.CFrame = c.CFrame | |
| 483 | FADER.Parent = FADE | |
| 484 | FADER.Anchored = true | |
| 485 | FADER.Transparency = 0.25+c.Transparency | |
| 486 | FADER:BreakJoints() | |
| 487 | FADER.Material = "Neon" | |
| 488 | if FADER.Name == "Head" then | |
| 489 | FADER:ClearAllChildren() | |
| 490 | FADER.Size = VT(1,1,1) | |
| 491 | end | |
| 492 | FADER.CanCollide = false | |
| 493 | end | |
| 494 | end | |
| 495 | local TRANS = 0.75/TIMER | |
| 496 | for i = 1, TIMER do | |
| 497 | Swait() | |
| 498 | for _, c in pairs(FADE:GetChildren()) do | |
| 499 | if c.ClassName == "Part" then | |
| 500 | c.Transparency = c.Transparency + TRANS | |
| 501 | end | |
| 502 | end | |
| 503 | end | |
| 504 | FADE:remove() | |
| 505 | end)) | |
| 506 | end | |
| 507 | ||
| 508 | function Chatter(Text,Timer) | |
| 509 | local chat = coroutine.wrap(function() | |
| 510 | if Character:FindFirstChild("SpeechBoard")~= nil then
| |
| 511 | Character:FindFirstChild("SpeechBoard"):destroy()
| |
| 512 | end | |
| 513 | local naeeym2 = IT("BillboardGui",Character)
| |
| 514 | naeeym2.Size = UD2(0,100,0,40) | |
| 515 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
| 516 | naeeym2.Adornee = Character.Head | |
| 517 | naeeym2.Name = "SpeechBoard" | |
| 518 | naeeym2.AlwaysOnTop = true | |
| 519 | local tecks2 = IT("TextLabel",naeeym2)
| |
| 520 | tecks2.BackgroundTransparency = 1 | |
| 521 | tecks2.BorderSizePixel = 0 | |
| 522 | tecks2.Text = "" | |
| 523 | tecks2.Font = "Bodoni" | |
| 524 | tecks2.TextSize = 20 | |
| 525 | tecks2.TextStrokeTransparency = 0 | |
| 526 | tecks2.TextColor3 = Color3.new(0,0,0) | |
| 527 | tecks2.TextStrokeColor3 = Color3.new(1,0,0) | |
| 528 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 529 | for i = 1,string.len(Text),1 do | |
| 530 | CreateSound(1313873191, Head, 1, MRANDOM(10,10)/15, false) | |
| 531 | tecks2.Text = string.sub(Text,1,i) | |
| 532 | wait(Timer) | |
| 533 | end | |
| 534 | wait(1) | |
| 535 | naeeym2:Destroy() | |
| 536 | end) | |
| 537 | chat() | |
| 538 | end | |
| 539 | ||
| 540 | --//=================================\\ | |
| 541 | --|| WEAPON CREATION | |
| 542 | --\\=================================// | |
| 543 | ||
| 544 | local FACE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Face mask", VT(1.001,1.001,1.001),false) | |
| 545 | CreateWeldOrSnapOrMotor("Weld", FACE, Head, FACE, CF(0.02,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 546 | MakeForm(FACE,"Head") | |
| 547 | local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.2,0.2,0.2),false) | |
| 548 | CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.15,0.25,-0.53) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
| |
| 549 | MakeForm(EYE,"Ball") | |
| 550 | local top = Instance.new("Shirt")
| |
| 551 | top.ShirtTemplate = "rbxassetid://1601207099" | |
| 552 | top.Parent = Character | |
| 553 | top.Name = "Cloth" | |
| 554 | local bottom = Instance.new("Pants")
| |
| 555 | bottom.PantsTemplate = "rbxassetid://1349712190" | |
| 556 | bottom.Parent = Character | |
| 557 | bottom.Name = "Cloth" | |
| 558 | local BATON = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Baton", VT(1, 0.8, 3),false) | |
| 559 | CreateMesh("SpecialMesh", BATON, "FileMesh", "54983181", "", VT(1.5,1.5,1.5), VT(0,0,0))
| |
| 560 | local BATONWELD = CreateWeldOrSnapOrMotor("Weld", BATON, Torso, BATON, CF(1,-0.8,0.75) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 561 | local A = IT("Attachment",BATON)
| |
| 562 | local B = IT("Attachment",BATON)
| |
| 563 | B.Position = VT(0,0,-0.4) | |
| 564 | A.Position = VT(0,0,1) | |
| 565 | local Trail = IT("Trail",BATON)
| |
| 566 | Trail.Attachment0 = A | |
| 567 | Trail.Attachment1 = B | |
| 568 | Trail.Lifetime = 0.1 | |
| 569 | Trail.Color = ColorSequence.new(C3(1,0,0)) | |
| 570 | Trail.Transparency = NumberSequence.new(0, 1) | |
| 571 | Trail.Enabled = false | |
| 572 | Trail.Texture = "http://www.roblox.com/asset/?id=1831500579" | |
| 573 | local GUN = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false) | |
| 574 | CreateMesh("SpecialMesh", GUN, "FileMesh", "623102664", "", VT(0.01, 0.01, 0.01), VT(0,0,0))
| |
| 575 | local GUNWELD = CreateWeldOrSnapOrMotor("Weld", GUN, Torso, GUN, CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
| |
| 576 | ||
| 577 | for _, c in pairs(Weapon:GetChildren()) do | |
| 578 | if c.ClassName == "Part" then | |
| 579 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 580 | end | |
| 581 | end | |
| 582 | ||
| 583 | Weapon.Parent = Character | |
| 584 | ||
| 585 | local SKILLTEXTCOLOR = C3(1,0,0) | |
| 586 | local SKILLFONT = "Bodoni" | |
| 587 | local SKILLTEXTSIZE = 6 | |
| 588 | ||
| 589 | local ATTACKSGOODCOP = {"Mouse/Aim - Dead-Eye.","Q - Bat Smash","E - Demon Cuff's"}
| |
| 590 | local ATTACKSBADCOP = {"Mouse - Rage","Q - Bat Eradication","E - Pin /And\ Blast"}
| |
| 591 | local GOODUI = {}
| |
| 592 | local BADUI = {}
| |
| 593 | ||
| 594 | for i = 1, #ATTACKSGOODCOP do | |
| 595 | local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.73, 0, 0.7-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame") | |
| 596 | local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKSGOODCOP[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text") | |
| 597 | SKILLTEXT.TextXAlignment = "Right" | |
| 598 | table.insert(GOODUI,SKILLTEXT) | |
| 599 | end | |
| 600 | ||
| 601 | for i = 1, #ATTACKSBADCOP do | |
| 602 | local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.01, 0, 0.7-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame") | |
| 603 | local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKSBADCOP[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Skill text") | |
| 604 | SKILLTEXT.TextXAlignment = "Left" | |
| 605 | table.insert(BADUI,SKILLTEXT) | |
| 606 | end | |
| 607 | ||
| 608 | local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame") | |
| 609 | local SKILLTEXT = CreateLabel(SKILLFRAME, "[F - Switch]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text") | |
| 610 | ||
| 611 | --//=================================\\ | |
| 612 | --|| DAMAGING | |
| 613 | --\\=================================// | |
| 614 | ||
| 615 | function ApplyDamage(Humanoid,Damage) | |
| 616 | Damage = Damage * DAMAGEMULTIPLIER | |
| 617 | local DEAD = false | |
| 618 | if Humanoid.Health < 2000 then | |
| 619 | if Humanoid.Health - Damage > 0 then | |
| 620 | Humanoid.Health = Humanoid.Health - Damage | |
| 621 | else | |
| 622 | DEAD = true | |
| 623 | Humanoid.Parent:BreakJoints() | |
| 624 | end | |
| 625 | else | |
| 626 | DEAD = true | |
| 627 | Humanoid.Parent:BreakJoints() | |
| 628 | end | |
| 629 | if DEAD == true then | |
| 630 | if MODE == "GoodCop" then | |
| 631 | local TEXTS = {"Take Your Time I Got So Much To Wait.","Too Slow.","Woop's :3 , My Finger Slipped"}
| |
| 632 | Chatter(TEXTS[MRANDOM(1,#TEXTS)],0) | |
| 633 | elseif MODE == "BadCop" then | |
| 634 | local TEXTS = {"Just Perish.","I Share No Mercy","Your Form is Frigle."}
| |
| 635 | Chatter(TEXTS[MRANDOM(1,#TEXTS)],0) | |
| 636 | end | |
| 637 | end | |
| 638 | end | |
| 639 | ||
| 640 | --//=================================\\ | |
| 641 | --|| TRANSFORMATIONS | |
| 642 | --\\=================================// | |
| 643 | ||
| 644 | function Switch() | |
| 645 | ATTACK = true | |
| 646 | Rooted = true | |
| 647 | if MODE == "GoodCop" then | |
| 648 | local SPEAKING = false | |
| 649 | local TEXTS = {"A Real Fighter Ay, This Should be Fun.","No Pain No Gain.","I Fight People that Flee you seem Like a Determined Subject","I Like this Guy."}
| |
| 650 | Chatter(TEXTS[MRANDOM(1,#TEXTS)],0) | |
| 651 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 652 | Swait() | |
| 653 | 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) | |
| 654 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 655 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 656 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 657 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 658 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 659 | end | |
| 660 | for i=0, 1, 0.1 / Animation_Speed do | |
| 661 | Swait() | |
| 662 | 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) | |
| 663 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 664 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 665 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 666 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 667 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 668 | end | |
| 669 | CreateSound(363808674, Torso, 6, 1, false) | |
| 670 | for i=0, 0.6, 0.1 / Animation_Speed do | |
| 671 | Swait() | |
| 672 | 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) | |
| 673 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
| 674 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 675 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 676 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 677 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 678 | end | |
| 679 | CreateSound(363808674, Torso, 6, 1, false) | |
| 680 | for i=0, 0.6, 0.1 / Animation_Speed do | |
| 681 | Swait() | |
| 682 | 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) | |
| 683 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
| 684 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 685 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 686 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 687 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 688 | CreateSound(137473066, Head, 2, 1, false) | |
| 689 | end | |
| 690 | MODE = "BadCop" | |
| 691 | elseif MODE == "BadCop" then | |
| 692 | local SPEAKING = false | |
| 693 | local TEXTS = {"Actully, Il Let ya Hit Me.","Like takeing Candy From a Baby Let's see what you got.,","Now. This Should Be a Easy.","What's the Matter, Scared?"}
| |
| 694 | Chatter(TEXTS[MRANDOM(1,#TEXTS)],0) | |
| 695 | CreateSound(621294325, Torso, 5, 1, false) | |
| 696 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 697 | Swait() | |
| 698 | 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) | |
| 699 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 700 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 701 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 702 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 703 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 704 | end | |
| 705 | MODE = "GoodCop" | |
| 706 | end | |
| 707 | ATTACK = false | |
| 708 | Rooted = false | |
| 709 | end | |
| 710 | ||
| 711 | --//=================================\\ | |
| 712 | --|| ATTACK GOOD COP | |
| 713 | --\\=================================// | |
| 714 | ||
| 715 | function Warning() | |
| 716 | local TARGET = Mouse.Target | |
| 717 | if TARGET ~= nil then | |
| 718 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 719 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
| |
| 720 | local LEG = TARGET.Parent:FindFirstChild("Right Leg") or TARGET.Parent:FindFirstChild("RightLowerLeg")
| |
| 721 | if LEG and HUM.Health > 0 then | |
| 722 | Speed = 6 | |
| 723 | ATTACK = true | |
| 724 | Rooted = false | |
| 725 | local GYRO = IT("BodyGyro",RootPart)
| |
| 726 | GYRO.D = 2 | |
| 727 | GYRO.P = 2000 | |
| 728 | GYRO.MaxTorque = VT(0,4000000,0) | |
| 729 | coroutine.resume(coroutine.create(function() | |
| 730 | repeat | |
| 731 | Swait() | |
| 732 | GYRO.CFrame = CF(RootPart.Position,LEG.Position) | |
| 733 | until ATTACK == false | |
| 734 | GYRO:Remove() | |
| 735 | end)) | |
| 736 | local HIT,POS = CastProperRay(RootPart.Position,LEG.Position,1000,Character) | |
| 737 | local PASS = true | |
| 738 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 739 | Swait() | |
| 740 | HIT,POS = CastProperRay(RootPart.Position,LEG.Position,1000,Character) | |
| 741 | if HIT == nil then | |
| 742 | PASS = false | |
| 743 | break | |
| 744 | else | |
| 745 | if HIT.Parent ~= TARGET.Parent then | |
| 746 | PASS = false | |
| 747 | break | |
| 748 | end | |
| 749 | end | |
| 750 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 751 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 752 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 753 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 754 | 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) | |
| 755 | 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) | |
| 756 | end | |
| 757 | CreateSound(138499093, GUN, 6, 1.5, false) | |
| 758 | GUNWELD.Part0 = LeftArm | |
| 759 | GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
| 760 | for i=0, 0.4, 0.1 / Animation_Speed do | |
| 761 | Swait() | |
| 762 | HIT,POS = CastProperRay(RootPart.Position,LEG.Position,1000,Character) | |
| 763 | if HIT == nil then | |
| 764 | PASS = false | |
| 765 | break | |
| 766 | else | |
| 767 | if HIT.Parent ~= TARGET.Parent then | |
| 768 | PASS = false | |
| 769 | break | |
| 770 | end | |
| 771 | end | |
| 772 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
| 773 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
| 774 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 775 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 776 | 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) | |
| 777 | 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) | |
| 778 | end | |
| 779 | if PASS == true then | |
| 780 | local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p | |
| 781 | local DISTANCE = (LEG.Position - GUNPOS).Magnitude | |
| 782 | CreateSound(160432334, LEG, 10, 1, false) | |
| 783 | local HEAD = HUM.Parent:FindFirstChild("Head")
| |
| 784 | if HEAD then | |
| 785 | CreateSound(535690488, HEAD, 7, 1, false) | |
| 786 | end | |
| 787 | ApplyDamage(HUM,15) | |
| 788 | HUM.WalkSpeed = HUM.WalkSpeed - 3 | |
| 789 | HUM.PlatformStand = true | |
| 790 | coroutine.resume(coroutine.create(function() | |
| 791 | wait(0.1) | |
| 792 | if HUM.WalkSpeed > 0 then | |
| 793 | HUM.PlatformStand = false | |
| 794 | end | |
| 795 | end)) | |
| 796 | 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})
| |
| 797 | WACKYEFFECT({Time = 6, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS,LEG.Position)*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})
| |
| 798 | for i=0, 1, 0.1 / Animation_Speed do | |
| 799 | Swait() | |
| 800 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
| 801 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 1 / Animation_Speed) | |
| 802 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 803 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 804 | 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) | |
| 805 | 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) | |
| 806 | end | |
| 807 | end | |
| 808 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 809 | Swait() | |
| 810 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 811 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 812 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 813 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 814 | 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) | |
| 815 | 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) | |
| 816 | end | |
| 817 | GUNWELD.Part0 = Torso | |
| 818 | GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
| 819 | ATTACK = false | |
| 820 | Rooted = false | |
| 821 | Speed = 20 | |
| 822 | end | |
| 823 | end | |
| 824 | end | |
| 825 | end | |
| 826 | function BatonStun() | |
| 827 | ATTACK = true | |
| 828 | Rooted = false | |
| 829 | Speed = 4 | |
| 830 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 831 | Swait() | |
| 832 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 833 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 834 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 835 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 836 | 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) | |
| 837 | 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) | |
| 838 | end | |
| 839 | BATONWELD.Part0 = RightArm | |
| 840 | BATONWELD.C0 = CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1) | |
| 841 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 842 | Swait() | |
| 843 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
| 844 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 845 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.1) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 846 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 847 | 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) | |
| 848 | 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) | |
| 849 | end | |
| 850 | Speed = 25 | |
| 851 | CreateSound(147722227, BATON, 6, 1.2, false) | |
| 852 | Trail.Enabled = true | |
| 853 | BATON.CanCollide = true | |
| 854 | local SPEAKING = false | |
| 855 | local HITS = {}
| |
| 856 | local TOUCH = BATON.Touched:Connect(function(hit) | |
| 857 | if hit.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 858 | local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 859 | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 860 | if TORSO and HUM.Health > 0 then | |
| 861 | local PASS = true | |
| 862 | for i = 1, #HITS do | |
| 863 | if HITS[i] == hit.Parent then | |
| 864 | PASS = false | |
| 865 | end | |
| 866 | end | |
| 867 | table.insert(HITS,hit.Parent) | |
| 868 | if PASS == true then | |
| 869 | HUM.PlatformStand = true | |
| 870 | ApplyDamage(HUM,20) | |
| 871 | local bv = Instance.new("BodyVelocity",TORSO)
| |
| 872 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 873 | bv.velocity = CF(Torso.Position-VT(0,5,0),TORSO.Position).lookVector*70 | |
| 874 | Debris:AddItem(bv,0.05) | |
| 875 | CreateSound(260430079, BATON, 6, 1, false) | |
| 876 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,BATON.Position)*CF(0,0,-0.5), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Glass = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 4})
| |
| 877 | coroutine.resume(coroutine.create(function() | |
| 878 | wait(1) | |
| 879 | if HUM.WalkSpeed > 0 then | |
| 880 | HUM.PlatformStand = false | |
| 881 | end | |
| 882 | end)) | |
| 883 | if SPEAKING == false and MRANDOM(1,5) == 1 then | |
| 884 | SPEAKING = true | |
| 885 | Chatter("A Weakling. Of Choice.",0)
| |
| 886 | end | |
| 887 | end | |
| 888 | end | |
| 889 | end | |
| 890 | end) | |
| 891 | for i=0, 0.35, 0.1 / Animation_Speed do | |
| 892 | Swait() | |
| 893 | BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(120), RAD(0), RAD(0)) * CF(0,0,1), 1 / Animation_Speed) | |
| 894 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 895 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 896 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.6) * ANGLES(RAD(140), RAD(0), RAD(-31)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 897 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 898 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 899 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 900 | end | |
| 901 | TOUCH:Disconnect() | |
| 902 | BATON.CanCollide = false | |
| 903 | Speed = 20 | |
| 904 | Trail.Enabled = false | |
| 905 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 906 | Swait() | |
| 907 | BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1), 2 / Animation_Speed) | |
| 908 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 909 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 910 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 911 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 912 | 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) | |
| 913 | 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) | |
| 914 | end | |
| 915 | BATONWELD.Part0 = Torso | |
| 916 | BATONWELD.C0 = CF(1,-0.8,0.75) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 917 | ATTACK = false | |
| 918 | Rooted = false | |
| 919 | end | |
| 920 | function Cuffs() | |
| 921 | local TARGET = Mouse.Target | |
| 922 | if TARGET ~= nil then | |
| 923 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 924 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
| |
| 925 | local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
| |
| 926 | if ROOT and HUM.Health > 0 then | |
| 927 | local FOE = Mouse.Target.Parent | |
| 928 | ATTACK = true | |
| 929 | Rooted = true | |
| 930 | CharacterFade(C3(1,1,1),70) | |
| 931 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2) | |
| 932 | ROOT.Anchored = true | |
| 933 | CreateSound(289556450, RootPart, 5, 1.4, false) | |
| 934 | Chatter("Stay Put.",0)
| |
| 935 | for i=0, 2, 0.1 / Animation_Speed do | |
| 936 | Swait() | |
| 937 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 938 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 939 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 940 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 941 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 942 | 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) | |
| 943 | end | |
| 944 | local RIGHTCUFF = nil | |
| 945 | local LEFTCUFF = nil | |
| 946 | local ChainLink = nil | |
| 947 | CreateSound(1279090548, ROOT, 10, 1.4, false) | |
| 948 | for _, c in pairs(FOE:GetChildren()) do | |
| 949 | if c.Name == "Left Arm" or c.Name == "LeftLowerArm" then | |
| 950 | LEFTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Really red", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false) | |
| 951 | LEFTCUFF.CFrame = c.CFrame | |
| 952 | weldBetween(c,LEFTCUFF) | |
| 953 | end | |
| 954 | end | |
| 955 | for _, c in pairs(FOE:GetChildren()) do | |
| 956 | if c.Name == "Right Arm" or c.Name == "RightLowerArm" then | |
| 957 | RIGHTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Really red", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false) | |
| 958 | RIGHTCUFF.CFrame = c.CFrame | |
| 959 | weldBetween(c,RIGHTCUFF) | |
| 960 | end | |
| 961 | end | |
| 962 | if RIGHTCUFF and LEFTCUFF then | |
| 963 | local A = IT("Attachment",RIGHTCUFF)
| |
| 964 | local B = IT("Attachment",LEFTCUFF)
| |
| 965 | ChainLink = IT("Beam",FOE)
| |
| 966 | ChainLink.Texture = "rbxassetid://73042633" | |
| 967 | ChainLink.Color = ColorSequence.new(C3(0.8,0.8,0.8)) | |
| 968 | ChainLink.TextureSpeed = 0 | |
| 969 | ChainLink.Width0 = 1 | |
| 970 | ChainLink.Width1 = 1 | |
| 971 | ChainLink.Segments = 25 | |
| 972 | ChainLink.TextureLength = 3 | |
| 973 | ChainLink.Attachment0 = B | |
| 974 | ChainLink.Attachment1 = A | |
| 975 | ChainLink.FaceCamera = true | |
| 976 | ChainLink.Transparency = NumberSequence.new(0) | |
| 977 | end | |
| 978 | coroutine.resume(coroutine.create(function() | |
| 979 | wait(4) | |
| 980 | if RIGHTCUFF and LEFTCUFF then | |
| 981 | RIGHTCUFF:remove() | |
| 982 | LEFTCUFF:remove() | |
| 983 | ChainLink:remove() | |
| 984 | local bv = Instance.new("BodyVelocity",ROOT)
| |
| 985 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 986 | bv.velocity = CF(ROOT.Position-VT(0,5,0),ROOT.Position).lookVector*70 | |
| 987 | Debris:AddItem(bv,0.05) | |
| 988 | ApplyDamage(HUM,70) | |
| 989 | HUM.PlatformStand = false | |
| 990 | WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = CF(RIGHTCUFF.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Glass = C3(1,1,1), SoundID = 174580476, SoundPitch = 1, SoundVolume = 7})
| |
| 991 | WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = CF(LEFTCUFF.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Glass = C3(1,1,1), SoundID = 174580476, SoundPitch = 1, SoundVolume = 7})
| |
| 992 | end | |
| 993 | end)) | |
| 994 | for i=0, 1.5, 0.1 / Animation_Speed do | |
| 995 | Swait() | |
| 996 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 997 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(5), RAD(0)), 1 / Animation_Speed) | |
| 998 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 999 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1000 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1001 | 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) | |
| 1002 | end | |
| 1003 | HUM.PlatformStand = true | |
| 1004 | ROOT.CFrame = ROOT.CFrame * ANGLES(RAD(15), RAD(0), RAD(0)) | |
| 1005 | ROOT.Anchored = false | |
| 1006 | Chatter("And........... Explode!",0)
| |
| 1007 | for i=0, 3, 0.1 / Animation_Speed do | |
| 1008 | Swait() | |
| 1009 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-35)), 1 / Animation_Speed) | |
| 1010 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
| 1011 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1012 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1013 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-12), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1014 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1015 | end | |
| 1016 | ATTACK = false | |
| 1017 | Rooted = false | |
| 1018 | end | |
| 1019 | end | |
| 1020 | end | |
| 1021 | end | |
| 1022 | ||
| 1023 | --//=================================\\ | |
| 1024 | --|| ATTACK BAD COP | |
| 1025 | --\\=================================// | |
| 1026 | ||
| 1027 | function Silence() | |
| 1028 | Speed = 6 | |
| 1029 | ATTACK = true | |
| 1030 | Rooted = false | |
| 1031 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1032 | GYRO.D = 2 | |
| 1033 | GYRO.P = 20000 | |
| 1034 | GYRO.MaxTorque = VT(0,4000000,0) | |
| 1035 | coroutine.resume(coroutine.create(function() | |
| 1036 | repeat | |
| 1037 | Swait() | |
| 1038 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 1039 | until ATTACK == false | |
| 1040 | GYRO:Remove() | |
| 1041 | end)) | |
| 1042 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 1043 | Swait() | |
| 1044 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1045 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 1046 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1047 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1048 | 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) | |
| 1049 | 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) | |
| 1050 | end | |
| 1051 | local AMMO = 15 | |
| 1052 | local FIRING = true | |
| 1053 | local SHOOTING = false | |
| 1054 | local TIMER = 70 | |
| 1055 | CreateSound(138499093, GUN, 6, 1.5, false) | |
| 1056 | GUNWELD.Part0 = LeftArm | |
| 1057 | GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
| 1058 | local MOUSE = Mouse.Button1Down:connect(function(NEWKEY) | |
| 1059 | if SHOOTING == false and AMMO > 0 then | |
| 1060 | SHOOTING = true | |
| 1061 | AMMO = AMMO - 1 | |
| 1062 | local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p | |
| 1063 | local HIT,POS = CastProperRay(GUNPOS,Mouse.Hit.p,1000,Character) | |
| 1064 | local DISTANCE = (POS - GUNPOS).Magnitude | |
| 1065 | if HIT then | |
| 1066 | if HIT.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1067 | if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
| |
| 1068 | CreateSound(160432334, HIT, 10, 1, false) | |
| 1069 | ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"),35)
| |
| 1070 | end | |
| 1071 | end | |
| 1072 | end | |
| 1073 | TIMER = 55 | |
| 1074 | 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})
| |
| 1075 | 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})
| |
| 1076 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 1077 | Swait() | |
| 1078 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
| 1079 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
| 1080 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1081 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1082 | 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) | |
| 1083 | 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) | |
| 1084 | end | |
| 1085 | if AMMO <= 0 then | |
| 1086 | FIRING = false | |
| 1087 | end | |
| 1088 | SHOOTING = false | |
| 1089 | end | |
| 1090 | end) | |
| 1091 | repeat | |
| 1092 | Swait() | |
| 1093 | if SHOOTING == false then | |
| 1094 | TIMER = TIMER - 1 | |
| 1095 | if TIMER <= 0 then | |
| 1096 | FIRING = false | |
| 1097 | end | |
| 1098 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
| 1099 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
| 1100 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1101 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1102 | 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) | |
| 1103 | 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) | |
| 1104 | end | |
| 1105 | until FIRING == false and SHOOTING == false | |
| 1106 | MOUSE:Disconnect() | |
| 1107 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 1108 | Swait() | |
| 1109 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1110 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 1111 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1112 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1113 | 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) | |
| 1114 | 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) | |
| 1115 | end | |
| 1116 | GUNWELD.Part0 = Torso | |
| 1117 | GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
| 1118 | Speed = 20 | |
| 1119 | ATTACK = false | |
| 1120 | Rooted = false | |
| 1121 | end | |
| 1122 | function BatonBreaker() | |
| 1123 | ATTACK = true | |
| 1124 | Rooted = false | |
| 1125 | Speed = 4 | |
| 1126 | Chatter("Let's Play Rough Shall we?",0)
| |
| 1127 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 1128 | Swait() | |
| 1129 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1130 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 1131 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1132 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1133 | 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) | |
| 1134 | 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) | |
| 1135 | end | |
| 1136 | BATONWELD.Part0 = RightArm | |
| 1137 | BATONWELD.C0 = CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1) | |
| 1138 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1139 | Swait() | |
| 1140 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
| 1141 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 1142 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.1) * ANGLES(RAD(-20), RAD(-40), RAD(25)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1143 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1144 | 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) | |
| 1145 | 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) | |
| 1146 | end | |
| 1147 | Speed = 30 | |
| 1148 | CreateSound(147722227, BATON, 6, 1, false) | |
| 1149 | Trail.Enabled = true | |
| 1150 | BATON.CanCollide = true | |
| 1151 | local SPEAKING = false | |
| 1152 | local HITS = {}
| |
| 1153 | local TOUCH = BATON.Touched:Connect(function(hit) | |
| 1154 | if hit.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1155 | local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1156 | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 1157 | if TORSO and HUM.Health > 0 then | |
| 1158 | local PASS = true | |
| 1159 | for i = 1, #HITS do | |
| 1160 | if HITS[i] == hit.Parent then | |
| 1161 | PASS = false | |
| 1162 | end | |
| 1163 | end | |
| 1164 | table.insert(HITS,hit.Parent) | |
| 1165 | if PASS == true then | |
| 1166 | CreateSound(260430079, BATON, 6, 0.8, false) | |
| 1167 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,BATON.Position)*CF(0,0,-0.5), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Glass = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 4})
| |
| 1168 | TORSO.Anchored = true | |
| 1169 | local POS = TORSO.CFrame | |
| 1170 | coroutine.resume(coroutine.create(function() | |
| 1171 | for i = 1, 15 do | |
| 1172 | Swait() | |
| 1173 | TORSO.CFrame = POS*CF(MRANDOM(-2,2)/10,MRANDOM(-2,2)/10,MRANDOM(-2,2)/10) | |
| 1174 | end | |
| 1175 | local HEAD = HUM.Parent:FindFirstChild("Head")
| |
| 1176 | HUM.Parent:BreakJoints() | |
| 1177 | if HEAD then | |
| 1178 | CreateSound(363808674, HEAD, 10, 0.8, false) | |
| 1179 | local bv = Instance.new("BodyVelocity",TORSO)
| |
| 1180 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1181 | bv.velocity = CF(Torso.Position-VT(0,5,0),HEAD.Position).lookVector*70 | |
| 1182 | Debris:AddItem(bv,0.05) | |
| 1183 | local TEXTS = {"Executed.","Game Over."}
| |
| 1184 | Chatter(TEXTS[MRANDOM(1,#TEXTS)],0) | |
| 1185 | end | |
| 1186 | TORSO.Anchored = false | |
| 1187 | end)) | |
| 1188 | end | |
| 1189 | end | |
| 1190 | end | |
| 1191 | end) | |
| 1192 | for i=0, 0.45, 0.1 / Animation_Speed do | |
| 1193 | Swait() | |
| 1194 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.15) | |
| 1195 | BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(120), RAD(0), RAD(0)) * CF(0,0,1), 1 / Animation_Speed) | |
| 1196 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 1197 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 1198 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.6) * ANGLES(RAD(140), RAD(-25), RAD(-41)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1199 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1200 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(15), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1201 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1202 | end | |
| 1203 | TOUCH:Disconnect() | |
| 1204 | BATON.CanCollide = false | |
| 1205 | Speed = 20 | |
| 1206 | Trail.Enabled = false | |
| 1207 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 1208 | Swait() | |
| 1209 | BATONWELD.C0 = Clerp(BATONWELD.C0,CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0,0,1), 2 / Animation_Speed) | |
| 1210 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1211 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 1212 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1213 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1214 | 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) | |
| 1215 | 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) | |
| 1216 | end | |
| 1217 | BATONWELD.Part0 = Torso | |
| 1218 | BATONWELD.C0 = CF(1,-0.8,0.75) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 1219 | ATTACK = false | |
| 1220 | Rooted = false | |
| 1221 | end | |
| 1222 | function TheRightToRemainSilent() | |
| 1223 | local TARGET = Mouse.Target | |
| 1224 | if TARGET ~= nil then | |
| 1225 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1226 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1227 | local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
| |
| 1228 | if ROOT and HUM.Health > 0 then | |
| 1229 | local FOE = Mouse.Target.Parent | |
| 1230 | ATTACK = true | |
| 1231 | Rooted = true | |
| 1232 | CharacterFade(C3(1,1,1),70) | |
| 1233 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2) | |
| 1234 | ROOT.Anchored = true | |
| 1235 | CreateSound(289556450, RootPart, 5, 1.4, false) | |
| 1236 | Chatter("How would you Like a Few Bullet's to your Head?",0)
| |
| 1237 | for i=0, 0.4, 0.1 / Animation_Speed do | |
| 1238 | Swait() | |
| 1239 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1240 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1241 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1242 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1243 | 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) | |
| 1244 | 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) | |
| 1245 | end | |
| 1246 | HUM.PlatformStand = true | |
| 1247 | ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0)) | |
| 1248 | CreateSound(260430117, ROOT, 6, 1.3, false) | |
| 1249 | coroutine.resume(coroutine.create(function() | |
| 1250 | Swait() | |
| 1251 | ROOT.Anchored = true | |
| 1252 | end)) | |
| 1253 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6) | |
| 1254 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 1255 | Swait() | |
| 1256 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 1257 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 1258 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1259 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1260 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1261 | 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) | |
| 1262 | end | |
| 1263 | local OOFS = {1106908323,1080610827,1080614222,565424701,565424177,1080611063}
| |
| 1264 | CreateSound(OOFS[MRANDOM(1,#OOFS)], ROOT, 6, 1, false) | |
| 1265 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 1266 | Swait() | |
| 1267 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1268 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 1269 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1270 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1271 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1272 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1273 | end | |
| 1274 | local AMMO = 20 | |
| 1275 | local FIRING = true | |
| 1276 | local SHOOTING = false | |
| 1277 | local TIMER = 70 | |
| 1278 | CreateSound(138499093, GUN, 6, 1.3, false) | |
| 1279 | GUNWELD.Part0 = LeftArm | |
| 1280 | GUNWELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
| 1281 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 1282 | Swait() | |
| 1283 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1284 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 1285 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1286 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.4) * ANGLES(RAD(100), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1287 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1288 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1289 | end | |
| 1290 | for i = 1, 6 do | |
| 1291 | local GUNPOS = GUN.CFrame*CF(1.2, 0.5, 0).p | |
| 1292 | local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude | |
| 1293 | 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})
| |
| 1294 | WACKYEFFECT({Time = 6, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(GUNPOS,FOE.Head.Position)*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})
| |
| 1295 | HUM.Health = HUM.Health/1.5 | |
| 1296 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 1297 | Swait() | |
| 1298 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1299 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 1300 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1301 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.6) * ANGLES(RAD(130), RAD(0), RAD(20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1302 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1303 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1304 | end | |
| 1305 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 1306 | Swait() | |
| 1307 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.65) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1308 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 1309 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(80), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1310 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.4, 0.55, 0.6) * ANGLES(RAD(100), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1311 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.45) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1312 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1313 | end | |
| 1314 | end | |
| 1315 | FOE:BreakJoints() | |
| 1316 | ROOT.Anchored = false | |
| 1317 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 1318 | Swait() | |
| 1319 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1320 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 1321 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1322 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1323 | 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) | |
| 1324 | 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) | |
| 1325 | end | |
| 1326 | GUNWELD.Part0 = Torso | |
| 1327 | GUNWELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)) | |
| 1328 | ATTACK = false | |
| 1329 | Rooted = false | |
| 1330 | end | |
| 1331 | end | |
| 1332 | end | |
| 1333 | end | |
| 1334 | ||
| 1335 | --//=================================\\ | |
| 1336 | --|| ASSIGN THINGS TO KEYS | |
| 1337 | --\\=================================// | |
| 1338 | ||
| 1339 | function MouseDown(Mouse) | |
| 1340 | if ATTACK == false then | |
| 1341 | if MODE == "GoodCop" then | |
| 1342 | Warning() | |
| 1343 | elseif MODE == "BadCop" then | |
| 1344 | Silence() | |
| 1345 | end | |
| 1346 | end | |
| 1347 | end | |
| 1348 | ||
| 1349 | function MouseUp(Mouse) | |
| 1350 | HOLD = false | |
| 1351 | end | |
| 1352 | ||
| 1353 | function KeyDown(Key) | |
| 1354 | KEYHOLD = true | |
| 1355 | if Key == "q" and ATTACK == false then | |
| 1356 | if MODE == "GoodCop" then | |
| 1357 | BatonStun() | |
| 1358 | elseif MODE == "BadCop" then | |
| 1359 | BatonBreaker() | |
| 1360 | end | |
| 1361 | end | |
| 1362 | ||
| 1363 | if Key == "e" and ATTACK == false then | |
| 1364 | if MODE == "GoodCop" then | |
| 1365 | Cuffs() | |
| 1366 | elseif MODE == "BadCop" then | |
| 1367 | TheRightToRemainSilent() | |
| 1368 | end | |
| 1369 | end | |
| 1370 | ||
| 1371 | if Key == "t" and ATTACK == false then | |
| 1372 | if MODE == "GoodCop" then | |
| 1373 | Chatter("Hi, Im Waddling.",0.01)
| |
| 1374 | elseif MODE == "BadCop" then | |
| 1375 | Chatter("Should i Even greet?",0.01)
| |
| 1376 | end | |
| 1377 | end | |
| 1378 | ||
| 1379 | if Key == "f" and ATTACK == false then | |
| 1380 | Switch() | |
| 1381 | end | |
| 1382 | ||
| 1383 | if Key == "0" and ATTACK == false then | |
| 1384 | if sick.Parent ~= RootPart then | |
| 1385 | sick = IT("Sound",RootPart)
| |
| 1386 | end | |
| 1387 | end | |
| 1388 | end | |
| 1389 | ||
| 1390 | function KeyUp(Key) | |
| 1391 | KEYHOLD = false | |
| 1392 | end | |
| 1393 | ||
| 1394 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1395 | MouseDown(NEWKEY) | |
| 1396 | end) | |
| 1397 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1398 | MouseUp(NEWKEY) | |
| 1399 | end) | |
| 1400 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1401 | KeyDown(NEWKEY) | |
| 1402 | end) | |
| 1403 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1404 | KeyUp(NEWKEY) | |
| 1405 | end) | |
| 1406 | ||
| 1407 | --//=================================\\ | |
| 1408 | --\\=================================// | |
| 1409 | ||
| 1410 | function unanchor() | |
| 1411 | for _, c in pairs(Character:GetChildren()) do | |
| 1412 | if c:IsA("BasePart") and c ~= RootPart then
| |
| 1413 | c.Anchored = false | |
| 1414 | end | |
| 1415 | end | |
| 1416 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1417 | if c:IsA("BasePart") and c ~= RootPart then
| |
| 1418 | c.Anchored = false | |
| 1419 | end | |
| 1420 | end | |
| 1421 | if UNANCHOR == true then | |
| 1422 | RootPart.Anchored = false | |
| 1423 | else | |
| 1424 | RootPart.Anchored = true | |
| 1425 | end | |
| 1426 | end | |
| 1427 | ||
| 1428 | --//=================================\\ | |
| 1429 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1430 | --\\=================================// | |
| 1431 | ||
| 1432 | Humanoid.Changed:connect(function(Jump) | |
| 1433 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1434 | Humanoid.Jump = false | |
| 1435 | end | |
| 1436 | end) | |
| 1437 | ||
| 1438 | while true do | |
| 1439 | Swait() | |
| 1440 | script.Parent = WEAPONGUI | |
| 1441 | ANIMATE.Parent = nil | |
| 1442 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 1443 | v:Stop(); | |
| 1444 | end | |
| 1445 | SINE = SINE + CHANGE | |
| 1446 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1447 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1448 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 1449 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 1450 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 1451 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.05 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1452 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1453 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed) | |
| 1454 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed) | |
| 1455 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 1456 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1457 | 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) | |
| 1458 | 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.7 / Animation_Speed) | |
| 1459 | 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.7 / Animation_Speed) | |
| 1460 | end | |
| 1461 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 1462 | ANIM = "Jump" | |
| 1463 | if ATTACK == false then | |
| 1464 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1465 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1466 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1467 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1468 | 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) | |
| 1469 | 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) | |
| 1470 | end | |
| 1471 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 1472 | ANIM = "Fall" | |
| 1473 | if ATTACK == false then | |
| 1474 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1475 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1476 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1477 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1478 | 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) | |
| 1479 | 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) | |
| 1480 | end | |
| 1481 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 1482 | ANIM = "Idle" | |
| 1483 | if ATTACK == false then | |
| 1484 | if MODE == "GoodCop" then | |
| 1485 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.05 * COS(SINE / 12), 0, 0 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1486 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
| 1487 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0.3) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1488 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1489 | RightHip.C0 = Clerp(RightHip.C0, CF(1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1490 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1491 | elseif MODE == "BadCop" then | |
| 1492 | 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) | |
| 1493 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 1494 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1495 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9, 0.25 + 0.05 * SIN(SINE / 12), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1496 | 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) | |
| 1497 | 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) | |
| 1498 | end | |
| 1499 | end | |
| 1500 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 1501 | ANIM = "Walk" | |
| 1502 | if ATTACK == false then | |
| 1503 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1504 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1505 | if MODE == "GoodCop" then | |
| 1506 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), 0.3) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1507 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1508 | elseif MODE == "BadCop" then | |
| 1509 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1510 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9, 0.25 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1511 | end | |
| 1512 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 2 / Animation_Speed) | |
| 1513 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 2 / Animation_Speed) | |
| 1514 | end | |
| 1515 | end | |
| 1516 | unanchor() | |
| 1517 | Humanoid.MaxHealth = 3e3 | |
| 1518 | Humanoid.Health = 3e3 | |
| 1519 | if Rooted == false then | |
| 1520 | Disable_Jump = false | |
| 1521 | Humanoid.WalkSpeed = Speed | |
| 1522 | elseif Rooted == true then | |
| 1523 | Disable_Jump = true | |
| 1524 | Humanoid.WalkSpeed = 0 | |
| 1525 | end | |
| 1526 | for _, c in pairs(Character:GetChildren()) do | |
| 1527 | if (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
| 1528 | c:remove() | |
| 1529 | end | |
| 1530 | end | |
| 1531 | sick.SoundId = "rbxassetid://988239448" | |
| 1532 | sick.Looped = true | |
| 1533 | sick.Pitch = 1 | |
| 1534 | sick.Volume = 4 | |
| 1535 | sick.Playing = true | |
| 1536 | if MODE == "GoodCop" then | |
| 1537 | for E = 1, #GOODUI do | |
| 1538 | GOODUI[E].TextStrokeTransparency = 0 | |
| 1539 | GOODUI[E].TextTransparency = 0 | |
| 1540 | end | |
| 1541 | for E = 1, #BADUI do | |
| 1542 | BADUI[E].TextStrokeTransparency = 1 | |
| 1543 | BADUI[E].TextTransparency = 0.5 | |
| 1544 | end | |
| 1545 | elseif MODE == "BadCop" then | |
| 1546 | for E = 1, #GOODUI do | |
| 1547 | GOODUI[E].TextStrokeTransparency = 1 | |
| 1548 | GOODUI[E].TextTransparency = 0.5 | |
| 1549 | end | |
| 1550 | for E = 1, #BADUI do | |
| 1551 | BADUI[E].TextStrokeTransparency = 0 | |
| 1552 | BADUI[E].TextTransparency = 0 | |
| 1553 | end | |
| 1554 | end | |
| 1555 | end | |
| 1556 | ||
| 1557 | --//=================================\\ | |
| 1558 | --\\=================================// | |
| 1559 | ||
| 1560 | ||
| 1561 | ||
| 1562 | ||
| 1563 | ||
| 1564 | --//====================================================\\-- | |
| 1565 | --|| END OF SCRIPT | |
| 1566 | --\\====================================================//-- |