SHOW:
|
|
- or go back to the newest paste.
| 1 | plr = game.Players.LocalPlayer | |
| 2 | local s = Instance.new("Sound",plr.Character)
| |
| 3 | ||
| 4 | s.Name = "Sound" | |
| 5 | - | s.SoundId = "http://www.roblox.com/asset/?id=358815168" |
| 5 | + | s.SoundId = "http://www.roblox.com/asset/?id=321065151" |
| 6 | s.Volume = 50 | |
| 7 | s.Looped = true | |
| 8 | s.archivable = false | |
| 9 | ||
| 10 | s.Parent = game.Workspace | |
| 11 | ||
| 12 | wait(1) | |
| 13 | ||
| 14 | s:play() | |
| 15 | ||
| 16 | wait(0.016666666666667) | |
| 17 | Anim = nil | |
| 18 | cf = CFrame.new | |
| 19 | function c3(cz, cx, cc) | |
| 20 | return Color3.new(cz / 255, cx / 255, cc / 255) | |
| 21 | end | |
| 22 | angles = CFrame.Angles | |
| 23 | Player = game.Players.LocalPlayer | |
| 24 | Character = Player.Character | |
| 25 | Humanoid = Character.Humanoid | |
| 26 | mouse = Player:GetMouse() | |
| 27 | local LeftArm = Character["Left Arm"] | |
| 28 | RightArm = Character["Right Arm"] | |
| 29 | LeftLeg = Character["Left Leg"] | |
| 30 | RightLeg = Character["Right Leg"] | |
| 31 | Head = Character.Head | |
| 32 | Torso = Character.Torso | |
| 33 | RootPart = Character.HumanoidRootPart | |
| 34 | RootJoint = RootPart.RootJoint | |
| 35 | Humanoid.Animator:Destroy() | |
| 36 | Character:WaitForChild("Animate"):Destroy()
| |
| 37 | NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 38 | RootCF = angles(-1.57, 0, 3.14) | |
| 39 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 40 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 41 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 42 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 43 | RW = Instance.new("Weld")
| |
| 44 | LW = Instance.new("Weld")
| |
| 45 | RH = Torso["Right Hip"] | |
| 46 | LH = Torso["Left Hip"] | |
| 47 | Neck = Torso.Neck | |
| 48 | RSH = Torso["Right Shoulder"] | |
| 49 | LSH = Torso["Left Shoulder"] | |
| 50 | RSH.Parent = nil | |
| 51 | LSH.Parent = nil | |
| 52 | RW.Name = "Right Shoulder" | |
| 53 | RW.Part0 = Torso | |
| 54 | RW.C0 = cf(1.5, 0.5, 0) | |
| 55 | RW.C1 = cf(0, 0.5, 0) | |
| 56 | RW.Part1 = RightArm | |
| 57 | RW.Parent = Torso | |
| 58 | LW.Name = "Left Shoulder" | |
| 59 | LW.Part0 = Torso | |
| 60 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 61 | LW.C1 = cf(0, 0.5, 0) | |
| 62 | LW.Part1 = LeftArm | |
| 63 | LW.Parent = Torso | |
| 64 | Effects = Instance.new("Folder", Character)
| |
| 65 | Effects.Name = "Effects" | |
| 66 | Humanoid.WalkSpeed = 35 | |
| 67 | partEffects, AttackHas, AttackNeeded, AttackCan = {}, {}, {}, {}
| |
| 68 | AttackHas[1], AttackHas[2], AttackHas[3], AttackHas[4] = 1, 1, 1, 1 | |
| 69 | AttackNeeded[1], AttackNeeded[2], AttackNeeded[3], AttackNeeded[4] = 1, 1, 1, 1 | |
| 70 | AttackCan[1], AttackCan[2], AttackCan[3], AttackCan[4] = true, true, true, true | |
| 71 | sine = 0 | |
| 72 | attackcounter = 1 | |
| 73 | energyslashcounter = 1 | |
| 74 | torvel = nil | |
| 75 | attacking = false | |
| 76 | hitfloor, posfloor = nil, nil | |
| 77 | tool = nil | |
| 78 | if script.Parent.ClassName == "HopperBin" then | |
| 79 | tool = script.Parent | |
| 80 | tool.Parent = Player.Backpack | |
| 81 | else | |
| 82 | tool = Instance.new("HopperBin", Player.Backpack)
| |
| 83 | tool.Name = "Error Knife" | |
| 84 | end | |
| 85 | hitbox = Instance.new("Part")
| |
| 86 | hitbox.BrickColor = BrickColor.Black() | |
| 87 | hitbox.Transparency = 1 | |
| 88 | hitbox.CanCollide = false | |
| 89 | hitbox.Anchored = false | |
| 90 | hitbox.Size = Vector3.new(3, 3, 4) | |
| 91 | meshes = {
| |
| 92 | 3270017, | |
| 93 | 20329976, | |
| 94 | 448386996, | |
| 95 | 1095708, | |
| 96 | 1033714, | |
| 97 | 9756362 | |
| 98 | } | |
| 99 | sounds = {
| |
| 100 | {
| |
| 101 | 320557413, | |
| 102 | 320557453, | |
| 103 | 320557487, | |
| 104 | 320557518, | |
| 105 | 320557537, | |
| 106 | 320557563, | |
| 107 | 233856146, | |
| 108 | 233856140, | |
| 109 | 923142611 | |
| 110 | }, | |
| 111 | {
| |
| 112 | 234365549, | |
| 113 | 234365573, | |
| 114 | 231917961, | |
| 115 | 231917950, | |
| 116 | 231917856, | |
| 117 | 231917863, | |
| 118 | 231917871 | |
| 119 | }, | |
| 120 | {
| |
| 121 | 262562442, | |
| 122 | 231917806, | |
| 123 | 231917784 | |
| 124 | }, | |
| 125 | {
| |
| 126 | 262562442, | |
| 127 | 233856048, | |
| 128 | 306247739 | |
| 129 | } | |
| 130 | } | |
| 131 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 132 | ArtificialHB.Name = "Heartbeat" | |
| 133 | script:WaitForChild("Heartbeat")
| |
| 134 | frame = 0.025 | |
| 135 | tf = 0 | |
| 136 | allowframeloss = true | |
| 137 | tossremainder = false | |
| 138 | lastframe = tick() | |
| 139 | script.Heartbeat:Fire() | |
| 140 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 141 | tf = tf + s | |
| 142 | if tf >= frame then | |
| 143 | if allowframeloss then | |
| 144 | script.Heartbeat:Fire() | |
| 145 | lastframe = tick() | |
| 146 | else | |
| 147 | for i = 1, math.floor(tf / frame) do | |
| 148 | script.Heartbeat:Fire() | |
| 149 | end | |
| 150 | lastframe = tick() | |
| 151 | end | |
| 152 | if tossremainder then | |
| 153 | tf = 0 | |
| 154 | else | |
| 155 | tf = tf - frame * math.floor(tf / frame) | |
| 156 | end | |
| 157 | end | |
| 158 | end) | |
| 159 | function swait(num) | |
| 160 | if num == 0 or num == nil then | |
| 161 | ArtificialHB.Event:wait() | |
| 162 | else | |
| 163 | for i = 0, num do | |
| 164 | ArtificialHB.Event:wait() | |
| 165 | end | |
| 166 | end | |
| 167 | end | |
| 168 | function thread(f) | |
| 169 | coroutine.resume(coroutine.create(f)) | |
| 170 | end | |
| 171 | function clerp(a, b, t) | |
| 172 | local qa = {
| |
| 173 | QuaternionFromCFrame(a) | |
| 174 | } | |
| 175 | local qb = {
| |
| 176 | QuaternionFromCFrame(b) | |
| 177 | } | |
| 178 | local ax, ay, az = a.x, a.y, a.z | |
| 179 | local bx, by, bz = b.x, b.y, b.z | |
| 180 | local _t = 1 - t | |
| 181 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 182 | end | |
| 183 | function QuaternionFromCFrame(cf) | |
| 184 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 185 | local trace = m00 + m11 + m22 | |
| 186 | if trace > 0 then | |
| 187 | local s = math.sqrt(1 + trace) | |
| 188 | local recip = 0.5 / s | |
| 189 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 190 | else | |
| 191 | local i = 0 | |
| 192 | if m00 < m11 then | |
| 193 | i = 1 | |
| 194 | end | |
| 195 | if m22 > (i == 0 and m00 or m11) then | |
| 196 | i = 2 | |
| 197 | end | |
| 198 | if i == 0 then | |
| 199 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 200 | local recip = 0.5 / s | |
| 201 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 202 | elseif i == 1 then | |
| 203 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 204 | local recip = 0.5 / s | |
| 205 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 206 | elseif i == 2 then | |
| 207 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 208 | local recip = 0.5 / s | |
| 209 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 210 | end | |
| 211 | end | |
| 212 | end | |
| 213 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 214 | local xs, ys, zs = x + x, y + y, z + z | |
| 215 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 216 | local xx = x * xs | |
| 217 | local xy = x * ys | |
| 218 | local xz = x * zs | |
| 219 | local yy = y * ys | |
| 220 | local yz = y * zs | |
| 221 | local zz = z * zs | |
| 222 | 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)) | |
| 223 | end | |
| 224 | function QuaternionSlerp(a, b, t) | |
| 225 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 226 | local startInterp, finishInterp | |
| 227 | if cosTheta >= 1.0E-4 then | |
| 228 | if 1 - cosTheta > 1.0E-4 then | |
| 229 | local theta = math.acos(cosTheta) | |
| 230 | local invSinTheta = 1 / math.sin(theta) | |
| 231 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 232 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 233 | else | |
| 234 | startInterp = 1 - t | |
| 235 | finishInterp = t | |
| 236 | end | |
| 237 | elseif 1 + cosTheta > 1.0E-4 then | |
| 238 | local theta = math.acos(-cosTheta) | |
| 239 | local invSinTheta = 1 / math.sin(theta) | |
| 240 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 241 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 242 | else | |
| 243 | startInterp = t - 1 | |
| 244 | finishInterp = t | |
| 245 | end | |
| 246 | 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 | |
| 247 | end | |
| 248 | function rayCast(Pos, Dir, Max, Ignore) | |
| 249 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 250 | end | |
| 251 | function newPart(par, brick, transp, anch, canc, size, name, mat, ref) | |
| 252 | local p = Instance.new("Part")
| |
| 253 | p.BrickColor = brick | |
| 254 | p.Transparency = transp | |
| 255 | p.Material = mat and mat or "SmoothPlastic" | |
| 256 | p.Reflectance = ref and ref or 0 | |
| 257 | p.Anchored = anch | |
| 258 | p.CanCollide = canc | |
| 259 | p.Size = size | |
| 260 | p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 261 | p.Name = name | |
| 262 | p.CFrame = RootPart.CFrame | |
| 263 | p.Parent = par | |
| 264 | return p | |
| 265 | end | |
| 266 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
| 267 | local mesh = Instance.new(Mesh) | |
| 268 | mesh.Parent = part | |
| 269 | if Mesh == "SpecialMesh" then | |
| 270 | mesh.MeshType = meshtype | |
| 271 | if meshid then | |
| 272 | mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid | |
| 273 | end | |
| 274 | end | |
| 275 | if offset then | |
| 276 | mesh.Offset = offset | |
| 277 | end | |
| 278 | mesh.Scale = scale | |
| 279 | return mesh | |
| 280 | end | |
| 281 | function weld(parent, part0, part1, c0, c1) | |
| 282 | local weld = Instance.new("Weld")
| |
| 283 | weld.Parent = parent | |
| 284 | weld.Part0 = part0 | |
| 285 | weld.Part1 = part1 | |
| 286 | weld.C0 = c0 | |
| 287 | if c1 then | |
| 288 | weld.C1 = c1 | |
| 289 | end | |
| 290 | return weld | |
| 291 | end | |
| 292 | function randomangles(r) | |
| 293 | local random = math.rad((math.random() - 0.5) * 180) | |
| 294 | local randomangles = CFrame.Angles(random, random, random) | |
| 295 | if r and r == 0 then | |
| 296 | return angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 297 | elseif r and r == 1 then | |
| 298 | return math.rad((math.random() - 0.5) * 180) | |
| 299 | elseif r and r == 2 then | |
| 300 | return math.random(-50, 50) | |
| 301 | else | |
| 302 | return randomangles | |
| 303 | end | |
| 304 | end | |
| 305 | function round(num) | |
| 306 | local a, b = math.modf(num) | |
| 307 | if num % 1 ~= 0 then | |
| 308 | return math.floor(num) + math.floor(b * 10 + 0.5) / 10 | |
| 309 | else | |
| 310 | return math.floor(num) | |
| 311 | end | |
| 312 | end | |
| 313 | function sound(id, par, vol, dur, pit) | |
| 314 | coroutine.resume(coroutine.create(function() | |
| 315 | local sou = Instance.new("Sound", par or workspace)
| |
| 316 | sou.Volume = vol | |
| 317 | sou.Pitch = pit or 1 | |
| 318 | sou.SoundId = "http://www.roblox.com/asset/?id=" .. id | |
| 319 | swait() | |
| 320 | sou:play() | |
| 321 | wait(dur) | |
| 322 | sou:Destroy() | |
| 323 | end)) | |
| 324 | end | |
| 325 | function findCloseHumanoid(centre, distance) | |
| 326 | local tab = {}
| |
| 327 | for _, child in pairs(game.Workspace:GetChildren()) do | |
| 328 | if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
| |
| 329 | local vtors = child.Torso | |
| 330 | local mag = math.abs((vtors.Position - centre).magnitude) | |
| 331 | if distance >= mag then | |
| 332 | table.insert(tab, child.Humanoid) | |
| 333 | end | |
| 334 | end | |
| 335 | end | |
| 336 | return tab | |
| 337 | end | |
| 338 | function basicDamage(vhum, damage, colour) | |
| 339 | if not vhum or not vhum.Parent:findFirstChild("Humanoid") or vhum.Health <= 0 then
| |
| 340 | return | |
| 341 | end | |
| 342 | vhum.Health = vhum.health - damage | |
| 343 | local damagepart = Instance.new("Part", Effects)
| |
| 344 | damagepart.Transparency = 1 | |
| 345 | damagepart.Anchored = true | |
| 346 | damagepart.CanCollide = false | |
| 347 | damagepart.Size = Vector3.new(1, 1, 1) | |
| 348 | damagepart.Name = "DamagePart" | |
| 349 | damagepart.CFrame = vhum.Parent.Head.CFrame * CFrame.new(0, 1, 0) | |
| 350 | local g = Instance.new("BillboardGui", damagepart)
| |
| 351 | g.Enabled = true | |
| 352 | g.Adornee = damagepart | |
| 353 | g.Size = UDim2.new(5, 0, 5, 0) | |
| 354 | g.ExtentsOffset = Vector3.new(0, 0, 0) | |
| 355 | g.StudsOffset = Vector3.new(0, 0, 0) | |
| 356 | local t = Instance.new("TextLabel", g)
| |
| 357 | t.BackgroundTransparency = 1 | |
| 358 | t.Font = "ArialBold" | |
| 359 | t.TextSize = 24 | |
| 360 | t.Text = "-" .. round(damage) | |
| 361 | if round(damage) % 100 == 0 then | |
| 362 | t.Text = "-" .. round(damage) .. ".0" | |
| 363 | end | |
| 364 | t.Size = UDim2.new(1, 0, 1, 0) | |
| 365 | t.TextStrokeTransparency = 0 | |
| 366 | t.TextTransparency = 0 | |
| 367 | t.TextScaled = true | |
| 368 | t.TextWrapped = true | |
| 369 | t.TextXAlignment = "Center" | |
| 370 | t.TextYAlignment = "Center" | |
| 371 | t.TextColor3 = colour | |
| 372 | coroutine.resume(coroutine.create(function() | |
| 373 | for i = 1, 50 do | |
| 374 | game:GetService("RunService").Heartbeat:wait()
| |
| 375 | local sinewave = math.sin(i / 500) * 4 | |
| 376 | damagepart.CFrame = damagepart.CFrame * CFrame.new(Vector3.new(0, 0.3 - sinewave, 0)) | |
| 377 | t.TextTransparency = t.TextTransparency + 0.02 | |
| 378 | t.TextStrokeTransparency = t.TextTransparency + 0.02 | |
| 379 | end | |
| 380 | damagepart:Destroy() | |
| 381 | end), t) | |
| 382 | end | |
| 383 | function magic(type, thing) | |
| 384 | local magicBlock = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay, t) | |
| 385 | local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe) | |
| 386 | prt.CFrame = cframe | |
| 387 | local msh = mesh("BlockMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 388 | game:GetService("Debris"):AddItem(prt, 8)
| |
| 389 | if t == 1 or t == nil then | |
| 390 | table.insert(partEffects, {
| |
| 391 | prt, | |
| 392 | "Block1", | |
| 393 | delay, | |
| 394 | x3, | |
| 395 | y3, | |
| 396 | z3, | |
| 397 | msh | |
| 398 | }) | |
| 399 | elseif t == 2 then | |
| 400 | table.insert(partEffects, {
| |
| 401 | prt, | |
| 402 | "Block2", | |
| 403 | delay, | |
| 404 | x3, | |
| 405 | y3, | |
| 406 | z3, | |
| 407 | msh | |
| 408 | }) | |
| 409 | end | |
| 410 | end | |
| 411 | local magicCylinder = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 412 | local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe) | |
| 413 | local msh = mesh("CylinderMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 414 | game:GetService("Debris"):AddItem(prt, 8)
| |
| 415 | table.insert(partEffects, {
| |
| 416 | prt, | |
| 417 | "Cylinder", | |
| 418 | delay, | |
| 419 | x3, | |
| 420 | y3, | |
| 421 | z3, | |
| 422 | msh | |
| 423 | }) | |
| 424 | end | |
| 425 | local magicSphere = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 426 | local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe) | |
| 427 | local msh = mesh("SpecialMesh", prt, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 428 | game:GetService("Debris"):AddItem(prt, 8)
| |
| 429 | table.insert(partEffects, {
| |
| 430 | prt, | |
| 431 | "Cylinder", | |
| 432 | delay, | |
| 433 | x3, | |
| 434 | y3, | |
| 435 | z3, | |
| 436 | msh | |
| 437 | }) | |
| 438 | end | |
| 439 | local magicRing = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 440 | local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe) | |
| 441 | prt.Anchored = true | |
| 442 | prt.CFrame = cframe | |
| 443 | local msh = mesh("SpecialMesh", prt, "FileMesh", 3270017, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 444 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 445 | coroutine.resume(coroutine.create(function(Part, Mesh, num) | |
| 446 | for i = 0, 1, delay do | |
| 447 | swait() | |
| 448 | Part.Transparency = i | |
| 449 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
| 450 | end | |
| 451 | Part:Destroy() | |
| 452 | end), prt, msh, (math.random(0, 1) + math.random()) / 5) | |
| 453 | end | |
| 454 | local magicSlash = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 455 | local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", cframe) | |
| 456 | prt.Anchored = true | |
| 457 | prt.CFrame = cframe | |
| 458 | local msh = mesh("SpecialMesh", prt, "FileMesh", 20329976, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 459 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 460 | coroutine.resume(coroutine.create(function(Part, Mesh, num) | |
| 461 | for i = 0, 1, delay do | |
| 462 | swait() | |
| 463 | Part.Transparency = i | |
| 464 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
| 465 | end | |
| 466 | Part:Destroy() | |
| 467 | end), prt, msh, (math.random(0, 1) + math.random()) / 5) | |
| 468 | end | |
| 469 | local par = thing[1] | |
| 470 | local brick = thing[2] | |
| 471 | local cframe = thing[3] | |
| 472 | local x1 = thing[4] | |
| 473 | local y1 = thing[5] | |
| 474 | local z1 = thing[6] | |
| 475 | local x3 = thing[7] | |
| 476 | local y3 = thing[8] | |
| 477 | local z3 = thing[9] | |
| 478 | local delay = thing[10] | |
| 479 | local t = thing[11] | |
| 480 | if type == "Block" or type == 1 then | |
| 481 | magicBlock(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11]) | |
| 482 | elseif type == "Cylinder" or type == 2 then | |
| 483 | magicCylinder(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11]) | |
| 484 | elseif type == "Sphere" or type == 3 then | |
| 485 | magicSphere(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11]) | |
| 486 | elseif type == "Ring" or type == 4 then | |
| 487 | magicRing(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11]) | |
| 488 | elseif type == "Slash" or type == 5 then | |
| 489 | magicSlash(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11]) | |
| 490 | end | |
| 491 | end | |
| 492 | function newFrame(par, bg, transp, size, pos, name) | |
| 493 | local f = Instance.new("Frame", nil)
| |
| 494 | f.BackgroundColor3 = bg | |
| 495 | f.BackgroundTransparency = transp | |
| 496 | f.BorderSizePixel = 0 | |
| 497 | f.Position = pos | |
| 498 | f.Size = size | |
| 499 | f.Name = name | |
| 500 | f.Parent = par | |
| 501 | return f | |
| 502 | end | |
| 503 | function newLabel(par, size, pos, text, textsize, text3, textstroke3, scaled, name) | |
| 504 | local l = Instance.new("TextLabel", nil)
| |
| 505 | l.BackgroundTransparency = 1 | |
| 506 | l.Size = size | |
| 507 | l.Position = pos | |
| 508 | l.Text = text | |
| 509 | l.TextSize = textsize | |
| 510 | l.TextColor3 = text3 | |
| 511 | l.TextStrokeColor3 = textstroke3 | |
| 512 | if scaled then | |
| 513 | l.TextScaled = scaled | |
| 514 | else | |
| 515 | l.TextScaled = true | |
| 516 | end | |
| 517 | l.TextStrokeTransparency = 0 | |
| 518 | l.Name = name | |
| 519 | l.Parent = par | |
| 520 | return l | |
| 521 | end | |
| 522 | a1t = "Error Mad" | |
| 523 | a2t = "Error Power" | |
| 524 | a3t = "Error Hate" | |
| 525 | a4t = "Error Determination" | |
| 526 | backc3 = c3(107, 107, 107) | |
| 527 | reloc3 = c3(62, 62, 62) | |
| 528 | g = Instance.new("ScreenGui")
| |
| 529 | f1 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.85, 0), "") | |
| 530 | f2 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.76, 0), "") | |
| 531 | f3 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.67, 0), "") | |
| 532 | f4 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.58, 0), "") | |
| 533 | newFrame(f1, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload") | |
| 534 | newFrame(f2, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload") | |
| 535 | newFrame(f3, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload") | |
| 536 | newFrame(f4, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload") | |
| 537 | newLabel(f1, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(Z)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key") | |
| 538 | newLabel(f2, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(X)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key") | |
| 539 | newLabel(f3, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(C)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key") | |
| 540 | newLabel(f4, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(V)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key") | |
| 541 | newLabel(f1, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a1t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label") | |
| 542 | newLabel(f2, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a2t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label") | |
| 543 | newLabel(f3, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a3t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label") | |
| 544 | newLabel(f4, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a4t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label") | |
| 545 | g.Parent = Player.PlayerGui | |
| 546 | Reload = {}
| |
| 547 | Reload[1] = f1.Reload | |
| 548 | Reload[2] = f2.Reload | |
| 549 | Reload[3] = f3.Reload | |
| 550 | Reload[4] = f4.Reload | |
| 551 | weapon = Instance.new("Model", Character)
| |
| 552 | weapon.Name = "Bonnie Knife" | |
| 553 | p0 = newPart(weapon, BrickColor.new("Really red"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
| |
| 554 | mesh("BlockMesh", p0, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 2.39999986, 6.57500076))
| |
| 555 | p1 = newPart(weapon, BrickColor.new("Really blue"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
| |
| 556 | mesh("SpecialMesh", p1, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.425000012, 1.70000005))
| |
| 557 | p1 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p1")
| |
| 558 | mesh("SpecialMesh", p1, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.425000012, 1.70000005))
| |
| 559 | p2 = newPart(weapon, BrickColor.new("Really red"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
| |
| 560 | mesh("BlockMesh", p2, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.999999881, 3.02500105))
| |
| 561 | p2 = newPart(weapon, BrickColor.new("Really blue"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p2")
| |
| 562 | mesh("BlockMesh", p2, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.999999881, 3.02500105))
| |
| 563 | p3 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
| |
| 564 | mesh("BlockMesh", p3, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.974999905, 1.70000064))
| |
| 565 | p3 = newPart(weapon, BrickColor.new("Really red"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p3")
| |
| 566 | mesh("BlockMesh", p3, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.974999905, 1.70000064))
| |
| 567 | p4 = newPart(weapon, BrickColor.new("Really blue"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
| |
| 568 | mesh("SpecialMesh", p4, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 1.32500005))
| |
| 569 | p4 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p4")
| |
| 570 | mesh("SpecialMesh", p4, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 1.32500005))
| |
| 571 | p5 = newPart(weapon, BrickColor.new("Really red"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
| |
| 572 | mesh("SpecialMesh", p5, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 0.350000083))
| |
| 573 | p5 = newPart(weapon, BrickColor.new("Really blue"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p5")
| |
| 574 | mesh("SpecialMesh", p5, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 0.350000083))
| |
| 575 | p6 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Handle")
| |
| 576 | mesh("SpecialMesh", p6, Enum.MeshType.Cylinder, nil, Vector3.new(0, 0, 0), Vector3.new(5, 0.75, 0.800000012))
| |
| 577 | p6 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p6")
| |
| 578 | mesh("SpecialMesh", p6, Enum.MeshType.Cylinder, nil, Vector3.new(0, 0, 0), Vector3.new(5, 0.75, 0.800000012))
| |
| 579 | weld(p0, p0, p1, CFrame.new(-0.400014997, -2.90028477, 2.71900272, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.400014997, 2.68303514, 3.62925434, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
| 580 | weld(p1, p1, p2, CFrame.new(0.400014997, 2.68303514, 3.62925434, -1, 0, 0, 0, -1, 0, 0, 0, 1), CFrame.new(-0.400014997, -3.05428457, 3.77500391, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 581 | weld(p2, p2, p3, CFrame.new(-0.400014997, -3.05428457, 3.77500391, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.400014997, -2.83703494, 3.62925434, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 582 | weld(p3, p3, p4, CFrame.new(-0.400014997, -2.83703494, 3.62925434, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.400014997, 2.83703494, 3.96200418, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
| 583 | weld(p4, p4, p5, CFrame.new(0.400014997, 2.83703494, 3.96200418, -1, 0, 0, 0, -1, 0, 0, 0, 1), CFrame.new(0.400014997, 3.05703473, 4.14625359, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
| 584 | weld(p5, p5, p6, CFrame.new(0.400014997, 3.05703473, 4.14625359, -1, 0, 0, 0, -1, 0, 0, 0, 1), CFrame.new(1.48875475, 2.98278475, -0.400014997, 0, 4.37113883E-8, 1, 0, -1, 4.37113883E-8, 1, 0, 0)) | |
| 585 | handleweld = Instance.new("Weld", RightArm)
| |
| 586 | handleweld.Part1 = RightArm | |
| 587 | handleweld.Part0 = p6 | |
| 588 | handlec0 = CFrame.new(0, -0.95, 0) * angles(0, math.pi / 2, math.pi) | |
| 589 | handleweld.C0 = handlec0 | |
| 590 | function attackone() | |
| 591 | attacking = true | |
| 592 | for i = 0, 1, 0.1 do | |
| 593 | swait() | |
| 594 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(60)), 0.4) | |
| 595 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-60)), 0.4) | |
| 596 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.9, 0) * CFrame.Angles(math.rad(180), 0, math.rad(10)), 0.4) | |
| 597 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4) | |
| 598 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 599 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 600 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4) | |
| 601 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4) | |
| 602 | end | |
| 603 | local smp = newPart(Effects, BrickColor.new("Really black"), 0, true, false, Vector3.new(), "Slash")
| |
| 604 | mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
| |
| 605 | smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(120), math.rad(0)) | |
| 606 | delay(0.1, function() | |
| 607 | table.insert(partEffects, {
| |
| 608 | smp, | |
| 609 | "Disappear", | |
| 610 | 0.05 | |
| 611 | }) | |
| 612 | end) | |
| 613 | sound(sounds[1][1], Character.Head, 1, 4, 1.5) | |
| 614 | local hitb = hitbox.Touched:connect(function(hit) | |
| 615 | if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
| |
| 616 | if hit.Parent:findFirstChild("Hit" .. Player.Name) then
| |
| 617 | return | |
| 618 | end | |
| 619 | local str = Instance.new("StringValue", hit.Parent)
| |
| 620 | str.Name = "Hit" .. Player.Name | |
| 621 | game.Debris:AddItem(str, 0.3) | |
| 622 | basicDamage(hit.Parent.Humanoid, math.random(999999999, 999999999), Color3.fromRGB(243, 242, 242)) -- Damage Edit here | |
| 623 | end | |
| 624 | end) | |
| 625 | for i = 0, 1, 0.1 do | |
| 626 | swait() | |
| 627 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.4) | |
| 628 | Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.4) | |
| 629 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(45), math.rad(-65), math.rad(5)), 0.4) | |
| 630 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4) | |
| 631 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 632 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 633 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4) | |
| 634 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4) | |
| 635 | hitbox.Parent = weapon | |
| 636 | hitbox.Size = Vector3.new(2, 5, 8) | |
| 637 | if smp then | |
| 638 | hitbox.CFrame = smp.CFrame | |
| 639 | else | |
| 640 | hitbox.Parent = nil | |
| 641 | end | |
| 642 | end | |
| 643 | hitb:disconnect() | |
| 644 | hitbox.Parent = nil | |
| 645 | attacking = false | |
| 646 | end | |
| 647 | function attacktwo() | |
| 648 | attacking = true | |
| 649 | for i = 0, 1, 0.1 do | |
| 650 | swait() | |
| 651 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4) | |
| 652 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.4) | |
| 653 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.4) | |
| 654 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4) | |
| 655 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 656 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 657 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4) | |
| 658 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4) | |
| 659 | end | |
| 660 | local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
| |
| 661 | mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
| |
| 662 | smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(80), math.rad(0)) | |
| 663 | delay(0.1, function() | |
| 664 | table.insert(partEffects, {
| |
| 665 | smp, | |
| 666 | "Disappear", | |
| 667 | 0.05 | |
| 668 | }) | |
| 669 | end) | |
| 670 | sound(sounds[1][2], Character.Head, 1, 4, 1.5) | |
| 671 | local hitb = hitbox.Touched:connect(function(hit) | |
| 672 | if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
| |
| 673 | if hit.Parent:findFirstChild("Hit" .. Player.Name) then
| |
| 674 | return | |
| 675 | end | |
| 676 | local str = Instance.new("StringValue", hit.Parent)
| |
| 677 | str.Name = "Hit" .. Player.Name | |
| 678 | game.Debris:AddItem(str, 0.3) | |
| 679 | basicDamage(hit.Parent.Humanoid, math.random(999999999, 999999999), Color3.fromRGB(243, 242, 242)) -- Damage Edit here | |
| 680 | end | |
| 681 | end) | |
| 682 | for i = 0, 1, 0.1 do | |
| 683 | swait() | |
| 684 | Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 685 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4) | |
| 686 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4) | |
| 687 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4) | |
| 688 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 689 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 690 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4) | |
| 691 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4) | |
| 692 | hitbox.Parent = weapon | |
| 693 | hitbox.Size = Vector3.new(2, 5, 8) | |
| 694 | if smp then | |
| 695 | hitbox.CFrame = smp.CFrame | |
| 696 | else | |
| 697 | hitbox.Parent = nil | |
| 698 | end | |
| 699 | end | |
| 700 | hitb:disconnect() | |
| 701 | hitbox.Parent = nil | |
| 702 | attacking = false | |
| 703 | end | |
| 704 | function attackthree() | |
| 705 | attacking = true | |
| 706 | for i = 0, 1, 0.1 do | |
| 707 | swait() | |
| 708 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4) | |
| 709 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(80)), 0.4) | |
| 710 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(-45)) * CFrame.Angles(math.rad(-25), 0, 0), 0.4) | |
| 711 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4) | |
| 712 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 713 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 714 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4) | |
| 715 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4) | |
| 716 | end | |
| 717 | local smp = newPart(Effects, BrickColor.new("Really blue"), 0, true, false, Vector3.new(), "Slash")
| |
| 718 | mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
| |
| 719 | smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(-70), math.rad(0)) | |
| 720 | delay(0.1, function() | |
| 721 | table.insert(partEffects, {
| |
| 722 | smp, | |
| 723 | "Disappear", | |
| 724 | 0.05 | |
| 725 | }) | |
| 726 | end) | |
| 727 | sound(sounds[1][3], Character.Head, 1, 4, 1.5) | |
| 728 | local hitb = hitbox.Touched:connect(function(hit) | |
| 729 | if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
| |
| 730 | if hit.Parent:findFirstChild("Hit" .. Player.Name) then
| |
| 731 | return | |
| 732 | end | |
| 733 | local str = Instance.new("StringValue", hit.Parent)
| |
| 734 | str.Name = "Hit" .. Player.Name | |
| 735 | game.Debris:AddItem(str, 0.3) | |
| 736 | basicDamage(hit.Parent.Humanoid, math.random(999999999, 999999999), Color3.fromRGB(243, 242, 242)) -- Damage Edit here | |
| 737 | end | |
| 738 | end) | |
| 739 | for i = 0, 1, 0.1 do | |
| 740 | swait() | |
| 741 | Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 742 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4) | |
| 743 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.8, 0.4) * angles(math.rad(0), math.rad(-40), math.rad(120)), 0.4) | |
| 744 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4) | |
| 745 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 746 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 747 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4) | |
| 748 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4) | |
| 749 | hitbox.Parent = weapon | |
| 750 | hitbox.Size = Vector3.new(2, 5, 8) | |
| 751 | if smp then | |
| 752 | hitbox.CFrame = smp.CFrame | |
| 753 | else | |
| 754 | hitbox.Parent = nil | |
| 755 | end | |
| 756 | end | |
| 757 | hitb:disconnect() | |
| 758 | hitbox.Parent = nil | |
| 759 | attacking = false | |
| 760 | end | |
| 761 | function rapidslash() | |
| 762 | attacking = true | |
| 763 | AttackHas[1] = 0 | |
| 764 | AttackCan[1] = false | |
| 765 | for i = 1, 3 do | |
| 766 | swait() | |
| 767 | for i = 0, 1, 0.2 do | |
| 768 | swait() | |
| 769 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(60)), 0.6) | |
| 770 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-60)), 0.6) | |
| 771 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.9, 0) * CFrame.Angles(math.rad(180), 0, math.rad(10)), 0.6) | |
| 772 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6) | |
| 773 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1) | |
| 774 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1) | |
| 775 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6) | |
| 776 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6) | |
| 777 | end | |
| 778 | sound(sounds[1][1], Character.Head, 1, 7, 1.5) | |
| 779 | do | |
| 780 | local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
| |
| 781 | mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
| |
| 782 | smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0)) | |
| 783 | delay(0.1, function() | |
| 784 | table.insert(partEffects, {
| |
| 785 | smp, | |
| 786 | "Disappear", | |
| 787 | 0.05 | |
| 788 | }) | |
| 789 | end) | |
| 790 | for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do | |
| 791 | basicDamage(v, 61, c3(243, 242, 242)) | |
| 792 | end | |
| 793 | for i = 0, 1, 0.2 do | |
| 794 | swait() | |
| 795 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.6) | |
| 796 | Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.6) | |
| 797 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(45), math.rad(-65), math.rad(5)), 0.6) | |
| 798 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6) | |
| 799 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1) | |
| 800 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1) | |
| 801 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.6) | |
| 802 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.6) | |
| 803 | end | |
| 804 | sound(sounds[1][1], Character.Head, 1, 7, 1.5) | |
| 805 | local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
| |
| 806 | mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
| |
| 807 | smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0)) | |
| 808 | delay(0.1, function() | |
| 809 | table.insert(partEffects, {
| |
| 810 | smp, | |
| 811 | "Disappear", | |
| 812 | 0.05 | |
| 813 | }) | |
| 814 | end) | |
| 815 | for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do | |
| 816 | basicDamage(v, 61, c3(243, 242, 242)) | |
| 817 | end | |
| 818 | for i = 0, 1, 0.2 do | |
| 819 | swait() | |
| 820 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.6) | |
| 821 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(80)), 0.6) | |
| 822 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(-45)) * CFrame.Angles(math.rad(-25), 0, 0), 1) | |
| 823 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6) | |
| 824 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1) | |
| 825 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1) | |
| 826 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6) | |
| 827 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6) | |
| 828 | end | |
| 829 | sound(sounds[1][1], Character.Head, 1, 7, 1.5) | |
| 830 | local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
| |
| 831 | mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
| |
| 832 | smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0)) | |
| 833 | delay(0.1, function() | |
| 834 | table.insert(partEffects, {
| |
| 835 | smp, | |
| 836 | "Disappear", | |
| 837 | 0.05 | |
| 838 | }) | |
| 839 | end) | |
| 840 | for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do | |
| 841 | basicDamage(v, 61, c3(243, 242, 242)) | |
| 842 | end | |
| 843 | for i = 0, 1, 0.2 do | |
| 844 | swait() | |
| 845 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.6) | |
| 846 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.6) | |
| 847 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.6) | |
| 848 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6) | |
| 849 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.6) | |
| 850 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.6) | |
| 851 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6) | |
| 852 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6) | |
| 853 | end | |
| 854 | sound(sounds[1][1], Character.Head, 1, 7, 1.5) | |
| 855 | local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
| |
| 856 | mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
| |
| 857 | smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0)) | |
| 858 | delay(0.1, function() | |
| 859 | table.insert(partEffects, {
| |
| 860 | smp, | |
| 861 | "Disappear", | |
| 862 | 0.05 | |
| 863 | }) | |
| 864 | end) | |
| 865 | for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do | |
| 866 | basicDamage(v, 61, c3(243, 242, 242)) | |
| 867 | end | |
| 868 | for i = 0, 1, 0.2 do | |
| 869 | swait() | |
| 870 | Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.6) | |
| 871 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.6) | |
| 872 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.6) | |
| 873 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.6) | |
| 874 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1) | |
| 875 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1) | |
| 876 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.6) | |
| 877 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.6) | |
| 878 | end | |
| 879 | sound(sounds[1][1], Character.Head, 1, 7, 1.5) | |
| 880 | local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
| |
| 881 | mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
| |
| 882 | smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0)) | |
| 883 | delay(0.1, function() | |
| 884 | table.insert(partEffects, {
| |
| 885 | smp, | |
| 886 | "Disappear", | |
| 887 | 0.05 | |
| 888 | }) | |
| 889 | end) | |
| 890 | for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do | |
| 891 | basicDamage(v, 6, c3(243, 242, 242)) | |
| 892 | end | |
| 893 | end | |
| 894 | end | |
| 895 | AttackCan[1] = true | |
| 896 | attacking = false | |
| 897 | end | |
| 898 | function powerslash() | |
| 899 | attacking = true | |
| 900 | AttackCan[2] = false | |
| 901 | AttackHas[2] = AttackHas[2] - 0.2 | |
| 902 | local orbs = {}
| |
| 903 | if energyslashcounter == 1 then | |
| 904 | energyslashcounter = 2 | |
| 905 | sound(367453005, Character.Head, 1, 4, 1) | |
| 906 | do | |
| 907 | local now = RootPart.CFrame * CFrame.new(0, 0, -10) | |
| 908 | local bo = {
| |
| 909 | BrickColor.new("Bright orange"),
| |
| 910 | BrickColor.new("Toothpaste")
| |
| 911 | } | |
| 912 | local bon = bo[math.random(1, 2)] | |
| 913 | for i = 1, 5 do | |
| 914 | local orb = newPart(Effects, bon, 0, true, false, Vector3.new(), "Orange", "SmoothPlastic", RootPart.CFrame * CFrame.new(0, 0, -15)) | |
| 915 | local omesh = mesh("SpecialMesh", orb, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
| |
| 916 | orb.CFrame = now * CFrame.new((math.random() - 0.5) * 20, 0, (math.random() - 0.5) * 20) | |
| 917 | table.insert(orbs, orb) | |
| 918 | end | |
| 919 | for i = 0, 1, 0.05 do | |
| 920 | swait() | |
| 921 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.15) | |
| 922 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(80)), 0.15) | |
| 923 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.2) | |
| 924 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4) | |
| 925 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15) | |
| 926 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15) | |
| 927 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15) | |
| 928 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15) | |
| 929 | end | |
| 930 | for i = 1, #orbs do | |
| 931 | do | |
| 932 | local orb = orbs[i] | |
| 933 | table.insert(partEffects, {
| |
| 934 | orb, | |
| 935 | "Block2", | |
| 936 | 0.05, | |
| 937 | 10, | |
| 938 | 10, | |
| 939 | 10, | |
| 940 | orb.Mesh | |
| 941 | }) | |
| 942 | thread(function() | |
| 943 | for i = 1, 3 do | |
| 944 | swait(5) | |
| 945 | for i, v in pairs(findCloseHumanoid(orb.Position, 10)) do | |
| 946 | if bon == BrickColor.new("Bright orange") then
| |
| 947 | if (v.Parent.Torso.Velocity * Vector3.new(1, 1, 1)).magnitude < 2 then | |
| 948 | basicDamage(v, 6, BrickColor.new("Bright orange").Color)
| |
| 949 | end | |
| 950 | elseif bon == BrickColor.new("Toothpaste") and (v.Parent.Torso.Velocity * Vector3.new(1, 1, 1)).magnitude > 2 then
| |
| 951 | basicDamage(v, 6, BrickColor.new("Toothpaste").Color)
| |
| 952 | end | |
| 953 | end | |
| 954 | end | |
| 955 | end) | |
| 956 | end | |
| 957 | end | |
| 958 | sound(sounds[1][2], Character.Head, 1, 4, 0.8) | |
| 959 | for i = 0, 1, 0.1 do | |
| 960 | swait() | |
| 961 | Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 962 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(-5)), 0.4) | |
| 963 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4) | |
| 964 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4) | |
| 965 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 966 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 967 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4) | |
| 968 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4) | |
| 969 | end | |
| 970 | end | |
| 971 | elseif energyslashcounter == 2 then | |
| 972 | energyslashcounter = 3 | |
| 973 | sound(306247749, Character.Head, 1, 4, 1) | |
| 974 | local gparts = {}
| |
| 975 | for i = 1, 9 do | |
| 976 | local gpart = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Violet", "SmoothPlastic")
| |
| 977 | local gmesh = mesh("CylinderMesh", gpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(50, 10, 50))
| |
| 978 | gpart.CFrame = RootPart.CFrame * CFrame.new(math.random(-20, 20), -3, -15 + math.random(-20, 20)) | |
| 979 | table.insert(gparts, gpart) | |
| 980 | end | |
| 981 | for i = 0, 1, 0.05 do | |
| 982 | swait() | |
| 983 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(80)), 0.15) | |
| 984 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(-80)), 0.15) | |
| 985 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.4) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(15)) * CFrame.Angles(math.rad(0), 0, 0), 0.2) | |
| 986 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4) | |
| 987 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15) | |
| 988 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15) | |
| 989 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15) | |
| 990 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15) | |
| 991 | end | |
| 992 | for i = 1, #gparts do | |
| 993 | local gpart = gparts[i] | |
| 994 | table.insert(partEffects, {
| |
| 995 | gpart, | |
| 996 | "Block2", | |
| 997 | 0.05, | |
| 998 | -1, | |
| 999 | 50, | |
| 1000 | -1, | |
| 1001 | gpart.Mesh | |
| 1002 | }) | |
| 1003 | for i, v in pairs(findCloseHumanoid(gpart.Position, 10)) do | |
| 1004 | basicDamage(v, 15, BrickColor.new("Really red").Color)
| |
| 1005 | local bv = Instance.new("BodyVelocity", v.Parent.Torso)
| |
| 1006 | game.Debris:AddItem(bv, 1) | |
| 1007 | bv.Velocity = Vector3.new(0, 40, 0) | |
| 1008 | bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 1009 | end | |
| 1010 | end | |
| 1011 | sound(sounds[1][3], Character.Head, 1, 4, 0.8) | |
| 1012 | for i = 0, 1, 0.1 do | |
| 1013 | swait() | |
| 1014 | Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.4) | |
| 1015 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(80)), 0.4) | |
| 1016 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -0.4) * angles(math.rad(125), math.rad(-40), math.rad(60)), 0.4) | |
| 1017 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4) | |
| 1018 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 1019 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 1020 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4) | |
| 1021 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4) | |
| 1022 | end | |
| 1023 | elseif energyslashcounter == 3 then | |
| 1024 | energyslashcounter = 1 | |
| 1025 | for i = 0, 1, 0.05 do | |
| 1026 | swait() | |
| 1027 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(80)), 0.15) | |
| 1028 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(-80)), 0.15) | |
| 1029 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.2) | |
| 1030 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4) | |
| 1031 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15) | |
| 1032 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15) | |
| 1033 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15) | |
| 1034 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15) | |
| 1035 | end | |
| 1036 | sound(sounds[2][5], Character.Head, 1, 4, 0.8) | |
| 1037 | thread(function() | |
| 1038 | for i = 1, 6 do | |
| 1039 | swait() | |
| 1040 | sound(438149153, Character.Head, 1, 4, 0.8) | |
| 1041 | do | |
| 1042 | local prt = newPart(Effects, BrickColor.new("Bright yellow"), 0, false, false, Vector3.new(), "Yellow", "SmoothPlastic", RootPart.CFrame)
| |
| 1043 | local mesh = mesh("SpecialMesh", prt, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 2.5))
| |
| 1044 | prt.CFrame = RootPart.CFrame * CFrame.new(math.random(-3, 3), math.random(-1, 1), math.random(-3, 3)) | |
| 1045 | local bv = Instance.new("BodyVelocity", prt)
| |
| 1046 | bv.Velocity = RootPart.CFrame.lookVector * 150 | |
| 1047 | bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 1048 | game.Debris:AddItem(bv, 6) | |
| 1049 | local orlook = RootPart.CFrame.lookVector | |
| 1050 | thread(function() | |
| 1051 | while prt do | |
| 1052 | swait() | |
| 1053 | local hitpart, pospart = rayCast(prt.Position, orlook, 4, Character) | |
| 1054 | if hitpart and pospart then | |
| 1055 | prt:Destroy() | |
| 1056 | do | |
| 1057 | local ref = newPart(Effects, BrickColor.Black(), 1, true, false, Vector3.new(), "") | |
| 1058 | ref.CFrame = CFrame.new(pospart) | |
| 1059 | sound(142070127, ref, 1, 4, 1) | |
| 1060 | delay(4, function() | |
| 1061 | ref:Destroy() | |
| 1062 | end) | |
| 1063 | magic("Block", {
| |
| 1064 | Effects, | |
| 1065 | BrickColor.new("Really red"),
| |
| 1066 | CFrame.new(pospart), | |
| 1067 | 0.2, | |
| 1068 | 0.2, | |
| 1069 | 0.2, | |
| 1070 | 0.9, | |
| 1071 | 0.9, | |
| 1072 | 0.9, | |
| 1073 | 0.05, | |
| 1074 | 1 | |
| 1075 | }) | |
| 1076 | magic("Block", {
| |
| 1077 | Effects, | |
| 1078 | BrickColor.new("Really red"),
| |
| 1079 | CFrame.new(pospart), | |
| 1080 | 0.2, | |
| 1081 | 0.2, | |
| 1082 | 0.2, | |
| 1083 | 0.9, | |
| 1084 | 0.9, | |
| 1085 | 0.9, | |
| 1086 | 0.05, | |
| 1087 | 1 | |
| 1088 | }) | |
| 1089 | if hitpart.Parent:findFirstChild("Humanoid") then
| |
| 1090 | basicDamage(hitpart.Parent.Humanoid, 12, BrickColor.new("Bright yellow").Color)
| |
| 1091 | end | |
| 1092 | break | |
| 1093 | end | |
| 1094 | end | |
| 1095 | end | |
| 1096 | end) | |
| 1097 | end | |
| 1098 | end | |
| 1099 | end) | |
| 1100 | end | |
| 1101 | attacking = false | |
| 1102 | AttackCan[2] = true | |
| 1103 | end | |
| 1104 | function leftright() | |
| 1105 | attacking = true | |
| 1106 | AttackCan[3] = false | |
| 1107 | for i = 0, 1, 0.1 do | |
| 1108 | swait() | |
| 1109 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4) | |
| 1110 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.4) | |
| 1111 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.4) | |
| 1112 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4) | |
| 1113 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 1114 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 1115 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4) | |
| 1116 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4) | |
| 1117 | end | |
| 1118 | thread(function() | |
| 1119 | local laser = newPart(nil, BrickColor.new("Really red"), 0.5, true, false, Vector3.new(), "Laser", "SmoothPlastic")
| |
| 1120 | local lmsh = mesh("BlockMesh", nil, nil, nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
| |
| 1121 | local lasers = {}
| |
| 1122 | local keypoints1, keypoints2, keypoints3, keypoints4, keypoints5, keypoints6 = {}, {}, {}, {}, {}, {}
| |
| 1123 | local radius = 10 | |
| 1124 | local num = 12 | |
| 1125 | for i = 1, num do | |
| 1126 | table.insert(keypoints1, {
| |
| 1127 | RootPart.CFrame.p, | |
| 1128 | RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num) * i), 0, math.sin(math.rad(360 / num) * i)) | |
| 1129 | }) | |
| 1130 | table.insert(keypoints2, {
| |
| 1131 | RootPart.CFrame.p, | |
| 1132 | RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 45 * i) * i), 0, math.sin(math.rad(360 / num + 45 * i) * i)) | |
| 1133 | }) | |
| 1134 | table.insert(keypoints3, {
| |
| 1135 | RootPart.CFrame.p, | |
| 1136 | RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 90 * i) * i), 0, math.sin(math.rad(360 / num + 90 * i) * i)) | |
| 1137 | }) | |
| 1138 | table.insert(keypoints4, {
| |
| 1139 | RootPart.CFrame.p, | |
| 1140 | RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 135 * i) * i), 0, math.sin(math.rad(360 / num + 135 * i) * i)) | |
| 1141 | }) | |
| 1142 | end | |
| 1143 | local keypointstotal = {
| |
| 1144 | keypoints1, | |
| 1145 | keypoints2, | |
| 1146 | keypoints3, | |
| 1147 | keypoints4 | |
| 1148 | } | |
| 1149 | for ii = 1, #keypointstotal do | |
| 1150 | swait(5) | |
| 1151 | do | |
| 1152 | local currpoint = keypointstotal[ii] | |
| 1153 | for i = 1, #currpoint do | |
| 1154 | do | |
| 1155 | local start = currpoint[i][1] | |
| 1156 | local look = currpoint[i][2] | |
| 1157 | local laserc = laser:Clone() | |
| 1158 | local lmshc = lmsh:Clone() | |
| 1159 | local hit, pos = rayCast(start, look, 100000, Character) | |
| 1160 | laserc.CFrame = CFrame.new((start + pos) / 2, pos) * angles(math.rad(90), 0, 0) | |
| 1161 | local mag = (laserc.Position - pos).magnitude * 2 | |
| 1162 | lmshc.Scale = Vector3.new(2, mag * 5, 2) | |
| 1163 | laserc.Parent = Effects | |
| 1164 | lmshc.Parent = laserc | |
| 1165 | thread(function() | |
| 1166 | table.insert(partEffects, {
| |
| 1167 | laserc, | |
| 1168 | "Block2", | |
| 1169 | 0.025, | |
| 1170 | -0.1, | |
| 1171 | 0, | |
| 1172 | -0.1, | |
| 1173 | lmshc | |
| 1174 | }) | |
| 1175 | local start = currpoint[i][1] | |
| 1176 | local look = currpoint[i][2] | |
| 1177 | look = CFrame.new(start, start + look).lookVector | |
| 1178 | local hit, pos = rayCast(start, look, 100000, Character) | |
| 1179 | repeat | |
| 1180 | swait() | |
| 1181 | until laserc.Parent == nil | |
| 1182 | local lpart = newPart(Effects, BrickColor.new("Black"), 0.5, true, false, Vector3.new(), "Cut", "SmoothPlastic")
| |
| 1183 | sound(406913243, Head, 0.6, 4, 1) | |
| 1184 | local lpartm = mesh("BlockMesh", lpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(5, mag * 5, 5))
| |
| 1185 | lpart.CFrame = laserc.CFrame * CFrame.new(0, 0, 0) | |
| 1186 | table.insert(partEffects, {
| |
| 1187 | lpart, | |
| 1188 | "Block2", | |
| 1189 | 0.05, | |
| 1190 | 1, | |
| 1191 | 0, | |
| 1192 | 1, | |
| 1193 | lpartm | |
| 1194 | }) | |
| 1195 | local lpart = newPart(Effects, BrickColor.new("Lily white"), 0.5, true, false, Vector3.new(), "Cut", "SmoothPlastic")
| |
| 1196 | local lpartm = mesh("BlockMesh", lpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(8, mag * 5, 8))
| |
| 1197 | lpart.CFrame = laserc.CFrame * CFrame.new(0, 0, 0) | |
| 1198 | table.insert(partEffects, {
| |
| 1199 | lpart, | |
| 1200 | "Block2", | |
| 1201 | 0.05, | |
| 1202 | 1, | |
| 1203 | 0, | |
| 1204 | 1, | |
| 1205 | lpartm | |
| 1206 | }) | |
| 1207 | local hit, pos = rayCast(start, look, 100000, Character) | |
| 1208 | if hit ~= nil then | |
| 1209 | if hit.Parent.ClassName == "Accessory" or hit.Parent.ClassName == "Hat" then | |
| 1210 | if hit.Parent.Parent:findFirstChild("Humanoid") then
| |
| 1211 | basicDamage(hit.Parent.Parent.Humanoid, 20, BrickColor.new("Bright red").Color)
| |
| 1212 | end | |
| 1213 | elseif hit.Parent:findFirstChild("Humanoid") then
| |
| 1214 | basicDamage(hit.Parent.Humanoid, 20, BrickColor.new("Bright red").Color)
| |
| 1215 | end | |
| 1216 | end | |
| 1217 | end) | |
| 1218 | end | |
| 1219 | end | |
| 1220 | end | |
| 1221 | end | |
| 1222 | end) | |
| 1223 | for i = 0, 1, 0.1 do | |
| 1224 | swait() | |
| 1225 | Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 1226 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4) | |
| 1227 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4) | |
| 1228 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4) | |
| 1229 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 1230 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
| 1231 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4) | |
| 1232 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4) | |
| 1233 | end | |
| 1234 | AttackCan[3] = true | |
| 1235 | attacking = false | |
| 1236 | end | |
| 1237 | function mouse1d() | |
| 1238 | if tool.Active == false then | |
| 1239 | return | |
| 1240 | end | |
| 1241 | if attacking == false and attackcounter == 1 then | |
| 1242 | attackcounter = 2 | |
| 1243 | attackone() | |
| 1244 | elseif attacking == false and attackcounter == 2 then | |
| 1245 | attackcounter = 3 | |
| 1246 | attacktwo() | |
| 1247 | elseif attacking == false and attackcounter == 3 then | |
| 1248 | attackcounter = 1 | |
| 1249 | attackthree() | |
| 1250 | end | |
| 1251 | end | |
| 1252 | function key(k) | |
| 1253 | if tool.Active == false then | |
| 1254 | return | |
| 1255 | end | |
| 1256 | k = k:lower() | |
| 1257 | if attacking == false and k == "z" and AttackHas[1] >= AttackNeeded[1] then | |
| 1258 | rapidslash() | |
| 1259 | elseif attacking == false and k == "x" and AttackHas[2] >= 0.2 then | |
| 1260 | powerslash() | |
| 1261 | elseif attacking == false and k == "c" and AttackHas[3] >= AttackNeeded[3] then | |
| 1262 | leftright() | |
| 1263 | elseif attacking ~= false or k ~= "v" or AttackHas[4] >= AttackNeeded[4] then | |
| 1264 | end | |
| 1265 | end | |
| 1266 | asdasd = mouse.Button1Down:connect(mouse1d) | |
| 1267 | asdasdf = mouse.KeyDown:connect(key) | |
| 1268 | Humanoid.Died:connect(function() | |
| 1269 | asdasd:disconnect() | |
| 1270 | asdasdf:disconnect() | |
| 1271 | end) | |
| 1272 | thread(function() | |
| 1273 | while true do | |
| 1274 | swait() | |
| 1275 | torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1276 | hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
| 1277 | sine = sine + 1 | |
| 1278 | if AttackHas[1] < AttackNeeded[1] and AttackCan[1] == true then | |
| 1279 | AttackHas[1] = AttackHas[1] + 0.005 | |
| 1280 | end | |
| 1281 | if AttackHas[2] < AttackNeeded[2] and AttackCan[2] == true then | |
| 1282 | AttackHas[2] = AttackHas[2] + 0.005 | |
| 1283 | end | |
| 1284 | if AttackHas[3] < AttackNeeded[3] and AttackCan[3] == true then | |
| 1285 | AttackHas[3] = AttackHas[3] + 0.005 | |
| 1286 | end | |
| 1287 | if AttackHas[4] < AttackNeeded[4] and AttackCan[4] == true then | |
| 1288 | AttackHas[4] = AttackHas[4] + 0.005 | |
| 1289 | end | |
| 1290 | Reload[1]:TweenSize(UDim2.new(AttackHas[1] / AttackNeeded[1], 0, 1, 0), nil, 1, 0.4) | |
| 1291 | Reload[2]:TweenSize(UDim2.new(AttackHas[2] / AttackNeeded[2], 0, 1, 0), nil, 1, 0.4) | |
| 1292 | Reload[3]:TweenSize(UDim2.new(AttackHas[3] / AttackNeeded[3], 0, 1, 0), nil, 1, 0.4) | |
| 1293 | Reload[4]:TweenSize(UDim2.new(AttackHas[4] / AttackNeeded[4], 0, 1, 0), nil, 1, 0.4) | |
| 1294 | if 1 < RootPart.Velocity.y and hitfloor == nil then | |
| 1295 | if attacking == false then | |
| 1296 | Anim = "Jump" | |
| 1297 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-15), 0, math.rad(0)), 0.1) | |
| 1298 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2) | |
| 1299 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
| 1300 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2) | |
| 1301 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
| 1302 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2) | |
| 1303 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.2) | |
| 1304 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.2) | |
| 1305 | end | |
| 1306 | elseif RootPart.Velocity.y < -1 and hitfloor == nil then | |
| 1307 | if attacking == false then | |
| 1308 | Anim = "Fall" | |
| 1309 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(23), 0, 0), 0.2) | |
| 1310 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2) | |
| 1311 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2) | |
| 1312 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
| 1313 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2) | |
| 1314 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
| 1315 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(24), math.rad(90), 0), 0.2) | |
| 1316 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-12), -math.rad(90), 0), 0.2) | |
| 1317 | end | |
| 1318 | elseif torvel < 1 and hitfloor ~= nil then | |
| 1319 | if attacking == false then | |
| 1320 | Anim = "Idle" | |
| 1321 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-5), 0, math.rad(15)), 0.1) | |
| 1322 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.2 * math.cos(sine / 25)) * CFrame.Angles(math.rad(10), 0, math.rad(-15)), 0.1) | |
| 1323 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(5), math.rad(-15), math.rad(10) + 0.1 * math.cos(sine / 25)), 0.2) | |
| 1324 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-10) - 0.1 * math.cos(sine / 25)), 0.2) | |
| 1325 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2) | |
| 1326 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2) | |
| 1327 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1.1 - 0.2 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(10), math.rad(105), math.rad(-5)) * CFrame.Angles(math.rad(-4), 0, math.rad(-5)), 0.2) | |
| 1328 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 - 0.2 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(10), -math.rad(75), math.rad(-2)) * CFrame.Angles(math.rad(-13), 0, 0), 0.2) | |
| 1329 | end | |
| 1330 | elseif torvel > 2 and hitfloor ~= nil and attacking == false then | |
| 1331 | Anim = "Walk" | |
| 1332 | Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-5), 0, math.rad(0)), 0.1) | |
| 1333 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.2 * math.cos(sine / 25)) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.1) | |
| 1334 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(5), math.rad(-15), math.rad(10) + 0.1 * math.cos(sine / 25)), 0.2) | |
| 1335 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-10) - 0.1 * math.cos(sine / 25)), 0.2) | |
| 1336 | RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2) | |
| 1337 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2) | |
| 1338 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.cos(sine * 1.2 / 8), math.rad(90), 0), 0.3) | |
| 1339 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(-math.cos(sine * 1.2 / 8), -math.rad(90), 0), 0.3) | |
| 1340 | end | |
| 1341 | if 0 < #partEffects then | |
| 1342 | for e = 1, #partEffects do | |
| 1343 | if partEffects[e] ~= nil then | |
| 1344 | local Thing = partEffects[e] | |
| 1345 | if Thing ~= nil then | |
| 1346 | local Part = Thing[1] | |
| 1347 | local Mode = Thing[2] | |
| 1348 | local Delay = Thing[3] | |
| 1349 | local IncX = Thing[4] | |
| 1350 | local IncY = Thing[5] | |
| 1351 | local IncZ = Thing[6] | |
| 1352 | if 1 >= Thing[1].Transparency then | |
| 1353 | if Thing[2] == "Block1" then | |
| 1354 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1355 | local Mesh = Thing[1].Mesh | |
| 1356 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1357 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1358 | elseif Thing[2] == "Block2" then | |
| 1359 | Thing[1].CFrame = Thing[1].CFrame | |
| 1360 | local Mesh = Thing[7] | |
| 1361 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1362 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1363 | elseif Thing[2] == "Cylinder" then | |
| 1364 | local Mesh = Thing[1].Mesh | |
| 1365 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1366 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1367 | elseif Thing[2] == "Blood" then | |
| 1368 | local Mesh = Thing[7] | |
| 1369 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
| 1370 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1371 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1372 | elseif Thing[2] == "Elec" then | |
| 1373 | local Mesh = Thing[1].Mesh | |
| 1374 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1375 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1376 | elseif Thing[2] == "Disappear" then | |
| 1377 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1378 | elseif Thing[2] == "Shatter" then | |
| 1379 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1380 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1381 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1382 | Thing[6] = Thing[6] + Thing[5] | |
| 1383 | end | |
| 1384 | else | |
| 1385 | Part:Destroy() | |
| 1386 | table.remove(partEffects, e) | |
| 1387 | end | |
| 1388 | end | |
| 1389 | end | |
| 1390 | end | |
| 1391 | end | |
| 1392 | end | |
| 1393 | end) |