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