SHOW:
|
|
- or go back to the newest paste.
| 1 | ||
| 2 | - | --|| CREATED BY SHACKLUSTER |
| 2 | + | |
| 3 | - | --\\====================================================//-- |
| 3 | + | |
| 4 | Player = game:GetService("Players").LocalPlayer
| |
| 5 | PlayerGui = Player.PlayerGui | |
| 6 | Cam = workspace.CurrentCamera | |
| 7 | Backpack = Player.Backpack | |
| 8 | Character = Player.Character | |
| 9 | Humanoid = Character.Humanoid | |
| 10 | Mouse = Player:GetMouse() | |
| 11 | RootPart = Character["HumanoidRootPart"] | |
| 12 | Torso = Character["Torso"] | |
| 13 | Head = Character["Head"] | |
| 14 | RightArm = Character["Right Arm"] | |
| 15 | LeftArm = Character["Left Arm"] | |
| 16 | RightLeg = Character["Right Leg"] | |
| 17 | LeftLeg = Character["Left Leg"] | |
| 18 | RootJoint = RootPart["RootJoint"] | |
| 19 | Neck = Torso["Neck"] | |
| 20 | RightShoulder = Torso["Right Shoulder"] | |
| 21 | LeftShoulder = Torso["Left Shoulder"] | |
| 22 | RightHip = Torso["Right Hip"] | |
| 23 | LeftHip = Torso["Left Hip"] | |
| 24 | local sick = Instance.new("Sound",Character)
| |
| 25 | sick.SoundId = "rbxassetid://546458506" | |
| 26 | sick.Looped = true | |
| 27 | sick.Pitch = 1 | |
| 28 | sick.Volume = 1 | |
| 29 | sick:Play() | |
| 30 | Humanoid.DisplayDistanceType = "None" | |
| 31 | ||
| 32 | IT = Instance.new | |
| 33 | CF = CFrame.new | |
| 34 | VT = Vector3.new | |
| 35 | RAD = math.rad | |
| 36 | C3 = Color3.new | |
| 37 | UD2 = UDim2.new | |
| 38 | BRICKC = BrickColor.new | |
| 39 | ANGLES = CFrame.Angles | |
| 40 | EULER = CFrame.fromEulerAnglesXYZ | |
| 41 | COS = math.cos | |
| 42 | ACOS = math.acos | |
| 43 | SIN = math.sin | |
| 44 | ASIN = math.asin | |
| 45 | ABS = math.abs | |
| 46 | MRANDOM = math.random | |
| 47 | FLOOR = math.floor | |
| 48 | ||
| 49 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 50 | local NEWMESH = IT(MESH) | |
| 51 | if MESH == "SpecialMesh" then | |
| 52 | NEWMESH.MeshType = MESHTYPE | |
| 53 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 54 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 55 | end | |
| 56 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 57 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 58 | end | |
| 59 | end | |
| 60 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 61 | NEWMESH.Scale = SCALE | |
| 62 | NEWMESH.Parent = PARENT | |
| 63 | return NEWMESH | |
| 64 | end | |
| 65 | ||
| 66 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 67 | local NEWPART = IT("Part")
| |
| 68 | NEWPART.formFactor = FORMFACTOR | |
| 69 | NEWPART.Reflectance = REFLECTANCE | |
| 70 | NEWPART.Transparency = TRANSPARENCY | |
| 71 | NEWPART.CanCollide = false | |
| 72 | NEWPART.Locked = true | |
| 73 | NEWPART.Anchored = true | |
| 74 | if ANCHOR == false then | |
| 75 | NEWPART.Anchored = false | |
| 76 | end | |
| 77 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 78 | NEWPART.Name = NAME | |
| 79 | NEWPART.Size = SIZE | |
| 80 | NEWPART.Position = Torso.Position | |
| 81 | NEWPART.Material = MATERIAL | |
| 82 | NEWPART:BreakJoints() | |
| 83 | NEWPART.Parent = PARENT | |
| 84 | return NEWPART | |
| 85 | end | |
| 86 | ||
| 87 | --//=================================\\ | |
| 88 | --|| CUSTOMIZATION | |
| 89 | --\\=================================// | |
| 90 | ||
| 91 | Class_Name = "Template" | |
| 92 | Weapon_Name = "Add-ons" | |
| 93 | ||
| 94 | Custom_Colors = {
| |
| 95 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
| |
| 96 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
| |
| 97 | ||
| 98 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
| |
| 99 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
| |
| 100 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
| |
| 101 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
| |
| 102 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
| |
| 103 | ||
| 104 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
| |
| 105 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
| |
| 106 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
| |
| 107 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
| |
| 108 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
| |
| 109 | } | |
| 110 | ||
| 111 | ||
| 112 | Player_Size = 1 --Size of the player. | |
| 113 | Animation_Speed = 3 | |
| 114 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 115 | ||
| 116 | local Speed = 16 | |
| 117 | local Effects2 = {}
| |
| 118 | ||
| 119 | --//=================================\\ | |
| 120 | --|| END OF CUSTOMIZATION | |
| 121 | --\\=================================// | |
| 122 | ||
| 123 | local function weldBetween(a, b) | |
| 124 | local weldd = Instance.new("ManualWeld")
| |
| 125 | weldd.Part0 = a | |
| 126 | weldd.Part1 = b | |
| 127 | weldd.C0 = CFrame.new() | |
| 128 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 129 | weldd.Parent = a | |
| 130 | return weldd | |
| 131 | end | |
| 132 | ||
| 133 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
| 134 | local acs = Instance.new("Part")
| |
| 135 | acs.CanCollide = false | |
| 136 | acs.Anchored = false | |
| 137 | acs.Size = Vector3.new(0,0,0) | |
| 138 | acs.CFrame = attachmentpart.CFrame | |
| 139 | acs.Parent = Character | |
| 140 | acs.BrickColor = color | |
| 141 | local meshs = Instance.new("SpecialMesh")
| |
| 142 | meshs.MeshId = mesh | |
| 143 | meshs.TextureId = texture | |
| 144 | meshs.Parent = acs | |
| 145 | meshs.Scale = scale | |
| 146 | meshs.Offset = offset | |
| 147 | weldBetween(attachmentpart,acs) | |
| 148 | end | |
| 149 | ||
| 150 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
| 151 | if TYPE == "Gem" then | |
| 152 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 153 | acs.Anchored = false | |
| 154 | acs.CanCollide = false | |
| 155 | acs.CFrame = PART.CFrame | |
| 156 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
| |
| 157 | weldBetween(PART,acs) | |
| 158 | elseif TYPE == "Skull" then | |
| 159 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 160 | acs.Anchored = false | |
| 161 | acs.CanCollide = false | |
| 162 | acs.CFrame = PART.CFrame | |
| 163 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
| |
| 164 | weldBetween(PART,acs) | |
| 165 | elseif TYPE == "Eye" then | |
| 166 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 167 | acs.Anchored = false | |
| 168 | acs.CanCollide = false | |
| 169 | acs.CFrame = PART.CFrame | |
| 170 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
| |
| 171 | weldBetween(PART,acs) | |
| 172 | end | |
| 173 | end | |
| 174 | ||
| 175 | --//=================================\\ | |
| 176 | --|| USEFUL VALUES | |
| 177 | --\\=================================// | |
| 178 | ||
| 179 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 180 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 181 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 182 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 183 | local CHANGEDEFENSE = 0 | |
| 184 | local CHANGEDAMAGE = 0 | |
| 185 | local CHANGEMOVEMENT = 0 | |
| 186 | local ANIM = "Idle" | |
| 187 | local ATTACK = false | |
| 188 | local EQUIPPED = false | |
| 189 | local HOLD = false | |
| 190 | local COMBO = 1 | |
| 191 | local Rooted = false | |
| 192 | local SINE = 0 | |
| 193 | local KEYHOLD = false | |
| 194 | local CHANGE = 2 / Animation_Speed | |
| 195 | local WALKINGANIM = false | |
| 196 | local WALK = 0 | |
| 197 | local VALUE1 = false | |
| 198 | local VALUE2 = false | |
| 199 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 200 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 201 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 202 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 203 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 204 | WEAPONGUI.Name = "Weapon GUI" | |
| 205 | local Weapon = IT("Model")
| |
| 206 | Weapon.Name = Weapon_Name | |
| 207 | local Effects = IT("Folder", Weapon)
| |
| 208 | Effects.Name = "Effects" | |
| 209 | local ANIMATOR = Humanoid.Animator | |
| 210 | local ANIMATE = Character.Animate | |
| 211 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
| |
| 212 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
| |
| 213 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
| |
| 214 | local HITBLOCKSOUNDS = {"199148933", "199148947"}
| |
| 215 | local UNANCHOR = true | |
| 216 | local ROAR = "347739136" | |
| 217 | local BOOSTSOUND = "862693565" | |
| 218 | local STABSOUND = "862701802" | |
| 219 | ||
| 220 | local SKILLTEXTCOLOR = BRICKC("Shamrock").Color
| |
| 221 | ||
| 222 | --//=================================\\ | |
| 223 | --\\=================================// | |
| 224 | ||
| 225 | ||
| 226 | --//=================================\\ | |
| 227 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 228 | --\\=================================// | |
| 229 | ||
| 230 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 231 | ArtificialHB.Name = "ArtificialHB" | |
| 232 | ||
| 233 | script:WaitForChild("ArtificialHB")
| |
| 234 | ||
| 235 | frame = Frame_Speed | |
| 236 | tf = 0 | |
| 237 | allowframeloss = false | |
| 238 | tossremainder = false | |
| 239 | lastframe = tick() | |
| 240 | script.ArtificialHB:Fire() | |
| 241 | ||
| 242 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 243 | tf = tf + s | |
| 244 | if tf >= frame then | |
| 245 | if allowframeloss then | |
| 246 | script.ArtificialHB:Fire() | |
| 247 | lastframe = tick() | |
| 248 | else | |
| 249 | for i = 1, math.floor(tf / frame) do | |
| 250 | script.ArtificialHB:Fire() | |
| 251 | end | |
| 252 | lastframe = tick() | |
| 253 | end | |
| 254 | if tossremainder then | |
| 255 | tf = 0 | |
| 256 | else | |
| 257 | tf = tf - frame * math.floor(tf / frame) | |
| 258 | end | |
| 259 | end | |
| 260 | end) | |
| 261 | ||
| 262 | --//=================================\\ | |
| 263 | --\\=================================// | |
| 264 | ||
| 265 | ||
| 266 | ||
| 267 | ||
| 268 | ||
| 269 | --//=================================\\ | |
| 270 | --|| SOME FUNCTIONS | |
| 271 | --\\=================================// | |
| 272 | ||
| 273 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 274 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 275 | end | |
| 276 | ||
| 277 | function PositiveAngle(NUMBER) | |
| 278 | if NUMBER >= 0 then | |
| 279 | NUMBER = 0 | |
| 280 | end | |
| 281 | return NUMBER | |
| 282 | end | |
| 283 | ||
| 284 | function NegativeAngle(NUMBER) | |
| 285 | if NUMBER <= 0 then | |
| 286 | NUMBER = 0 | |
| 287 | end | |
| 288 | return NUMBER | |
| 289 | end | |
| 290 | ||
| 291 | function Swait(NUMBER) | |
| 292 | if NUMBER == 0 or NUMBER == nil then | |
| 293 | ArtificialHB.Event:wait() | |
| 294 | else | |
| 295 | for i = 1, NUMBER do | |
| 296 | ArtificialHB.Event:wait() | |
| 297 | end | |
| 298 | end | |
| 299 | end | |
| 300 | ||
| 301 | function QuaternionFromCFrame(cf) | |
| 302 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 303 | local trace = m00 + m11 + m22 | |
| 304 | if trace > 0 then | |
| 305 | local s = math.sqrt(1 + trace) | |
| 306 | local recip = 0.5 / s | |
| 307 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 308 | else | |
| 309 | local i = 0 | |
| 310 | if m11 > m00 then | |
| 311 | i = 1 | |
| 312 | end | |
| 313 | if m22 > (i == 0 and m00 or m11) then | |
| 314 | i = 2 | |
| 315 | end | |
| 316 | if i == 0 then | |
| 317 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 318 | local recip = 0.5 / s | |
| 319 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 320 | elseif i == 1 then | |
| 321 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 322 | local recip = 0.5 / s | |
| 323 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 324 | elseif i == 2 then | |
| 325 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 326 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 327 | end | |
| 328 | end | |
| 329 | end | |
| 330 | ||
| 331 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 332 | local xs, ys, zs = x + x, y + y, z + z | |
| 333 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 334 | local xx = x * xs | |
| 335 | local xy = x * ys | |
| 336 | local xz = x * zs | |
| 337 | local yy = y * ys | |
| 338 | local yz = y * zs | |
| 339 | local zz = z * zs | |
| 340 | 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)) | |
| 341 | end | |
| 342 | ||
| 343 | function QuaternionSlerp(a, b, t) | |
| 344 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 345 | local startInterp, finishInterp; | |
| 346 | if cosTheta >= 0.0001 then | |
| 347 | if (1 - cosTheta) > 0.0001 then | |
| 348 | local theta = ACOS(cosTheta) | |
| 349 | local invSinTheta = 1 / SIN(theta) | |
| 350 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 351 | finishInterp = SIN(t * theta) * invSinTheta | |
| 352 | else | |
| 353 | startInterp = 1 - t | |
| 354 | finishInterp = t | |
| 355 | end | |
| 356 | else | |
| 357 | if (1 + cosTheta) > 0.0001 then | |
| 358 | local theta = ACOS(-cosTheta) | |
| 359 | local invSinTheta = 1 / SIN(theta) | |
| 360 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 361 | finishInterp = SIN(t * theta) * invSinTheta | |
| 362 | else | |
| 363 | startInterp = t - 1 | |
| 364 | finishInterp = t | |
| 365 | end | |
| 366 | end | |
| 367 | 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 | |
| 368 | end | |
| 369 | ||
| 370 | function Clerp(a, b, t) | |
| 371 | local qa = {QuaternionFromCFrame(a)}
| |
| 372 | local qb = {QuaternionFromCFrame(b)}
| |
| 373 | local ax, ay, az = a.x, a.y, a.z | |
| 374 | local bx, by, bz = b.x, b.y, b.z | |
| 375 | local _t = 1 - t | |
| 376 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 377 | end | |
| 378 | ||
| 379 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 380 | local frame = IT("Frame")
| |
| 381 | frame.BackgroundTransparency = TRANSPARENCY | |
| 382 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 383 | frame.Position = POSITION | |
| 384 | frame.Size = SIZE | |
| 385 | frame.BackgroundColor3 = COLOR | |
| 386 | frame.BorderColor3 = BORDERCOLOR | |
| 387 | frame.Name = NAME | |
| 388 | frame.Parent = PARENT | |
| 389 | return frame | |
| 390 | end | |
| 391 | ||
| 392 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 393 | local label = IT("TextLabel")
| |
| 394 | label.BackgroundTransparency = 1 | |
| 395 | label.Size = UD2(1, 0, 1, 0) | |
| 396 | label.Position = UD2(0, 0, 0, 0) | |
| 397 | label.TextColor3 = TEXTCOLOR | |
| 398 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 399 | label.TextTransparency = TRANSPARENCY | |
| 400 | label.FontSize = TEXTFONTSIZE | |
| 401 | label.Font = TEXTFONT | |
| 402 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 403 | label.TextScaled = false | |
| 404 | label.Text = TEXT | |
| 405 | label.Name = NAME | |
| 406 | label.Parent = PARENT | |
| 407 | return label | |
| 408 | end | |
| 409 | ||
| 410 | function NoOutlines(PART) | |
| 411 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 412 | end | |
| 413 | ||
| 414 | ||
| 415 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 416 | local NEWWELD = IT(TYPE) | |
| 417 | NEWWELD.Part0 = PART0 | |
| 418 | NEWWELD.Part1 = PART1 | |
| 419 | NEWWELD.C0 = C0 | |
| 420 | NEWWELD.C1 = C1 | |
| 421 | NEWWELD.Parent = PARENT | |
| 422 | return NEWWELD | |
| 423 | end | |
| 424 | ||
| 425 | local sound = IT("Sound")
| |
| 426 | ||
| 427 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
| 428 | local NEWSOUND = nil | |
| 429 | coroutine.resume(coroutine.create(function() | |
| 430 | NEWSOUND = sound:Clone() | |
| 431 | NEWSOUND.Parent = PARENT | |
| 432 | NEWSOUND.Volume = VOLUME | |
| 433 | NEWSOUND.Pitch = PITCH | |
| 434 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 435 | Swait() | |
| 436 | NEWSOUND:play() | |
| 437 | game:GetService("Debris"):AddItem(NEWSOUND, 10)
| |
| 438 | end)) | |
| 439 | return NEWSOUND | |
| 440 | end | |
| 441 | ||
| 442 | function CFrameFromTopBack(at, top, back) | |
| 443 | local right = top:Cross(back) | |
| 444 | 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) | |
| 445 | end | |
| 446 | ||
| 447 | function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
| 448 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
| 449 | local mesh = IT("SpecialMesh",wave)
| |
| 450 | mesh.MeshType = "FileMesh" | |
| 451 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 452 | mesh.Scale = VT(size,size,size) | |
| 453 | mesh.Offset = VT(0,0,-size/8) | |
| 454 | wave.CFrame = cframe | |
| 455 | coroutine.resume(coroutine.create(function(PART) | |
| 456 | for i = 1, waitt do | |
| 457 | Swait() | |
| 458 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
| 459 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 460 | if doesrotate == true then | |
| 461 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
| 462 | end | |
| 463 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 464 | if wave.Transparency > 0.99 then | |
| 465 | wave:remove() | |
| 466 | end | |
| 467 | end | |
| 468 | end)) | |
| 469 | end | |
| 470 | ||
| 471 | function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,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=1051557" | |
| 476 | mesh.Scale = VT(size,size,size) | |
| 477 | wave.CFrame = cframe | |
| 478 | coroutine.resume(coroutine.create(function(PART) | |
| 479 | for i = 1, waitt do | |
| 480 | Swait() | |
| 481 | mesh.Scale = mesh.Scale + VT(size/5,size/7,size/5) | |
| 482 | if doesrotate == true then | |
| 483 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
| 484 | end | |
| 485 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 486 | if wave.Transparency > 0.99 then | |
| 487 | wave:remove() | |
| 488 | end | |
| 489 | end | |
| 490 | end)) | |
| 491 | end | |
| 492 | ||
| 493 | function MakeForm(PART,TYPE) | |
| 494 | if TYPE == "Cyl" then | |
| 495 | local MSH = IT("CylinderMesh",PART)
| |
| 496 | elseif TYPE == "Ball" then | |
| 497 | local MSH = IT("SpecialMesh",PART)
| |
| 498 | MSH.MeshType = "Sphere" | |
| 499 | elseif TYPE == "Wedge" then | |
| 500 | local MSH = IT("SpecialMesh",PART)
| |
| 501 | MSH.MeshType = "Wedge" | |
| 502 | end | |
| 503 | end | |
| 504 | ||
| 505 | function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
| 506 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
| 507 | local mesh = IT("SpecialMesh",wave)
| |
| 508 | mesh.MeshType = "FileMesh" | |
| 509 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
| 510 | mesh.Scale = VT(size,size,size) | |
| 511 | wave.CFrame = cframe | |
| 512 | coroutine.resume(coroutine.create(function(PART) | |
| 513 | for i = 1, waitt do | |
| 514 | Swait() | |
| 515 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
| 516 | if doesrotate == true then | |
| 517 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
| 518 | end | |
| 519 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 520 | if wave.Transparency > 0.99 then | |
| 521 | wave:remove() | |
| 522 | end | |
| 523 | end | |
| 524 | end)) | |
| 525 | end | |
| 526 | ||
| 527 | function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color) | |
| 528 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
| 529 | local mesh = IT("SpecialMesh",wave)
| |
| 530 | mesh.MeshType = "FileMesh" | |
| 531 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 532 | mesh.Scale = VT(size,size,size) | |
| 533 | mesh.Offset = VT(0,0,0) | |
| 534 | wave.CFrame = cframe | |
| 535 | coroutine.resume(coroutine.create(function(PART) | |
| 536 | for i = 1, waitt do | |
| 537 | Swait() | |
| 538 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
| 539 | if doesrotate == true then | |
| 540 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1) | |
| 541 | end | |
| 542 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
| 543 | if wave.Transparency > 0.99 then | |
| 544 | wave:remove() | |
| 545 | end | |
| 546 | end | |
| 547 | end)) | |
| 548 | end | |
| 549 | ||
| 550 | function MagicSphere(size,waitt,cframe,color) | |
| 551 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1), true) | |
| 552 | local mesh = IT("SpecialMesh",wave)
| |
| 553 | mesh.MeshType = "Sphere" | |
| 554 | mesh.Scale = VT(size,size,size) | |
| 555 | mesh.Offset = VT(0,0,0) | |
| 556 | wave.CFrame = cframe | |
| 557 | coroutine.resume(coroutine.create(function(PART) | |
| 558 | for i = 1, waitt do | |
| 559 | Swait() | |
| 560 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
| 561 | wave.Transparency = wave.Transparency + (1/waitt) | |
| 562 | if wave.Transparency > 0.99 then | |
| 563 | wave:remove() | |
| 564 | end | |
| 565 | end | |
| 566 | end)) | |
| 567 | end | |
| 568 | ||
| 569 | function MagicSphere2(size,waitt,cframe,color) | |
| 570 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1), true) | |
| 571 | local mesh = IT("SpecialMesh",wave)
| |
| 572 | mesh.MeshType = "Sphere" | |
| 573 | mesh.Scale = VT(size,size,size) | |
| 574 | mesh.Offset = VT(0,0,0) | |
| 575 | wave.CFrame = cframe | |
| 576 | coroutine.resume(coroutine.create(function(PART) | |
| 577 | for i = 1, waitt do | |
| 578 | Swait() | |
| 579 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
| 580 | wave.Transparency = wave.Transparency - (1/waitt) | |
| 581 | end | |
| 582 | wave:remove() | |
| 583 | end)) | |
| 584 | end | |
| 585 | ||
| 586 | function MagicBlock(size,waitt,cframe,color) | |
| 587 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size), true) | |
| 588 | local mesh = IT("BlockMesh",wave)
| |
| 589 | wave.CFrame = cframe | |
| 590 | coroutine.resume(coroutine.create(function(PART) | |
| 591 | for i = 1, waitt do | |
| 592 | Swait() | |
| 593 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
| 594 | wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
| 595 | wave.Transparency = wave.Transparency + (1/waitt) | |
| 596 | if wave.Transparency > 0.99 then | |
| 597 | wave:remove() | |
| 598 | end | |
| 599 | end | |
| 600 | end)) | |
| 601 | end | |
| 602 | ||
| 603 | function MagicBlock2(size,waitt,cframe,color) | |
| 604 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(size,size,size), true) | |
| 605 | local mesh = IT("BlockMesh",wave)
| |
| 606 | wave.CFrame = cframe | |
| 607 | coroutine.resume(coroutine.create(function(PART) | |
| 608 | for i = 1, waitt do | |
| 609 | Swait() | |
| 610 | mesh.Scale = mesh.Scale - VT(1/waitt,1/waitt,1/waitt) | |
| 611 | wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
| 612 | wave.Transparency = wave.Transparency - (1/waitt) | |
| 613 | end | |
| 614 | wave:Destroy() | |
| 615 | end)) | |
| 616 | end | |
| 617 | ||
| 618 | function CheckTableForString(Table, String) | |
| 619 | for i, v in pairs(Table) do | |
| 620 | if string.find(string.lower(String), string.lower(v)) then | |
| 621 | return true | |
| 622 | end | |
| 623 | end | |
| 624 | return false | |
| 625 | end | |
| 626 | ||
| 627 | function CheckIntangible(Hit) | |
| 628 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
| |
| 629 | if Hit and Hit.Parent then | |
| 630 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
| |
| 631 | return true | |
| 632 | end | |
| 633 | end | |
| 634 | return false | |
| 635 | end | |
| 636 | ||
| 637 | Debris = game:GetService("Debris")
| |
| 638 | ||
| 639 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
| 640 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
| 641 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 642 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
| |
| 643 | if RayHit and CheckIntangible(RayHit) then | |
| 644 | if DelayIfHit then | |
| 645 | wait() | |
| 646 | end | |
| 647 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
| 648 | end | |
| 649 | return RayHit, RayPos, RayNormal | |
| 650 | end | |
| 651 | ||
| 652 | function turnto(position) | |
| 653 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 654 | end | |
| 655 | ||
| 656 | --//=================================\\ | |
| 657 | --|| SPEECH | |
| 658 | --\\=================================// | |
| 659 | ||
| 660 | function chatfunc(text,waitt) | |
| 661 | local chat = coroutine.wrap(function() | |
| 662 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 663 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 664 | end | |
| 665 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 666 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 667 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
| 668 | naeeym2.Adornee = Character.Head | |
| 669 | naeeym2.Name = "TalkingBillBoard" | |
| 670 | naeeym2.AlwaysOnTop = true | |
| 671 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 672 | tecks2.BackgroundTransparency = 1 | |
| 673 | tecks2.BorderSizePixel = 0 | |
| 674 | tecks2.Text = "" | |
| 675 | tecks2.Font = "SciFi" | |
| 676 | tecks2.TextSize = 30 | |
| 677 | tecks2.TextStrokeTransparency = 1 | |
| 678 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
| 679 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 680 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 681 | for i = 1,string.len(text),1 do | |
| 682 | tecks2.Text = string.sub(text,1,i) | |
| 683 | Swait() | |
| 684 | end | |
| 685 | wait(waitt) | |
| 686 | coroutine.resume(coroutine.create(function() | |
| 687 | for i = 1, 10 do | |
| 688 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
| 689 | Swait() | |
| 690 | end | |
| 691 | naeeym2:Destroy() | |
| 692 | end)) | |
| 693 | end) | |
| 694 | chat() | |
| 695 | end | |
| 696 | ||
| 697 | --//=================================\\ | |
| 698 | --|| WEAPON CREATION | |
| 699 | --\\=================================// | |
| 700 | ||
| 701 | local SH = IT("Part",Weapon)
| |
| 702 | SH.Size = VT(0.2,5.5,5.5) | |
| 703 | SH.Shape = "Cylinder" | |
| 704 | SH.Transparency = 1 | |
| 705 | SH.CanCollide = false | |
| 706 | SH.Material = "Neon" | |
| 707 | SH.BrickColor = BRICKC"Shamrock" | |
| 708 | SH.CFrame = RightArm.CFrame * CF(0.5,0,0) | |
| 709 | weldBetween(RightArm,SH) | |
| 710 | local SHIELDFUNC = SH.Touched:Connect(function(hit) | |
| 711 | if VALUE1 == true then | |
| 712 | if hit.Anchored == false and hit.Parent.FindFirstChild("Humanoid") == nil and hit.Parent.ClassName ~= "Accessory" then
| |
| 713 | hit:Destroy() | |
| 714 | end | |
| 715 | end | |
| 716 | end) | |
| 717 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Shamrock", "Handle", VT(0*Player_Size,0*Player_Size,0*Player_Size),false) | |
| 718 | local Weld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0.5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
| |
| 719 | CreateMesh("SpecialMesh", HandlePart, "FileMesh", "156292343", "", VT(8,8,2), VT(0,0,0))
| |
| 720 | local HandlePart2 = CreatePart(3, Weapon, "Neon", 0, 1, "Shamrock", "Handle", VT(0*Player_Size,0*Player_Size,0*Player_Size),false) | |
| 721 | local Weld2 = CreateWeldOrSnapOrMotor("Weld", HandlePart2, RightArm, HandlePart2, CF(0.5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
| |
| 722 | CreateMesh("SpecialMesh", HandlePart2, "FileMesh", "156292343", "", VT(6,6,2), VT(0,0,0))
| |
| 723 | local ArmPart = CreatePart(3, Weapon, "Neon", 0, 0, "Shamrock", "Handle", VT(1.01*Player_Size,2.01*Player_Size,1.01*Player_Size),false) | |
| 724 | local Weld3 = CreateWeldOrSnapOrMotor("Weld", ArmPart, RightArm, ArmPart, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 725 | ||
| 726 | local A = IT("Attachment",Torso)
| |
| 727 | A.Position = VT(0, -1, 0) | |
| 728 | local B = IT("Attachment",Torso)
| |
| 729 | B.Position = VT(0, 1.5, 0) | |
| 730 | local Trail = IT("Trail",Torso)
| |
| 731 | Trail.Attachment0 = A | |
| 732 | Trail.Attachment1 = B | |
| 733 | Trail.Lifetime = 0.3 | |
| 734 | Trail.Transparency = NumberSequence.new(0, 1) | |
| 735 | Trail.Enabled = false | |
| 736 | Trail.Color = ColorSequence.new(BRICKC("Shamrock").Color)
| |
| 737 | ||
| 738 | for _, c in pairs(Weapon:GetChildren()) do | |
| 739 | if c.ClassName == "Part" then | |
| 740 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 741 | end | |
| 742 | end | |
| 743 | ||
| 744 | Weapon.Parent = Character | |
| 745 | ||
| 746 | Humanoid.Died:connect(function() | |
| 747 | ATTACK = true | |
| 748 | end) | |
| 749 | ||
| 750 | print(Class_Name.." loaded.") | |
| 751 | ||
| 752 | 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") | |
| 753 | 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") | |
| 754 | 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") | |
| 755 | 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") | |
| 756 | ||
| 757 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Block", SKILLTEXTCOLOR, 7, "Code", 0, 2, 1, "Text 1") | |
| 758 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Shield bash", SKILLTEXTCOLOR, 7, "Code", 0, 2, 1, "Text 2") | |
| 759 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C+HOLD] Shield force", SKILLTEXTCOLOR, 7, "Code", 0, 2, 1, "Text 3") | |
| 760 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Meteor crash", SKILLTEXTCOLOR, 7, "Code", 0, 2, 1, "Text 4") | |
| 761 | ||
| 762 | --//=================================\\ | |
| 763 | --|| DAMAGE FUNCTIONS | |
| 764 | --\\=================================// | |
| 765 | ||
| 766 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
| 767 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
| 768 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
| 769 | local BODYGYRO = IT("BodyGyro", STATPART)
| |
| 770 | local BODYPOSITION = IT("BodyPosition", STATPART)
| |
| 771 | BODYPOSITION.P = 2000 | |
| 772 | BODYPOSITION.D = 100 | |
| 773 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
| 774 | if LABELTYPE == "Normal" then | |
| 775 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
| 776 | elseif LABELTYPE == "Debuff" then | |
| 777 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2)) | |
| 778 | elseif LABELTYPE == "Interruption" then | |
| 779 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2)) | |
| 780 | end | |
| 781 | game:GetService("Debris"):AddItem(STATPART ,5)
| |
| 782 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
| |
| 783 | BILLBOARDGUI.Adornee = STATPART | |
| 784 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
| 785 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
| 786 | BILLBOARDGUI.AlwaysOnTop = false | |
| 787 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
| |
| 788 | TEXTLABEL.BackgroundTransparency = 1 | |
| 789 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
| 790 | TEXTLABEL.Text = TEXT | |
| 791 | TEXTLABEL.Font = "SciFi" | |
| 792 | TEXTLABEL.FontSize="Size42" | |
| 793 | TEXTLABEL.TextColor3 = COLOR | |
| 794 | TEXTLABEL.TextStrokeTransparency = 1 | |
| 795 | TEXTLABEL.TextScaled = true | |
| 796 | TEXTLABEL.TextWrapped = true | |
| 797 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
| 798 | wait(0.2) | |
| 799 | for i=1, 5 do | |
| 800 | wait() | |
| 801 | THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0) | |
| 802 | end | |
| 803 | wait(1.2) | |
| 804 | for i=1, 5 do | |
| 805 | wait() | |
| 806 | THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2 | |
| 807 | THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2 | |
| 808 | THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0) | |
| 809 | end | |
| 810 | THEPART.Parent = nil | |
| 811 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
| 812 | end | |
| 813 | ||
| 814 | ||
| 815 | --//=================================\\ | |
| 816 | --|| DAMAGING | |
| 817 | --\\=================================// | |
| 818 | ||
| 819 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
| 820 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
| |
| 821 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 822 | local dmg = math.random(min,max) | |
| 823 | if humanoid.Health > 0 then | |
| 824 | if beserk == true then | |
| 825 | humanoid.Health = 0 | |
| 826 | else | |
| 827 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
| |
| 828 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
| 829 | if math.random(1,100) < critrate+1 then | |
| 830 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
| 831 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
| |
| 832 | else | |
| 833 | humanoid.Health = humanoid.Health - dmg | |
| 834 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
| |
| 835 | end | |
| 836 | local defence = Instance.new("BoolValue",hit.Parent)
| |
| 837 | defence.Name = ("HitBy"..Player.Name)
| |
| 838 | game:GetService("Debris"):AddItem(defence, 0.1)
| |
| 839 | end | |
| 840 | end | |
| 841 | end | |
| 842 | end | |
| 843 | ||
| 844 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
| 845 | local dmg = math.random(min,max) | |
| 846 | for i,v in ipairs(workspace:GetChildren()) do | |
| 847 | if v:FindFirstChild("HitBy"..Player.Name) == nil then
| |
| 848 | local body = v:GetChildren() | |
| 849 | for part = 1, #body do | |
| 850 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
| |
| 851 | if(body[part].Position - position).Magnitude < radius then | |
| 852 | if v.ClassName == "Model" then | |
| 853 | if v:FindFirstChild("Humanoid") then
| |
| 854 | if v.Humanoid.Health ~= 0 then | |
| 855 | if CanBeDodgedByJumping == true then | |
| 856 | if body[part].Position.Y < position.Y+5 then | |
| 857 | if math.random(1,100) < critrate+1 then | |
| 858 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
| 859 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
| |
| 860 | else | |
| 861 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
| 862 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
| |
| 863 | end | |
| 864 | local defence = Instance.new("BoolValue",v)
| |
| 865 | defence.Name = ("HitBy"..Player.Name)
| |
| 866 | game:GetService("Debris"):AddItem(defence, 0.1)
| |
| 867 | end | |
| 868 | else | |
| 869 | if beserk == true then | |
| 870 | v.Humanoid.Health = 0 | |
| 871 | end | |
| 872 | if math.random(1,100) < critrate+1 then | |
| 873 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
| 874 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
| |
| 875 | else | |
| 876 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
| 877 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
| |
| 878 | end | |
| 879 | local defence = Instance.new("BoolValue",v)
| |
| 880 | defence.Name = ("HitBy"..Player.Name)
| |
| 881 | game:GetService("Debris"):AddItem(defence, 0.1)
| |
| 882 | end | |
| 883 | end | |
| 884 | end | |
| 885 | end | |
| 886 | --Fling(body[part],RootPart.CFrame.lookVector,maxstrength) | |
| 887 | end | |
| 888 | end | |
| 889 | end | |
| 890 | if v.ClassName == "Part" then | |
| 891 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
| 892 | --Fling(v,RootPart.CFrame.lookVector,maxstrength) | |
| 893 | end | |
| 894 | end | |
| 895 | end | |
| 896 | end | |
| 897 | end | |
| 898 | ||
| 899 | function AoEStun(POS,RANGE,LAST) | |
| 900 | for i,v in ipairs(workspace:GetChildren()) do | |
| 901 | if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
| |
| 902 | local body = v:GetChildren() | |
| 903 | for part = 1, #body do | |
| 904 | if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
| |
| 905 | if(body[part].Position - POS).Magnitude < RANGE then | |
| 906 | if v.ClassName == "Model" then | |
| 907 | if v:FindFirstChild("Humanoid") then
| |
| 908 | if v.Humanoid.Health ~= 0 then | |
| 909 | Stun(v.Humanoid,LAST) | |
| 910 | local defence = Instance.new("BoolValue",v)
| |
| 911 | defence.Name = ("StunnedBy"..Player.Name)
| |
| 912 | game:GetService("Debris"):AddItem(defence, 0.001)
| |
| 913 | end | |
| 914 | end | |
| 915 | end | |
| 916 | end | |
| 917 | end | |
| 918 | end | |
| 919 | end | |
| 920 | end | |
| 921 | end | |
| 922 | ||
| 923 | function Stun(HUMANOID,LAST) | |
| 924 | HUMANOID.PlatformStand = true | |
| 925 | local defence = Instance.new("BoolValue",HUMANOID.Parent)
| |
| 926 | defence.Name = ("StunnedBy"..Player.Name)
| |
| 927 | game:GetService("Debris"):AddItem(defence, LAST)
| |
| 928 | if HUMANOID.Parent:FindFirstChild("Head") then
| |
| 929 | StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
| |
| 930 | end | |
| 931 | coroutine.resume(coroutine.create(function() | |
| 932 | Swait(LAST*100) | |
| 933 | HUMANOID.PlatformStand = false | |
| 934 | end)) | |
| 935 | end | |
| 936 | ||
| 937 | function killnearest(position,range,maxstrength) | |
| 938 | for i,v in ipairs(workspace:GetChildren()) do | |
| 939 | local body = v:GetChildren() | |
| 940 | for part = 1, #body do | |
| 941 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
| 942 | if(body[part].Position - position).Magnitude < range then | |
| 943 | if v.ClassName == "Model" then | |
| 944 | v:BreakJoints() | |
| 945 | end | |
| 946 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
| |
| 947 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
| 948 | end | |
| 949 | end | |
| 950 | end | |
| 951 | if v.ClassName == "Part" then | |
| 952 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
| 953 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
| |
| 954 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
| 955 | end | |
| 956 | end | |
| 957 | end | |
| 958 | end | |
| 959 | ||
| 960 | function Fling(part,direction,speed) | |
| 961 | part.Velocity = direction*speed | |
| 962 | end | |
| 963 | ||
| 964 | --//=================================\\ | |
| 965 | --|| ATTACK FUNCTIONS AND STUFF | |
| 966 | --\\=================================// | |
| 967 | ||
| 968 | function Block() | |
| 969 | ATTACK = true | |
| 970 | Rooted = false | |
| 971 | VALUE1 = true | |
| 972 | local FF = IT("ForceField",Character)
| |
| 973 | FF.Visible = false | |
| 974 | repeat | |
| 975 | Swait() | |
| 976 | AoEStun(SH.Position,5,1) | |
| 977 | turnto(Mouse.Hit.p) | |
| 978 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed*3) | |
| 979 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3) | |
| 980 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3) | |
| 981 | 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) | |
| 982 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 983 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 984 | until KEYHOLD == false | |
| 985 | FF:remove() | |
| 986 | VALUE1 = false | |
| 987 | ATTACK = false | |
| 988 | Rooted = false | |
| 989 | end | |
| 990 | ||
| 991 | function ShieldBash() | |
| 992 | ATTACK = true | |
| 993 | Rooted = false | |
| 994 | VALUE1 = true | |
| 995 | local FF = IT("ForceField",Character)
| |
| 996 | FF.Visible = false | |
| 997 | for i=0, 1.5, 0.1 / Animation_Speed do | |
| 998 | Swait() | |
| 999 | turnto(Mouse.Hit.p) | |
| 1000 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed*3) | |
| 1001 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3) | |
| 1002 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3) | |
| 1003 | 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) | |
| 1004 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 1005 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 1006 | end | |
| 1007 | Trail.Enabled = true | |
| 1008 | CreateSound(BOOSTSOUND, SH, 2, 1) | |
| 1009 | turnto(Mouse.Hit.p) | |
| 1010 | for i = 1, 25 do | |
| 1011 | Swait() | |
| 1012 | turnto(Mouse.Hit.p) | |
| 1013 | MagicSphere2(10,15,SH.CFrame,"Shamrock") | |
| 1014 | MagicBlock2(8.5,15,SH.CFrame,"Shamrock") | |
| 1015 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-5) | |
| 1016 | AoEDamage(SH.Position,5,45,55,45,false,5,2,false) | |
| 1017 | end | |
| 1018 | Swait() | |
| 1019 | Trail.Enabled = false | |
| 1020 | FF:remove() | |
| 1021 | VALUE1 = false | |
| 1022 | ATTACK = false | |
| 1023 | Rooted = false | |
| 1024 | end | |
| 1025 | ||
| 1026 | function ShieldForce() | |
| 1027 | ATTACK = true | |
| 1028 | Rooted = false | |
| 1029 | VALUE1 = true | |
| 1030 | local FF = IT("ForceField",Character)
| |
| 1031 | FF.Visible = false | |
| 1032 | for i=0, 1.5, 0.1 / Animation_Speed do | |
| 1033 | Swait() | |
| 1034 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed*3) | |
| 1035 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed*3) | |
| 1036 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3) | |
| 1037 | 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) | |
| 1038 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 1039 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 1040 | end | |
| 1041 | MagicSphere2(25,15,SH.CFrame,"Shamrock") | |
| 1042 | MagicBlock2(20,15,SH.CFrame,"Shamrock") | |
| 1043 | Swait(15) | |
| 1044 | repeat | |
| 1045 | Swait() | |
| 1046 | turnto(Mouse.Hit.p) | |
| 1047 | CreateRing(0,12,false,0,10,SH.CFrame*ANGLES(RAD(0),RAD(90),RAD(0)),0,0,"Shamrock") | |
| 1048 | local BULLET = CreatePart(3, Effects, "Neon", 0, 0, "Shamrock", "Handle", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false) | |
| 1049 | BULLET.CFrame = CF(SH.CFrame*CF(3,MRANDOM(-2,2),MRANDOM(-2,2)).p,Mouse.Hit.p) | |
| 1050 | local bv = Instance.new("BodyVelocity")
| |
| 1051 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1052 | bv.velocity = CF(SH.Position,Mouse.Hit.p).lookVector*300 | |
| 1053 | bv.Parent = BULLET | |
| 1054 | bv.Name = "PROJECTILEVELOCITY" | |
| 1055 | MakeForm(BULLET,"Ball") | |
| 1056 | CreateSound("13775494", BULLET, 2, 2)
| |
| 1057 | --MagicSphere(2,15,BULLET.CFrame,"Shamrock") | |
| 1058 | local BOO = BULLET.Touched:Connect(function(hit) | |
| 1059 | dealdamage(hit,5,8,5,false,2,3) | |
| 1060 | end) | |
| 1061 | table.insert(Effects2,{BULLET,"Disappear",0.04,1,0,0,2})
| |
| 1062 | until KEYHOLD == false | |
| 1063 | FF:remove() | |
| 1064 | VALUE1 = false | |
| 1065 | ATTACK = false | |
| 1066 | Rooted = false | |
| 1067 | end | |
| 1068 | ||
| 1069 | function MeteorSmash() | |
| 1070 | ATTACK = true | |
| 1071 | Rooted = false | |
| 1072 | VALUE1 = true | |
| 1073 | for i=0, 1.5, 0.1 / Animation_Speed do | |
| 1074 | Swait() | |
| 1075 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed*3) | |
| 1076 | 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*3) | |
| 1077 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3) | |
| 1078 | 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) | |
| 1079 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 1080 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 1081 | end | |
| 1082 | RootPart.Anchored = true | |
| 1083 | UNANCHOR = false | |
| 1084 | CreateSound(BOOSTSOUND, SH, 2, 1) | |
| 1085 | Rooted = true | |
| 1086 | for i=0,4, 0.1 / Animation_Speed do | |
| 1087 | Swait() | |
| 1088 | MagicSphere2(15,15,SH.CFrame,"Shamrock") | |
| 1089 | MagicBlock2(12.5,15,SH.CFrame,"Shamrock") | |
| 1090 | RootPart.CFrame = RootPart.CFrame * CF(0,8,-0) | |
| 1091 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(45)), 0.15 / Animation_Speed*3) | |
| 1092 | 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*3) | |
| 1093 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3) | |
| 1094 | 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) | |
| 1095 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-20)), 0.15 / Animation_Speed) | |
| 1096 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(20)), 0.15 / Animation_Speed) | |
| 1097 | end | |
| 1098 | for i=0, 1.5, 0.1 / Animation_Speed do | |
| 1099 | Swait() | |
| 1100 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed*3) | |
| 1101 | 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*3) | |
| 1102 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(80), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3) | |
| 1103 | 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) | |
| 1104 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 1105 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 1106 | end | |
| 1107 | for i=0,2, 0.1 / Animation_Speed do | |
| 1108 | Swait() | |
| 1109 | MagicSphere2(15,15,SH.CFrame,"Shamrock") | |
| 1110 | MagicBlock2(12.5,15,SH.CFrame,"Shamrock") | |
| 1111 | RootPart.CFrame = RootPart.CFrame * CF(0,-16,-0) | |
| 1112 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.15 / Animation_Speed*3) | |
| 1113 | 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*3) | |
| 1114 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3) | |
| 1115 | 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) | |
| 1116 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(20)), 0.15 / Animation_Speed) | |
| 1117 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-20)), 0.15 / Animation_Speed) | |
| 1118 | end | |
| 1119 | RootPart.CFrame = RootPart.CFrame * CF(0,-8,-0) | |
| 1120 | CreateSound("2691586", SH, 10, 1)
| |
| 1121 | AoEDamage(CF(SH.Position)*CF(0,-1,0).p,45,75,85,95,false,5,2,true) | |
| 1122 | for i = 1, 3 do | |
| 1123 | MagicBlock(i,45,CF(SH.Position)*CF(0,-1,0),"Shamrock") | |
| 1124 | MagicBlock(i,45,CF(SH.Position)*CF(0,-1,0),"Shamrock") | |
| 1125 | MagicBlock(i,45,CF(SH.Position)*CF(0,-1,0),"Shamrock") | |
| 1126 | CreateWave(0,i*2,true,0.1,45,CF(SH.Position)*CF(0,-1,0),"Shamrock") | |
| 1127 | CreateWave(0,i*2,true,-0.1,45,CF(SH.Position)*CF(0,-1,0),"Shamrock") | |
| 1128 | end | |
| 1129 | for i=0, 1.5, 0.1 / Animation_Speed do | |
| 1130 | Swait() | |
| 1131 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(45)), 0.15 / Animation_Speed*3) | |
| 1132 | 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*3) | |
| 1133 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*3) | |
| 1134 | 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) | |
| 1135 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.4 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(20)), 0.15 / Animation_Speed) | |
| 1136 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-20)), 0.15 / Animation_Speed) | |
| 1137 | end | |
| 1138 | UNANCHOR = true | |
| 1139 | VALUE1 = false | |
| 1140 | ATTACK = false | |
| 1141 | Rooted = false | |
| 1142 | end | |
| 1143 | ||
| 1144 | --//=================================\\ | |
| 1145 | --|| ASSIGN THINGS TO KEYS | |
| 1146 | --\\=================================// | |
| 1147 | ||
| 1148 | function MouseDown(Mouse) | |
| 1149 | if ATTACK == false then | |
| 1150 | end | |
| 1151 | end | |
| 1152 | ||
| 1153 | function MouseUp(Mouse) | |
| 1154 | HOLD = false | |
| 1155 | end | |
| 1156 | ||
| 1157 | function KeyDown(Key) | |
| 1158 | KEYHOLD = true | |
| 1159 | if Key == "z" and ATTACK == false then | |
| 1160 | Block() | |
| 1161 | end | |
| 1162 | ||
| 1163 | if Key == "b" and ATTACK == false then | |
| 1164 | ShieldBash() | |
| 1165 | end | |
| 1166 | ||
| 1167 | if Key == "c" and ATTACK == false then | |
| 1168 | ShieldForce() | |
| 1169 | end | |
| 1170 | ||
| 1171 | if Key == "v" and ATTACK == false then | |
| 1172 | MeteorSmash() | |
| 1173 | end | |
| 1174 | end | |
| 1175 | ||
| 1176 | function KeyUp(Key) | |
| 1177 | KEYHOLD = false | |
| 1178 | end | |
| 1179 | ||
| 1180 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1181 | MouseDown(NEWKEY) | |
| 1182 | end) | |
| 1183 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1184 | MouseUp(NEWKEY) | |
| 1185 | end) | |
| 1186 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1187 | KeyDown(NEWKEY) | |
| 1188 | end) | |
| 1189 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1190 | KeyUp(NEWKEY) | |
| 1191 | end) | |
| 1192 | ||
| 1193 | --//=================================\\ | |
| 1194 | --\\=================================// | |
| 1195 | ||
| 1196 | ||
| 1197 | function unanchor() | |
| 1198 | if UNANCHOR == true then | |
| 1199 | g = Character:GetChildren() | |
| 1200 | for i = 1, #g do | |
| 1201 | if g[i].ClassName == "Part" then | |
| 1202 | g[i].Anchored = false | |
| 1203 | end | |
| 1204 | end | |
| 1205 | end | |
| 1206 | end | |
| 1207 | ||
| 1208 | --//=================================\\ | |
| 1209 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1210 | --\\=================================// | |
| 1211 | ||
| 1212 | Humanoid.Changed:connect(function(Jump) | |
| 1213 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1214 | Humanoid.Jump = false | |
| 1215 | end | |
| 1216 | end) | |
| 1217 | ||
| 1218 | ANIMATE.Parent = nil | |
| 1219 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
| 1220 | IDLEANIMATION:Play() | |
| 1221 | ||
| 1222 | --createaccessory(Head,"http://www.roblox.com/asset/?id=434078905","",VT(3,2,2),VT(0, 0.3, -0.25),BrickColor.new"Pearl") | |
| 1223 | createbodypart("Eye","Shamrock",Head,VT(0.2, 0.1, -0.52),VT(2,2,2))
| |
| 1224 | createbodypart("Eye","Shamrock",Head,VT(-0.2, 0.1, -0.52),VT(2,2,2))
| |
| 1225 | ||
| 1226 | while true do | |
| 1227 | Swait() | |
| 1228 | SINE = SINE + CHANGE | |
| 1229 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1230 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1231 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
| 1232 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
| 1233 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 1234 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 1235 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1236 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1237 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1238 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1239 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 1240 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1241 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1242 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1243 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1244 | end | |
| 1245 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 1246 | ANIM = "Jump" | |
| 1247 | if ATTACK == false then | |
| 1248 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1249 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1250 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1251 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1252 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 1253 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1254 | end | |
| 1255 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 1256 | ANIM = "Fall" | |
| 1257 | if ATTACK == false then | |
| 1258 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1259 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1260 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1261 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1262 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1263 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1264 | end | |
| 1265 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 1266 | ANIM = "Idle" | |
| 1267 | if ATTACK == false then | |
| 1268 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1269 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1270 | 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) | |
| 1271 | 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) | |
| 1272 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 1273 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * 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) | |
| 1274 | end | |
| 1275 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 1276 | ANIM = "Walk" | |
| 1277 | WALK = WALK + 1 / Animation_Speed | |
| 1278 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
| 1279 | WALK = 0 | |
| 1280 | if WALKINGANIM == true then | |
| 1281 | WALKINGANIM = false | |
| 1282 | elseif WALKINGANIM == false then | |
| 1283 | WALKINGANIM = true | |
| 1284 | end | |
| 1285 | end | |
| 1286 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1287 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1288 | if ATTACK == false then | |
| 1289 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1290 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1291 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1292 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1293 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1294 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1295 | end | |
| 1296 | end | |
| 1297 | if #Effects2>0 then | |
| 1298 | for e=1,#Effects2 do | |
| 1299 | if Effects2[e]~=nil then | |
| 1300 | local Thing=Effects2[e] | |
| 1301 | if Thing~=nil then | |
| 1302 | local Part=Thing[1] | |
| 1303 | local Mode=Thing[2] | |
| 1304 | local Delay=Thing[3] | |
| 1305 | local IncX=Thing[4] | |
| 1306 | local IncY=Thing[5] | |
| 1307 | local IncZ=Thing[6] | |
| 1308 | local Part2=Thing[8] | |
| 1309 | if Thing[1].Transparency<=1 then | |
| 1310 | if Thing[2]=="Block1" then | |
| 1311 | Thing[1].CFrame=Thing[1].CFrame | |
| 1312 | Mesh=Thing[1].Mesh | |
| 1313 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
| 1314 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1315 | elseif Thing[2]=="Cylinder" then | |
| 1316 | Mesh=Thing[1].Mesh | |
| 1317 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
| 1318 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1319 | elseif Thing[2]=="Blood" then | |
| 1320 | Mesh=Thing[7] | |
| 1321 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
| 1322 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
| 1323 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1324 | elseif Thing[2]=="Elec" then | |
| 1325 | Mesh=Thing[1].Mesh | |
| 1326 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
| 1327 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1328 | elseif Thing[2]=="Disappear" then | |
| 1329 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1330 | end | |
| 1331 | else | |
| 1332 | Part.Parent=nil | |
| 1333 | table.remove(Effects2,e) | |
| 1334 | end | |
| 1335 | end | |
| 1336 | end | |
| 1337 | end | |
| 1338 | end | |
| 1339 | unanchor() | |
| 1340 | Humanoid.MaxHealth = "inf" | |
| 1341 | Humanoid.Health = "inf" | |
| 1342 | if Rooted == false then | |
| 1343 | Disable_Jump = false | |
| 1344 | Humanoid.WalkSpeed = Speed | |
| 1345 | elseif Rooted == true then | |
| 1346 | Disable_Jump = true | |
| 1347 | Humanoid.WalkSpeed = 0 | |
| 1348 | end | |
| 1349 | q = Character:GetChildren() | |
| 1350 | for u = 1, #q do | |
| 1351 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
| 1352 | --q[u]:remove() | |
| 1353 | end | |
| 1354 | end | |
| 1355 | if Head:FindFirstChild("face") then
| |
| 1356 | Head.face:remove() | |
| 1357 | end | |
| 1358 | if Head:FindFirstChild("Mesh") then
| |
| 1359 | local mesh = Head.Mesh | |
| 1360 | if mesh.ClassName == "SpecialMesh" and mesh.Name ~= "Skull" then | |
| 1361 | mesh:remove() | |
| 1362 | local newmesh = Instance.new("SpecialMesh")
| |
| 1363 | newmesh.Scale = Vector3.new(1,1,1) | |
| 1364 | newmesh.MeshId = "http://www.roblox.com/asset/?id=181343290" | |
| 1365 | newmesh.TextureId = "http://www.roblox.com/asset/?id=181343313" | |
| 1366 | newmesh.Parent = Head | |
| 1367 | newmesh.Name = "Skull" | |
| 1368 | end | |
| 1369 | end | |
| 1370 | Weld.C0 = Clerp(Weld.C0, CF(0.5 * Player_Size, 0 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(SINE*5)), 0.15 / Animation_Speed) | |
| 1371 | Weld2.C0 = Clerp(Weld2.C0, CF(0.5 * Player_Size, 0 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-SINE*5)), 0.15 / Animation_Speed) | |
| 1372 | if VALUE1 == false then | |
| 1373 | SH.CanCollide = false | |
| 1374 | SH.Transparency = 1 | |
| 1375 | HandlePart.Transparency = 1 | |
| 1376 | HandlePart2.Transparency = 1 | |
| 1377 | elseif VALUE1 == true then | |
| 1378 | SH.CanCollide = true | |
| 1379 | SH.Transparency = MRANDOM(3,6)/10 | |
| 1380 | HandlePart.Transparency = MRANDOM(3,6)/10 | |
| 1381 | HandlePart2.Transparency = MRANDOM(3,6)/10 | |
| 1382 | end | |
| 1383 | ArmPart.Transparency = MRANDOM(2,4)/10 | |
| 1384 | local MATHS = {"0","1"}
| |
| 1385 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
| 1386 | end | |
| 1387 | ||
| 1388 | --//=================================\\ | |
| 1389 | --\\=================================// | |
| 1390 | ||
| 1391 | ||
| 1392 | ||
| 1393 | ||
| 1394 | ||
| 1395 | --//====================================================\\-- | |
| 1396 | --|| END OF SCRIPT | |
| 1397 | --\\====================================================//-- |