SHOW:
|
|
- or go back to the newest paste.
| 1 | --//====================================================\\-- | |
| 2 | --|| CREATED BY SHACKLUSTER | |
| 3 | --\\====================================================//-- | |
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | wait(0.2) | |
| 8 | ||
| 9 | ||
| 10 | ||
| 11 | Player = game:GetService("Players").LocalPlayer
| |
| 12 | PlayerGui = Player.PlayerGui | |
| 13 | Cam = workspace.CurrentCamera | |
| 14 | Backpack = Player.Backpack | |
| 15 | Character = Player.Character | |
| 16 | Humanoid = Character.Humanoid | |
| 17 | Mouse = Player:GetMouse() | |
| 18 | RootPart = Character["HumanoidRootPart"] | |
| 19 | Torso = Character["Torso"] | |
| 20 | Head = Character["Head"] | |
| 21 | RightArm = Character["Right Arm"] | |
| 22 | LeftArm = Character["Left Arm"] | |
| 23 | RightLeg = Character["Right Leg"] | |
| 24 | LeftLeg = Character["Left Leg"] | |
| 25 | RootJoint = RootPart["RootJoint"] | |
| 26 | Neck = Torso["Neck"] | |
| 27 | RightShoulder = Torso["Right Shoulder"] | |
| 28 | LeftShoulder = Torso["Left Shoulder"] | |
| 29 | RightHip = Torso["Right Hip"] | |
| 30 | LeftHip = Torso["Left Hip"] | |
| 31 | ||
| 32 | IT = Instance.new | |
| 33 | CF = CFrame.new | |
| 34 | VT = Vector3.new | |
| 35 | RAD = math.rad | |
| 36 | C3 = Color3.new | |
| 37 | UD2 = UDim2.new | |
| 38 | BRICKC = BrickColor.new | |
| 39 | ANGLES = CFrame.Angles | |
| 40 | EULER = CFrame.fromEulerAnglesXYZ | |
| 41 | COS = math.cos | |
| 42 | ACOS = math.acos | |
| 43 | SIN = math.sin | |
| 44 | ASIN = math.asin | |
| 45 | ABS = math.abs | |
| 46 | MRANDOM = math.random | |
| 47 | FLOOR = math.floor | |
| 48 | ||
| 49 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 50 | local NEWMESH = IT(MESH) | |
| 51 | if MESH == "SpecialMesh" then | |
| 52 | NEWMESH.MeshType = MESHTYPE | |
| 53 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 54 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 55 | end | |
| 56 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 57 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 58 | end | |
| 59 | end | |
| 60 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 61 | NEWMESH.Scale = SCALE | |
| 62 | NEWMESH.Parent = PARENT | |
| 63 | return NEWMESH | |
| 64 | end | |
| 65 | ||
| 66 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 67 | local NEWPART = IT("Part")
| |
| 68 | NEWPART.formFactor = FORMFACTOR | |
| 69 | NEWPART.Reflectance = REFLECTANCE | |
| 70 | NEWPART.Transparency = TRANSPARENCY | |
| 71 | NEWPART.CanCollide = false | |
| 72 | NEWPART.Locked = true | |
| 73 | NEWPART.Anchored = true | |
| 74 | if ANCHOR == false then | |
| 75 | NEWPART.Anchored = false | |
| 76 | end | |
| 77 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 78 | NEWPART.Name = NAME | |
| 79 | NEWPART.Size = SIZE | |
| 80 | NEWPART.Position = Torso.Position | |
| 81 | NEWPART.Material = MATERIAL | |
| 82 | NEWPART:BreakJoints() | |
| 83 | NEWPART.Parent = PARENT | |
| 84 | return NEWPART | |
| 85 | end | |
| 86 | ||
| 87 | --//=================================\\ | |
| 88 | --|| CUSTOMIZATION | |
| 89 | --\\=================================// | |
| 90 | ||
| 91 | Player_Size = 1 --Size of the player. | |
| 92 | Animation_Speed = 3 | |
| 93 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 94 | ||
| 95 | local Speed = 16 | |
| 96 | local Effects2 = {}
| |
| 97 | ||
| 98 | --//=================================\\ | |
| 99 | --|| END OF CUSTOMIZATION | |
| 100 | --\\=================================// | |
| 101 | ||
| 102 | local function weldBetween(a, b) | |
| 103 | local weldd = Instance.new("ManualWeld")
| |
| 104 | weldd.Part0 = a | |
| 105 | weldd.Part1 = b | |
| 106 | weldd.C0 = CFrame.new() | |
| 107 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 108 | weldd.Parent = a | |
| 109 | return weldd | |
| 110 | end | |
| 111 | ||
| 112 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
| 113 | local acs = Instance.new("Part")
| |
| 114 | acs.CanCollide = false | |
| 115 | acs.Anchored = false | |
| 116 | acs.Size = Vector3.new(0,0,0) | |
| 117 | acs.CFrame = attachmentpart.CFrame | |
| 118 | acs.Parent = Character | |
| 119 | acs.BrickColor = color | |
| 120 | local meshs = Instance.new("SpecialMesh")
| |
| 121 | meshs.MeshId = mesh | |
| 122 | meshs.TextureId = texture | |
| 123 | meshs.Parent = acs | |
| 124 | meshs.Scale = scale | |
| 125 | meshs.Offset = offset | |
| 126 | weldBetween(attachmentpart,acs) | |
| 127 | end | |
| 128 | ||
| 129 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
| 130 | if TYPE == "Gem" then | |
| 131 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 132 | acs.Anchored = false | |
| 133 | acs.CanCollide = false | |
| 134 | acs.CFrame = PART.CFrame | |
| 135 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
| |
| 136 | weldBetween(PART,acs) | |
| 137 | elseif TYPE == "Skull" then | |
| 138 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 139 | acs.Anchored = false | |
| 140 | acs.CanCollide = false | |
| 141 | acs.CFrame = PART.CFrame | |
| 142 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
| |
| 143 | weldBetween(PART,acs) | |
| 144 | elseif TYPE == "Eye" then | |
| 145 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 146 | acs.Anchored = false | |
| 147 | acs.CanCollide = false | |
| 148 | acs.CFrame = PART.CFrame | |
| 149 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
| |
| 150 | weldBetween(PART,acs) | |
| 151 | end | |
| 152 | end | |
| 153 | ||
| 154 | --//=================================\\ | |
| 155 | --|| USEFUL VALUES | |
| 156 | --\\=================================// | |
| 157 | ||
| 158 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 159 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 160 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 161 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 162 | local CHANGEDEFENSE = 0 | |
| 163 | local CHANGEDAMAGE = 0 | |
| 164 | local CHANGEMOVEMENT = 0 | |
| 165 | local ANIM = "Idle" | |
| 166 | local ATTACK = false | |
| 167 | local EQUIPPED = false | |
| 168 | local HOLD = false | |
| 169 | local COMBO = 1 | |
| 170 | local Rooted = false | |
| 171 | local SINE = 0 | |
| 172 | local KEYHOLD = false | |
| 173 | local CHANGE = 2 / Animation_Speed | |
| 174 | local WALKINGANIM = false | |
| 175 | local WALK = 0 | |
| 176 | local VALUE1 = false | |
| 177 | local VALUE2 = false | |
| 178 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 179 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 180 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 181 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 182 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 183 | WEAPONGUI.Name = "Weapon GUI" | |
| 184 | local Weapon = IT("Model")
| |
| 185 | Weapon.Name = "Adds" | |
| 186 | local Effects = IT("Folder", Weapon)
| |
| 187 | Effects.Name = "Effects" | |
| 188 | local ANIMATOR = Humanoid.Animator | |
| 189 | local ANIMATE = Character.Animate | |
| 190 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
| |
| 191 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
| |
| 192 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
| |
| 193 | local HITBLOCKSOUNDS = {"199148933", "199148947"}
| |
| 194 | local UNANCHOR = true | |
| 195 | ||
| 196 | local SKILLTEXTCOLOR = C3(0,0,0) | |
| 197 | ||
| 198 | --//=================================\\ | |
| 199 | --\\=================================// | |
| 200 | ||
| 201 | ||
| 202 | --//=================================\\ | |
| 203 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 204 | --\\=================================// | |
| 205 | ||
| 206 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 207 | ArtificialHB.Name = "ArtificialHB" | |
| 208 | ||
| 209 | script:WaitForChild("ArtificialHB")
| |
| 210 | ||
| 211 | frame = Frame_Speed | |
| 212 | tf = 0 | |
| 213 | allowframeloss = false | |
| 214 | tossremainder = false | |
| 215 | lastframe = tick() | |
| 216 | script.ArtificialHB:Fire() | |
| 217 | ||
| 218 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 219 | tf = tf + s | |
| 220 | if tf >= frame then | |
| 221 | if allowframeloss then | |
| 222 | script.ArtificialHB:Fire() | |
| 223 | lastframe = tick() | |
| 224 | else | |
| 225 | for i = 1, math.floor(tf / frame) do | |
| 226 | script.ArtificialHB:Fire() | |
| 227 | end | |
| 228 | lastframe = tick() | |
| 229 | end | |
| 230 | if tossremainder then | |
| 231 | tf = 0 | |
| 232 | else | |
| 233 | tf = tf - frame * math.floor(tf / frame) | |
| 234 | end | |
| 235 | end | |
| 236 | end) | |
| 237 | ||
| 238 | --//=================================\\ | |
| 239 | --\\=================================// | |
| 240 | ||
| 241 | ||
| 242 | ||
| 243 | ||
| 244 | ||
| 245 | --//=================================\\ | |
| 246 | --|| SOME FUNCTIONS | |
| 247 | --\\=================================// | |
| 248 | ||
| 249 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 250 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 251 | end | |
| 252 | ||
| 253 | function PositiveAngle(NUMBER) | |
| 254 | if NUMBER >= 0 then | |
| 255 | NUMBER = 0 | |
| 256 | end | |
| 257 | return NUMBER | |
| 258 | end | |
| 259 | ||
| 260 | function NegativeAngle(NUMBER) | |
| 261 | if NUMBER <= 0 then | |
| 262 | NUMBER = 0 | |
| 263 | end | |
| 264 | return NUMBER | |
| 265 | end | |
| 266 | ||
| 267 | function Swait(NUMBER) | |
| 268 | if NUMBER == 0 or NUMBER == nil then | |
| 269 | ArtificialHB.Event:wait() | |
| 270 | else | |
| 271 | for i = 1, NUMBER do | |
| 272 | ArtificialHB.Event:wait() | |
| 273 | end | |
| 274 | end | |
| 275 | end | |
| 276 | ||
| 277 | function QuaternionFromCFrame(cf) | |
| 278 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 279 | local trace = m00 + m11 + m22 | |
| 280 | if trace > 0 then | |
| 281 | local s = math.sqrt(1 + trace) | |
| 282 | local recip = 0.5 / s | |
| 283 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 284 | else | |
| 285 | local i = 0 | |
| 286 | if m11 > m00 then | |
| 287 | i = 1 | |
| 288 | end | |
| 289 | if m22 > (i == 0 and m00 or m11) then | |
| 290 | i = 2 | |
| 291 | end | |
| 292 | if i == 0 then | |
| 293 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 294 | local recip = 0.5 / s | |
| 295 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 296 | elseif i == 1 then | |
| 297 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 298 | local recip = 0.5 / s | |
| 299 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 300 | elseif i == 2 then | |
| 301 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 302 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 303 | end | |
| 304 | end | |
| 305 | end | |
| 306 | ||
| 307 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 308 | local xs, ys, zs = x + x, y + y, z + z | |
| 309 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 310 | local xx = x * xs | |
| 311 | local xy = x * ys | |
| 312 | local xz = x * zs | |
| 313 | local yy = y * ys | |
| 314 | local yz = y * zs | |
| 315 | local zz = z * zs | |
| 316 | 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)) | |
| 317 | end | |
| 318 | ||
| 319 | function QuaternionSlerp(a, b, t) | |
| 320 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 321 | local startInterp, finishInterp; | |
| 322 | if cosTheta >= 0.0001 then | |
| 323 | if (1 - cosTheta) > 0.0001 then | |
| 324 | local theta = ACOS(cosTheta) | |
| 325 | local invSinTheta = 1 / SIN(theta) | |
| 326 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 327 | finishInterp = SIN(t * theta) * invSinTheta | |
| 328 | else | |
| 329 | startInterp = 1 - t | |
| 330 | finishInterp = t | |
| 331 | end | |
| 332 | else | |
| 333 | if (1 + cosTheta) > 0.0001 then | |
| 334 | local theta = ACOS(-cosTheta) | |
| 335 | local invSinTheta = 1 / SIN(theta) | |
| 336 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 337 | finishInterp = SIN(t * theta) * invSinTheta | |
| 338 | else | |
| 339 | startInterp = t - 1 | |
| 340 | finishInterp = t | |
| 341 | end | |
| 342 | end | |
| 343 | 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 | |
| 344 | end | |
| 345 | ||
| 346 | function Clerp(a, b, t) | |
| 347 | local qa = {QuaternionFromCFrame(a)}
| |
| 348 | local qb = {QuaternionFromCFrame(b)}
| |
| 349 | local ax, ay, az = a.x, a.y, a.z | |
| 350 | local bx, by, bz = b.x, b.y, b.z | |
| 351 | local _t = 1 - t | |
| 352 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 353 | end | |
| 354 | ||
| 355 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 356 | local frame = IT("Frame")
| |
| 357 | frame.BackgroundTransparency = TRANSPARENCY | |
| 358 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 359 | frame.Position = POSITION | |
| 360 | frame.Size = SIZE | |
| 361 | frame.BackgroundColor3 = COLOR | |
| 362 | frame.BorderColor3 = BORDERCOLOR | |
| 363 | frame.Name = NAME | |
| 364 | frame.Parent = PARENT | |
| 365 | return frame | |
| 366 | end | |
| 367 | ||
| 368 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 369 | local label = IT("TextLabel")
| |
| 370 | label.BackgroundTransparency = 1 | |
| 371 | label.Size = UD2(1, 0, 1, 0) | |
| 372 | label.Position = UD2(0, 0, 0, 0) | |
| 373 | label.TextColor3 = TEXTCOLOR | |
| 374 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 375 | label.TextTransparency = TRANSPARENCY | |
| 376 | label.FontSize = TEXTFONTSIZE | |
| 377 | label.Font = TEXTFONT | |
| 378 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 379 | label.TextScaled = false | |
| 380 | label.Text = TEXT | |
| 381 | label.Name = NAME | |
| 382 | label.Parent = PARENT | |
| 383 | return label | |
| 384 | end | |
| 385 | ||
| 386 | function NoOutlines(PART) | |
| 387 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 388 | end | |
| 389 | ||
| 390 | ||
| 391 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 392 | local NEWWELD = IT(TYPE) | |
| 393 | NEWWELD.Part0 = PART0 | |
| 394 | NEWWELD.Part1 = PART1 | |
| 395 | NEWWELD.C0 = C0 | |
| 396 | NEWWELD.C1 = C1 | |
| 397 | NEWWELD.Parent = PARENT | |
| 398 | return NEWWELD | |
| 399 | end | |
| 400 | ||
| 401 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
| 402 | local NEWSOUND = nil | |
| 403 | coroutine.resume(coroutine.create(function() | |
| 404 | NEWSOUND = IT("Sound", PARENT)
| |
| 405 | NEWSOUND.Volume = VOLUME | |
| 406 | NEWSOUND.Pitch = PITCH | |
| 407 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 408 | Swait() | |
| 409 | NEWSOUND:play() | |
| 410 | game:GetService("Debris"):AddItem(NEWSOUND, 10)
| |
| 411 | end)) | |
| 412 | return NEWSOUND | |
| 413 | end | |
| 414 | ||
| 415 | function CFrameFromTopBack(at, top, back) | |
| 416 | local right = top:Cross(back) | |
| 417 | 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) | |
| 418 | end | |
| 419 | ||
| 420 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 421 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 422 | local mesh = IT("SpecialMesh",wave)
| |
| 423 | mesh.MeshType = "FileMesh" | |
| 424 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 425 | mesh.Scale = SIZE | |
| 426 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
| 427 | wave.CFrame = CFRAME | |
| 428 | coroutine.resume(coroutine.create(function(PART) | |
| 429 | for i = 1, WAIT do | |
| 430 | Swait() | |
| 431 | mesh.Scale = mesh.Scale + GROW | |
| 432 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 433 | if DOESROT == true then | |
| 434 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 435 | end | |
| 436 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 437 | if wave.Transparency > 0.99 then | |
| 438 | wave:remove() | |
| 439 | end | |
| 440 | end | |
| 441 | end)) | |
| 442 | end | |
| 443 | ||
| 444 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 445 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
| 446 | local mesh = IT("SpecialMesh",wave)
| |
| 447 | mesh.MeshType = "Sphere" | |
| 448 | mesh.Scale = SIZE | |
| 449 | mesh.Offset = VT(0,0,0) | |
| 450 | wave.CFrame = CFRAME | |
| 451 | coroutine.resume(coroutine.create(function(PART) | |
| 452 | for i = 1, WAIT do | |
| 453 | Swait() | |
| 454 | mesh.Scale = mesh.Scale + GROW | |
| 455 | wave.Transparency = wave.Transparency + (1/WAIT) | |
| 456 | if wave.Transparency > 0.99 then | |
| 457 | wave:remove() | |
| 458 | end | |
| 459 | end | |
| 460 | end)) | |
| 461 | end | |
| 462 | ||
| 463 | function MakeForm(PART,TYPE) | |
| 464 | if TYPE == "Cyl" then | |
| 465 | local MSH = IT("CylinderMesh",PART)
| |
| 466 | elseif TYPE == "Ball" then | |
| 467 | local MSH = IT("SpecialMesh",PART)
| |
| 468 | MSH.MeshType = "Sphere" | |
| 469 | elseif TYPE == "Wedge" then | |
| 470 | local MSH = IT("SpecialMesh",PART)
| |
| 471 | MSH.MeshType = "Wedge" | |
| 472 | elseif TYPE == "Cone" then | |
| 473 | local MSH = IT("SpecialMesh",PART)
| |
| 474 | MSH.MeshType = "FileMesh" | |
| 475 | MSH.MeshId = "http://www.roblox.com/asset/?id=785967755" | |
| 476 | MSH.Scale = PART.Size/50 | |
| 477 | end | |
| 478 | end | |
| 479 | ||
| 480 | function CheckTableForString(Table, String) | |
| 481 | for i, v in pairs(Table) do | |
| 482 | if string.find(string.lower(String), string.lower(v)) then | |
| 483 | return true | |
| 484 | end | |
| 485 | end | |
| 486 | return false | |
| 487 | end | |
| 488 | ||
| 489 | function CheckIntangible(Hit) | |
| 490 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
| |
| 491 | if Hit and Hit.Parent then | |
| 492 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
| |
| 493 | return true | |
| 494 | end | |
| 495 | end | |
| 496 | return false | |
| 497 | end | |
| 498 | ||
| 499 | Debris = game:GetService("Debris")
| |
| 500 | ||
| 501 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
| 502 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
| 503 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 504 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
| |
| 505 | if RayHit and CheckIntangible(RayHit) then | |
| 506 | if DelayIfHit then | |
| 507 | wait() | |
| 508 | end | |
| 509 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
| 510 | end | |
| 511 | return RayHit, RayPos, RayNormal | |
| 512 | end | |
| 513 | ||
| 514 | function turnto(position) | |
| 515 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 516 | end | |
| 517 | ||
| 518 | --//=================================\\ | |
| 519 | --|| SPEECH | |
| 520 | --\\=================================// | |
| 521 | ||
| 522 | function chatfunc(text,waitt) | |
| 523 | local chat = coroutine.wrap(function() | |
| 524 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 525 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 526 | end | |
| 527 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 528 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 529 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
| 530 | naeeym2.Adornee = Character.Head | |
| 531 | naeeym2.Name = "TalkingBillBoard" | |
| 532 | naeeym2.AlwaysOnTop = true | |
| 533 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 534 | tecks2.BackgroundTransparency = 1 | |
| 535 | tecks2.BorderSizePixel = 0 | |
| 536 | tecks2.Text = "" | |
| 537 | tecks2.Font = "SciFi" | |
| 538 | tecks2.TextSize = 30 | |
| 539 | tecks2.TextStrokeTransparency = 1 | |
| 540 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
| 541 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 542 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 543 | for i = 1,string.len(text),1 do | |
| 544 | tecks2.Text = string.sub(text,1,i) | |
| 545 | Swait() | |
| 546 | end | |
| 547 | wait(waitt) | |
| 548 | coroutine.resume(coroutine.create(function() | |
| 549 | for i = 1, 10 do | |
| 550 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
| 551 | Swait() | |
| 552 | end | |
| 553 | naeeym2:Destroy() | |
| 554 | end)) | |
| 555 | end) | |
| 556 | chat() | |
| 557 | end | |
| 558 | ||
| 559 | --//=================================\\ | |
| 560 | --|| WEAPON CREATION | |
| 561 | --\\=================================// | |
| 562 | ||
| 563 | - | local PART = CreatePart(3, Weapon, "Maroon", 0, 1, "Pearl", "ArmPart", VT(0,0,0),false) |
| 563 | + | local PART = CreatePart(3, Weapon, "DiamondPlate", 0, 1, "Pearl", "ArmPart", VT(0,0,0),false) |
| 564 | local ArmWeld = CreateWeldOrSnapOrMotor("Weld", PART, RightArm, PART, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 565 | - | local drill = CreatePart(3, Weapon, "Maroon", 0, 0, "Pearl", "Drill", VT(2.5,3,2.5),false) |
| 565 | + | local drill = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Pearl", "Drill", VT(2.5,3,2.5),false) |
| 566 | local weld = CreateWeldOrSnapOrMotor("Weld", drill, PART, drill, CF(0,-1.3,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 567 | MakeForm(drill,"Cone") | |
| 568 | drill.CanCollide = true | |
| 569 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill", VT(2.35,0.5,2.35),false) |
| 569 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill", VT(2.35,0.5,2.35),false) |
| 570 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(0,-0.3,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 571 | MakeForm(part,"Cone") | |
| 572 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill", VT(1.95,0.5,1.95),false) |
| 572 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill", VT(1.95,0.5,1.95),false) |
| 573 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(0,-0.8,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 574 | MakeForm(part,"Cone") | |
| 575 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill", VT(1.55,0.5,1.55),false) |
| 575 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill", VT(1.55,0.5,1.55),false) |
| 576 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(0,-1.3,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 577 | MakeForm(part,"Cone") | |
| 578 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill", VT(2,0.5,2),false) |
| 578 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill", VT(2,0.5,2),false) |
| 579 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(0,0.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 580 | MakeForm(part,"Ball") | |
| 581 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill1", VT(0.25,1.5,0.25),false) |
| 581 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill1", VT(0.25,1.5,0.25),false) |
| 582 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(0,-1.3,-0.5) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 583 | MakeForm(part,"Cone") | |
| 584 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill2", VT(0.25,1.5,0.25),false) |
| 584 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill2", VT(0.25,1.5,0.25),false) |
| 585 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(0,-1.3,0.5) * ANGLES(RAD(-90), RAD(0), RAD(-180)), CF(0, 0, 0))
| |
| 586 | MakeForm(part,"Cone") | |
| 587 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill3", VT(0.25,1.5,0.25),false) |
| 587 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill3", VT(0.25,1.5,0.25),false) |
| 588 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(-0.5,-1.3,0) * ANGLES(RAD(90), RAD(0), RAD(90)), CF(0, 0, 0))
| |
| 589 | MakeForm(part,"Cone") | |
| 590 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill4", VT(0.25,1.5,0.25),false) |
| 590 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill4", VT(0.25,1.5,0.25),false) |
| 591 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(0.5,-1.3,0) * ANGLES(RAD(90), RAD(0), RAD(-90)), CF(0, 0, 0))
| |
| 592 | MakeForm(part,"Cone") | |
| 593 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill1", VT(0.25,1.5,0.25),false) |
| 593 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill1", VT(0.25,1.5,0.25),false) |
| 594 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(-0.3,-1.7,-0.3) * ANGLES(RAD(-90), RAD(0), RAD(45)), CF(0, 0, 0))
| |
| 595 | MakeForm(part,"Cone") | |
| 596 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill2", VT(0.25,1.5,0.25),false) |
| 596 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill2", VT(0.25,1.5,0.25),false) |
| 597 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(0.3,-1.7,-0.3) * ANGLES(RAD(-90), RAD(0), RAD(-45)), CF(0, 0, 0))
| |
| 598 | MakeForm(part,"Cone") | |
| 599 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill3", VT(0.25,1.5,0.25),false) |
| 599 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill3", VT(0.25,1.5,0.25),false) |
| 600 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(-0.3,-1.7,0.3) * ANGLES(RAD(90), RAD(0), RAD(45)), CF(0, 0, 0))
| |
| 601 | MakeForm(part,"Cone") | |
| 602 | - | local part = CreatePart(3, Weapon, "Maroon", 0, 0, "Really black", "Drill4", VT(0.25,1.5,0.25),false) |
| 602 | + | local part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really black", "Drill4", VT(0.25,1.5,0.25),false) |
| 603 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART, part, CF(0.3,-1.7,0.3) * ANGLES(RAD(90), RAD(0), RAD(-45)), CF(0, 0, 0))
| |
| 604 | MakeForm(part,"Cone") | |
| 605 | ||
| 606 | for _, c in pairs(Weapon:GetChildren()) do | |
| 607 | if c.ClassName == "Part" then | |
| 608 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 609 | end | |
| 610 | end | |
| 611 | ||
| 612 | Weapon.Parent = Character | |
| 613 | ||
| 614 | Humanoid.Died:connect(function() | |
| 615 | ATTACK = true | |
| 616 | end) | |
| 617 | ||
| 618 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 619 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 620 | ||
| 621 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Useless", C3(1,1,1), 7, "SciFi", 128, 0, 0, "Text 1") | |
| 622 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Lag", C3(1,1,1), 7, "SciFi", 128, 0, 0, "Text 2") | |
| 623 | ||
| 624 | --//=================================\\ | |
| 625 | --|| DAMAGE FUNCTIONS | |
| 626 | --\\=================================// | |
| 627 | ||
| 628 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
| 629 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
| 630 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
| 631 | local BODYGYRO = IT("BodyGyro", STATPART)
| |
| 632 | local BODYPOSITION = IT("BodyPosition", STATPART)
| |
| 633 | BODYPOSITION.P = 2000 | |
| 634 | BODYPOSITION.D = 100 | |
| 635 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
| 636 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
| 637 | game:GetService("Debris"):AddItem(STATPART ,5)
| |
| 638 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
| |
| 639 | BILLBOARDGUI.Adornee = STATPART | |
| 640 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
| 641 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
| 642 | BILLBOARDGUI.AlwaysOnTop = false | |
| 643 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
| |
| 644 | TEXTLABEL.BackgroundTransparency = 1 | |
| 645 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
| 646 | TEXTLABEL.Text = TEXT | |
| 647 | TEXTLABEL.Font = "SciFi" | |
| 648 | TEXTLABEL.FontSize="Size42" | |
| 649 | TEXTLABEL.TextColor3 = COLOR | |
| 650 | TEXTLABEL.TextStrokeTransparency = 1 | |
| 651 | TEXTLABEL.TextScaled = true | |
| 652 | TEXTLABEL.TextWrapped = true | |
| 653 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
| 654 | if LABELTYPE == "Normal" then | |
| 655 | for i = 1, 30 do | |
| 656 | Swait() | |
| 657 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
| 658 | TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/30) | |
| 659 | end | |
| 660 | elseif LABELTYPE == "Debuff" then | |
| 661 | for i = 1, 30 do | |
| 662 | Swait() | |
| 663 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
| 664 | TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/30) | |
| 665 | end | |
| 666 | elseif LABELTYPE == "Shock" then | |
| 667 | local ORIGIN = STATPART.Position | |
| 668 | for i = 1, 30 do | |
| 669 | Swait() | |
| 670 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
| 671 | TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/30) | |
| 672 | end | |
| 673 | end | |
| 674 | THEPART.Parent = nil | |
| 675 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
| 676 | end | |
| 677 | ||
| 678 | --//=================================\\ | |
| 679 | --|| DAMAGING | |
| 680 | --\\=================================// | |
| 681 | ||
| 682 | local asd = Instance.new("ParticleEmitter")
| |
| 683 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
| 684 | asd.LightEmission = .1 | |
| 685 | asd.Size = NumberSequence.new(0.2) | |
| 686 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
| 687 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
| |
| 688 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 689 | asd.Transparency = bbb | |
| 690 | asd.Size = aaa | |
| 691 | asd.ZOffset = .9 | |
| 692 | asd.Acceleration = Vector3.new(0, -5, 0) | |
| 693 | asd.LockedToPart = false | |
| 694 | asd.EmissionDirection = "Back" | |
| 695 | asd.Lifetime = NumberRange.new(1, 2) | |
| 696 | asd.Rotation = NumberRange.new(-100, 100) | |
| 697 | asd.RotSpeed = NumberRange.new(-100, 100) | |
| 698 | asd.Speed = NumberRange.new(2) | |
| 699 | asd.Enabled = false | |
| 700 | asd.VelocitySpread = 10000 | |
| 701 | ||
| 702 | function getbloody(victim,amount) | |
| 703 | local prtcl = asd:Clone() | |
| 704 | prtcl.Parent = victim | |
| 705 | prtcl:Emit(amount) | |
| 706 | end | |
| 707 | ||
| 708 | function drillem(hit) | |
| 709 | local HITPLAYERSOUNDS2 = {"356551938","264486467"}
| |
| 710 | if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
| |
| 711 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 712 | if humanoid.Health > 0 then | |
| 713 | getbloody(hit,15) | |
| 714 | CreateSound(HITPLAYERSOUNDS2[MRANDOM(1, #HITPLAYERSOUNDS2)], hit, 3, (math.random(8,12)/10)) | |
| 715 | CreateSound(HITPLAYERSOUNDS2[MRANDOM(1, #HITPLAYERSOUNDS2)], hit, 3, (math.random(8,12)/10)) | |
| 716 | hit.Parent:BreakJoints() | |
| 717 | end | |
| 718 | end | |
| 719 | end | |
| 720 | ||
| 721 | --//=================================\\ | |
| 722 | --|| ATTACK FUNCTIONS AND STUFF | |
| 723 | --\\=================================// | |
| 724 | ||
| 725 | function CreateLoopSound() | |
| 726 | local SOUND = IT("Sound",RightArm)
| |
| 727 | SOUND.SoundId = "rbxassetid://199754867" | |
| 728 | SOUND.Looped = true | |
| 729 | SOUND.PlaybackSpeed = 2 | |
| 730 | SOUND.Volume = 2 | |
| 731 | SOUND:Play() | |
| 732 | return SOUND | |
| 733 | end | |
| 734 | ||
| 735 | function Strike() | |
| 736 | ATTACK = true | |
| 737 | Rooted = false | |
| 738 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 739 | Swait() | |
| 740 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
| 741 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
| 742 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 743 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 744 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 745 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 746 | end | |
| 747 | local HIT = drill.Touched:Connect(function(hit) | |
| 748 | drillem(hit) | |
| 749 | end) | |
| 750 | CreateSound("536642316", drill, 3, (math.random(8,12)/10))
| |
| 751 | for i=0, 1, 0.1 / Animation_Speed do | |
| 752 | Swait() | |
| 753 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.03) | |
| 754 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(5), RAD(45)), 0.5 / Animation_Speed) | |
| 755 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-5), RAD(-45)), 0.5 / Animation_Speed) | |
| 756 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 757 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 758 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 759 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 760 | ArmWeld.C0 = Clerp(ArmWeld.C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i*100), RAD(0)), 0.5 / Animation_Speed) | |
| 761 | end | |
| 762 | HIT:disconnect() | |
| 763 | ATTACK = false | |
| 764 | Rooted = false | |
| 765 | end | |
| 766 | ||
| 767 | function DrillRun() | |
| 768 | ATTACK = true | |
| 769 | Rooted = true | |
| 770 | for i=0, 2, 0.1 / Animation_Speed do | |
| 771 | Swait() | |
| 772 | turnto(Mouse.Hit.p) | |
| 773 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.15 / Animation_Speed) | |
| 774 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(75)), 0.10 / Animation_Speed) | |
| 775 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(154), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 776 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 777 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-35), RAD(0)), 0.15 / Animation_Speed) | |
| 778 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.5, -1 - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(75), RAD(0)), 0.15 / Animation_Speed) | |
| 779 | end | |
| 780 | local HIT = drill.Touched:Connect(function(hit) | |
| 781 | drillem(hit) | |
| 782 | end) | |
| 783 | CreateSound("536642316", drill, 3, (math.random(12,16)/10))
| |
| 784 | local LOOP = CreateLoopSound() | |
| 785 | for i=0, 2, 0.1 / Animation_Speed do | |
| 786 | Swait() | |
| 787 | MagicSphere(VT(1,1,1),10,PART.CFrame,"Cyan",VT(-0.1,-0.1,-0.1)) | |
| 788 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-2) | |
| 789 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(5), RAD(90)), 0.5 / Animation_Speed) | |
| 790 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(-5), RAD(-85)), 0.5 / Animation_Speed) | |
| 791 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.64) * ANGLES(RAD(115), RAD(35), RAD(70)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 792 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 793 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 794 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 795 | ArmWeld.C0 = Clerp(ArmWeld.C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i*500), RAD(0)), 0.5 / Animation_Speed) | |
| 796 | end | |
| 797 | HIT:disconnect() | |
| 798 | LOOP:remove() | |
| 799 | ATTACK = false | |
| 800 | Rooted = false | |
| 801 | end | |
| 802 | ||
| 803 | function EnergyDrills() | |
| 804 | ATTACK = true | |
| 805 | Rooted = true | |
| 806 | UNANCHOR = false | |
| 807 | RootPart.Anchored = true | |
| 808 | for i=0, 5, 0.1 / Animation_Speed do | |
| 809 | Swait() | |
| 810 | turnto(Mouse.Hit.p) | |
| 811 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.1 / Animation_Speed) | |
| 812 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(40)), 0.1 / Animation_Speed) | |
| 813 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -1) * ANGLES(RAD(35), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
| 814 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
| 815 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.1 / Animation_Speed) | |
| 816 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.1 / Animation_Speed) | |
| 817 | --ArmWeld.C0 = Clerp(ArmWeld.C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i*500), RAD(0)), 0.5 / Animation_Speed) | |
| 818 | end | |
| 819 | CreateSound("536642316", drill, 3, (math.random(12,16)/10))
| |
| 820 | local LOOP = CreateLoopSound() | |
| 821 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 822 | Swait() | |
| 823 | MagicSphere(VT(1,1,1),10,drill.CFrame*CF(0,1,0),"Cyan",VT(0.3,0.3,0.3)) | |
| 824 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(45)), 1 / Animation_Speed) | |
| 825 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
| 826 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2, 0, -0.3) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 827 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 828 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 829 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 1 / Animation_Speed) | |
| 830 | ArmWeld.C0 = Clerp(ArmWeld.C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i*5000), RAD(0)), 0.5 / Animation_Speed) | |
| 831 | end | |
| 832 | local ANGLE = 25 | |
| 833 | coroutine.resume(coroutine.create(function() | |
| 834 | for i = 1, 3 do | |
| 835 | local FRAME = RootPart.CFrame*ANGLES(RAD(0),RAD(ANGLE),RAD(0)) | |
| 836 | ANGLE = ANGLE - 25 | |
| 837 | coroutine.resume(coroutine.create(function() | |
| 838 | for i = 1, 15 do | |
| 839 | Swait(5) | |
| 840 | coroutine.resume(coroutine.create(function() | |
| 841 | local DRILL = IT("Model",Effects)
| |
| 842 | local PART2 = CreatePart(3, DRILL, "SmoothPlastic", 0, 1, "Pearl", "PositionPart", VT(0,0,0),false) | |
| 843 | local drill2 = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill", VT(2.5,3,2.5),false) | |
| 844 | local weld = CreateWeldOrSnapOrMotor("Weld", drill2, PART2, drill2, CF(0,-1.3,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 845 | MakeForm(drill2,"Cone") | |
| 846 | drill2.CanCollide = true | |
| 847 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill", VT(2.35,0.5,2.35),false) | |
| 848 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(0,-0.3,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 849 | MakeForm(part,"Cone") | |
| 850 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 05., "CYan", "Drill", VT(1.95,0.5,1.95),false) | |
| 851 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(0,-0.8,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 852 | MakeForm(part,"Cone") | |
| 853 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill", VT(1.55,0.5,1.55),false) | |
| 854 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(0,-1.3,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 855 | MakeForm(part,"Cone") | |
| 856 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill", VT(2,0.5,2),false) | |
| 857 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(0,0.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 858 | MakeForm(part,"Ball") | |
| 859 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill1", VT(0.25,1.5,0.25),false) | |
| 860 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(0,-1.3,-0.5) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 861 | MakeForm(part,"Cone") | |
| 862 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill2", VT(0.25,1.5,0.25),false) | |
| 863 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(0,-1.3,0.5) * ANGLES(RAD(-90), RAD(0), RAD(-180)), CF(0, 0, 0))
| |
| 864 | MakeForm(part,"Cone") | |
| 865 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill3", VT(0.25,1.5,0.25),false) | |
| 866 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(-0.5,-1.3,0) * ANGLES(RAD(90), RAD(0), RAD(90)), CF(0, 0, 0))
| |
| 867 | MakeForm(part,"Cone") | |
| 868 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill4", VT(0.25,1.5,0.25),false) | |
| 869 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(0.5,-1.3,0) * ANGLES(RAD(90), RAD(0), RAD(-90)), CF(0, 0, 0))
| |
| 870 | MakeForm(part,"Cone") | |
| 871 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill1", VT(0.25,1.5,0.25),false) | |
| 872 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(-0.3,-1.7,-0.3) * ANGLES(RAD(-90), RAD(0), RAD(45)), CF(0, 0, 0))
| |
| 873 | MakeForm(part,"Cone") | |
| 874 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill2", VT(0.25,1.5,0.25),false) | |
| 875 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(0.3,-1.7,-0.3) * ANGLES(RAD(-90), RAD(0), RAD(-45)), CF(0, 0, 0))
| |
| 876 | MakeForm(part,"Cone") | |
| 877 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill3", VT(0.25,1.5,0.25),false) | |
| 878 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(-0.3,-1.7,0.3) * ANGLES(RAD(90), RAD(0), RAD(45)), CF(0, 0, 0))
| |
| 879 | MakeForm(part,"Cone") | |
| 880 | local part = CreatePart(3, DRILL, "SmoothPlastic", 0, 0.5, "Cyan", "Drill4", VT(0.25,1.5,0.25),false) | |
| 881 | local weld = CreateWeldOrSnapOrMotor("Weld", part, PART2, part, CF(0.3,-1.7,0.3) * ANGLES(RAD(90), RAD(0), RAD(-45)), CF(0, 0, 0))
| |
| 882 | MakeForm(part,"Cone") | |
| 883 | PART2.CFrame = FRAME*CF(0,0,-2-(i*2))*ANGLES(RAD(0),RAD(0),RAD(0)) | |
| 884 | PART2.Anchored = true | |
| 885 | local HIT = drill2.Touched:Connect(function(hit) | |
| 886 | drillem(hit) | |
| 887 | end) | |
| 888 | MagicSphere(VT(1,1,1),10,drill2.CFrame,"Cyan",VT(0.6,0.6,0.6)) | |
| 889 | coroutine.resume(coroutine.create(function() | |
| 890 | for i = 1, 100 do | |
| 891 | Swait() | |
| 892 | PART2.CFrame = PART2.CFrame *ANGLES(RAD(0),RAD(5),RAD(0)) | |
| 893 | end | |
| 894 | MagicSphere(VT(1,1,1),15,drill2.CFrame,"Cyan",VT(0.6,0.6,0.6)) | |
| 895 | DRILL:remove() | |
| 896 | end)) | |
| 897 | end)) | |
| 898 | end | |
| 899 | end)) | |
| 900 | end | |
| 901 | end)) | |
| 902 | for i=0, 3, 0.1 / Animation_Speed do | |
| 903 | Swait() | |
| 904 | MagicSphere(VT(1,1,1),10,drill.CFrame*CF(0,1,0),"Cyan",VT(0.3,0.3,0.3)) | |
| 905 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(45)), 1 / Animation_Speed) | |
| 906 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
| 907 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2, 0, -0.3) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 908 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 909 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 910 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 1 / Animation_Speed) | |
| 911 | ArmWeld.C0 = Clerp(ArmWeld.C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i*5000), RAD(0)), 0.5 / Animation_Speed) | |
| 912 | end | |
| 913 | for i=0, 1, 0.1 / Animation_Speed do | |
| 914 | Swait() | |
| 915 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 1 / Animation_Speed) | |
| 916 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 917 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2, 2, -0.3) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 918 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 919 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 920 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 1 / Animation_Speed) | |
| 921 | ArmWeld.C0 = Clerp(ArmWeld.C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i*100), RAD(0)), 0.5 / Animation_Speed) | |
| 922 | end | |
| 923 | LOOP:remove() | |
| 924 | UNANCHOR = true | |
| 925 | ATTACK = false | |
| 926 | Rooted = false | |
| 927 | end | |
| 928 | ||
| 929 | function Taunt() | |
| 930 | ATTACK = true | |
| 931 | Rooted = false | |
| 932 | local LOOP = CreateLoopSound() | |
| 933 | for i=0, 5, 0.1 / Animation_Speed do | |
| 934 | Swait() | |
| 935 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
| 936 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-40)), 0.5 / Animation_Speed) | |
| 937 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, -1) * ANGLES(RAD(170), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 938 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 939 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.5 / Animation_Speed) | |
| 940 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.5 / Animation_Speed) | |
| 941 | ArmWeld.C0 = Clerp(ArmWeld.C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i*500), RAD(0)), 0.5 / Animation_Speed) | |
| 942 | end | |
| 943 | LOOP:remove() | |
| 944 | ATTACK = false | |
| 945 | Rooted = false | |
| 946 | end | |
| 947 | ||
| 948 | --//=================================\\ | |
| 949 | --|| ASSIGN THINGS TO KEYS | |
| 950 | --\\=================================// | |
| 951 | ||
| 952 | function MouseDown(Mouse) | |
| 953 | if ATTACK == false then | |
| 954 | Strike() | |
| 955 | end | |
| 956 | end | |
| 957 | ||
| 958 | function MouseUp(Mouse) | |
| 959 | HOLD = false | |
| 960 | end | |
| 961 | ||
| 962 | function KeyDown(Key) | |
| 963 | KEYHOLD = true | |
| 964 | if Key == "z" and ATTACK == false then | |
| 965 | DrillRun() | |
| 966 | end | |
| 967 | ||
| 968 | if Key == "b" and ATTACK == false then | |
| 969 | EnergyDrills() | |
| 970 | end | |
| 971 | ||
| 972 | if Key == "t" and ATTACK == false then | |
| 973 | Taunt() | |
| 974 | end | |
| 975 | end | |
| 976 | ||
| 977 | function KeyUp(Key) | |
| 978 | KEYHOLD = false | |
| 979 | end | |
| 980 | ||
| 981 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 982 | MouseDown(NEWKEY) | |
| 983 | end) | |
| 984 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 985 | MouseUp(NEWKEY) | |
| 986 | end) | |
| 987 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 988 | KeyDown(NEWKEY) | |
| 989 | end) | |
| 990 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 991 | KeyUp(NEWKEY) | |
| 992 | end) | |
| 993 | ||
| 994 | --//=================================\\ | |
| 995 | --\\=================================// | |
| 996 | ||
| 997 | ||
| 998 | function unanchor() | |
| 999 | if UNANCHOR == true then | |
| 1000 | g = Character:GetChildren() | |
| 1001 | for i = 1, #g do | |
| 1002 | if g[i].ClassName == "Part" then | |
| 1003 | g[i].Anchored = false | |
| 1004 | end | |
| 1005 | end | |
| 1006 | end | |
| 1007 | end | |
| 1008 | ||
| 1009 | ||
| 1010 | --//=================================\\ | |
| 1011 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1012 | --\\=================================// | |
| 1013 | ||
| 1014 | Humanoid.Changed:connect(function(Jump) | |
| 1015 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1016 | Humanoid.Jump = false | |
| 1017 | end | |
| 1018 | end) | |
| 1019 | ||
| 1020 | while true do | |
| 1021 | Swait() | |
| 1022 | ANIMATE.Parent = nil | |
| 1023 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
| 1024 | IDLEANIMATION:Play() | |
| 1025 | SINE = SINE + CHANGE | |
| 1026 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1027 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1028 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
| 1029 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
| 1030 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 1031 | if ATTACK == false then | |
| 1032 | ArmWeld.C0 = Clerp(ArmWeld.C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1033 | end | |
| 1034 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 1035 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1036 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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) | |
| 1037 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1038 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1039 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 1040 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1041 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1042 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1043 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1044 | end | |
| 1045 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 1046 | ANIM = "Jump" | |
| 1047 | if ATTACK == false then | |
| 1048 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1049 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1050 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, -0.3) * ANGLES(RAD(110), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1051 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1052 | 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) | |
| 1053 | 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) | |
| 1054 | end | |
| 1055 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 1056 | ANIM = "Fall" | |
| 1057 | if ATTACK == false then | |
| 1058 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1059 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1060 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, -0.3) * ANGLES(RAD(110), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1061 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1062 | 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) | |
| 1063 | 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) | |
| 1064 | end | |
| 1065 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 1066 | ANIM = "Idle" | |
| 1067 | if ATTACK == false then | |
| 1068 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
| 1069 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(40)), 0.15 / Animation_Speed) | |
| 1070 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, -0.3) * ANGLES(RAD(110), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1071 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1072 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
| 1073 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
| 1074 | end | |
| 1075 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 1076 | ANIM = "Walk" | |
| 1077 | WALK = WALK + 1 / Animation_Speed | |
| 1078 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
| 1079 | WALK = 0 | |
| 1080 | if WALKINGANIM == true then | |
| 1081 | WALKINGANIM = false | |
| 1082 | elseif WALKINGANIM == false then | |
| 1083 | WALKINGANIM = true | |
| 1084 | end | |
| 1085 | end | |
| 1086 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1087 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1088 | if ATTACK == false then | |
| 1089 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
| 1090 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(20)), 0.15 / Animation_Speed) | |
| 1091 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, -0.3) * ANGLES(RAD(110), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1092 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1093 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
| 1094 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
| 1095 | end | |
| 1096 | end | |
| 1097 | unanchor() | |
| 1098 | Humanoid.MaxHealth = "inf" | |
| 1099 | Humanoid.Health = "inf" | |
| 1100 | if Rooted == false then | |
| 1101 | Disable_Jump = false | |
| 1102 | Humanoid.WalkSpeed = Speed | |
| 1103 | elseif Rooted == true then | |
| 1104 | Disable_Jump = true | |
| 1105 | Humanoid.WalkSpeed = 0 | |
| 1106 | end | |
| 1107 | end | |
| 1108 | ||
| 1109 | --//=================================\\ | |
| 1110 | --\\=================================// | |
| 1111 | ||
| 1112 | ||
| 1113 | ||
| 1114 | ||
| 1115 | ||
| 1116 | --//====================================================\\-- | |
| 1117 | --|| END OF SCRIPT | |
| 1118 | --\\====================================================//-- |