SHOW:
|
|
- or go back to the newest paste.
| 1 | --//====================================================\\-- | |
| 2 | --|| CREATED BY SHACKLUSTER | |
| 3 | --\\====================================================//-- | |
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | wait(0.2) | |
| 8 | ||
| 9 | ||
| 10 | ||
| 11 | Player = game:GetService("Players").LocalPlayer
| |
| 12 | PlayerGui = Player.PlayerGui | |
| 13 | Cam = workspace.CurrentCamera | |
| 14 | Backpack = Player.Backpack | |
| 15 | Character = Player.Character | |
| 16 | Humanoid = Character.Humanoid | |
| 17 | Mouse = Player:GetMouse() | |
| 18 | RootPart = Character["HumanoidRootPart"] | |
| 19 | Torso = Character["Torso"] | |
| 20 | Head = Character["Head"] | |
| 21 | RightArm = Character["Right Arm"] | |
| 22 | LeftArm = Character["Left Arm"] | |
| 23 | RightLeg = Character["Right Leg"] | |
| 24 | LeftLeg = Character["Left Leg"] | |
| 25 | RootJoint = RootPart["RootJoint"] | |
| 26 | Neck = Torso["Neck"] | |
| 27 | RightShoulder = Torso["Right Shoulder"] | |
| 28 | LeftShoulder = Torso["Left Shoulder"] | |
| 29 | RightHip = Torso["Right Hip"] | |
| 30 | LeftHip = Torso["Left Hip"] | |
| 31 | local sick = Instance.new("Sound",Character)
| |
| 32 | sick.SoundId = "rbxassetid://733414830" | |
| 33 | sick.Looped = true | |
| 34 | sick.Pitch = 1 | |
| 35 | sick.Volume = 1 | |
| 36 | sick:Play() | |
| 37 | Humanoid.HipHeight = 15 | |
| 38 | Humanoid.DisplayDistanceType = "None" | |
| 39 | local LightningBolts = {}
| |
| 40 | Humanoid.Name = "Sin" | |
| 41 | ||
| 42 | IT = Instance.new | |
| 43 | CF = CFrame.new | |
| 44 | VT = Vector3.new | |
| 45 | RAD = math.rad | |
| 46 | C3 = Color3.new | |
| 47 | UD2 = UDim2.new | |
| 48 | BRICKC = BrickColor.new | |
| 49 | ANGLES = CFrame.Angles | |
| 50 | EULER = CFrame.fromEulerAnglesXYZ | |
| 51 | COS = math.cos | |
| 52 | ACOS = math.acos | |
| 53 | SIN = math.sin | |
| 54 | ASIN = math.asin | |
| 55 | ABS = math.abs | |
| 56 | MRANDOM = math.random | |
| 57 | FLOOR = math.floor | |
| 58 | ||
| 59 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 60 | local NEWMESH = IT(MESH) | |
| 61 | if MESH == "SpecialMesh" then | |
| 62 | NEWMESH.MeshType = MESHTYPE | |
| 63 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 64 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 65 | end | |
| 66 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 67 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 68 | end | |
| 69 | end | |
| 70 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 71 | NEWMESH.Scale = SCALE | |
| 72 | NEWMESH.Parent = PARENT | |
| 73 | return NEWMESH | |
| 74 | end | |
| 75 | ||
| 76 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHR) | |
| 77 | local NEWPART = IT("Part")
| |
| 78 | NEWPART.formFactor = FORMFACTOR | |
| 79 | NEWPART.Reflectance = REFLECTANCE | |
| 80 | NEWPART.Transparency = TRANSPARENCY | |
| 81 | NEWPART.CanCollide = false | |
| 82 | NEWPART.Locked = true | |
| 83 | NEWPART.Anchored = true | |
| 84 | if ANCHR == false then | |
| 85 | NEWPART.Anchored = false | |
| 86 | end | |
| 87 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 88 | NEWPART.Name = NAME | |
| 89 | NEWPART.Size = SIZE | |
| 90 | NEWPART.Position = Torso.Position | |
| 91 | NEWPART.Material = MATERIAL | |
| 92 | NEWPART:BreakJoints() | |
| 93 | NEWPART.Parent = PARENT | |
| 94 | return NEWPART | |
| 95 | end | |
| 96 | ||
| 97 | ||
| 98 | --//=================================\\ | |
| 99 | --|| CUSTOMIZATION | |
| 100 | --\\=================================// | |
| 101 | ||
| 102 | Class_Name = "2nd Sin Unleashed" | |
| 103 | Weapon_Name = "Add-ons" | |
| 104 | ||
| 105 | Custom_Colors = {
| |
| 106 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
| |
| 107 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
| |
| 108 | ||
| 109 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
| |
| 110 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
| |
| 111 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
| |
| 112 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
| |
| 113 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
| |
| 114 | ||
| 115 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
| |
| 116 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
| |
| 117 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
| |
| 118 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
| |
| 119 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
| |
| 120 | } | |
| 121 | ||
| 122 | ||
| 123 | Player_Size = 1 --Size of the player. | |
| 124 | Animation_Speed = 2 | |
| 125 | Animation_Speed2 = 1 | |
| 126 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 127 | ||
| 128 | local Speed = 68 | |
| 129 | Humanoid.JumpPower = 80 | |
| 130 | local Effects2 = {}
| |
| 131 | ||
| 132 | --//=================================\\ | |
| 133 | --|| END OF CUSTOMIZATION | |
| 134 | --\\=================================// | |
| 135 | ||
| 136 | local function weldBetween(a, b) | |
| 137 | local weldd = Instance.new("ManualWeld")
| |
| 138 | weldd.Part0 = a | |
| 139 | weldd.Part1 = b | |
| 140 | weldd.C0 = CFrame.new() | |
| 141 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 142 | weldd.Parent = a | |
| 143 | return weldd | |
| 144 | end | |
| 145 | ||
| 146 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
| 147 | local acs = Instance.new("Part")
| |
| 148 | acs.CanCollide = false | |
| 149 | acs.Anchored = false | |
| 150 | acs.Size = Vector3.new(0,0,0) | |
| 151 | acs.CFrame = attachmentpart.CFrame | |
| 152 | acs.Parent = Character | |
| 153 | acs.BrickColor = color | |
| 154 | local meshs = Instance.new("SpecialMesh")
| |
| 155 | meshs.MeshId = mesh | |
| 156 | meshs.TextureId = texture | |
| 157 | meshs.Parent = acs | |
| 158 | meshs.Scale = scale | |
| 159 | meshs.Offset = offset | |
| 160 | weldBetween(attachmentpart,acs) | |
| 161 | end | |
| 162 | ||
| 163 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
| 164 | if TYPE == "Gem" then | |
| 165 | local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 166 | acs.Anchored = false | |
| 167 | acs.CanCollide = false | |
| 168 | acs.CFrame = PART.CFrame | |
| 169 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
| |
| 170 | weldBetween(PART,acs) | |
| 171 | elseif TYPE == "Skull" then | |
| 172 | local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 173 | acs.Anchored = false | |
| 174 | acs.CanCollide = false | |
| 175 | acs.CFrame = PART.CFrame | |
| 176 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
| |
| 177 | weldBetween(PART,acs) | |
| 178 | elseif TYPE == "Eye" then | |
| 179 | local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 180 | acs.Anchored = false | |
| 181 | acs.CanCollide = false | |
| 182 | acs.CFrame = PART.CFrame | |
| 183 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
| |
| 184 | weldBetween(PART,acs) | |
| 185 | end | |
| 186 | end | |
| 187 | ||
| 188 | --//=================================\\ | |
| 189 | --|| USEFUL VALUES | |
| 190 | --\\=================================// | |
| 191 | ||
| 192 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 193 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 194 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 195 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 196 | local CO1 = 0 | |
| 197 | local CO2 = 0 | |
| 198 | local CO3 = 0 | |
| 199 | local CO4 = 0 | |
| 200 | local CHANGEDEFENSE = 0 | |
| 201 | local CHANGEDAMAGE = 0 | |
| 202 | local CHANGEMOVEMENT = 0 | |
| 203 | local ANIM = "Idle" | |
| 204 | local ATTACK = false | |
| 205 | local EQUIPPED = false | |
| 206 | local HOLD = false | |
| 207 | local COMBO = 1 | |
| 208 | local LASTPOINT = nil | |
| 209 | local BLCF = nil | |
| 210 | local SCFR = nil | |
| 211 | local STAGGERHITANIM = false | |
| 212 | local STAGGERANIM = false | |
| 213 | local STUNANIM = false | |
| 214 | local CRITCHANCENUMBER = 0 | |
| 215 | local IDLENUMBER = 0 | |
| 216 | local DONUMBER = 0 | |
| 217 | local HANDIDLE = false | |
| 218 | local Rooted = false | |
| 219 | local KEYHOLD = false | |
| 220 | local SINE = 0 | |
| 221 | local CHANGE = 2 / Animation_Speed | |
| 222 | local WALKINGANIM = false | |
| 223 | local WALK = 0 | |
| 224 | local DEAD = false | |
| 225 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 226 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 227 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 228 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 229 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 230 | WEAPONGUI.Name = "Weapon GUI" | |
| 231 | local Weapon = IT("Model")
| |
| 232 | Weapon.Name = Weapon_Name | |
| 233 | local Effects = IT("Folder", Weapon)
| |
| 234 | Effects.Name = "Effects" | |
| 235 | local ANIMATOR = Humanoid.Animator | |
| 236 | local ANIMATE = Character.Animate | |
| 237 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
| |
| 238 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
| |
| 239 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
| |
| 240 | local HITBLOCKSOUNDS = {"199148933", "199148947"}
| |
| 241 | local UNANCHOR = true | |
| 242 | local MAGICPARTICLE = "655109389" | |
| 243 | ||
| 244 | local SKILLTEXTCOLOR = C3(0.7,0,0) | |
| 245 | ||
| 246 | --//=================================\\ | |
| 247 | --\\=================================// | |
| 248 | ||
| 249 | ||
| 250 | --//=================================\\ | |
| 251 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 252 | --\\=================================// | |
| 253 | ||
| 254 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 255 | ArtificialHB.Name = "ArtificialHB" | |
| 256 | ||
| 257 | script:WaitForChild("ArtificialHB")
| |
| 258 | ||
| 259 | frame = Frame_Speed | |
| 260 | tf = 0 | |
| 261 | allowframeloss = false | |
| 262 | tossremainder = false | |
| 263 | lastframe = tick() | |
| 264 | script.ArtificialHB:Fire() | |
| 265 | ||
| 266 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 267 | tf = tf + s | |
| 268 | if tf >= frame then | |
| 269 | if allowframeloss then | |
| 270 | script.ArtificialHB:Fire() | |
| 271 | lastframe = tick() | |
| 272 | else | |
| 273 | for i = 1, math.floor(tf / frame) do | |
| 274 | script.ArtificialHB:Fire() | |
| 275 | end | |
| 276 | lastframe = tick() | |
| 277 | end | |
| 278 | if tossremainder then | |
| 279 | tf = 0 | |
| 280 | else | |
| 281 | tf = tf - frame * math.floor(tf / frame) | |
| 282 | end | |
| 283 | end | |
| 284 | end) | |
| 285 | ||
| 286 | --//=================================\\ | |
| 287 | --\\=================================// | |
| 288 | ||
| 289 | ||
| 290 | ||
| 291 | ||
| 292 | ||
| 293 | --//=================================\\ | |
| 294 | --|| SOME FUNCTIONS | |
| 295 | --\\=================================// | |
| 296 | ||
| 297 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 298 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 299 | end | |
| 300 | ||
| 301 | function PositiveAngle(NUMBER) | |
| 302 | if NUMBER >= 0 then | |
| 303 | NUMBER = 0 | |
| 304 | end | |
| 305 | return NUMBER | |
| 306 | end | |
| 307 | ||
| 308 | function NegativeAngle(NUMBER) | |
| 309 | if NUMBER <= 0 then | |
| 310 | NUMBER = 0 | |
| 311 | end | |
| 312 | return NUMBER | |
| 313 | end | |
| 314 | ||
| 315 | function Swait(NUMBER) | |
| 316 | if NUMBER == 0 or NUMBER == nil then | |
| 317 | ArtificialHB.Event:wait() | |
| 318 | else | |
| 319 | for i = 1, NUMBER do | |
| 320 | ArtificialHB.Event:wait() | |
| 321 | end | |
| 322 | end | |
| 323 | end | |
| 324 | ||
| 325 | function QuaternionFromCFrame(cf) | |
| 326 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 327 | local trace = m00 + m11 + m22 | |
| 328 | if trace > 0 then | |
| 329 | local s = math.sqrt(1 + trace) | |
| 330 | local recip = 0.5 / s | |
| 331 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 332 | else | |
| 333 | local i = 0 | |
| 334 | if m11 > m00 then | |
| 335 | i = 1 | |
| 336 | end | |
| 337 | if m22 > (i == 0 and m00 or m11) then | |
| 338 | i = 2 | |
| 339 | end | |
| 340 | if i == 0 then | |
| 341 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 342 | local recip = 0.5 / s | |
| 343 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 344 | elseif i == 1 then | |
| 345 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 346 | local recip = 0.5 / s | |
| 347 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 348 | elseif i == 2 then | |
| 349 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 350 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 351 | end | |
| 352 | end | |
| 353 | end | |
| 354 | ||
| 355 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 356 | local xs, ys, zs = x + x, y + y, z + z | |
| 357 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 358 | local xx = x * xs | |
| 359 | local xy = x * ys | |
| 360 | local xz = x * zs | |
| 361 | local yy = y * ys | |
| 362 | local yz = y * zs | |
| 363 | local zz = z * zs | |
| 364 | 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)) | |
| 365 | end | |
| 366 | ||
| 367 | function QuaternionSlerp(a, b, t) | |
| 368 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 369 | local startInterp, finishInterp; | |
| 370 | if cosTheta >= 0.0001 then | |
| 371 | if (1 - cosTheta) > 0.0001 then | |
| 372 | local theta = ACOS(cosTheta) | |
| 373 | local invSinTheta = 1 / SIN(theta) | |
| 374 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 375 | finishInterp = SIN(t * theta) * invSinTheta | |
| 376 | else | |
| 377 | startInterp = 1 - t | |
| 378 | finishInterp = t | |
| 379 | end | |
| 380 | else | |
| 381 | if (1 + cosTheta) > 0.0001 then | |
| 382 | local theta = ACOS(-cosTheta) | |
| 383 | local invSinTheta = 1 / SIN(theta) | |
| 384 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 385 | finishInterp = SIN(t * theta) * invSinTheta | |
| 386 | else | |
| 387 | startInterp = t - 1 | |
| 388 | finishInterp = t | |
| 389 | end | |
| 390 | end | |
| 391 | 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 | |
| 392 | end | |
| 393 | ||
| 394 | function Clerp(a, b, t) | |
| 395 | local qa = {QuaternionFromCFrame(a)}
| |
| 396 | local qb = {QuaternionFromCFrame(b)}
| |
| 397 | local ax, ay, az = a.x, a.y, a.z | |
| 398 | local bx, by, bz = b.x, b.y, b.z | |
| 399 | local _t = 1 - t | |
| 400 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 401 | end | |
| 402 | ||
| 403 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 404 | local frame = IT("Frame")
| |
| 405 | frame.BackgroundTransparency = TRANSPARENCY | |
| 406 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 407 | frame.Position = POSITION | |
| 408 | frame.Size = SIZE | |
| 409 | frame.BackgroundColor3 = COLOR | |
| 410 | frame.BorderColor3 = BORDERCOLOR | |
| 411 | frame.Name = NAME | |
| 412 | frame.Parent = PARENT | |
| 413 | return frame | |
| 414 | end | |
| 415 | ||
| 416 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 417 | local label = IT("TextLabel")
| |
| 418 | label.BackgroundTransparency = 1 | |
| 419 | label.Size = UD2(1, 0, 1, 0) | |
| 420 | label.Position = UD2(0, 0, 0, 0) | |
| 421 | label.TextColor3 = TEXTCOLOR | |
| 422 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 423 | label.TextTransparency = TRANSPARENCY | |
| 424 | label.FontSize = TEXTFONTSIZE | |
| 425 | label.Font = TEXTFONT | |
| 426 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 427 | label.TextScaled = false | |
| 428 | label.Text = TEXT | |
| 429 | label.Name = NAME | |
| 430 | label.Parent = PARENT | |
| 431 | return label | |
| 432 | end | |
| 433 | ||
| 434 | function NoOutlines(PART) | |
| 435 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 436 | end | |
| 437 | ||
| 438 | ||
| 439 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 440 | local NEWWELD = IT(TYPE) | |
| 441 | NEWWELD.Part0 = PART0 | |
| 442 | NEWWELD.Part1 = PART1 | |
| 443 | NEWWELD.C0 = C0 | |
| 444 | NEWWELD.C1 = C1 | |
| 445 | NEWWELD.Parent = PARENT | |
| 446 | return NEWWELD | |
| 447 | end | |
| 448 | ||
| 449 | local sound = IT("Sound")
| |
| 450 | ||
| 451 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
| 452 | local NEWSOUND = nil | |
| 453 | coroutine.resume(coroutine.create(function() | |
| 454 | NEWSOUND = sound:Clone() | |
| 455 | NEWSOUND.Parent = PARENT | |
| 456 | NEWSOUND.Volume = VOLUME | |
| 457 | NEWSOUND.Pitch = PITCH | |
| 458 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 459 | Swait() | |
| 460 | NEWSOUND:play() | |
| 461 | game:GetService("Debris"):AddItem(NEWSOUND, 10)
| |
| 462 | end)) | |
| 463 | return NEWSOUND | |
| 464 | end | |
| 465 | ||
| 466 | function CFrameFromTopBack(at, top, back) | |
| 467 | local right = top:Cross(back) | |
| 468 | 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) | |
| 469 | end | |
| 470 | ||
| 471 | function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,offset,color) | |
| 472 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
| 473 | local mesh = IT("SpecialMesh",wave)
| |
| 474 | mesh.MeshType = "FileMesh" | |
| 475 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 476 | mesh.Scale = VT(size,size,size) | |
| 477 | mesh.Offset = VT(0,0,-size/8) | |
| 478 | wave.CFrame = cframe | |
| 479 | coroutine.resume(coroutine.create(function(PART) | |
| 480 | for i = 1, waitt do | |
| 481 | Swait() | |
| 482 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
| 483 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 484 | if doesrotate == true then | |
| 485 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
| 486 | end | |
| 487 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 488 | if wave.Transparency > 0.99 then | |
| 489 | wave:remove() | |
| 490 | end | |
| 491 | end | |
| 492 | end)) | |
| 493 | end | |
| 494 | ||
| 495 | function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,offset,color) | |
| 496 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
| 497 | local mesh = IT("SpecialMesh",wave)
| |
| 498 | mesh.MeshType = "FileMesh" | |
| 499 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 500 | mesh.Scale = VT(size,size,size) | |
| 501 | wave.CFrame = cframe | |
| 502 | coroutine.resume(coroutine.create(function(PART) | |
| 503 | for i = 1, waitt do | |
| 504 | Swait() | |
| 505 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
| 506 | if doesrotate == true then | |
| 507 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
| 508 | end | |
| 509 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 510 | if wave.Transparency > 0.99 then | |
| 511 | wave:remove() | |
| 512 | end | |
| 513 | end | |
| 514 | end)) | |
| 515 | end | |
| 516 | ||
| 517 | function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color) | |
| 518 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
| 519 | local mesh = IT("SpecialMesh",wave)
| |
| 520 | mesh.MeshType = "FileMesh" | |
| 521 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
| 522 | mesh.Scale = VT(size,size,size) | |
| 523 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0)) | |
| 524 | coroutine.resume(coroutine.create(function(PART) | |
| 525 | for i = 1, waitt do | |
| 526 | Swait() | |
| 527 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
| 528 | if doesrotate == true then | |
| 529 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
| 530 | end | |
| 531 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 532 | if wave.Transparency > 0.99 then | |
| 533 | wave:remove() | |
| 534 | end | |
| 535 | end | |
| 536 | end)) | |
| 537 | end | |
| 538 | ||
| 539 | function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,offset,spin1,spin2,color) | |
| 540 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
| 541 | local mesh = IT("SpecialMesh",wave)
| |
| 542 | mesh.MeshType = "FileMesh" | |
| 543 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 544 | mesh.Scale = VT(size,size,size) | |
| 545 | mesh.Offset = VT(0,0,0) | |
| 546 | wave.CFrame = cframe | |
| 547 | coroutine.resume(coroutine.create(function(PART) | |
| 548 | for i = 1, waitt do | |
| 549 | Swait() | |
| 550 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
| 551 | if doesrotate == true then | |
| 552 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1) | |
| 553 | end | |
| 554 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 555 | if wave.Transparency > 0.99 then | |
| 556 | wave:remove() | |
| 557 | end | |
| 558 | end | |
| 559 | end)) | |
| 560 | end | |
| 561 | ||
| 562 | function MagicSphere(size,waitt,part,offset,color) | |
| 563 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1)) | |
| 564 | local mesh = IT("SpecialMesh",wave)
| |
| 565 | mesh.MeshType = "Sphere" | |
| 566 | mesh.Scale = VT(size,size,size) | |
| 567 | mesh.Offset = VT(0,0,0) | |
| 568 | wave.CFrame = CF(part) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0)) | |
| 569 | coroutine.resume(coroutine.create(function(PART) | |
| 570 | for i = 1, waitt do | |
| 571 | Swait() | |
| 572 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
| 573 | wave.Transparency = wave.Transparency + (1/waitt) | |
| 574 | if wave.Transparency > 0.99 then | |
| 575 | wave:remove() | |
| 576 | end | |
| 577 | end | |
| 578 | end)) | |
| 579 | end | |
| 580 | ||
| 581 | local EyeSizes={
| |
| 582 | NumberSequenceKeypoint.new(0,1,0), | |
| 583 | NumberSequenceKeypoint.new(1,0.2,0) | |
| 584 | } | |
| 585 | local EyeTrans={
| |
| 586 | NumberSequenceKeypoint.new(0,0.8,0), | |
| 587 | NumberSequenceKeypoint.new(1,1,0) | |
| 588 | } | |
| 589 | local PE=Instance.new("ParticleEmitter")
| |
| 590 | PE.LightEmission=0 | |
| 591 | PE.Size=NumberSequence.new(EyeSizes) | |
| 592 | PE.Transparency=NumberSequence.new(EyeTrans) | |
| 593 | PE.Lifetime=NumberRange.new(0.35,0.35,0.35) | |
| 594 | PE.Rotation=NumberRange.new(0,360) | |
| 595 | PE.Rate=15 | |
| 596 | PE.Acceleration = Vector3.new(0,75,0) | |
| 597 | PE.Drag = 5 | |
| 598 | PE.Enabled = false | |
| 599 | PE.Speed = NumberRange.new(0,0,0) | |
| 600 | PE.Texture="http://www.roblox.com/asset/?id=1252044340" | |
| 601 | PE.ZOffset = 0 | |
| 602 | PE.Name = "Particles" | |
| 603 | ||
| 604 | function CreateParticles(art,text,accel,drag,rate,type,isenabledbydefault) | |
| 605 | local particle = PE:Clone() | |
| 606 | particle.Parent = art | |
| 607 | particle.Acceleration = accel | |
| 608 | PE.Rate = rate | |
| 609 | if type == "Fire" then | |
| 610 | local EyeSizes={
| |
| 611 | NumberSequenceKeypoint.new(0,1,0.3), | |
| 612 | NumberSequenceKeypoint.new(1,0.2,0.2) | |
| 613 | } | |
| 614 | PE.Size = NumberSequence.new(EyeSizes) | |
| 615 | elseif type == "Smoke" then | |
| 616 | local EyeSizes={
| |
| 617 | NumberSequenceKeypoint.new(0,1,0), | |
| 618 | NumberSequenceKeypoint.new(1,5,0.5) | |
| 619 | } | |
| 620 | PE.Size = NumberSequence.new(EyeSizes) | |
| 621 | elseif type == "Solid" then | |
| 622 | local EyeSizes={
| |
| 623 | NumberSequenceKeypoint.new(0,1,0), | |
| 624 | NumberSequenceKeypoint.new(1,1,0) | |
| 625 | } | |
| 626 | PE.Size = NumberSequence.new(EyeSizes) | |
| 627 | end | |
| 628 | PE.Drag = drag | |
| 629 | particle.Texture = "http://www.roblox.com/asset/?id="..text | |
| 630 | particle.Enabled = isenabledbydefault | |
| 631 | return particle | |
| 632 | end | |
| 633 | ||
| 634 | --//=================================\\ | |
| 635 | --|| BIG ZAPS | |
| 636 | --\\=================================// | |
| 637 | ||
| 638 | BaseLightning = IT("Part")
| |
| 639 | BaseLightning.Anchored = true | |
| 640 | BaseLightning.CanCollide = false | |
| 641 | BaseLightning.Material = "Neon" | |
| 642 | ||
| 643 | function CheckTableForString(Table, String) | |
| 644 | for i, v in pairs(Table) do | |
| 645 | if string.find(string.lower(String), string.lower(v)) then | |
| 646 | return true | |
| 647 | end | |
| 648 | end | |
| 649 | return false | |
| 650 | end | |
| 651 | ||
| 652 | function CheckIntangible(Hit) | |
| 653 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
| |
| 654 | if Hit and Hit.Parent then | |
| 655 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
| |
| 656 | return true | |
| 657 | end | |
| 658 | end | |
| 659 | return false | |
| 660 | end | |
| 661 | ||
| 662 | Debris = game:GetService("Debris")
| |
| 663 | ||
| 664 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
| 665 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 666 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
| |
| 667 | if RayHit and CheckIntangible(RayHit) then | |
| 668 | if DelayIfHit then | |
| 669 | wait() | |
| 670 | end | |
| 671 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
| 672 | end | |
| 673 | return RayHit, RayPos, RayNormal | |
| 674 | end | |
| 675 | ||
| 676 | --Zap({StartPosition = Position, TargetPosition = Position, Character = Character, Color = "Color", Individual = true})
| |
| 677 | function Zap(Table) | |
| 678 | local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color | |
| 679 | local Duration = (Table.Duration or 2) | |
| 680 | local FadeRate = (Table.FadeRate or 0.05) | |
| 681 | local Offset = (Table.Offset or 2) | |
| 682 | local Individualize = (Table.Individualize or false) | |
| 683 | local MaxRange = (Table.MaxRange or 200) | |
| 684 | local SegmentLength = (Table.SegmentLength or 5) | |
| 685 | local TimeToFade = (Table.TimeToFade or 0.5) | |
| 686 | local Ignore = (Table.Ignore or {})
| |
| 687 | local SIZE = (Table.Size or 0.3) | |
| 688 | if not StartPos or not TargetPos or not Character then | |
| 689 | return | |
| 690 | end | |
| 691 | local LightningModel = IT("Folder",Effects)
| |
| 692 | LightningModel.Name = "ZAPP" | |
| 693 | for i, v in pairs({Character, LightningModel}) do
| |
| 694 | table.insert(Ignore, v) | |
| 695 | end | |
| 696 | local LastPos = StartPos | |
| 697 | local Direction = CFrame.new(StartPos, TargetPos).lookVector | |
| 698 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false) | |
| 699 | local RayLength = (StartPos - RayPos).Magnitude | |
| 700 | local Struck = false | |
| 701 | local TotalSegments = math.ceil(RayLength / SegmentLength) | |
| 702 | Direction = CFrame.new(StartPos, RayPos).lookVector | |
| 703 | local LightningBolt = IT("Model",Effects)
| |
| 704 | LightningBolt.Name = "Lightning" | |
| 705 | if not Individualize then | |
| 706 | table.insert(LightningBolts, LightningBolt) | |
| 707 | end | |
| 708 | LastBolt = LightningBolt | |
| 709 | Debris:AddItem(LightningBolt, Duration) | |
| 710 | LightningBolt.Parent = LightningModel | |
| 711 | for i = 1, TotalSegments do | |
| 712 | if not Struck then | |
| 713 | local Entropy = Vector3.new(((math.random() * Offset*2.5) - Offset), ((math.random() * Offset*2.5) - Offset), ((math.random() * Offset*2.5) - Offset)) | |
| 714 | local NewPos = (StartPos + (Direction * (RayLength * (i / TotalSegments))) + Entropy) | |
| 715 | local SegmentVec = (NewPos - LastPos) | |
| 716 | local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false)
| |
| 717 | local RayVec = (LastPos - RayPos) | |
| 718 | local LightningPart = BaseLightning:Clone() | |
| 719 | LightningPart.BrickColor = BrickColor.new(Color) | |
| 720 | LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude) | |
| 721 | LightningPart.CFrame = (CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2))) | |
| 722 | table.insert(Effects2,{LightningPart,"Disappear",0.025,1,1,1,2})
| |
| 723 | --Make circular | |
| 724 | local CylinderMesh = IT("CylinderMesh",LightningPart)
| |
| 725 | local OrigCF = LightningPart.CFrame | |
| 726 | LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y) | |
| 727 | LightningPart.CFrame = (OrigCF * CFrame.Angles((math.pi / 2), 0, 0)) | |
| 728 | LightningPart.Parent = LightningBolt | |
| 729 | LastPos = NewPos | |
| 730 | Spawn(function() | |
| 731 | local FadeRate = 0.05 | |
| 732 | local OrigTransparency = LightningPart.Transparency | |
| 733 | for i = 1, (TimeToFade / FadeRate) do | |
| 734 | wait(FadeRate) | |
| 735 | LightningPart.Transparency = (OrigTransparency + (i / (TimeToFade / FadeRate))) | |
| 736 | end | |
| 737 | end) | |
| 738 | end | |
| 739 | end | |
| 740 | return {RayHit = RayHit, RayPos = RayPos, RayNormal = RayNormal, LightningModel = LightningModel}
| |
| 741 | end | |
| 742 | ||
| 743 | --//=================================\\ | |
| 744 | --|| WEAPON CREATION | |
| 745 | --\\=================================// | |
| 746 | ||
| 747 | Weapon.Parent = Character | |
| 748 | ||
| 749 | Humanoid.Died:connect(function() | |
| 750 | ATTACK = true | |
| 751 | end) | |
| 752 | ||
| 753 | print(Class_Name.." loaded.") | |
| 754 | ||
| 755 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 756 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 757 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 758 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
| 759 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
| 760 | ||
| 761 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Claw force", SKILLTEXTCOLOR, 10, "Antique", 0, 2, 1, "Text 1") | |
| 762 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Hell leash", SKILLTEXTCOLOR, 10, "Antique", 0, 2, 1, "Text 2") | |
| 763 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Sinner wave", SKILLTEXTCOLOR, 10, "Antique", 0, 2, 1, "Text 3") | |
| 764 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] From the depths", SKILLTEXTCOLOR, 10, "Antique", 0, 2, 1, "Text 4") | |
| 765 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] The end", SKILLTEXTCOLOR, 10, "Antique", 0, 2, 1, "Text 5") | |
| 766 | ||
| 767 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 768 | naeeym2.AlwaysOnTop = true | |
| 769 | naeeym2.Size = UDim2.new(5,35,2,35) | |
| 770 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 771 | naeeym2.Adornee = Character.Head | |
| 772 | naeeym2.Name = "Name" | |
| 773 | naeeym2.PlayerToHideFrom = Player | |
| 774 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 775 | tecks2.BackgroundTransparency = 1 | |
| 776 | tecks2.TextScaled = true | |
| 777 | tecks2.BorderSizePixel = 0 | |
| 778 | tecks2.Text = "Sin unleashed" | |
| 779 | tecks2.Font = "Antique" | |
| 780 | tecks2.TextSize = 30 | |
| 781 | tecks2.TextStrokeTransparency = 0.9 | |
| 782 | tecks2.TextColor3 = Color3.new(0,0,0) | |
| 783 | tecks2.TextStrokeColor3 = Color3.new(1,0,0) | |
| 784 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 785 | tecks2.Parent = naeeym2 | |
| 786 | ||
| 787 | local Shield = IT("Part",Weapon)
| |
| 788 | Shield.Name = "Barrier" | |
| 789 | Shield.Shape = "Ball" | |
| 790 | Shield.Material = "Glass" | |
| 791 | Shield.Color = C3(1,0,0) | |
| 792 | Shield.Transparency = 0.5 | |
| 793 | Shield.Size = VT(0.5,0.5,0.5) | |
| 794 | local mesh = IT("SpecialMesh",Shield)
| |
| 795 | mesh.MeshType = "Sphere" | |
| 796 | mesh.Scale = VT(13,13,13) | |
| 797 | Shield.CFrame = RootPart.CFrame | |
| 798 | weldBetween(RootPart,Shield) | |
| 799 | ||
| 800 | createbodypart("Eye","Cyan",Head,VT(0.20, 0, -0.55),VT(2,6,2))
| |
| 801 | createbodypart("Eye","Cyan",Head,VT(-0.20, 0, -0.55),VT(2,6,2))
| |
| 802 | createbodypart("Eye","Cyan",Head,VT(0, 0, -0.6),VT(2,8,2))
| |
| 803 | ||
| 804 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 805 | local mesh = Instance.new("SpecialMesh",gear)
| |
| 806 | mesh.MeshType = "FileMesh" | |
| 807 | mesh.MeshId = "rbxassetid://156292343" | |
| 808 | mesh.Scale = VT(8,8,8) | |
| 809 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0 * Player_Size, 0 * Player_Size, 4 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)), CF(0, 0, 0))
| |
| 810 | ||
| 811 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 812 | local mesh = Instance.new("SpecialMesh",gear)
| |
| 813 | mesh.MeshType = "FileMesh" | |
| 814 | mesh.MeshId = "rbxassetid://156292343" | |
| 815 | mesh.Scale = VT(8,8,8) | |
| 816 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0 * Player_Size, 0 * Player_Size, 4 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
| |
| 817 | ||
| 818 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 819 | local mesh = Instance.new("SpecialMesh",gear)
| |
| 820 | mesh.MeshType = "FileMesh" | |
| 821 | mesh.MeshId = "rbxassetid://156292343" | |
| 822 | mesh.Scale = VT(6,6,6) | |
| 823 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0 * Player_Size, 0 * Player_Size, 4 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 824 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 825 | local mesh = Instance.new("SpecialMesh",gear)
| |
| 826 | mesh.MeshType = "FileMesh" | |
| 827 | mesh.MeshId = "rbxassetid://156292343" | |
| 828 | mesh.Scale = VT(4,4,4) | |
| 829 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0 * Player_Size, 0 * Player_Size, 6 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 830 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 831 | local mesh = Instance.new("SpecialMesh",gear)
| |
| 832 | mesh.MeshType = "FileMesh" | |
| 833 | mesh.MeshId = "rbxassetid://156292343" | |
| 834 | mesh.Scale = VT(2,2,2) | |
| 835 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0 * Player_Size, 0 * Player_Size, 8 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 836 | local BottomPart = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Handle", VT(1*Player_Size,6*Player_Size,1*Player_Size),false) | |
| 837 | local mesh = Instance.new("SpecialMesh",BottomPart)
| |
| 838 | mesh.MeshType = "Sphere" | |
| 839 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, BottomPart, RootPart, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 840 | ||
| 841 | --//=================================\\ | |
| 842 | --|| CREATING ARMS | |
| 843 | --\\=================================// | |
| 844 | ||
| 845 | --RIGHT ARM-- | |
| 846 | ||
| 847 | local limb1a = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Handle", VT(2*Player_Size,2*Player_Size,2*Player_Size),false) | |
| 848 | local mesh = Instance.new("SpecialMesh",limb1a)
| |
| 849 | mesh.MeshType = "Sphere" | |
| 850 | limb1a.Name = "Right Arm 01" | |
| 851 | ||
| 852 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Cyan", "Handle", VT(0.8*Player_Size,3.5*Player_Size,0.8*Player_Size),false) | |
| 853 | LIMB.Name = "Right Arm part" | |
| 854 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1a, LIMB, CF(0 * Player_Size, 2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 855 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Cyan", "Handle", VT(0.8*Player_Size,3.5*Player_Size,0.8*Player_Size),false) | |
| 856 | LIMB.Name = "Right Arm part" | |
| 857 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1a, LIMB, CF(0 * Player_Size, 6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 858 | local LIMB = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Handle", VT(0.7*Player_Size,3.5*Player_Size,0.7*Player_Size),false) | |
| 859 | LIMB.Name = "Right Arm part" | |
| 860 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1a, LIMB, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 861 | ||
| 862 | local limbweld1a = CreateWeldOrSnapOrMotor("Weld", limb1a, RootPart, limb1a, CF(4 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 863 | local limb1b = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Handle", VT(2*Player_Size,2*Player_Size,2*Player_Size),false) | |
| 864 | local mesh = Instance.new("SpecialMesh",limb1b)
| |
| 865 | mesh.MeshType = "Sphere" | |
| 866 | limb1b.Name = "Right Arm 02" | |
| 867 | ||
| 868 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Cyan", "Handle", VT(0.8*Player_Size,3.5*Player_Size,0.8*Player_Size),false) | |
| 869 | LIMB.Name = "Right Arm part" | |
| 870 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1b, LIMB, CF(0 * Player_Size, 2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 871 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Cyan", "Handle", VT(1.5*Player_Size,3.5*Player_Size,1.5*Player_Size),false) | |
| 872 | LIMB.Name = "Right Arm part" | |
| 873 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1b, LIMB, CF(0 * Player_Size, 6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 874 | local LIMB = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Handle", VT(0.7*Player_Size,3.5*Player_Size,0.7*Player_Size),false) | |
| 875 | LIMB.Name = "Right Arm part" | |
| 876 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1b, LIMB, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 877 | ||
| 878 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 879 | local mesh = Instance.new("SpecialMesh",part)
| |
| 880 | mesh.MeshType = "FileMesh" | |
| 881 | mesh.MeshId = "rbxassetid://156292343" | |
| 882 | mesh.Scale = VT(10,10,10) | |
| 883 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb1b, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 884 | ||
| 885 | local limbweld1b = CreateWeldOrSnapOrMotor("Weld", limb1b, limb1a, limb1b, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 886 | local limb1c = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Handle", VT(4*Player_Size,4*Player_Size,4*Player_Size),false) | |
| 887 | local mesh = Instance.new("SpecialMesh",limb1c)
| |
| 888 | mesh.MeshType = "Sphere" | |
| 889 | limb1c.Name = "Right Arm 03" | |
| 890 | ||
| 891 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 892 | local mesh = Instance.new("SpecialMesh",part)
| |
| 893 | mesh.MeshType = "FileMesh" | |
| 894 | mesh.MeshId = "rbxassetid://156292343" | |
| 895 | mesh.Scale = VT(15,15,15) | |
| 896 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb1c, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 897 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 898 | local mesh = Instance.new("SpecialMesh",part)
| |
| 899 | mesh.MeshType = "FileMesh" | |
| 900 | mesh.MeshId = "rbxassetid://156292343" | |
| 901 | mesh.Scale = VT(10,10,10) | |
| 902 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb1c, part, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 903 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 904 | local mesh = Instance.new("SpecialMesh",part)
| |
| 905 | mesh.MeshType = "FileMesh" | |
| 906 | mesh.MeshId = "rbxassetid://156292343" | |
| 907 | mesh.Scale = VT(10,10,10) | |
| 908 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb1c, part, CF(0 * Player_Size, -2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 909 | ||
| 910 | local limbweld1c = CreateWeldOrSnapOrMotor("Weld", limb1c, limb1b, limb1c, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 911 | ||
| 912 | local hand1 = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Hand", VT(0*Player_Size,0*Player_Size,0*Player_Size),false) | |
| 913 | local mesh = Instance.new("SpecialMesh",hand1)
| |
| 914 | mesh.MeshType = "FileMesh" | |
| 915 | mesh.MeshId = "rbxassetid://1089939072" | |
| 916 | mesh.Scale = VT(7,8,7) | |
| 917 | local handweld1 = CreateWeldOrSnapOrMotor("Weld", limb1c, hand1, limb1c, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(90), RAD(0)), CF(0, 0, 0))
| |
| 918 | ||
| 919 | --LEFT ARM | |
| 920 | ||
| 921 | local limb2a = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Handle", VT(2*Player_Size,2*Player_Size,2*Player_Size),false) | |
| 922 | local mesh = Instance.new("SpecialMesh",limb2a)
| |
| 923 | mesh.MeshType = "Sphere" | |
| 924 | limb2a.Name = "Left Arm 01" | |
| 925 | ||
| 926 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Cyan", "Handle", VT(0.8*Player_Size,3.5*Player_Size,0.8*Player_Size),false) | |
| 927 | LIMB.Name = "Left Arm part" | |
| 928 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2a, LIMB, CF(0 * Player_Size, 2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 929 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Cyan", "Handle", VT(01*Player_Size,3.5*Player_Size,1*Player_Size),false) | |
| 930 | LIMB.Name = "Left Arm part" | |
| 931 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2a, LIMB, CF(0 * Player_Size, 6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 932 | local LIMB = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Handle", VT(0.7*Player_Size,3.5*Player_Size,0.7*Player_Size),false) | |
| 933 | LIMB.Name = "Left Arm part" | |
| 934 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2a, LIMB, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 935 | ||
| 936 | local limbweld2a = CreateWeldOrSnapOrMotor("Weld", limb2a, RootPart, limb2a, CF(-4 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 937 | local limb2b = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Handle", VT(2.5*Player_Size,2.5*Player_Size,2.5*Player_Size),false) | |
| 938 | local mesh = Instance.new("SpecialMesh",limb2b)
| |
| 939 | mesh.MeshType = "Sphere" | |
| 940 | limb2b.Name = "Left Arm 02" | |
| 941 | ||
| 942 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Cyan", "Handle", VT(1*Player_Size,3.5*Player_Size,1*Player_Size),false) | |
| 943 | LIMB.Name = "Left Arm part" | |
| 944 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2b, LIMB, CF(0 * Player_Size, 2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 945 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Cyan", "Handle", VT(1.5*Player_Size,3.5*Player_Size,1.5*Player_Size),false) | |
| 946 | LIMB.Name = "Left Arm part" | |
| 947 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2b, LIMB, CF(0 * Player_Size, 6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 948 | local LIMB = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Handle", VT(0.7*Player_Size,3.5*Player_Size,0.7*Player_Size),false) | |
| 949 | LIMB.Name = "Left Arm part" | |
| 950 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2b, LIMB, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 951 | ||
| 952 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 953 | local mesh = Instance.new("SpecialMesh",part)
| |
| 954 | mesh.MeshType = "FileMesh" | |
| 955 | mesh.MeshId = "rbxassetid://156292343" | |
| 956 | mesh.Scale = VT(10,10,10) | |
| 957 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb2b, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 958 | ||
| 959 | local limbweld2b = CreateWeldOrSnapOrMotor("Weld", limb2b, limb2a, limb2b, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 960 | local limb2c = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Handle", VT(4*Player_Size,4*Player_Size,4*Player_Size),false) | |
| 961 | local mesh = Instance.new("SpecialMesh",limb2c)
| |
| 962 | mesh.MeshType = "Sphere" | |
| 963 | limb1c.Name = "Right Arm 03" | |
| 964 | ||
| 965 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 966 | local mesh = Instance.new("SpecialMesh",part)
| |
| 967 | mesh.MeshType = "FileMesh" | |
| 968 | mesh.MeshId = "rbxassetid://156292343" | |
| 969 | mesh.Scale = VT(15,15,15) | |
| 970 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb2c, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 971 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 972 | local mesh = Instance.new("SpecialMesh",part)
| |
| 973 | mesh.MeshType = "FileMesh" | |
| 974 | mesh.MeshId = "rbxassetid://156292343" | |
| 975 | mesh.Scale = VT(10,10,10) | |
| 976 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb2c, part, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 977 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
| 978 | local mesh = Instance.new("SpecialMesh",part)
| |
| 979 | mesh.MeshType = "FileMesh" | |
| 980 | mesh.MeshId = "rbxassetid://156292343" | |
| 981 | mesh.Scale = VT(10,10,10) | |
| 982 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb2c, part, CF(0 * Player_Size, -2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 983 | ||
| 984 | local limbweld2c = CreateWeldOrSnapOrMotor("Weld", limb2c, limb2b, limb2c, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 985 | ||
| 986 | local hand2 = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Hand", VT(0*Player_Size,0*Player_Size,0*Player_Size),false) | |
| 987 | local mesh = Instance.new("SpecialMesh",hand2)
| |
| 988 | mesh.MeshType = "FileMesh" | |
| 989 | mesh.MeshId = "rbxassetid://1089939056" | |
| 990 | mesh.Scale = VT(7,8,7) | |
| 991 | local handweld2 = CreateWeldOrSnapOrMotor("Weld", limb2c, hand2, limb2c, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
| |
| 992 | ||
| 993 | for _, c in pairs(Weapon:GetChildren()) do | |
| 994 | if c.ClassName == "Part" then | |
| 995 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 996 | end | |
| 997 | end | |
| 998 | ||
| 999 | --//=================================\\ | |
| 1000 | --|| SPEECH | |
| 1001 | --\\=================================// | |
| 1002 | ||
| 1003 | function chatfunc(text,waitt) | |
| 1004 | local chat = coroutine.wrap(function() | |
| 1005 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 1006 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 1007 | end | |
| 1008 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 1009 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 1010 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
| 1011 | naeeym2.Adornee = Character.Head | |
| 1012 | naeeym2.Name = "TalkingBillBoard" | |
| 1013 | naeeym2.AlwaysOnTop = true | |
| 1014 | local tecks2 = 30 | |
| 1015 | tecks2.BackgroundTransparency = 1 | |
| 1016 | tecks2.BorderSizePixel = 0 | |
| 1017 | tecks2.Text = "" | |
| 1018 | tecks2.Font = "Fantasy" | |
| 1019 | tecks2.TextSize = 30 | |
| 1020 | tecks2.TextStrokeTransparency = 1 | |
| 1021 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
| 1022 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 1023 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 1024 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 1025 | tecks3.BackgroundTransparency = 1 | |
| 1026 | tecks3.BorderSizePixel = 0 | |
| 1027 | tecks3.Text = "" | |
| 1028 | tecks3.Font = "Fantasy" | |
| 1029 | tecks3.TextSizekeTransparency = 1 | |
| 1030 | tecks3.TextColor3 = SKILLTEXTCOLOR | |
| 1031 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
| 1032 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
| 1033 | for i = 1,string.len(text),1 do | |
| 1034 | tecks2.Text = string.sub(text,1,i) | |
| 1035 | tecks3.Text = string.sub(text,1,i) | |
| 1036 | wait(0.01) | |
| 1037 | end | |
| 1038 | wait(waitt) | |
| 1039 | naeeym2:Destroy() | |
| 1040 | end) | |
| 1041 | chat() | |
| 1042 | end | |
| 1043 | ||
| 1044 | --//=================================\\ | |
| 1045 | --|| DAMAGE FUNCTIONS | |
| 1046 | --\\=================================// | |
| 1047 | ||
| 1048 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
| 1049 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Cyan", "Effect", VT()) | |
| 1050 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
| 1051 | local BODYGYRO = IT("BodyGyro", STATPART)
| |
| 1052 | local BODYPOSITION = IT("BodyPosition", STATPART)
| |
| 1053 | BODYPOSITION.P = 2000 | |
| 1054 | BODYPOSITION.D = 100 | |
| 1055 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
| 1056 | if LABELTYPE == "Normal" then | |
| 1057 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
| 1058 | elseif LABELTYPE == "Debuff" then | |
| 1059 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2)) | |
| 1060 | elseif LABELTYPE == "Interruption" then | |
| 1061 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2)) | |
| 1062 | end | |
| 1063 | game:GetService("Debris"):AddItem(STATPART ,5)
| |
| 1064 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
| |
| 1065 | BILLBOARDGUI.Adornee = STATPART | |
| 1066 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
| 1067 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
| 1068 | BILLBOARDGUI.AlwaysOnTop = false | |
| 1069 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
| |
| 1070 | TEXTLABEL.BackgroundTransparency = 1 | |
| 1071 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
| 1072 | TEXTLABEL.Text = TEXT | |
| 1073 | TEXTLABEL.Font = "SciFi" | |
| 1074 | TEXTLABEL.FontSize="Size42" | |
| 1075 | TEXTLABEL.TextColor3 = COLOR | |
| 1076 | TEXTLABEL.TextStrokeTransparency = 1 | |
| 1077 | TEXTLABEL.TextScaled = true | |
| 1078 | TEXTLABEL.TextWrapped = true | |
| 1079 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
| 1080 | wait(0.2) | |
| 1081 | for i=1, 5 do | |
| 1082 | wait() | |
| 1083 | THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0) | |
| 1084 | end | |
| 1085 | wait(1.2) | |
| 1086 | for i=1, 5 do | |
| 1087 | wait() | |
| 1088 | THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2 | |
| 1089 | THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2 | |
| 1090 | THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0) | |
| 1091 | end | |
| 1092 | THEPART.Parent = nil | |
| 1093 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
| 1094 | end | |
| 1095 | ||
| 1096 | function CreatePentagram(size,doesrotate,rotatedirection,waitt,cframe,offset) | |
| 1097 | local sinkhole = IT("Part",Effects)
| |
| 1098 | sinkhole.Size = VT(size,0,size) | |
| 1099 | sinkhole.CFrame = cframe * CF(0,offset,0) | |
| 1100 | sinkhole.Material = "Neon" | |
| 1101 | sinkhole.Color = C3(1,0,0) | |
| 1102 | sinkhole.Anchored = true | |
| 1103 | sinkhole.CanCollide = false | |
| 1104 | sinkhole.Transparency = 1 | |
| 1105 | local decal = IT("Decal",sinkhole)
| |
| 1106 | decal.Face = "Top" | |
| 1107 | decal.Texture = "http://www.roblox.com/asset/?id=1252044340" | |
| 1108 | coroutine.resume(coroutine.create(function(PART) | |
| 1109 | for i = 1, waitt do | |
| 1110 | Swait() | |
| 1111 | if doesrotate == true then | |
| 1112 | sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
| 1113 | end | |
| 1114 | if i > waitt-11 then | |
| 1115 | decal.Transparency = decal.Transparency + 0.1 | |
| 1116 | end | |
| 1117 | end | |
| 1118 | sinkhole:remove() | |
| 1119 | end)) | |
| 1120 | return sinkhole | |
| 1121 | end | |
| 1122 | ||
| 1123 | --//=================================\\ | |
| 1124 | --|| DAMAGING | |
| 1125 | --\\=================================// | |
| 1126 | ||
| 1127 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
| 1128 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
| |
| 1129 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1130 | local dmg = math.random(min,max) | |
| 1131 | if humanoid.Health > 0 then | |
| 1132 | if beserk == true then | |
| 1133 | humanoid.Health = 0 | |
| 1134 | else | |
| 1135 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
| |
| 1136 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
| 1137 | if math.random(1,100) < critrate+1 then | |
| 1138 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
| 1139 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
| |
| 1140 | else | |
| 1141 | humanoid.Health = humanoid.Health - dmg | |
| 1142 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
| |
| 1143 | end | |
| 1144 | local defence = Instance.new("BoolValue",hit.Parent)
| |
| 1145 | defence.Name = ("HitBy"..Player.Name)
| |
| 1146 | game:GetService("Debris"):AddItem(defence, 0.5)
| |
| 1147 | end | |
| 1148 | end | |
| 1149 | end | |
| 1150 | end | |
| 1151 | ||
| 1152 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
| 1153 | local dmg = math.random(min,max) | |
| 1154 | for i,v in ipairs(workspace:GetChildren()) do | |
| 1155 | if v:FindFirstChild("HitBy"..Player.Name) == nil then
| |
| 1156 | local body = v:GetChildren() | |
| 1157 | for part = 1, #body do | |
| 1158 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
| |
| 1159 | if(body[part].Position - position).Magnitude < radius then | |
| 1160 | if v.ClassName == "Model" then | |
| 1161 | if v:FindFirstChild("Humanoid") then
| |
| 1162 | if v.Humanoid.Health ~= 0 then | |
| 1163 | if CanBeDodgedByJumping == true then | |
| 1164 | if body[part].Position.Y < position.Y+5 then | |
| 1165 | if math.random(1,100) < critrate+1 then | |
| 1166 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
| 1167 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
| |
| 1168 | else | |
| 1169 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
| 1170 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
| |
| 1171 | end | |
| 1172 | local defence = Instance.new("BoolValue",v)
| |
| 1173 | defence.Name = ("HitBy"..Player.Name)
| |
| 1174 | game:GetService("Debris"):AddItem(defence, 0.5)
| |
| 1175 | end | |
| 1176 | else | |
| 1177 | if beserk == true then | |
| 1178 | v.Humanoid.Health = 0 | |
| 1179 | end | |
| 1180 | if math.random(1,100) < critrate+1 then | |
| 1181 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
| 1182 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
| |
| 1183 | else | |
| 1184 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
| 1185 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
| |
| 1186 | end | |
| 1187 | local defence = Instance.new("BoolValue",v)
| |
| 1188 | defence.Name = ("HitBy"..Player.Name)
| |
| 1189 | game:GetService("Debris"):AddItem(defence, 0.5)
| |
| 1190 | end | |
| 1191 | end | |
| 1192 | end | |
| 1193 | end | |
| 1194 | --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
| 1195 | end | |
| 1196 | end | |
| 1197 | end | |
| 1198 | if v.ClassName == "Part" then | |
| 1199 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
| 1200 | --v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
| 1201 | end | |
| 1202 | end | |
| 1203 | end | |
| 1204 | end | |
| 1205 | end | |
| 1206 | ||
| 1207 | function killnearest(position,range,maxstrength) | |
| 1208 | for i,v in ipairs(workspace:GetChildren()) do | |
| 1209 | local body = v:GetChildren() | |
| 1210 | for part = 1, #body do | |
| 1211 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
| 1212 | if(body[part].Position - position).Magnitude < range then | |
| 1213 | if v.ClassName == "Model" then | |
| 1214 | v:BreakJoints() | |
| 1215 | end | |
| 1216 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
| |
| 1217 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
| 1218 | end | |
| 1219 | end | |
| 1220 | end | |
| 1221 | if v.ClassName == "Part" then | |
| 1222 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
| 1223 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
| |
| 1224 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
| 1225 | end | |
| 1226 | end | |
| 1227 | end | |
| 1228 | end | |
| 1229 | ||
| 1230 | --//=================================\\ | |
| 1231 | --|| ATTACK FUNCTIONS AND STUFF | |
| 1232 | --\\=================================// | |
| 1233 | ||
| 1234 | ||
| 1235 | function turnto(pos,part) | |
| 1236 | part.CFrame = CF(part.Position,VT(pos.X,RootPart.Position.Y,pos.Z)) | |
| 1237 | end | |
| 1238 | ||
| 1239 | Humanoid.Died:connect(function() | |
| 1240 | q = workspace:GetChildren() | |
| 1241 | DEAD = true | |
| 1242 | CreatePentagram(1500,true,-0.1,150,CF(RootPart.Position),-15-3) | |
| 1243 | Head.Parent = nil | |
| 1244 | Head = nil | |
| 1245 | for i = 1, #q do | |
| 1246 | local child = q[i] | |
| 1247 | if child.ClassName == "Model" and child:FindFirstChild("Humanoid") then
| |
| 1248 | child:BreakJoints() | |
| 1249 | end | |
| 1250 | end | |
| 1251 | local taunt = CreateSound("135009414", workspace, 10, 1)
| |
| 1252 | local effect = IT("PitchShiftSoundEffect",taunt)
| |
| 1253 | effect.Octave = 0.700 | |
| 1254 | ATTACK = true | |
| 1255 | end) | |
| 1256 | ||
| 1257 | function ClawForce() | |
| 1258 | ATTACK = true | |
| 1259 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1260 | Swait() | |
| 1261 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1262 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1263 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1264 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1265 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1266 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1267 | ||
| 1268 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-65)), 0.4 / Animation_Speed) | |
| 1269 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-86), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
| 1270 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1271 | ||
| 1272 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(65)), 0.4 / Animation_Speed) | |
| 1273 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-86), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
| 1274 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1275 | end | |
| 1276 | CreateSound("134012322", Effects, 2, 1)
| |
| 1277 | for i=0, 1, 0.1 / Animation_Speed2 do | |
| 1278 | Swait() | |
| 1279 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1280 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1281 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
| 1282 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
| 1283 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1284 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1285 | ||
| 1286 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(8), RAD(-175)), 0.4 / Animation_Speed2) | |
| 1287 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(-5), RAD(0)), 0.4 / Animation_Speed2) | |
| 1288 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(-90), RAD(0)), 0.4 / Animation_Speed2) | |
| 1289 | ||
| 1290 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(-8), RAD(175)), 0.4 / Animation_Speed2) | |
| 1291 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(5), RAD(0)), 0.4 / Animation_Speed2) | |
| 1292 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(90), RAD(0)), 0.4 / Animation_Speed2) | |
| 1293 | end | |
| 1294 | killnearest(hand1.Position,15,60) | |
| 1295 | killnearest(hand2.Position,15,60) | |
| 1296 | CreateWave(0,15,false,0,15,CF(hand1.Position) * CF(0,-1,0),0,"Cyan") | |
| 1297 | CreateWave(0,15,false,0,15,CF(hand2.Position) * CF(0,-1,0),0,"Cyan") | |
| 1298 | CreateWave(0,10,false,0,15,CF(hand1.Position) * CF(0,-1,0),0,"Cyan") | |
| 1299 | CreateWave(0,10,false,0,15,CF(hand2.Position) * CF(0,-1,0),0,"Cyan") | |
| 1300 | CreateWave(0,5,false,0,15,CF(hand1.Position) * CF(0,-1,0),0,"Cyan") | |
| 1301 | CreateWave(0,5,false,0,15,CF(hand2.Position) * CF(0,-1,0),0,"Cyan") | |
| 1302 | CreateSound("1225807237", Effects, 4, 1)
| |
| 1303 | for i=0, 0.5, 0.1 / Animation_Speed2 do | |
| 1304 | Swait() | |
| 1305 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1306 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1307 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
| 1308 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
| 1309 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1310 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
| 1311 | ||
| 1312 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(8), RAD(-175)), 0.4 / Animation_Speed2) | |
| 1313 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(-5), RAD(0)), 0.4 / Animation_Speed2) | |
| 1314 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(-90), RAD(0)), 0.4 / Animation_Speed2) | |
| 1315 | ||
| 1316 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(-8), RAD(175)), 0.4 / Animation_Speed2) | |
| 1317 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(5), RAD(0)), 0.4 / Animation_Speed2) | |
| 1318 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(90), RAD(0)), 0.4 / Animation_Speed2) | |
| 1319 | end | |
| 1320 | ATTACK = false | |
| 1321 | end | |
| 1322 | ||
| 1323 | function HellLeash() | |
| 1324 | ATTACK = true | |
| 1325 | Rooted = true | |
| 1326 | CreateSound("159882578", Effects, 10, 0.6)
| |
| 1327 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1328 | Swait() | |
| 1329 | turnto(Mouse.Hit.p,RootPart) | |
| 1330 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
| 1331 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
| 1332 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1333 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1334 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1335 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1336 | ||
| 1337 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-85), RAD(0), RAD(-95)) * ANGLES(RAD(0),RAD(0),RAD(90)), 0.4 / Animation_Speed) | |
| 1338 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-6), RAD(-5 * COS(SINE / 30)), RAD(0)), 0.4 / Animation_Speed) | |
| 1339 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1340 | ||
| 1341 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(-8+(-5 * COS(SINE / 30))), RAD(135)), 0.4 / Animation_Speed) | |
| 1342 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-36), RAD(5 * COS(SINE / 30)), RAD(-35)), 0.4 / Animation_Speed) | |
| 1343 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1344 | end | |
| 1345 | CreateSound("910988901", Effects, 4, 1)
| |
| 1346 | local sphere = IT("Part",Effects)
| |
| 1347 | sphere.Shape = "Ball" | |
| 1348 | sphere.Size = VT(0,0,0) | |
| 1349 | sphere.Material = "Neon" | |
| 1350 | sphere.Color = C3(149,226,224) | |
| 1351 | sphere.CFrame = hand1.CFrame*CF(0,0,0) | |
| 1352 | sphere.Anchored = true | |
| 1353 | for i = 1, 25 do | |
| 1354 | Swait() | |
| 1355 | turnto(Mouse.Hit.p,RootPart) | |
| 1356 | sphere.CFrame = hand1.CFrame*CF(-3.5,-2-sphere.Size.Y/2,0) | |
| 1357 | sphere.Size = sphere.Size + VT(1,1,1) | |
| 1358 | sphere.Anchored = true | |
| 1359 | end | |
| 1360 | for i = 1, 100 do | |
| 1361 | turnto(Mouse.Hit.p,RootPart) | |
| 1362 | local RayData = Zap({Offset = 2, Size = sphere.Size.Y/5 ,MaxRange = 150 ,StartPosition = sphere.Position, TargetPosition = Mouse.Hit.p, Character = Character, Color = "Really red", Individual = true})
| |
| 1363 | MagicSphere(5,15,RayData.RayPos,0,"New Yeller") | |
| 1364 | killnearest(RayData.RayPos,15,100) | |
| 1365 | Swait() | |
| 1366 | sphere.CFrame = hand1.CFrame*CF(-3.5,-2-sphere.Size.Y/2,0) | |
| 1367 | sphere.Size = sphere.Size - VT(0.25,0.25,0.25) | |
| 1368 | sphere.Anchored = true | |
| 1369 | RayData.LightningModel:remove() | |
| 1370 | end | |
| 1371 | ATTACK = false | |
| 1372 | Rooted = false | |
| 1373 | end | |
| 1374 | ||
| 1375 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
| 1376 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
| |
| 1377 | end | |
| 1378 | ||
| 1379 | function SinnerWave() | |
| 1380 | ATTACK = true | |
| 1381 | Rooted = true | |
| 1382 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1383 | Swait() | |
| 1384 | turnto(Mouse.Hit.p,RootPart) | |
| 1385 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1386 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1387 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1388 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1389 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1390 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1391 | ||
| 1392 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-65)), 0.4 / Animation_Speed) | |
| 1393 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-86), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
| 1394 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1395 | ||
| 1396 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(65)), 0.4 / Animation_Speed) | |
| 1397 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-86), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
| 1398 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1399 | end | |
| 1400 | CreateSound("971126018", Effects, 6, 1)
| |
| 1401 | local angle = -60 | |
| 1402 | for i = 1, 9 do | |
| 1403 | coroutine.resume(coroutine.create(function() | |
| 1404 | local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character})
| |
| 1405 | local SpawnPosition = RayPos | |
| 1406 | local floor = RayHit | |
| 1407 | local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0)) | |
| 1408 | local LastPosition = RayPos | |
| 1409 | local Delay = 1 | |
| 1410 | for i = 1, 15 do | |
| 1411 | local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace})
| |
| 1412 | local End = RayPos | |
| 1413 | LastPosition = End | |
| 1414 | local locatepart = Instance.new("Part",Effects)
| |
| 1415 | locatepart.Size = VT(0.5,0.5,0.5) | |
| 1416 | locatepart.Position = End | |
| 1417 | locatepart.CanCollide = false | |
| 1418 | locatepart.Anchored = true | |
| 1419 | locatepart.Name = "Oof" | |
| 1420 | locatepart.Transparency = 1 | |
| 1421 | if SpawnPosition then | |
| 1422 | CreateSound("971125740", locatepart.CFrame, 7, 1)
| |
| 1423 | killnearest(End,15,50) | |
| 1424 | CreateWave(0,5,true,0.1,15,CF(locatepart.Position),0,"Really black") | |
| 1425 | CreateWave(0,2.5,true,-0.1,15,CF(locatepart.Position),0,"Really black") | |
| 1426 | CreateWave(0,2,true,0.1,15,CF(locatepart.Position),0,"Really black") | |
| 1427 | CreateWave(0,1.5,true,-0.1,15,CF(locatepart.Position),0,"Really black") | |
| 1428 | end | |
| 1429 | Swait(5) | |
| 1430 | game:GetService("Debris"):AddItem(locatepart, 5)
| |
| 1431 | end | |
| 1432 | end)) | |
| 1433 | angle = angle + 15 | |
| 1434 | end | |
| 1435 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1436 | Swait() | |
| 1437 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1438 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1439 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(72)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1440 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(-72)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1441 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1442 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1443 | ||
| 1444 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-125)), 0.4 / Animation_Speed) | |
| 1445 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
| 1446 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1447 | ||
| 1448 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(125)), 0.4 / Animation_Speed) | |
| 1449 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
| 1450 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1451 | end | |
| 1452 | ATTACK = false | |
| 1453 | Rooted = false | |
| 1454 | end | |
| 1455 | ||
| 1456 | function FromTheDepths() | |
| 1457 | ATTACK = true | |
| 1458 | Rooted = true | |
| 1459 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1460 | Swait() | |
| 1461 | turnto(Mouse.Hit.p,RootPart) | |
| 1462 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1463 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1464 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(72)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1465 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(-72)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1466 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1467 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1468 | ||
| 1469 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-125)), 0.4 / Animation_Speed) | |
| 1470 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
| 1471 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1472 | ||
| 1473 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(125)), 0.4 / Animation_Speed) | |
| 1474 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
| 1475 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1476 | end | |
| 1477 | local pos = nil | |
| 1478 | repeat | |
| 1479 | Swait() | |
| 1480 | local RayData = Zap({Offset = 2, Size = 0.2 ,MaxRange = 150 ,StartPosition = CF(BottomPart.Position)*CF(0,-3,0).p, TargetPosition = Mouse.Hit.p, Character = Character, Color = "Really red", Individual = true})
| |
| 1481 | MagicSphere(2,15,RayData.RayPos,0,"Cyan") | |
| 1482 | pos = RayData.RayPos | |
| 1483 | Swait() | |
| 1484 | RayData.LightningModel:remove() | |
| 1485 | turnto(Mouse.Hit.p,RootPart) | |
| 1486 | until KEYHOLD == false | |
| 1487 | coroutine.resume(coroutine.create(function() | |
| 1488 | local gate = IT("Part",Effects)
| |
| 1489 | gate.Material = "Neon" | |
| 1490 | gate.Color = C3(1,0,0) | |
| 1491 | gate.CanCollide = false | |
| 1492 | gate.Anchored = true | |
| 1493 | gate.Transparency = 1 | |
| 1494 | gate.Size = VT(65,0.3,65) | |
| 1495 | local mesh = IT("CylinderMesh",gate)
| |
| 1496 | gate.CFrame = CF(pos) | |
| 1497 | local soundeffect = IT("Sound",gate)
| |
| 1498 | soundeffect.SoundId = "rbxassetid://487186990" | |
| 1499 | soundeffect.Looped = true | |
| 1500 | soundeffect.Volume = 0 | |
| 1501 | soundeffect.Playing = true | |
| 1502 | for i = 1, 10 do | |
| 1503 | soundeffect.Volume = i | |
| 1504 | gate.Transparency = gate.Transparency - 0.1 | |
| 1505 | Swait() | |
| 1506 | end | |
| 1507 | for i = 1, 150 do | |
| 1508 | Swait(5) | |
| 1509 | killnearest(gate.Position,35,-10) | |
| 1510 | end | |
| 1511 | for i = 1, 10 do | |
| 1512 | soundeffect.Volume = soundeffect.Volume - 1 | |
| 1513 | gate.Transparency = gate.Transparency + 0.1 | |
| 1514 | Swait() | |
| 1515 | end | |
| 1516 | gate:remove() | |
| 1517 | end)) | |
| 1518 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1519 | Swait() | |
| 1520 | turnto(Mouse.Hit.p,RootPart) | |
| 1521 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1522 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1523 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(165), RAD(0), RAD(52)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1524 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(165), RAD(0), RAD(-52)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1525 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1526 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1527 | ||
| 1528 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-55)), 0.4 / Animation_Speed) | |
| 1529 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-66), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
| 1530 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
| 1531 | ||
| 1532 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(55)), 0.4 / Animation_Speed) | |
| 1533 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-66), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
| 1534 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.4 / Animation_Speed) | |
| 1535 | end | |
| 1536 | ATTACK = false | |
| 1537 | Rooted = false | |
| 1538 | end | |
| 1539 | ||
| 1540 | function TheEnd() | |
| 1541 | local pos = RootPart.CFrame * CF(0,65,0).p | |
| 1542 | ATTACK = true | |
| 1543 | Rooted = true | |
| 1544 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1545 | Swait() | |
| 1546 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1547 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1548 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(165), RAD(0), RAD(52)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1549 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(165), RAD(0), RAD(-52)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1550 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1551 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1552 | ||
| 1553 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-55)), 0.4 / Animation_Speed) | |
| 1554 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-66), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
| 1555 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
| 1556 | ||
| 1557 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(55)), 0.4 / Animation_Speed) | |
| 1558 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-66), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
| 1559 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.4 / Animation_Speed) | |
| 1560 | end | |
| 1561 | if DEAD == false then | |
| 1562 | local sphere = IT("Part",Effects)
| |
| 1563 | sphere.Shape = "Ball" | |
| 1564 | sphere.Size = VT(0,0,0) | |
| 1565 | sphere.Material = "Neon" | |
| 1566 | sphere.Color = C3(149,226,224) | |
| 1567 | sphere.CFrame = CF(pos) | |
| 1568 | sphere.Anchored = true | |
| 1569 | sphere.CanCollide = false | |
| 1570 | local maxdist1 = (hand1.Position-pos).magnitude | |
| 1571 | local maxdist2 = (hand2.Position-pos).magnitude | |
| 1572 | local soundeffect = IT("Sound",RootPart)
| |
| 1573 | soundeffect.SoundId = "rbxassetid://379557765" | |
| 1574 | soundeffect.Looped = true | |
| 1575 | soundeffect.Volume = 10 | |
| 1576 | soundeffect.Playing = true | |
| 1577 | local hit = sphere.Touched:connect(function(hit) | |
| 1578 | if hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Anchored == false and hit.CanCollide == true then | |
| 1579 | hit:Destroy() | |
| 1580 | end | |
| 1581 | end) | |
| 1582 | CreateSwirl(0,1,true,0.5,300,sphere.CFrame,0,"Cyan") | |
| 1583 | for i = 1, 250 do | |
| 1584 | --local RayData = Zap({Offset = 2, Size = 0.2 ,MaxRange = 1500 ,StartPosition = CF(BottomPart.Position)*CF(0,-3,0).p, TargetPosition = Mouse.Hit.p, Character = Character, Color = "Really red", Individual = true})
| |
| 1585 | local RayData2 = Zap({Offset = 2, Size = 0.2 ,MaxRange = maxdist1 ,StartPosition = hand1.Position, TargetPosition = pos, Character = Character, Color = "Really red", Individual = true})
| |
| 1586 | local RayData3 = Zap({Offset = 2, Size = 0.2 ,MaxRange = maxdist2 ,StartPosition = hand2.Position, TargetPosition = pos, Character = Character, Color = "Really red", Individual = true})
| |
| 1587 | Swait() | |
| 1588 | --RayData.LightningModel:remove() | |
| 1589 | RayData2.LightningModel:remove() | |
| 1590 | RayData3.LightningModel:remove() | |
| 1591 | sphere.Size = sphere.Size + VT(0.2,0.2,0.2) | |
| 1592 | end | |
| 1593 | soundeffect:remove() | |
| 1594 | Swait(50) | |
| 1595 | for i = 1, 5 do | |
| 1596 | CreateSound("821439273", sphere, 10, 0.7)
| |
| 1597 | --local RayData = Zap({Offset = 2, Size = 0.2 ,MaxRange = 1500 ,StartPosition = CF(BottomPart.Position)*CF(0,-3,0).p, TargetPosition = Mouse.Hit.p, Character = Character, Color = "Really red", Individual = true})
| |
| 1598 | local RayData2 = Zap({Offset = 2, Size = 2 ,MaxRange = maxdist1 ,StartPosition = hand1.Position, TargetPosition = pos, Character = Character, Color = "Really red", Individual = true})
| |
| 1599 | local RayData3 = Zap({Offset = 2, Size = 2 ,MaxRange = maxdist2 ,StartPosition = hand2.Position, TargetPosition = pos, Character = Character, Color = "Really red", Individual = true})
| |
| 1600 | Swait() | |
| 1601 | sphere.Size = sphere.Size + VT(5,5,5) | |
| 1602 | Swait(15) | |
| 1603 | end | |
| 1604 | local laugh = CreateSound("160212892", Effects, 10, 0.7)
| |
| 1605 | Swait(2) | |
| 1606 | repeat Swait() until laugh.Playing == false | |
| 1607 | - | local filter = IT("ColorCorrectionEffect",game.Lighting)
|
| 1607 | + | |
| 1608 | for i = 1, 100 do | |
| 1609 | Swait() | |
| 1610 | MagicSphere(sphere.Size.Y/2,15,sphere.Position,0,"Cyan") | |
| 1611 | MagicSphere(sphere.Size.Y/5,15,sphere.Position,0,"Cyan") | |
| 1612 | MagicSphere(sphere.Size.Y/8,15,sphere.Position,0,"Cyan") | |
| 1613 | sphere.Size = sphere.Size + VT(5,5,5) | |
| 1614 | filter.TintColor = C3(1,1-(i/100),1-(i/100)) | |
| 1615 | end | |
| 1616 | for i = 1, 100 do | |
| 1617 | Swait() | |
| 1618 | MagicSphere(sphere.Size.Y/2,15,sphere.Position,0,"Cyan") | |
| 1619 | MagicSphere(sphere.Size.Y/5,15,sphere.Position,0,"Cyan") | |
| 1620 | MagicSphere(sphere.Size.Y/8,15,sphere.Position,0,"Cyan") | |
| 1621 | sphere.Size = sphere.Size + VT(5,5,5) | |
| 1622 | filter.Brightness = filter.Brightness - (1/100) | |
| 1623 | end | |
| 1624 | --killnearest(sphere.Position,1000,100) | |
| 1625 | sphere:remove() | |
| 1626 | Swait(50) | |
| 1627 | ATTACK = false | |
| 1628 | Rooted = false | |
| 1629 | for i = 1, 50 do | |
| 1630 | Swait() | |
| 1631 | filter.TintColor = C3(1,0+(i/50),0+(i/50)) | |
| 1632 | filter.Brightness = filter.Brightness + (1/50) | |
| 1633 | end | |
| 1634 | filter:remove() | |
| 1635 | end | |
| 1636 | end | |
| 1637 | ||
| 1638 | Humanoid.HealthChanged:connect(function() | |
| 1639 | if Humanoid.Health == 0 then | |
| 1640 | Humanoid.MaxHealth = "inf" | |
| 1641 | Humanoid.Health = "inf" | |
| 1642 | if ATTACK == false then | |
| 1643 | if Humanoid.Health == 0 then | |
| 1644 | workspace:ClearAllChildren() | |
| 1645 | else | |
| 1646 | TheEnd() | |
| 1647 | end | |
| 1648 | end | |
| 1649 | end | |
| 1650 | end) | |
| 1651 | ||
| 1652 | --//=================================\\ | |
| 1653 | --|| ASSIGN THINGS TO KEYS | |
| 1654 | --\\=================================// | |
| 1655 | ||
| 1656 | function MouseDown(Mouse) | |
| 1657 | if ATTACK == false then | |
| 1658 | end | |
| 1659 | end | |
| 1660 | ||
| 1661 | function MouseUp(Mouse) | |
| 1662 | HOLD = false | |
| 1663 | end | |
| 1664 | ||
| 1665 | function KeyDown(Key) | |
| 1666 | KEYHOLD = true | |
| 1667 | if Key == "z" and ATTACK == false then | |
| 1668 | ClawForce() | |
| 1669 | end | |
| 1670 | ||
| 1671 | if Key == "b" and ATTACK == false then | |
| 1672 | HellLeash() | |
| 1673 | end | |
| 1674 | ||
| 1675 | if Key == "c" and ATTACK == false then | |
| 1676 | SinnerWave() | |
| 1677 | end | |
| 1678 | ||
| 1679 | if Key == "v" and ATTACK == false then | |
| 1680 | FromTheDepths() | |
| 1681 | end | |
| 1682 | ||
| 1683 | if Key == "x" and ATTACK == false then | |
| 1684 | TheEnd() | |
| 1685 | end | |
| 1686 | ||
| 1687 | if Key == "t" and ATTACK == false then | |
| 1688 | CreateSound("907329893", Head, 10, 0.85)
| |
| 1689 | end | |
| 1690 | end | |
| 1691 | ||
| 1692 | function KeyUp(Key) | |
| 1693 | KEYHOLD = false | |
| 1694 | end | |
| 1695 | ||
| 1696 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1697 | MouseDown(NEWKEY) | |
| 1698 | end) | |
| 1699 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1700 | MouseUp(NEWKEY) | |
| 1701 | end) | |
| 1702 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1703 | KeyDown(NEWKEY) | |
| 1704 | end) | |
| 1705 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1706 | KeyUp(NEWKEY) | |
| 1707 | end) | |
| 1708 | ||
| 1709 | --//=================================\\ | |
| 1710 | --\\=================================// | |
| 1711 | ||
| 1712 | ||
| 1713 | function unanchor() | |
| 1714 | if UNANCHOR == true then | |
| 1715 | g = Character:GetChildren() | |
| 1716 | for i = 1, #g do | |
| 1717 | if g[i].ClassName == "Part" then | |
| 1718 | g[i].Anchored = false | |
| 1719 | end | |
| 1720 | end | |
| 1721 | end | |
| 1722 | end | |
| 1723 | ||
| 1724 | ||
| 1725 | --//=================================\\ | |
| 1726 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1727 | --\\=================================// | |
| 1728 | ||
| 1729 | Humanoid.Changed:connect(function(Jump) | |
| 1730 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1731 | Humanoid.Jump = false | |
| 1732 | end | |
| 1733 | end) | |
| 1734 | ||
| 1735 | ANIMATE.Parent = nil | |
| 1736 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
| 1737 | IDLEANIMATION:Play() | |
| 1738 | ||
| 1739 | while true do | |
| 1740 | Swait() | |
| 1741 | SINE = SINE + CHANGE | |
| 1742 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1743 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1744 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
| 1745 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
| 1746 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 1747 | if ATTACK == false then | |
| 1748 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1749 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1750 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1751 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1752 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1753 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1754 | ||
| 1755 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(8+(5 * COS(SINE / 30))), RAD(-125)), 0.4 / Animation_Speed) | |
| 1756 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-56), RAD(-5 * COS(SINE / 30)), RAD(0)), 0.4 / Animation_Speed) | |
| 1757 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1758 | ||
| 1759 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(-8+(-5 * COS(SINE / 30))), RAD(125)), 0.4 / Animation_Speed) | |
| 1760 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-56), RAD(5 * COS(SINE / 30)), RAD(0)), 0.4 / Animation_Speed) | |
| 1761 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
| 1762 | end | |
| 1763 | if #Effects2>0 then | |
| 1764 | for e=1,#Effects2 do | |
| 1765 | if Effects2[e]~=nil then | |
| 1766 | local Thing=Effects2[e] | |
| 1767 | if Thing~=nil then | |
| 1768 | local Part=Thing[1] | |
| 1769 | local Mode=Thing[2] | |
| 1770 | local Delay=Thing[3] | |
| 1771 | local IncX=Thing[4] | |
| 1772 | local IncY=Thing[5] | |
| 1773 | local IncZ=Thing[6] | |
| 1774 | local Part2=Thing[8] | |
| 1775 | if Thing[1].Transparency<=1 then | |
| 1776 | if Thing[2]=="Block1" then | |
| 1777 | Thing[1].CFrame=Thing[1].CFrame | |
| 1778 | Mesh=Thing[1].Mesh | |
| 1779 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
| 1780 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1781 | elseif Thing[2]=="Cylinder" then | |
| 1782 | Mesh=Thing[1].Mesh | |
| 1783 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
| 1784 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1785 | elseif Thing[2]=="Blood" then | |
| 1786 | Mesh=Thing[7] | |
| 1787 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
| 1788 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
| 1789 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1790 | elseif Thing[2]=="Elec" then | |
| 1791 | Mesh=Thing[1].Mesh | |
| 1792 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
| 1793 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1794 | elseif Thing[2]=="Disappear" then | |
| 1795 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1796 | end | |
| 1797 | else | |
| 1798 | Part.Parent=nil | |
| 1799 | table.remove(Effects2,e) | |
| 1800 | end | |
| 1801 | end | |
| 1802 | end | |
| 1803 | end | |
| 1804 | end | |
| 1805 | unanchor() | |
| 1806 | Humanoid.MaxHealth = "inf" | |
| 1807 | Humanoid.Health = "inf" | |
| 1808 | if Rooted == false then | |
| 1809 | Disable_Jump = false | |
| 1810 | Humanoid.WalkSpeed = Speed | |
| 1811 | elseif Rooted == true then | |
| 1812 | Disable_Jump = true | |
| 1813 | Humanoid.WalkSpeed = 0 | |
| 1814 | end | |
| 1815 | q = Character:GetChildren() | |
| 1816 | for u = 1, #q do | |
| 1817 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
| 1818 | q[u]:remove() | |
| 1819 | elseif q[u].ClassName == "Shirt" then | |
| 1820 | q[u]:Destroy() | |
| 1821 | elseif q[u].ClassName == "Pants" then | |
| 1822 | q[u]:Destroy() | |
| 1823 | elseif q[u].ClassName == "CharacterMesh" then | |
| 1824 | q[u]:remove() | |
| 1825 | elseif q[u].ClassName == "ShirtGraphic" then | |
| 1826 | q[u]:remove() | |
| 1827 | elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then | |
| 1828 | q[u].Color = Color3.new(0/255, 0/255, 0/255) | |
| 1829 | end | |
| 1830 | end | |
| 1831 | if Head:FindFirstChild("face") then
| |
| 1832 | Head.face:remove() | |
| 1833 | end | |
| 1834 | end | |
| 1835 | ||
| 1836 | --//=================================\\ | |
| 1837 | --\\=================================// | |
| 1838 | ||
| 1839 | ||
| 1840 | ||
| 1841 | ||
| 1842 | ||
| 1843 | --//====================================================\\-- | |
| 1844 | --|| END OF SCRIPT | |
| 1845 | --\\====================================================//-- |