SHOW:
|
|
- or go back to the newest paste.
| 1 | ||
| 2 | ||
| 3 | Player = game:GetService("Players").LocalPlayer
| |
| 4 | Character = Player.Character | |
| 5 | PlayerGui = Player.PlayerGui | |
| 6 | Backpack = Player.Backpack | |
| 7 | Torso = Character.Torso | |
| 8 | Head = Character.Head | |
| 9 | Humanoid = Character.Humanoid | |
| 10 | RootPart = Character.HumanoidRootPart | |
| 11 | RootJoint = RootPart.RootJoint | |
| 12 | LeftArm = Character["Left Arm"] | |
| 13 | LeftLeg = Character["Left Leg"] | |
| 14 | RightArm = Character["Right Arm"] | |
| 15 | RightLeg = Character["Right Leg"] | |
| 16 | LS = Torso["Left Shoulder"] | |
| 17 | LH = Torso["Left Hip"] | |
| 18 | RS = Torso["Right Shoulder"] | |
| 19 | RH = Torso["Right Hip"] | |
| 20 | Humanoid.MaxHealth = math.huge | |
| 21 | wait() | |
| 22 | Humanoid.Health = Humanoid.MaxHealth | |
| 23 | local BC = Character["Body Colors"] | |
| 24 | BC.HeadColor = BrickColor.new("Lily white")
| |
| 25 | BC.LeftArmColor = BrickColor.new("Really black")
| |
| 26 | BC.LeftLegColor = BrickColor.new("Really black")
| |
| 27 | BC.RightArmColor = BrickColor.new("Really black")
| |
| 28 | BC.RightLegColor = BrickColor.new("Really black")
| |
| 29 | BC.TorsoColor = BrickColor.new("Really black")
| |
| 30 | for i,v in pairs(Character:children()) do | |
| 31 | if v:IsA("Hi") then
| |
| 32 | v:Destroy() | |
| 33 | end | |
| 34 | end | |
| 35 | for i,v in pairs(Character:children()) do | |
| 36 | if v:IsA("Pants") then
| |
| 37 | v:Destroy() | |
| 38 | end | |
| 39 | end | |
| 40 | ||
| 41 | ------Heavy--------- | |
| 42 | CV="Maroon" | |
| 43 | Player = game.Players.LocalPlayer | |
| 44 | char = Player.Character | |
| 45 | local txt = Instance.new("BillboardGui", Character)
| |
| 46 | txt.Adornee = Character .Head | |
| 47 | txt.Name = "_status" | |
| 48 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 49 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 50 | local text = Instance.new("TextLabel", txt)
| |
| 51 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 52 | text.FontSize = "Size24" | |
| 53 | text.TextScaled = true | |
| 54 | text.TextTransparency = 0 | |
| 55 | text.BackgroundTransparency = 1 | |
| 56 | text.TextTransparency = 0 | |
| 57 | text.TextStrokeTransparency = 0 | |
| 58 | text.Font = "Bodoni" | |
| 59 | text.TextStrokeColor3 = Color3.new(255,255,255) | |
| 60 | ||
| 61 | v=Instance.new("Part")
| |
| 62 | v.Name = "ColorBrick" | |
| 63 | v.Parent=Player.Character | |
| 64 | v.FormFactor="Symmetric" | |
| 65 | v.Anchored=true | |
| 66 | v.CanCollide=false | |
| 67 | v.BottomSurface="Smooth" | |
| 68 | v.TopSurface="Smooth" | |
| 69 | v.Size=Vector3.new(10,5,3) | |
| 70 | v.Transparency=1 | |
| 71 | v.CFrame=Character.Torso.CFrame | |
| 72 | v.BrickColor=BrickColor.new(CV) | |
| 73 | v.Transparency=1 | |
| 74 | text.TextColor3 = Color3.new(0,0,0) | |
| 75 | v.Shape="Block" | |
| 76 | text.Text = "Black White exe the Russian" | |
| 77 | - | text.Text = "DylanD2003" |
| 77 | + | |
| 78 | sound = Instance.new("Sound", Character)
| |
| 79 | sound.SoundId = "rbxassetid://798580863" | |
| 80 | sound.Volume = 100000000 | |
| 81 | sound.EmitterSize = 25 | |
| 82 | sound:Play() | |
| 83 | sound.Looped = true | |
| 84 | Face = Head.face | |
| 85 | Neck = Torso.Neck | |
| 86 | it = Instance.new | |
| 87 | vt = Vector3.new | |
| 88 | cf = CFrame.new | |
| 89 | rad = math.rad | |
| 90 | euler = CFrame.fromEulerAnglesXYZ | |
| 91 | angles = CFrame.Angles | |
| 92 | Mouse = Player:GetMouse() | |
| 93 | coroutine.resume(coroutine.create(function() | |
| 94 | game.StarterGui:SetCore("ChatMakeSystemMessage", {
| |
| 95 | Text = "Fixed by PixelFir3 / Cortana#8155"; | |
| 96 | Color = Color3.new(0, 1, 1); | |
| 97 | Font = Enum.Font.Code; | |
| 98 | FontSize = Enum.FontSize.Size24; | |
| 99 | }) | |
| 100 | end)) | |
| 101 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 102 | ArtificialHB.Name = "ArtificialHB" | |
| 103 | script:WaitForChild("ArtificialHB")
| |
| 104 | frame = 0.016666666666667 | |
| 105 | tf = 0 | |
| 106 | allowframeloss = false | |
| 107 | tossremainder = false | |
| 108 | lastframe = tick() | |
| 109 | script.ArtificialHB:Fire() | |
| 110 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 111 | ||
| 112 | tf = tf + s | |
| 113 | if frame <= tf then | |
| 114 | if allowframeloss then | |
| 115 | script.ArtificialHB:Fire() | |
| 116 | lastframe = tick() | |
| 117 | else | |
| 118 | for i = 1, math.floor(tf / frame) do | |
| 119 | script.ArtificialHB:Fire() | |
| 120 | end | |
| 121 | lastframe = tick() | |
| 122 | end | |
| 123 | if tossremainder then | |
| 124 | tf = 0 | |
| 125 | else | |
| 126 | tf = tf - frame * math.floor(tf / frame) | |
| 127 | end | |
| 128 | end | |
| 129 | end | |
| 130 | ) | |
| 131 | local animationspeed = 2 | |
| 132 | hbwait = function(number) | |
| 133 | ||
| 134 | if number == 0 or number == nil then | |
| 135 | ArtificialHB.Event:wait() | |
| 136 | else | |
| 137 | for i = 0, number do | |
| 138 | ArtificialHB.Event:wait() | |
| 139 | end | |
| 140 | end | |
| 141 | end | |
| 142 | ||
| 143 | local Stats = Instance.new("Folder", Character)
| |
| 144 | Stats.Name = "Stats" | |
| 145 | local Defense = Instance.new("NumberValue", Stats)
| |
| 146 | Defense.Name = "Defense" | |
| 147 | Defense.Value = 0.1 | |
| 148 | local Movement = Instance.new("NumberValue", Stats)
| |
| 149 | Movement.Name = "Movement" | |
| 150 | Movement.Value = 0.35 | |
| 151 | local Damage = Instance.new("NumberValue", Stats)
| |
| 152 | Damage.Name = "Damage" | |
| 153 | Damage.Value = 0 | |
| 154 | local Mana = Instance.new("NumberValue", Stats)
| |
| 155 | Mana.Name = "Mana" | |
| 156 | Mana.Value = 0 | |
| 157 | local Rooted = Instance.new("BoolValue", Stats)
| |
| 158 | Rooted.Name = "Rooted" | |
| 159 | Rooted.Value = false | |
| 160 | local BlockValue = Instance.new("BoolValue", Stats)
| |
| 161 | BlockValue.Name = "BlockValue" | |
| 162 | BlockValue.Value = false | |
| 163 | local StaggerHitAnim = Instance.new("BoolValue", Stats)
| |
| 164 | StaggerHitAnim.Name = "StaggerHitAnim" | |
| 165 | StaggerHitAnim.Value = false | |
| 166 | local StaggerAnim = Instance.new("BoolValue", Stats)
| |
| 167 | StaggerAnim.Name = "StaggerAnim" | |
| 168 | StaggerAnim.Value = false | |
| 169 | local StunAnim = Instance.new("BoolValue", Stats)
| |
| 170 | StunAnim.Name = "StunAnim" | |
| 171 | StunAnim.Value = false | |
| 172 | local StunValue = Instance.new("NumberValue", Stats)
| |
| 173 | StunValue.Name = "StunValue" | |
| 174 | StunValue.Value = 0 | |
| 175 | local CanCrit = Instance.new("BoolValue", Stats)
| |
| 176 | CanCrit.Name = "CanCrit" | |
| 177 | CanCrit.Value = false | |
| 178 | local CritChance = Instance.new("NumberValue", Stats)
| |
| 179 | CritChance.Name = "CritChance" | |
| 180 | CritChance.Value = 20 | |
| 181 | local CanPenetrateArmor = Instance.new("BoolValue", Stats)
| |
| 182 | CanPenetrateArmor.Name = "CanPenetrateArmor" | |
| 183 | CanPenetrateArmor.Value = false | |
| 184 | local AntiTeamKill = Instance.new("BoolValue", Stats)
| |
| 185 | AntiTeamKill.Name = "AntiTeamKill" | |
| 186 | AntiTeamKill.Value = false | |
| 187 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 188 | RootCF = angles(rad(-90), 0, rad(180)) | |
| 189 | local idle = 0 | |
| 190 | local Anim = "Idle" | |
| 191 | local animtype = math.floor(math.random(1, 3)) | |
| 192 | local attacktype = 1 | |
| 193 | local attack = false | |
| 194 | local equipped = false | |
| 195 | local LastPoint = nil | |
| 196 | local staggerhitanim = false | |
| 197 | local staggeranim = false | |
| 198 | local stunanim = false | |
| 199 | local CritChanceNumber = 0 | |
| 200 | local idlen = 0 | |
| 201 | local donum = 0 | |
| 202 | local sine = 0 | |
| 203 | local change = 2 / animationspeed | |
| 204 | local walkinganim = false | |
| 205 | local handidle = false | |
| 206 | local walk = 0 | |
| 207 | local stundelay = 0 | |
| 208 | local manadelay = 0 | |
| 209 | local robloxidleanimation = Instance.new("Animation", Torso)
| |
| 210 | robloxidleanimation.Name = "robloxidleanimation" | |
| 211 | robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 212 | local Animator = Humanoid:FindFirstChild("Animator")
| |
| 213 | local Animate = Character:FindFirstChild("Animate")
| |
| 214 | local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297}
| |
| 215 | local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452}
| |
| 216 | local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119}
| |
| 217 | local HitBlockSounds = {199148933, 199148947}
| |
| 218 | local cooldown1 = 0 | |
| 219 | local cooldown2 = 0 | |
| 220 | local cooldown3 = 0 | |
| 221 | local cooldown4 = 0 | |
| 222 | local scrn = Instance.new("ScreenGui", PlayerGui)
| |
| 223 | local ud = UDim2.new | |
| 224 | local c3 = Color3.new | |
| 225 | local skillcolorscheme = c3(1, 1, 1) | |
| 226 | subtractmana = function(k) | |
| 227 | ||
| 228 | if k <= Mana.Value then | |
| 229 | Mana.Value = Mana.Value - k | |
| 230 | end | |
| 231 | end | |
| 232 | ||
| 233 | local co1 = 0 | |
| 234 | local co2 = 0 | |
| 235 | local co3 = 0 | |
| 236 | local co4 = 0 | |
| 237 | local maxmana = 0 | |
| 238 | local maxstun = 1 | |
| 239 | local recovermana = 0 | |
| 240 | local losestun = 0 | |
| 241 | local stunwait = 0 | |
| 242 | local manawait = 0 | |
| 243 | local skill1mana = 0 | |
| 244 | local skill2mana = 0 | |
| 245 | local skill3mana = 0 | |
| 246 | local skill4mana = 0 | |
| 247 | local menuupdatespeed = 0 | |
| 248 | local constantupdate = false | |
| 249 | local showstats = false | |
| 250 | local allowstunbar = false | |
| 251 | local CustomColor = Torso.BrickColor | |
| 252 | local Colorpart1 = CustomColor.r | |
| 253 | local Colorpart2 = CustomColor.g | |
| 254 | local Colorpart3 = CustomColor.b | |
| 255 | local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3)) | |
| 256 | makeframe = function(par, trans, pos, size, color, name) | |
| 257 | ||
| 258 | local frame = Instance.new("Frame")
| |
| 259 | frame.Parent = par | |
| 260 | frame.BackgroundTransparency = trans | |
| 261 | frame.BorderSizePixel = 2 | |
| 262 | frame.Position = pos | |
| 263 | frame.Size = size | |
| 264 | frame.BackgroundColor3 = color | |
| 265 | frame.Name = name | |
| 266 | return frame | |
| 267 | end | |
| 268 | ||
| 269 | makelabel = function(par, text, trans, stroketrans, name) | |
| 270 | ||
| 271 | local label = Instance.new("TextLabel")
| |
| 272 | label.Parent = par | |
| 273 | label.BackgroundTransparency = 1 | |
| 274 | label.Size = ud(1, 0, 1, 0) | |
| 275 | label.Position = ud(0, 0, 0, 0) | |
| 276 | label.TextColor3 = c3(255, 255, 255) | |
| 277 | label.TextStrokeTransparency = stroketrans | |
| 278 | label.TextTransparency = trans | |
| 279 | label.FontSize = Enum.FontSize.Size32 | |
| 280 | label.Font = Enum.Font.Legacy | |
| 281 | label.BorderSizePixel = 0 | |
| 282 | label.TextScaled = true | |
| 283 | label.Text = text | |
| 284 | label.Name = name | |
| 285 | return label | |
| 286 | end | |
| 287 | ||
| 288 | framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1") | |
| 289 | framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2") | |
| 290 | framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3") | |
| 291 | framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4") | |
| 292 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1") | |
| 293 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2") | |
| 294 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3") | |
| 295 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4") | |
| 296 | text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1") | |
| 297 | text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2") | |
| 298 | text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3") | |
| 299 | text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4") | |
| 300 | manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar") | |
| 301 | manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover") | |
| 302 | manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text") | |
| 303 | healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Bar") | |
| 304 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover") | |
| 305 | healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text") | |
| 306 | if allowstunbar == true then | |
| 307 | stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137255), "Stun Frame") | |
| 308 | stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar") | |
| 309 | stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text") | |
| 310 | end | |
| 311 | if showstats == true then | |
| 312 | defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 0.3921568627451, 1), "Defense Frame") | |
| 313 | damageframe = makeframe(scrn, 0.5, ud(0.3225, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.3921568627451, 0.3921568627451), "Damage Frame") | |
| 314 | movementframe = makeframe(scrn, 0.5, ud(0.415, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 1, 0.3921568627451), "Movement Frame") | |
| 315 | defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text") | |
| 316 | damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text") | |
| 317 | movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text") | |
| 318 | end | |
| 319 | NoOutline = function(Part) | |
| 320 | ||
| 321 | Part.TopSurface = 10 | |
| 322 | end | |
| 323 | ||
| 324 | local weldBetween = function(a, b) | |
| 325 | ||
| 326 | local weldd = Instance.new("ManualWeld")
| |
| 327 | weldd.Part0 = a | |
| 328 | weldd.Part1 = b | |
| 329 | weldd.C0 = CFrame.new() | |
| 330 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 331 | weldd.Parent = a | |
| 332 | return weldd | |
| 333 | end | |
| 334 | ||
| 335 | nooutline = function(part) | |
| 336 | ||
| 337 | part.TopSurface = 10 | |
| 338 | end | |
| 339 | ||
| 340 | part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
| 341 | ||
| 342 | local fp = it("Part")
| |
| 343 | fp.formFactor = formfactor | |
| 344 | fp.Parent = parent | |
| 345 | fp.Reflectance = reflectance | |
| 346 | fp.Transparency = transparency | |
| 347 | fp.CanCollide = false | |
| 348 | fp.Locked = true | |
| 349 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
| 350 | fp.Name = name | |
| 351 | fp.Size = size | |
| 352 | fp.Position = Character.Torso.Position | |
| 353 | nooutline(fp) | |
| 354 | fp.Material = material | |
| 355 | fp:BreakJoints() | |
| 356 | return fp | |
| 357 | end | |
| 358 | ||
| 359 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
| 360 | ||
| 361 | local mesh = it(Mesh) | |
| 362 | mesh.Parent = part | |
| 363 | if Mesh == "SpecialMesh" then | |
| 364 | mesh.MeshType = meshtype | |
| 365 | mesh.MeshId = meshid | |
| 366 | end | |
| 367 | mesh.Offset = offset | |
| 368 | mesh.Scale = scale | |
| 369 | return mesh | |
| 370 | end | |
| 371 | ||
| 372 | weld = function(parent, part0, part1, c0, c1) | |
| 373 | ||
| 374 | local weld = it("Motor")
| |
| 375 | weld.Parent = parent | |
| 376 | weld.Part0 = part0 | |
| 377 | weld.Part1 = part1 | |
| 378 | weld.C0 = c0 | |
| 379 | weld.C1 = c1 | |
| 380 | return weld | |
| 381 | end | |
| 382 | ||
| 383 | local WeaponName = "Russian Kick" | |
| 384 | local ClassName = "Russian Kick" | |
| 385 | local PlayerSize = 1 | |
| 386 | local RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0)) | |
| 387 | local LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0)) | |
| 388 | if PlayerSize ~= 1 then | |
| 389 | RootPart.Size = RootPart.Size * PlayerSize | |
| 390 | Torso.Size = Torso.Size * PlayerSize | |
| 391 | Head.Size = Head.Size * PlayerSize | |
| 392 | RightArm.Size = RightArm.Size * PlayerSize | |
| 393 | LeftArm.Size = LeftArm.Size * PlayerSize | |
| 394 | RightLeg.Size = RightLeg.Size * PlayerSize | |
| 395 | LeftLeg.Size = LeftLeg.Size * PlayerSize | |
| 396 | RootJoint.Parent = RootPart | |
| 397 | Neck.Parent = Torso | |
| 398 | LS.Parent = Torso | |
| 399 | RS.Parent = Torso | |
| 400 | LH.Parent = Torso | |
| 401 | RH.Parent = Torso | |
| 402 | RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) | |
| 403 | Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)) | |
| 404 | Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize) | |
| 405 | RS.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0 | |
| 406 | LS.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0 | |
| 407 | RS.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
| 408 | LS.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
| 409 | RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
| 410 | LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
| 411 | RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
| 412 | LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
| 413 | for _,v in pairs(Character:GetChildren()) do | |
| 414 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
| 415 | v.Parent = nil | |
| 416 | v.Parent = Character | |
| 417 | v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * PlayerSize | |
| 418 | for _,b in pairs(v.Handle:GetChildren()) do | |
| 419 | if b.ClassName == "Weld" or b.ClassName == "Motor" then | |
| 420 | local p1 = b.Part1 | |
| 421 | b.Part1 = nil | |
| 422 | local c01, c02, c03, c04, c05, c06, c07, c08, c09, c010, c011, c012 = b.C0:components() | |
| 423 | local c11, c12, c13, c14, c15, c16, c17, c18, c19, c110, c111, c112 = b.C1:components() | |
| 424 | b.C0 = cf(c01 * PlayerSize, c02 * PlayerSize, c03 * PlayerSize, c04, c05, c06, c07, c08, c09, c010, c011, c012) | |
| 425 | b.C1 = cf(c11 * PlayerSize, c12 * PlayerSize, c13 * PlayerSize, c14, c15, c16, c17, c18, c19, c110, c111, c112) | |
| 426 | b.Part1 = p1 | |
| 427 | end | |
| 428 | end | |
| 429 | end | |
| 430 | end | |
| 431 | end | |
| 432 | m = Instance.new("Model", Character)
| |
| 433 | m.Name = WeaponName | |
| 434 | Effects = Instance.new("Folder", m)
| |
| 435 | Effects.Name = "Effects" | |
| 436 | Humanoid.Died:connect(function() | |
| 437 | ||
| 438 | attack = true | |
| 439 | for _,v in pairs(Character:GetChildren()) do | |
| 440 | if v.ClassName == "Model" then | |
| 441 | v:Destroy() | |
| 442 | end | |
| 443 | end | |
| 444 | end | |
| 445 | ) | |
| 446 | for i,v in pairs(Character:GetChildren()) do | |
| 447 | if v.ClassName == "Model" then | |
| 448 | for _,c in pairs(v:GetChildren()) do | |
| 449 | if c.ClassName == "Part" then | |
| 450 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 451 | end | |
| 452 | end | |
| 453 | end | |
| 454 | end | |
| 455 | print(ClassName .. " loaded.") | |
| 456 | clerp = function(a, b, t) | |
| 457 | return a:lerp(b, t) | |
| 458 | end | |
| 459 | ||
| 460 | positiveangle = function(number) | |
| 461 | ||
| 462 | if number > 0 then | |
| 463 | number = 0 | |
| 464 | end | |
| 465 | return number | |
| 466 | end | |
| 467 | ||
| 468 | negativeangle = function(number) | |
| 469 | ||
| 470 | if number < 0 then | |
| 471 | number = 0 | |
| 472 | end | |
| 473 | return number | |
| 474 | end | |
| 475 | ||
| 476 | so = function(id, par, vol, pit) | |
| 477 | ||
| 478 | coroutine.resume(coroutine.create(function() | |
| 479 | ||
| 480 | local sou = Instance.new("Sound", par or workspace)
| |
| 481 | sou.Volume = vol | |
| 482 | sou.Pitch = pit or 1 | |
| 483 | sou.SoundId = "http://roblox.com/asset/?id=" .. id | |
| 484 | hbwait() | |
| 485 | sou:play() | |
| 486 | game:GetService("Debris"):AddItem(sou, 10)
| |
| 487 | end | |
| 488 | )) | |
| 489 | end | |
| 490 | ||
| 491 | GetDistance = function(Part1, Part2, magnitude) | |
| 492 | ||
| 493 | local target = Part1.Position - Part2.Position | |
| 494 | local mag = target.magnitude | |
| 495 | if mag <= magnitude then | |
| 496 | return true | |
| 497 | else | |
| 498 | return false | |
| 499 | end | |
| 500 | end | |
| 501 | ||
| 502 | rayCast = function(Pos, Dir, Max, Ignore) | |
| 503 | ||
| 504 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 505 | end | |
| 506 | ||
| 507 | DamageStatLabel = function(labeltype, cframe, text, color) | |
| 508 | ||
| 509 | local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0)) | |
| 510 | c.CFrame = cf(cframe.p + vt(0, 1.5, 0)) | |
| 511 | game:GetService("Debris"):AddItem(c, 5)
| |
| 512 | Instance.new("BodyGyro", c)
| |
| 513 | local f = Instance.new("BodyPosition", c)
| |
| 514 | f.P = 2000 | |
| 515 | f.D = 100 | |
| 516 | f.maxForce = vt(math.huge, math.huge, math.huge) | |
| 517 | if labeltype == "Normal" then | |
| 518 | f.position = c.Position + vt(math.random(-2, 2), 6, math.random(-2, 2)) | |
| 519 | else | |
| 520 | if labeltype == "Debuff" then | |
| 521 | f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2)) | |
| 522 | else | |
| 523 | if labeltype == "Interruption" then | |
| 524 | f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2)) | |
| 525 | end | |
| 526 | end | |
| 527 | end | |
| 528 | game:GetService("Debris"):AddItem(c, 5)
| |
| 529 | local bg = Instance.new("BillboardGui", c)
| |
| 530 | bg.Adornee = c | |
| 531 | bg.Size = UDim2.new(2.5, 0, 2.5, 0) | |
| 532 | bg.StudsOffset = vt(-2, 2, 0) | |
| 533 | bg.AlwaysOnTop = false | |
| 534 | local tl = Instance.new("TextLabel", bg)
| |
| 535 | tl.BackgroundTransparency = 1 | |
| 536 | tl.Size = UDim2.new(2.5, 0, 2.5, 0) | |
| 537 | tl.Text = text | |
| 538 | tl.Font = Enum.Font.SourceSans | |
| 539 | tl.FontSize = Enum.FontSize.Size42 | |
| 540 | tl.TextColor3 = color | |
| 541 | tl.TextScaled = false | |
| 542 | tl.TextStrokeTransparency = 0 | |
| 543 | tl.TextScaled = true | |
| 544 | tl.TextWrapped = true | |
| 545 | f.Parent = c | |
| 546 | coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel) | |
| 547 | ||
| 548 | wait(0.25) | |
| 549 | for i = 1, 5 do | |
| 550 | wait() | |
| 551 | BodyPosition.position = Part.Position - vt(0, 0.5, 0) | |
| 552 | end | |
| 553 | wait(1.25) | |
| 554 | for i = 1, 5 do | |
| 555 | wait() | |
| 556 | TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2 | |
| 557 | TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2 | |
| 558 | BodyPosition.position = Part.Position + vt(0, 0.5, 0) | |
| 559 | end | |
| 560 | Part.Parent = nil | |
| 561 | end | |
| 562 | ), c, f, tl) | |
| 563 | end | |
| 564 | ||
| 565 | IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat) | |
| 566 | ||
| 567 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
| 568 | ||
| 569 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
| 570 | ||
| 571 | if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
| |
| 572 | Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount | |
| 573 | if ShowTheStat == true then | |
| 574 | if Stat == "Defense" then | |
| 575 | DamageStatLabel("Debuff", Location.Head.CFrame, "+Defense", c3(1, 1, 1))
| |
| 576 | else | |
| 577 | if Stat == "Damage" then | |
| 578 | DamageStatLabel("Debuff", Location.Head.CFrame, "+Damage", c3(1, 1, 1))
| |
| 579 | else | |
| 580 | if Stat == "Movement" then | |
| 581 | DamageStatLabel("Debuff", Location.Head.CFrame, "+Movement", c3(1, 1, 1))
| |
| 582 | end | |
| 583 | end | |
| 584 | end | |
| 585 | end | |
| 586 | coroutine.resume(coroutine.create(function(CurrentDecrease) | |
| 587 | ||
| 588 | wait(Duration) | |
| 589 | CurrentDecrease.Value = CurrentDecrease.Value - Amount | |
| 590 | end | |
| 591 | ), Location.Stats[Stat]) | |
| 592 | end | |
| 593 | DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
| |
| 594 | end | |
| 595 | ||
| 596 | DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat) | |
| 597 | ||
| 598 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
| 599 | ||
| 600 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
| 601 | ||
| 602 | if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
| |
| 603 | Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount | |
| 604 | if ShowTheStat == true then | |
| 605 | if Stat == "Defense" then | |
| 606 | DamageStatLabel("Debuff", Location.Head.CFrame, "-Defense", c3(1, 1, 1))
| |
| 607 | else | |
| 608 | if Stat == "Damage" then | |
| 609 | DamageStatLabel("Debuff", Location.Head.CFrame, "-Damage", c3(1, 1, 1))
| |
| 610 | else | |
| 611 | if Stat == "Movement" then | |
| 612 | DamageStatLabel("Debuff", Location.Head.CFrame, "-Movement", c3(1, 1, 1))
| |
| 613 | end | |
| 614 | end | |
| 615 | end | |
| 616 | end | |
| 617 | coroutine.resume(coroutine.create(function(CurrentDecrease) | |
| 618 | ||
| 619 | wait(Duration) | |
| 620 | CurrentDecrease.Value = CurrentDecrease.Value + Amount | |
| 621 | end | |
| 622 | ), Location.Stats[Stat]) | |
| 623 | end | |
| 624 | DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
| |
| 625 | end | |
| 626 | ||
| 627 | Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 628 | ||
| 629 | if hit.Parent == nil then | |
| 630 | return | |
| 631 | end | |
| 632 | h = hit.Parent:FindFirstChild("Humanoid")
| |
| 633 | for _,v in pairs(hit.Parent:GetChildren()) do | |
| 634 | if v:IsA("Humanoid") then
| |
| 635 | h = v | |
| 636 | end | |
| 637 | end | |
| 638 | if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then | |
| 639 | StaggerHitAnim.Value = true | |
| 640 | so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1) | |
| 641 | return | |
| 642 | end | |
| 643 | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
| |
| 644 | h = hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 645 | end | |
| 646 | if hit.Parent.className == "Hat" then | |
| 647 | hit = hit.Parent.Parent:FindFirstChild("Head")
| |
| 648 | end | |
| 649 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 650 | if hit.Parent:FindFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 651 | return | |
| 652 | end | |
| 653 | if AntiTeamKill.Value == true and Player.Neutral == false and game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then | |
| 654 | return | |
| 655 | end | |
| 656 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
| |
| 657 | return | |
| 658 | end | |
| 659 | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StunValue") ~= nil then
| |
| 660 | hit.Parent.Stats:FindFirstChild("StunValue").Value = hit.Parent.Stats:FindFirstChild("StunValue").Value + incstun
| |
| 661 | end | |
| 662 | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StaggerAnim") ~= nil and stagger == true then
| |
| 663 | hit.Parent.Stats:FindFirstChild("StaggerAnim").Value = true
| |
| 664 | end | |
| 665 | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue").Value == true then
| |
| 666 | if hit.Parent.Stats:FindFirstChild("BlockDebounce") == nil then
| |
| 667 | DamageStatLabel("Interruption", hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
| |
| 668 | local BlockDebounce = Instance.new("BoolValue", hit.Parent.Stats)
| |
| 669 | BlockDebounce.Name = "BlockDebounce" | |
| 670 | BlockDebounce.Value = true | |
| 671 | game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
| |
| 672 | end | |
| 673 | do | |
| 674 | if ranged ~= true then | |
| 675 | do | |
| 676 | if hit.Parent.Stats:FindFirstChild("BlockDebounce2") == nil then
| |
| 677 | local BlockDebounce2 = Instance.new("BoolValue", hit.Parent.Stats)
| |
| 678 | BlockDebounce2.Name = "BlockDebounce2" | |
| 679 | BlockDebounce2.Value = true | |
| 680 | game:GetService("Debris"):AddItem(BlockDebounce2, 0.1)
| |
| 681 | so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1) | |
| 682 | end | |
| 683 | hit.Parent.Stats:FindFirstChild("BlockValue").Value = false
| |
| 684 | StaggerAnim.Value = true | |
| 685 | do return end | |
| 686 | if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
| |
| 687 | if DecreaseTheStat == "Defense" then | |
| 688 | DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 689 | else | |
| 690 | if DecreaseTheStat == "Damage" then | |
| 691 | DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 692 | else | |
| 693 | if DecreaseTheStat == "Movement" then | |
| 694 | DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 695 | end | |
| 696 | end | |
| 697 | end | |
| 698 | end | |
| 699 | local D = math.random(minim, maxim) * Damage.Value | |
| 700 | if hit.Parent:FindFirstChild("Stats") ~= nil then
| |
| 701 | if hit.Parent.Stats:FindFirstChild("Defense") then
| |
| 702 | if CanPenetrateArmor.Value == true then | |
| 703 | D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
| |
| 704 | -- DECOMPILER ERROR at PC377: Unhandled construct in 'MakeBoolean' P1 | |
| 705 | ||
| 706 | if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then
| |
| 707 | CritChanceNumber = math.random(1, CritChance.Value) | |
| 708 | if CritChanceNumber == CritChance.Value then | |
| 709 | D = D * 2 | |
| 710 | end | |
| 711 | end | |
| 712 | D = math.floor(D) | |
| 713 | h.Health = h.Health - D | |
| 714 | if D <= 3 and staggerhit == true then | |
| 715 | if ranged ~= true then | |
| 716 | StaggerHitAnim.Value = true | |
| 717 | end | |
| 718 | if ranged ~= true then | |
| 719 | so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1) | |
| 720 | end | |
| 721 | else | |
| 722 | if D > 3 and ranged ~= true then | |
| 723 | so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1) | |
| 724 | end | |
| 725 | end | |
| 726 | if D > 3 and D < 20 then | |
| 727 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
| 728 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
| |
| 729 | so("296102734", hit, 1, 1)
| |
| 730 | else | |
| 731 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0))
| |
| 732 | end | |
| 733 | else | |
| 734 | if D >= 20 then | |
| 735 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
| 736 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
| |
| 737 | so("296102734", hit, 1, 1)
| |
| 738 | else | |
| 739 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0))
| |
| 740 | end | |
| 741 | else | |
| 742 | if D <= 3 then | |
| 743 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
| 744 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
| |
| 745 | so("296102734", hit, 1, 1)
| |
| 746 | else | |
| 747 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647))
| |
| 748 | end | |
| 749 | end | |
| 750 | end | |
| 751 | end | |
| 752 | do | |
| 753 | if Type == "Normal" then | |
| 754 | local vp = Instance.new("BodyVelocity")
| |
| 755 | vp.P = 500 | |
| 756 | vp.maxForce = vt(math.huge, 0, math.huge) | |
| 757 | if KnockbackType == 1 then | |
| 758 | vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 759 | else | |
| 760 | if KnockbackType == 2 then | |
| 761 | vp.Velocity = Property.CFrame.lookVector * knockback | |
| 762 | end | |
| 763 | end | |
| 764 | if knockback > 0 then | |
| 765 | vp.Parent = hit.Parent.Torso | |
| 766 | end | |
| 767 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 768 | end | |
| 769 | local DebounceHit = Instance.new("BoolValue", hit.Parent)
| |
| 770 | DebounceHit.Name = "DebounceHit" | |
| 771 | DebounceHit.Value = true | |
| 772 | game:GetService("Debris"):AddItem(DebounceHit, Delay)
| |
| 773 | end | |
| 774 | end | |
| 775 | end | |
| 776 | end | |
| 777 | end | |
| 778 | end | |
| 779 | end | |
| 780 | end | |
| 781 | end | |
| 782 | end | |
| 783 | ||
| 784 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat) | |
| 785 | ||
| 786 | for _,c in pairs(workspace:GetChildren()) do | |
| 787 | local hum = (c:FindFirstChild("Humanoid"))
| |
| 788 | local head = nil | |
| 789 | if hum ~= nil then | |
| 790 | head = c:FindFirstChild("Torso")
| |
| 791 | if head ~= nil then | |
| 792 | local targ = head.Position - Part.Position | |
| 793 | local mag = targ.magnitude | |
| 794 | if mag <= magni and c.Name ~= Player.Name then | |
| 795 | Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat) | |
| 796 | end | |
| 797 | end | |
| 798 | do | |
| 799 | for _,d in pairs(c:GetChildren()) do | |
| 800 | if d.ClassName == "Model" and ranged ~= true then | |
| 801 | head = d:FindFirstChild("Hitbox")
| |
| 802 | if head ~= nil then | |
| 803 | local targ = head.Position - Part.Position | |
| 804 | local mag = targ.magnitude | |
| 805 | if mag <= magni and c.Name ~= Player.Name then | |
| 806 | local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt()) | |
| 807 | hitrefpart.Anchored = true | |
| 808 | hitrefpart.CFrame = cf(head.Position) | |
| 809 | so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1) | |
| 810 | StaggerHitAnim.Value = true | |
| 811 | end | |
| 812 | end | |
| 813 | end | |
| 814 | end | |
| 815 | do | |
| 816 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out DO_STMT | |
| 817 | ||
| 818 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 819 | ||
| 820 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_STMT | |
| 821 | ||
| 822 | end | |
| 823 | end | |
| 824 | end | |
| 825 | end | |
| 826 | end | |
| 827 | ||
| 828 | MagniBufforDebuff = function(Part, Magni, Type, Stat, Amount, Duration, ShowTheBufforDebuff, ApplyToOthersInstead) | |
| 829 | ||
| 830 | if Player.Neutral == true then | |
| 831 | if Type == "Buff" then | |
| 832 | IncreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 833 | else | |
| 834 | if Type == "Debuff" then | |
| 835 | DecreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 836 | end | |
| 837 | end | |
| 838 | end | |
| 839 | for _,c in pairs(workspace:GetChildren()) do | |
| 840 | local hum = (c:FindFirstChild("Humanoid"))
| |
| 841 | local head = nil | |
| 842 | if hum ~= nil then | |
| 843 | head = c:FindFirstChild("Torso")
| |
| 844 | if head ~= nil then | |
| 845 | local targ = head.Position - Part.Position | |
| 846 | local mag = targ.magnitude | |
| 847 | -- DECOMPILER ERROR at PC83: Unhandled construct in 'MakeBoolean' P1 | |
| 848 | ||
| 849 | if ApplyToOthersInstead == true and mag <= Magni and c.Name ~= Player.Name and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then | |
| 850 | if Type == "Buff" then | |
| 851 | IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 852 | else | |
| 853 | if Type == "Debuff" then | |
| 854 | DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 855 | end | |
| 856 | end | |
| 857 | end | |
| 858 | end | |
| 859 | end | |
| 860 | if ApplyToOthersInstead == false and mag <= Magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then | |
| 861 | if Type == "Buff" then | |
| 862 | IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 863 | else | |
| 864 | if Type == "Debuff" then | |
| 865 | DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 866 | end | |
| 867 | end | |
| 868 | end | |
| 869 | end | |
| 870 | end | |
| 871 | ||
| 872 | Lightning = function(p0, p1, tym, ofs, brickcolor, material, th, tra, last) | |
| 873 | ||
| 874 | local magz = p0 - p1.magnitude | |
| 875 | local curpos = p0 | |
| 876 | local trz = {-ofs, ofs}
| |
| 877 | for i = 1, tym do | |
| 878 | local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym)) | |
| 879 | do | |
| 880 | li.Anchored = true | |
| 881 | local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 882 | local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz | |
| 883 | if tym == i then | |
| 884 | local magz2 = curpos - p1.magnitude | |
| 885 | li.Size = vt(th, th, magz2) | |
| 886 | li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2) | |
| 887 | else | |
| 888 | do | |
| 889 | do | |
| 890 | li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2) | |
| 891 | curpos = li.CFrame * cf(0, 0, magz / tym / 2).p | |
| 892 | game.Debris:AddItem(li, last) | |
| 893 | coroutine.resume(coroutine.create(function() | |
| 894 | ||
| 895 | while li.Transparency ~= 1 do | |
| 896 | for i = 0, 1, last do | |
| 897 | hbwait() | |
| 898 | li.Transparency = li.Transparency + 0.1 / last | |
| 899 | end | |
| 900 | end | |
| 901 | end | |
| 902 | )) | |
| 903 | end | |
| 904 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
| 905 | ||
| 906 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT | |
| 907 | ||
| 908 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT | |
| 909 | ||
| 910 | end | |
| 911 | end | |
| 912 | end | |
| 913 | end | |
| 914 | end | |
| 915 | ||
| 916 | MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 917 | ||
| 918 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 919 | prt.Anchored = true | |
| 920 | prt.CFrame = cframe | |
| 921 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 922 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 923 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 924 | ||
| 925 | for i = 0, 1, delay do | |
| 926 | hbwait() | |
| 927 | Part.CFrame = Part.CFrame | |
| 928 | Part.Transparency = i | |
| 929 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 930 | end | |
| 931 | Part.Parent = nil | |
| 932 | end | |
| 933 | ), prt, msh) | |
| 934 | end | |
| 935 | ||
| 936 | MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 937 | ||
| 938 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 939 | prt.Anchored = true | |
| 940 | prt.CFrame = cframe | |
| 941 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, -0.1 * z1), vt(x1, y1, z1))
| |
| 942 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 943 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 944 | ||
| 945 | for i = 0, 1, delay do | |
| 946 | hbwait() | |
| 947 | Part.CFrame = Part.CFrame | |
| 948 | Part.Transparency = i | |
| 949 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 950 | end | |
| 951 | Part.Parent = nil | |
| 952 | end | |
| 953 | ), prt, msh) | |
| 954 | end | |
| 955 | ||
| 956 | MagicBlock = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 957 | ||
| 958 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 959 | prt.Anchored = true | |
| 960 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 961 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 962 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 963 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 964 | ||
| 965 | for i = 0, 1, delay do | |
| 966 | hbwait() | |
| 967 | if rotate == true then | |
| 968 | Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 969 | end | |
| 970 | Part.Transparency = i | |
| 971 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 972 | end | |
| 973 | Part.Parent = nil | |
| 974 | end | |
| 975 | ), prt, msh) | |
| 976 | end | |
| 977 | ||
| 978 | MagicBlock2 = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 979 | ||
| 980 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 981 | prt.Anchored = true | |
| 982 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 983 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 984 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 985 | CF = prt.CFrame | |
| 986 | num = math.random(5, 20) | |
| 987 | coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num) | |
| 988 | ||
| 989 | for i = 0, 1, delay do | |
| 990 | hbwait() | |
| 991 | if rotate == true then | |
| 992 | Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 993 | else | |
| 994 | Part.CFrame = CF2 * cf(0, i * Num, 0) | |
| 995 | end | |
| 996 | Part.Transparency = i | |
| 997 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 998 | end | |
| 999 | Part.Parent = nil | |
| 1000 | end | |
| 1001 | ), prt, msh, CF, num) | |
| 1002 | end | |
| 1003 | ||
| 1004 | MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1005 | ||
| 1006 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1007 | prt.Anchored = true | |
| 1008 | prt.CFrame = cframe | |
| 1009 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1010 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1011 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1012 | ||
| 1013 | for i = 0, 1, delay do | |
| 1014 | hbwait() | |
| 1015 | Part.Transparency = i | |
| 1016 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1017 | end | |
| 1018 | Part.Parent = nil | |
| 1019 | end | |
| 1020 | ), prt, msh) | |
| 1021 | end | |
| 1022 | ||
| 1023 | MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1024 | ||
| 1025 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1026 | prt.Anchored = true | |
| 1027 | prt.CFrame = cframe | |
| 1028 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1029 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1030 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1031 | ||
| 1032 | for i = 0, 1, delay do | |
| 1033 | hbwait() | |
| 1034 | Part.Transparency = i | |
| 1035 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1036 | end | |
| 1037 | Part.Parent = nil | |
| 1038 | end | |
| 1039 | ), prt, msh) | |
| 1040 | end | |
| 1041 | ||
| 1042 | MagicHead = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1043 | ||
| 1044 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1045 | prt.Anchored = true | |
| 1046 | prt.CFrame = cframe | |
| 1047 | local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1048 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1049 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1050 | ||
| 1051 | for i = 0, 1, delay do | |
| 1052 | hbwait() | |
| 1053 | Part.Transparency = i | |
| 1054 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1055 | end | |
| 1056 | Part.Parent = nil | |
| 1057 | end | |
| 1058 | ), prt, msh) | |
| 1059 | end | |
| 1060 | ||
| 1061 | BreakEffect = function(brickcolor, material, rotate, cframe, x1, y1, z1, delay) | |
| 1062 | ||
| 1063 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1064 | prt.Anchored = true | |
| 1065 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1066 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1067 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1068 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
| 1069 | ||
| 1070 | CF = Part.CFrame | |
| 1071 | Numbb = 0 | |
| 1072 | randnumb = math.random() - math.random() | |
| 1073 | for i = 0, 1, delay do | |
| 1074 | hbwait() | |
| 1075 | CF = CF * cf(0, 1, 0) | |
| 1076 | if rotate == true then | |
| 1077 | Part.CFrame = CF * angles(Numbb, 0, 0) | |
| 1078 | else | |
| 1079 | if rotate == false then | |
| 1080 | Part.CFrame = CF | |
| 1081 | end | |
| 1082 | end | |
| 1083 | Part.Transparency = i | |
| 1084 | Numbb = Numbb + (randnumb) | |
| 1085 | end | |
| 1086 | Part.Parent = nil | |
| 1087 | end | |
| 1088 | ), prt, CF, Numbb, randnumb) | |
| 1089 | end | |
| 1090 | ||
| 1091 | ElecEffect = function(brickcolor, material, cf, x, y, z, delay) | |
| 1092 | ||
| 1093 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1094 | prt.Anchored = true | |
| 1095 | prt.CFrame = cf | |
| 1096 | xval = math.random() | |
| 1097 | yval = math.random() | |
| 1098 | zval = math.random() | |
| 1099 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
| |
| 1100 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1101 | coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal) | |
| 1102 | ||
| 1103 | for i = 0, 1, delay do | |
| 1104 | hbwait() | |
| 1105 | Part.CFrame = Part.CFrame | |
| 1106 | xvaal = xvaal - 0.1 * (delay * 10) | |
| 1107 | yvaal = yvaal - 0.1 * (delay * 10) | |
| 1108 | zvaal = zvaal - 0.1 * (delay * 10) | |
| 1109 | Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal) | |
| 1110 | Part.Transparency = i | |
| 1111 | end | |
| 1112 | Part.Parent = nil | |
| 1113 | end | |
| 1114 | ), prt, msh, xval, yval, zval) | |
| 1115 | end | |
| 1116 | ||
| 1117 | TrailEffect = function(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay) | |
| 1118 | ||
| 1119 | local magnitudecframe = currentcf.p - oldcf.p.magnitude | |
| 1120 | if magnitudecframe > 0.01 then | |
| 1121 | local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt(1, magnitudecframe, 1)) | |
| 1122 | prt.Anchored = true | |
| 1123 | prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(rad(90), 0, 0) | |
| 1124 | local TheMeshType = "BlockMesh" | |
| 1125 | if meshtype == "Cylinder" then | |
| 1126 | TheMeshType = "CylinderMesh" | |
| 1127 | end | |
| 1128 | local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt(0 + size, 1, 0 + size)) | |
| 1129 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1130 | coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame) | |
| 1131 | ||
| 1132 | for i = 0, 1, delay do | |
| 1133 | hbwait() | |
| 1134 | Part.Transparency = i | |
| 1135 | Mesh.Scale = Mesh.Scale + vt(x, y, z) | |
| 1136 | end | |
| 1137 | Part.Parent = nil | |
| 1138 | end | |
| 1139 | ), prt, msh, currentcf, oldcf) | |
| 1140 | end | |
| 1141 | end | |
| 1142 | ||
| 1143 | ClangEffect = function(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay) | |
| 1144 | ||
| 1145 | local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt()) | |
| 1146 | prt.Anchored = true | |
| 1147 | prt.CFrame = cframe | |
| 1148 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
| |
| 1149 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1150 | local TheLastPoint = cframe | |
| 1151 | coroutine.resume(coroutine.create(function(Part) | |
| 1152 | ||
| 1153 | for i = 1, duration do | |
| 1154 | hbwait() | |
| 1155 | Part.CFrame = Part.CFrame * angles(rad(angle), 0, 0) * cf(0, power, 0) | |
| 1156 | TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay) | |
| 1157 | TheLastPoint = Part.CFrame | |
| 1158 | end | |
| 1159 | Part.Parent = nil | |
| 1160 | end | |
| 1161 | ), prt) | |
| 1162 | end | |
| 1163 | ||
| 1164 | MagicCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1165 | ||
| 1166 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1167 | prt.Anchored = true | |
| 1168 | prt.CFrame = cframe | |
| 1169 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1170 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1171 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1172 | ||
| 1173 | for i = 0, 1, delay do | |
| 1174 | hbwait() | |
| 1175 | Part.Transparency = i | |
| 1176 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1177 | end | |
| 1178 | Part.Parent = nil | |
| 1179 | end | |
| 1180 | ), prt, msh) | |
| 1181 | end | |
| 1182 | ||
| 1183 | MagicFlatCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1184 | ||
| 1185 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1186 | prt.Anchored = true | |
| 1187 | prt.CFrame = cframe | |
| 1188 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1189 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1190 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1191 | ||
| 1192 | for i = 0, 1, delay do | |
| 1193 | hbwait() | |
| 1194 | Part.Transparency = i | |
| 1195 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1196 | end | |
| 1197 | Part.Parent = nil | |
| 1198 | end | |
| 1199 | ), prt, msh) | |
| 1200 | end | |
| 1201 | ||
| 1202 | MagicSpikedCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1203 | ||
| 1204 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1205 | prt.Anchored = true | |
| 1206 | prt.CFrame = cframe | |
| 1207 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1208 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1209 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1210 | ||
| 1211 | for i = 0, 1, delay do | |
| 1212 | hbwait() | |
| 1213 | Part.Transparency = i | |
| 1214 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1215 | end | |
| 1216 | Part.Parent = nil | |
| 1217 | end | |
| 1218 | ), prt, msh) | |
| 1219 | end | |
| 1220 | ||
| 1221 | MagicCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1222 | ||
| 1223 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1224 | prt.Anchored = true | |
| 1225 | prt.CFrame = cframe | |
| 1226 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1227 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1228 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1229 | ||
| 1230 | for i = 0, 1, delay do | |
| 1231 | hbwait() | |
| 1232 | Part.Transparency = i | |
| 1233 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1234 | end | |
| 1235 | Part.Parent = nil | |
| 1236 | end | |
| 1237 | ), prt, msh) | |
| 1238 | end | |
| 1239 | ||
| 1240 | MagicSkull = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1241 | ||
| 1242 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1243 | prt.Anchored = true | |
| 1244 | prt.CFrame = cframe | |
| 1245 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1246 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1247 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1248 | ||
| 1249 | for i = 0, 1, delay do | |
| 1250 | hbwait() | |
| 1251 | Part.Transparency = i | |
| 1252 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1253 | end | |
| 1254 | Part.Parent = nil | |
| 1255 | end | |
| 1256 | ), prt, msh) | |
| 1257 | end | |
| 1258 | ||
| 1259 | local startequipped = true | |
| 1260 | local startequippedwithequipanimation = false | |
| 1261 | local disableanimator = true | |
| 1262 | local disableanimate = true | |
| 1263 | local alternatewalk = false | |
| 1264 | local hidemenu = false | |
| 1265 | local allowmenutofunction = false | |
| 1266 | local allowabilitiestofunction = false | |
| 1267 | local canunequiporequip = false | |
| 1268 | local allowwalking = false | |
| 1269 | local disablemovingarms = false | |
| 1270 | local usemotorsinsteadofwelds = false | |
| 1271 | local leftarm = false | |
| 1272 | local rightarm = false | |
| 1273 | local allowhopperbin = false | |
| 1274 | local showstunbar = false | |
| 1275 | local walkspeeddependsonmovementvalue = true | |
| 1276 | local alternatemanaregensystem = false | |
| 1277 | local showhealthmanaandstunnumbers = false | |
| 1278 | local changebarcolorsifnotenoughmana = false | |
| 1279 | local disablejump = false | |
| 1280 | if hidemenu == true or allowmenutofunction == false then | |
| 1281 | for _,v in pairs(scrn:GetChildren()) do | |
| 1282 | if v.ClassName == "Frame" or v.ClassName == "TextLabel" then | |
| 1283 | v.Visible = false | |
| 1284 | v.BorderSizePixel = 0 | |
| 1285 | end | |
| 1286 | end | |
| 1287 | end | |
| 1288 | do | |
| 1289 | Humanoid.Changed:connect(function(Jump) | |
| 1290 | ||
| 1291 | if Jump == "Jump" and disablejump == true then | |
| 1292 | Humanoid.Jump = false | |
| 1293 | end | |
| 1294 | end | |
| 1295 | ) | |
| 1296 | if allowmenutofunction == true then | |
| 1297 | for _,v in pairs(scrn:GetChildren()) do | |
| 1298 | if v.ClassName == "Frame" then | |
| 1299 | for _,b in pairs(v:GetChildren()) do | |
| 1300 | if b.ClassName == "TextLabel" then | |
| 1301 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1302 | ||
| 1303 | wait(menuupdatespeed) | |
| 1304 | for i = 1, 0, -0.1 do | |
| 1305 | hbwait() | |
| 1306 | TheTextLabel.TextTransparency = i | |
| 1307 | TheTextLabel.TextStrokeTransparency = i | |
| 1308 | end | |
| 1309 | TheTextLabel.TextTransparency = 0 | |
| 1310 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1311 | end | |
| 1312 | ), b) | |
| 1313 | if showstats == true then | |
| 1314 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1315 | ||
| 1316 | wait(menuupdatespeed) | |
| 1317 | for i = 1, 0, -0.1 do | |
| 1318 | hbwait() | |
| 1319 | TheTextLabel.TextTransparency = i | |
| 1320 | TheTextLabel.TextStrokeTransparency = i | |
| 1321 | end | |
| 1322 | TheTextLabel.TextTransparency = 0 | |
| 1323 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1324 | end | |
| 1325 | ), b) | |
| 1326 | end | |
| 1327 | if showstunbar == true then | |
| 1328 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1329 | ||
| 1330 | wait(menuupdatespeed) | |
| 1331 | for i = 1, 0, -0.1 do | |
| 1332 | hbwait() | |
| 1333 | TheTextLabel.TextTransparency = i | |
| 1334 | TheTextLabel.TextStrokeTransparency = i | |
| 1335 | end | |
| 1336 | TheTextLabel.TextTransparency = 0 | |
| 1337 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1338 | end | |
| 1339 | ), b) | |
| 1340 | end | |
| 1341 | if allowabilitiestofunction == true then | |
| 1342 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1343 | ||
| 1344 | wait(menuupdatespeed) | |
| 1345 | for i = 1, 0, -0.1 do | |
| 1346 | hbwait() | |
| 1347 | TheTextLabel.TextTransparency = i | |
| 1348 | TheTextLabel.TextStrokeTransparency = i | |
| 1349 | end | |
| 1350 | TheTextLabel.TextTransparency = 0 | |
| 1351 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1352 | end | |
| 1353 | ), b) | |
| 1354 | end | |
| 1355 | end | |
| 1356 | end | |
| 1357 | end | |
| 1358 | end | |
| 1359 | end | |
| 1360 | do | |
| 1361 | if allowhopperbin == true then | |
| 1362 | if script.Parent.className ~= "HopperBin" then | |
| 1363 | Tool = Instance.new("HopperBin")
| |
| 1364 | Tool.Parent = Backpack | |
| 1365 | Tool.Name = WeaponName | |
| 1366 | script.Parent = Tool | |
| 1367 | end | |
| 1368 | Bin = script.Parent | |
| 1369 | end | |
| 1370 | if disablemovingarms == true then | |
| 1371 | RWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0)) | |
| 1372 | LWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0)) | |
| 1373 | RSH = nil | |
| 1374 | if usemotorsinsteadofwelds == true then | |
| 1375 | RW = Instance.new("Motor")
| |
| 1376 | LW = Instance.new("Motor")
| |
| 1377 | else | |
| 1378 | RW = Instance.new("Weld")
| |
| 1379 | LW = Instance.new("Weld")
| |
| 1380 | end | |
| 1381 | RW.Name = "Right Shoulder" | |
| 1382 | LW.Name = "Left Shoulder" | |
| 1383 | RSH = Torso["Right Shoulder"] | |
| 1384 | LSH = Torso["Left Shoulder"] | |
| 1385 | RSH.Parent = Torso | |
| 1386 | LSH.Parent = Torso | |
| 1387 | RW.Name = "Right Shoulder" | |
| 1388 | RW.Part0 = Torso | |
| 1389 | RW.C0 = cf(1.5, 0.5, 0) | |
| 1390 | RW.C1 = cf(0, 0.5, 0) | |
| 1391 | RW.Part1 = Character["Right Arm"] | |
| 1392 | RW.Parent = nil | |
| 1393 | LW.Name = "Left Shoulder" | |
| 1394 | LW.Part0 = Torso | |
| 1395 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 1396 | LW.C1 = cf(0, 0.5, 0) | |
| 1397 | LW.Part1 = Character["Left Arm"] | |
| 1398 | LW.Parent = nil | |
| 1399 | else | |
| 1400 | RW = Torso["Right Shoulder"] | |
| 1401 | LW = Torso["Left Shoulder"] | |
| 1402 | RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0)) | |
| 1403 | LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0)) | |
| 1404 | end | |
| 1405 | equipanim = function() | |
| 1406 | ||
| 1407 | attack = true | |
| 1408 | Movement.Value = Movement.Value - 0.1 | |
| 1409 | Defense.Value = Defense.Value + 0.4 | |
| 1410 | for i = 0, 1, 0.08 / animationspeed do | |
| 1411 | hbwait() | |
| 1412 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1413 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1414 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1415 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1416 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1417 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1418 | end | |
| 1419 | attack = false | |
| 1420 | end | |
| 1421 | ||
| 1422 | unequipanim = function() | |
| 1423 | ||
| 1424 | attack = true | |
| 1425 | for i = 0, 1, 0.08 / animationspeed do | |
| 1426 | hbwait() | |
| 1427 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1428 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)), 0.3 / animationspeed) | |
| 1429 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1430 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1431 | if disablemovingarms == false then | |
| 1432 | RW.C1 = clerp(RW.C1, angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed) | |
| 1433 | LW.C1 = clerp(LW.C1, angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed) | |
| 1434 | end | |
| 1435 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1436 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1437 | RH.C1 = clerp(RH.C1, angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed) | |
| 1438 | LH.C1 = clerp(LH.C1, angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed) | |
| 1439 | end | |
| 1440 | RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) | |
| 1441 | Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)) | |
| 1442 | Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize) | |
| 1443 | RW.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0 | |
| 1444 | LW.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0 | |
| 1445 | if disablemovingarms == false then | |
| 1446 | RW.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
| 1447 | LW.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
| 1448 | end | |
| 1449 | RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
| 1450 | LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
| 1451 | RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
| 1452 | LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
| 1453 | Movement.Value = Movement.Value + 0.1 | |
| 1454 | Defense.Value = Defense.Value - 0.4 | |
| 1455 | attack = false | |
| 1456 | end | |
| 1457 | ||
| 1458 | if startequipped == true then | |
| 1459 | equipped = true | |
| 1460 | if disableanimate == true then | |
| 1461 | Animate.Disabled = true | |
| 1462 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1463 | idleanimation:Play() | |
| 1464 | end | |
| 1465 | if disableanimator == true then | |
| 1466 | Animator.Parent = nil | |
| 1467 | end | |
| 1468 | if disablemovingarms == true then | |
| 1469 | RW.Parent = Torso | |
| 1470 | LW.Parent = Torso | |
| 1471 | RSH.Parent = nil | |
| 1472 | LSH.Parent = nil | |
| 1473 | end | |
| 1474 | Movement.Value = Movement.Value - 0.1 | |
| 1475 | Defense.Value = Defense.Value + 0.4 | |
| 1476 | end | |
| 1477 | if startequippedwithequipanimation == true then | |
| 1478 | equipped = true | |
| 1479 | if disableanimate == true then | |
| 1480 | Animate.Disabled = true | |
| 1481 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1482 | idleanimation:Play() | |
| 1483 | end | |
| 1484 | if disableanimator == true then | |
| 1485 | Animator.Parent = nil | |
| 1486 | end | |
| 1487 | if disablemovingarms == true then | |
| 1488 | RW.Parent = Torso | |
| 1489 | LW.Parent = Torso | |
| 1490 | RSH.Parent = nil | |
| 1491 | LSH.Parent = nil | |
| 1492 | end | |
| 1493 | coroutine.resume(coroutine.create(function() | |
| 1494 | ||
| 1495 | hbwait() | |
| 1496 | equipanim() | |
| 1497 | end | |
| 1498 | )) | |
| 1499 | end | |
| 1500 | ||
| 1501 | StaggerHit = function() | |
| 1502 | ||
| 1503 | attack = true | |
| 1504 | if Hitbox ~= nil then | |
| 1505 | for i = 1, math.random(2, 4) do | |
| 1506 | ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
| |
| 1507 | end | |
| 1508 | end | |
| 1509 | do | |
| 1510 | for i = 0, 1, 0.1 / animationspeed do | |
| 1511 | hbwait() | |
| 1512 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(-10), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1513 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(30)) * angles(rad(5), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1514 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-30), rad(0), rad(60)) * angles(rad(0), rad(-30), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1515 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(-20)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1516 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.9 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-10), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1517 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-70), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed) | |
| 1518 | if StaggerAnim.Value ~= true then | |
| 1519 | do | |
| 1520 | if StunAnim.Value == true then | |
| 1521 | break | |
| 1522 | end | |
| 1523 | -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 1524 | ||
| 1525 | -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_STMT | |
| 1526 | ||
| 1527 | end | |
| 1528 | end | |
| 1529 | end | |
| 1530 | attack = false | |
| 1531 | end | |
| 1532 | end | |
| 1533 | ||
| 1534 | Stagger = function() | |
| 1535 | ||
| 1536 | attack = true | |
| 1537 | disablejump = true | |
| 1538 | if Hitbox ~= nil then | |
| 1539 | for i = 1, math.random(2, 4) do | |
| 1540 | ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
| |
| 1541 | end | |
| 1542 | end | |
| 1543 | do | |
| 1544 | attacktype = 1 | |
| 1545 | DamageStatLabel("Interruption", Head.CFrame, "Staggered!", Color3.new(1, 1, 0))
| |
| 1546 | local staggervelocity = Instance.new("BodyVelocity", Torso)
| |
| 1547 | staggervelocity.P = 500 | |
| 1548 | staggervelocity.maxForce = vt(math.huge, 0, math.huge) | |
| 1549 | if Rooted.Value == false then | |
| 1550 | staggervelocity.Velocity = RootPart.CFrame.lookVector * -25 | |
| 1551 | end | |
| 1552 | for i = 0, 1, 0.35 / animationspeed do | |
| 1553 | hbwait() | |
| 1554 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.1 * PlayerSize) * angles(rad(-20), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1555 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1556 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed) | |
| 1557 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed) | |
| 1558 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed) | |
| 1559 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed) | |
| 1560 | end | |
| 1561 | for i = 0, 1, 0.2 / animationspeed do | |
| 1562 | hbwait() | |
| 1563 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.2 * PlayerSize) * angles(rad(-30), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1564 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1565 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed) | |
| 1566 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed) | |
| 1567 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed) | |
| 1568 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.9 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(30)), 0.3 / animationspeed) | |
| 1569 | end | |
| 1570 | staggervelocity:Destroy() | |
| 1571 | for i = 0, 1, 0.015 / animationspeed do | |
| 1572 | hbwait() | |
| 1573 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.8 * PlayerSize) * angles(rad(0), rad(0), rad(-20)) * angles(rad(-5), rad(-5), rad(0)), 0.3 / animationspeed) | |
| 1574 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(20), rad(0), rad(20)) * angles(rad(0), rad(5), rad(0)), 0.3 / animationspeed) | |
| 1575 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(20)) * angles(rad(0), rad(-20), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1576 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-15), rad(0), rad(-10)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1577 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(80), rad(0)) * angles(rad(0), rad(0), rad(70)) * angles(rad(0), rad(30), rad(0)), 0.3 / animationspeed) | |
| 1578 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, 0.4 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(-80), rad(0)) * angles(rad(-2.5), rad(0), rad(-10)), 0.3 / animationspeed) | |
| 1579 | if StunAnim.Value == true then | |
| 1580 | break | |
| 1581 | end | |
| 1582 | end | |
| 1583 | do | |
| 1584 | attacktype = 1 | |
| 1585 | disablejump = false | |
| 1586 | attack = false | |
| 1587 | end | |
| 1588 | end | |
| 1589 | end | |
| 1590 | ||
| 1591 | Stun = function() | |
| 1592 | ||
| 1593 | attack = true | |
| 1594 | disablejump = true | |
| 1595 | attacktype = 1 | |
| 1596 | DamageStatLabel("Interruption", Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
| |
| 1597 | for i = 0, 1, 0.4 / animationspeed do | |
| 1598 | hbwait() | |
| 1599 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(15), rad(0), rad(-160)), 0.3 / animationspeed) | |
| 1600 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(10), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1601 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(15)) * RWC0, 0.3 / animationspeed) | |
| 1602 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(-15)) * LWC0, 0.3 / animationspeed) | |
| 1603 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1604 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1605 | end | |
| 1606 | for i = 0, 1, 0.4 / animationspeed do | |
| 1607 | hbwait() | |
| 1608 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.5 * PlayerSize) * angles(rad(45), rad(0), rad(-170)), 0.3 / animationspeed) | |
| 1609 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1610 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(45)) * RWC0, 0.3 / animationspeed) | |
| 1611 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(-45)) * LWC0, 0.3 / animationspeed) | |
| 1612 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed) | |
| 1613 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1614 | end | |
| 1615 | for i = 0, 1, 0.4 / animationspeed do | |
| 1616 | hbwait() | |
| 1617 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1 * PlayerSize) * angles(rad(75), rad(0), rad(-180)), 0.3 / animationspeed) | |
| 1618 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-60)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1619 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(0), rad(75)) * RWC0, 0.3 / animationspeed) | |
| 1620 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-45), rad(0), rad(-75)) * LWC0, 0.3 / animationspeed) | |
| 1621 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed) | |
| 1622 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1623 | end | |
| 1624 | Humanoid.AutoRotate = false | |
| 1625 | for i = 1, 70 * animationspeed do | |
| 1626 | hbwait() | |
| 1627 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -2.5 * PlayerSize) * angles(rad(90), rad(0), rad(-180)), 0.3 / animationspeed) | |
| 1628 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-90)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1629 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(-10), rad(90)) * RWC0, 0.3 / animationspeed) | |
| 1630 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-90), rad(0), rad(-90)) * LWC0, 0.3 / animationspeed) | |
| 1631 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0.2 * PlayerSize) * angles(rad(0), rad(70), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1632 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-100), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1633 | end | |
| 1634 | for i = 0, 1, 0.15 / animationspeed do | |
| 1635 | hbwait() | |
| 1636 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.5 * PlayerSize) * angles(rad(20), rad(0), rad(100)), 0.3 / animationspeed) | |
| 1637 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1638 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(30)) * RWC0, 0.3 / animationspeed) | |
| 1639 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(20)) * LWC0, 0.3 / animationspeed) | |
| 1640 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(60), rad(0)) * angles(rad(-5), rad(0), rad(70)), 0.3 / animationspeed) | |
| 1641 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.25 * PlayerSize, -1 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-10), rad(0), rad(20)), 0.3 / animationspeed) | |
| 1642 | end | |
| 1643 | Humanoid.AutoRotate = true | |
| 1644 | attacktype = 1 | |
| 1645 | disablejump = false | |
| 1646 | attack = false | |
| 1647 | end | |
| 1648 | ||
| 1649 | EAbility = function() | |
| 1650 | ||
| 1651 | attack = true | |
| 1652 | attack = false | |
| 1653 | end | |
| 1654 | ||
| 1655 | Attack1 = function() | |
| 1656 | ||
| 1657 | attack = true | |
| 1658 | attack = false | |
| 1659 | end | |
| 1660 | ||
| 1661 | Attack2 = function() | |
| 1662 | ||
| 1663 | attack = true | |
| 1664 | attack = false | |
| 1665 | end | |
| 1666 | ||
| 1667 | Attack3 = function() | |
| 1668 | ||
| 1669 | attack = true | |
| 1670 | attack = false | |
| 1671 | end | |
| 1672 | ||
| 1673 | Attack4 = function() | |
| 1674 | ||
| 1675 | attack = true | |
| 1676 | attack = false | |
| 1677 | end | |
| 1678 | ||
| 1679 | Move1 = function() | |
| 1680 | ||
| 1681 | attack = true | |
| 1682 | attack = false | |
| 1683 | end | |
| 1684 | ||
| 1685 | Move2 = function() | |
| 1686 | ||
| 1687 | attack = true | |
| 1688 | attack = false | |
| 1689 | end | |
| 1690 | ||
| 1691 | Move3 = function() | |
| 1692 | ||
| 1693 | attack = true | |
| 1694 | attack = false | |
| 1695 | end | |
| 1696 | ||
| 1697 | Move4 = function() | |
| 1698 | ||
| 1699 | attack = true | |
| 1700 | attack = false | |
| 1701 | end | |
| 1702 | ||
| 1703 | hold = false | |
| 1704 | Mouse.Button1Down:connect(function() | |
| 1705 | ||
| 1706 | if attack == true or equipped == false then | |
| 1707 | return | |
| 1708 | end | |
| 1709 | hold = true | |
| 1710 | if attacktype == 1 then | |
| 1711 | attacktype = 2 | |
| 1712 | Attack1() | |
| 1713 | else | |
| 1714 | if attacktype == 2 then | |
| 1715 | attacktype = 3 | |
| 1716 | Attack2() | |
| 1717 | else | |
| 1718 | if attacktype == 3 then | |
| 1719 | attacktype = 4 | |
| 1720 | Attack3() | |
| 1721 | else | |
| 1722 | if attacktype == 4 then | |
| 1723 | attacktype = 1 | |
| 1724 | Attack4() | |
| 1725 | end | |
| 1726 | end | |
| 1727 | end | |
| 1728 | end | |
| 1729 | coroutine.resume(coroutine.create(function() | |
| 1730 | ||
| 1731 | for i = 1, 50 do | |
| 1732 | if attack == false then | |
| 1733 | hbwait() | |
| 1734 | end | |
| 1735 | end | |
| 1736 | if attack == false then | |
| 1737 | attacktype = 1 | |
| 1738 | end | |
| 1739 | end | |
| 1740 | )) | |
| 1741 | end | |
| 1742 | ) | |
| 1743 | if allowhopperbin == true then | |
| 1744 | ob1u = function(Mouse) | |
| 1745 | ||
| 1746 | hold = false | |
| 1747 | end | |
| 1748 | ||
| 1749 | end | |
| 1750 | Mouse.KeyDown:connect(function(key) | |
| 1751 | ||
| 1752 | if key == "f" and canunequiporequip == true and attack == false then | |
| 1753 | if equipped == false then | |
| 1754 | equipped = true | |
| 1755 | if disableanimate == true then | |
| 1756 | Animate.Disabled = true | |
| 1757 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1758 | idleanimation:Play() | |
| 1759 | end | |
| 1760 | if disableanimator == true then | |
| 1761 | Animator.Parent = nil | |
| 1762 | end | |
| 1763 | if disablemovingarms == true then | |
| 1764 | RW.Parent = Torso | |
| 1765 | LW.Parent = Torso | |
| 1766 | RSH.Parent = nil | |
| 1767 | LSH.Parent = nil | |
| 1768 | end | |
| 1769 | equipanim() | |
| 1770 | elseif equipped == true then | |
| 1771 | equipped = false | |
| 1772 | unequipanim() | |
| 1773 | hbwait() | |
| 1774 | if disablemovingarms == true then | |
| 1775 | RW.Parent = nil | |
| 1776 | LW.Parent = nil | |
| 1777 | RSH.Parent = Torso | |
| 1778 | LSH.Parent = Torso | |
| 1779 | end | |
| 1780 | if disableanimator == true then | |
| 1781 | Animator.Parent = Humanoid | |
| 1782 | end | |
| 1783 | if disableanimate == true then | |
| 1784 | Animate.Disabled = false | |
| 1785 | end | |
| 1786 | end | |
| 1787 | end | |
| 1788 | if key == "e" and attack == false and equipped == true then | |
| 1789 | if animtype < 3 then | |
| 1790 | animtype = animtype + 1 | |
| 1791 | elseif animtype >= 3 then | |
| 1792 | animtype = 1 | |
| 1793 | end | |
| 1794 | end | |
| 1795 | if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then | |
| 1796 | subtractmana(skill1mana) | |
| 1797 | cooldown1 = 0 | |
| 1798 | Move1() | |
| 1799 | end | |
| 1800 | if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then | |
| 1801 | subtractmana(skill2mana) | |
| 1802 | cooldown2 = 0 | |
| 1803 | Move2() | |
| 1804 | end | |
| 1805 | if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then | |
| 1806 | subtractmana(skill3mana) | |
| 1807 | cooldown3 = 0 | |
| 1808 | Move3() | |
| 1809 | end | |
| 1810 | if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then | |
| 1811 | subtractmana(skill4mana) | |
| 1812 | cooldown4 = 0 | |
| 1813 | Move4() | |
| 1814 | end | |
| 1815 | if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then | |
| 1816 | if key == "q" then | |
| 1817 | Mana.Value = 100 | |
| 1818 | cooldown1 = co1 | |
| 1819 | cooldown2 = co2 | |
| 1820 | cooldown3 = co3 | |
| 1821 | cooldown4 = co4 | |
| 1822 | end | |
| 1823 | if key == "p" then | |
| 1824 | StaggerHitAnim.Value = true | |
| 1825 | end | |
| 1826 | if key == "[" then | |
| 1827 | StaggerAnim.Value = true | |
| 1828 | end | |
| 1829 | if key == "]" then | |
| 1830 | StunAnim.Value = true | |
| 1831 | end | |
| 1832 | end | |
| 1833 | end | |
| 1834 | ) | |
| 1835 | Mouse.KeyUp:connect(function(key2) | |
| 1836 | ||
| 1837 | end | |
| 1838 | ) | |
| 1839 | if allowhopperbin == true then | |
| 1840 | s = function(Mouse) | |
| 1841 | ||
| 1842 | Mouse.Button1Down:connect(function() | |
| 1843 | ||
| 1844 | ob1d(Mouse) | |
| 1845 | end | |
| 1846 | ) | |
| 1847 | Mouse.Button1Up:connect(function() | |
| 1848 | ||
| 1849 | ob1u(Mouse) | |
| 1850 | end | |
| 1851 | ) | |
| 1852 | Mouse.KeyDown:connect(key) | |
| 1853 | Mouse.KeyUp:connect(key2) | |
| 1854 | end | |
| 1855 | ||
| 1856 | end | |
| 1857 | if allowhopperbin == true then | |
| 1858 | ds = function(Mouse) | |
| 1859 | ||
| 1860 | end | |
| 1861 | ||
| 1862 | end | |
| 1863 | if allowhopperbin == true then | |
| 1864 | Bin.Selected:connect(s) | |
| 1865 | Bin.Deselected:connect(ds) | |
| 1866 | end | |
| 1867 | updateskills = function() | |
| 1868 | ||
| 1869 | if allowabilitiestofunction == true then | |
| 1870 | if cooldown1 <= co1 then | |
| 1871 | cooldown1 = cooldown1 + 0.033333333333333 | |
| 1872 | if co1 <= cooldown1 then | |
| 1873 | cooldown1 = co1 | |
| 1874 | end | |
| 1875 | end | |
| 1876 | if cooldown2 <= co2 then | |
| 1877 | cooldown2 = cooldown2 + 0.033333333333333 | |
| 1878 | if co2 <= cooldown2 then | |
| 1879 | cooldown2 = co2 | |
| 1880 | end | |
| 1881 | end | |
| 1882 | if cooldown3 <= co3 then | |
| 1883 | cooldown3 = cooldown3 + 0.033333333333333 | |
| 1884 | if co3 <= cooldown3 then | |
| 1885 | cooldown3 = co3 | |
| 1886 | end | |
| 1887 | end | |
| 1888 | if cooldown4 <= co4 then | |
| 1889 | cooldown4 = cooldown4 + 0.033333333333333 | |
| 1890 | if co4 <= cooldown4 then | |
| 1891 | cooldown4 = co4 | |
| 1892 | end | |
| 1893 | end | |
| 1894 | if changebarcolorsifnotenoughmana == true then | |
| 1895 | if Mana.Value <= skill1mana then | |
| 1896 | bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 1897 | else | |
| 1898 | bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1899 | end | |
| 1900 | if Mana.Value <= skill2mana then | |
| 1901 | bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 1902 | else | |
| 1903 | bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1904 | end | |
| 1905 | if Mana.Value <= skill3mana then | |
| 1906 | bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 1907 | else | |
| 1908 | bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1909 | end | |
| 1910 | if Mana.Value <= skill4mana then | |
| 1911 | bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 1912 | else | |
| 1913 | bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1914 | end | |
| 1915 | else | |
| 1916 | if changebarcolorsifnotenoughmana == false then | |
| 1917 | bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1918 | bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1919 | bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1920 | bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 1921 | end | |
| 1922 | end | |
| 1923 | end | |
| 1924 | if alternatemanaregensystem == false then | |
| 1925 | if Mana.Value <= maxmana then | |
| 1926 | Mana.Value = Mana.Value + recovermana / 30 | |
| 1927 | else | |
| 1928 | if maxmana <= Mana.Value then | |
| 1929 | Mana.Value = maxmana | |
| 1930 | end | |
| 1931 | end | |
| 1932 | else | |
| 1933 | if alternatemanaregensystem == true then | |
| 1934 | if maxmana <= Mana.Value then | |
| 1935 | Mana.Value = maxmana | |
| 1936 | else | |
| 1937 | if manadelay <= manawait then | |
| 1938 | manadelay = manadelay + 1 | |
| 1939 | else | |
| 1940 | manadelay = 0 | |
| 1941 | Mana.Value = Mana.Value + 1 | |
| 1942 | end | |
| 1943 | end | |
| 1944 | end | |
| 1945 | end | |
| 1946 | if allowstunbar == true then | |
| 1947 | if StunValue.Value <= 0 then | |
| 1948 | StunValue.Value = 0 | |
| 1949 | else | |
| 1950 | if stundelay <= stunwait then | |
| 1951 | stundelay = stundelay + 1 | |
| 1952 | else | |
| 1953 | stundelay = 0 | |
| 1954 | StunValue.Value = StunValue.Value - 1 | |
| 1955 | end | |
| 1956 | end | |
| 1957 | else | |
| 1958 | if allowstunbar == false then | |
| 1959 | StunValue.Value = 0 | |
| 1960 | end | |
| 1961 | end | |
| 1962 | end | |
| 1963 | ||
| 1964 | if allowmenutofunction == true then | |
| 1965 | ArtificialHB.Event:connect(function() | |
| 1966 | ||
| 1967 | updateskills() | |
| 1968 | if allowabilitiestofunction == true then | |
| 1969 | framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1970 | framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1971 | framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1972 | framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1973 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1974 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1975 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1976 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1977 | end | |
| 1978 | manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1979 | manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1980 | healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1981 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1982 | if allowstunbar == true and showstunbar == true and stunframe ~= nil then | |
| 1983 | stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1984 | stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1985 | end | |
| 1986 | if showhealthmanaandstunnumbers == true then | |
| 1987 | manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]" | |
| 1988 | healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]" | |
| 1989 | if allowstunbar == true and showstunbar == true then | |
| 1990 | stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]" | |
| 1991 | end | |
| 1992 | end | |
| 1993 | if showstats == true then | |
| 1994 | defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1995 | damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1996 | movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 1997 | defensetext.Text = "Defense: " .. Defense.Value * 100 .. "%" | |
| 1998 | damagetext.Text = "Damage: " .. Damage.Value * 100 .. "%" | |
| 1999 | if Rooted.Value == false then | |
| 2000 | movementtext.Text = "Movement: " .. Movement.Value * 100 .. "%" | |
| 2001 | else | |
| 2002 | if Rooted.Value == true or Movement.Value <= 0 then | |
| 2003 | movementtext.Text = "Movement: 0%" | |
| 2004 | end | |
| 2005 | end | |
| 2006 | end | |
| 2007 | end | |
| 2008 | ) | |
| 2009 | end | |
| 2010 | while 1 do | |
| 2011 | hbwait() | |
| 2012 | if Hitbox ~= nil then | |
| 2013 | if attack == true then | |
| 2014 | Hitbox.Name = "Hitbox" | |
| 2015 | else | |
| 2016 | if attack == false then | |
| 2017 | Hitbox.Name = "NilHitbox" | |
| 2018 | end | |
| 2019 | end | |
| 2020 | end | |
| 2021 | if 0 < Humanoid.Health then | |
| 2022 | if walkspeeddependsonmovementvalue == true then | |
| 2023 | if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then | |
| 2024 | Humanoid.WalkSpeed = 0 | |
| 2025 | else | |
| 2026 | Humanoid.WalkSpeed = 16 * Movement.Value | |
| 2027 | end | |
| 2028 | end | |
| 2029 | if maxstun <= StunValue.Value then | |
| 2030 | StunValue.Value = 0 | |
| 2031 | StunAnim.Value = true | |
| 2032 | end | |
| 2033 | if StaggerAnim.Value == true and staggeranim == false then | |
| 2034 | coroutine.resume(coroutine.create(function() | |
| 2035 | ||
| 2036 | staggeranim = true | |
| 2037 | while attack == true do | |
| 2038 | hbwait() | |
| 2039 | end | |
| 2040 | Stagger() | |
| 2041 | StaggerAnim.Value = false | |
| 2042 | staggeranim = false | |
| 2043 | end | |
| 2044 | )) | |
| 2045 | end | |
| 2046 | if StaggerHitAnim.Value == true and staggerhitanim == false then | |
| 2047 | coroutine.resume(coroutine.create(function() | |
| 2048 | ||
| 2049 | staggerhitanim = true | |
| 2050 | while attack == true do | |
| 2051 | hbwait() | |
| 2052 | end | |
| 2053 | StaggerHit() | |
| 2054 | StaggerHitAnim.Value = false | |
| 2055 | staggerhitanim = false | |
| 2056 | end | |
| 2057 | )) | |
| 2058 | end | |
| 2059 | if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then | |
| 2060 | coroutine.resume(coroutine.create(function() | |
| 2061 | ||
| 2062 | StunValue.Value = 0 | |
| 2063 | stunanim = true | |
| 2064 | while attack == true do | |
| 2065 | hbwait() | |
| 2066 | end | |
| 2067 | Stun() | |
| 2068 | StunAnim.Value = false | |
| 2069 | stunanim = false | |
| 2070 | end | |
| 2071 | )) | |
| 2072 | end | |
| 2073 | sine = sine + change | |
| 2074 | local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude | |
| 2075 | local velderp = RootPart.Velocity.y | |
| 2076 | local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position) | |
| 2077 | hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position + vt(0, -1, 0)).lookVector, 4 * PlayerSize, Character) | |
| 2078 | if 0.5 <= donum then | |
| 2079 | handidle = true | |
| 2080 | else | |
| 2081 | if donum <= 0 then | |
| 2082 | handidle = false | |
| 2083 | end | |
| 2084 | end | |
| 2085 | if handidle == false then | |
| 2086 | donum = donum + 0.003 / animationspeed | |
| 2087 | else | |
| 2088 | donum = donum - 0.003 / animationspeed | |
| 2089 | end | |
| 2090 | if equipped == true or equipped == false then | |
| 2091 | if attack == false then | |
| 2092 | idle = idle + 1 | |
| 2093 | else | |
| 2094 | idle = 0 | |
| 2095 | end | |
| 2096 | if leftarm == true then | |
| 2097 | if Anim == "Walk" and equipped == true and attack == false then | |
| 2098 | if alternatewalk == false then | |
| 2099 | if walkinganim == true then | |
| 2100 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2101 | else | |
| 2102 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2103 | end | |
| 2104 | else | |
| 2105 | if walkinganim == true then | |
| 2106 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2107 | else | |
| 2108 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2109 | end | |
| 2110 | end | |
| 2111 | else | |
| 2112 | -- DECOMPILER ERROR at PC2457: Unhandled construct in 'MakeBoolean' P3 | |
| 2113 | ||
| 2114 | if (Anim ~= "Walk" and equipped == true) or leftarm == false then | |
| 2115 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2116 | end | |
| 2117 | end | |
| 2118 | end | |
| 2119 | if rightarm == true then | |
| 2120 | if Anim == "Walk" and equipped == true and attack == false then | |
| 2121 | if alternatewalk == false then | |
| 2122 | if walkinganim == true then | |
| 2123 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2124 | else | |
| 2125 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2126 | end | |
| 2127 | else | |
| 2128 | if walkinganim == true then | |
| 2129 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2130 | else | |
| 2131 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2132 | end | |
| 2133 | end | |
| 2134 | else | |
| 2135 | -- DECOMPILER ERROR at PC2648: Unhandled construct in 'MakeBoolean' P3 | |
| 2136 | ||
| 2137 | if (Anim ~= "Walk" and equipped == true) or rightarm == false then | |
| 2138 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2139 | end | |
| 2140 | end | |
| 2141 | end | |
| 2142 | if allowwalking == true then | |
| 2143 | if Anim == "Walk" and equipped == true then | |
| 2144 | if alternatewalk == false then | |
| 2145 | if walkinganim == true then | |
| 2146 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2147 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2148 | else | |
| 2149 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2150 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2151 | end | |
| 2152 | else | |
| 2153 | if walkinganim == true then | |
| 2154 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2155 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2156 | else | |
| 2157 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2158 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2159 | end | |
| 2160 | end | |
| 2161 | else | |
| 2162 | if Anim ~= "Walk" and equipped == true then | |
| 2163 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2164 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2165 | end | |
| 2166 | end | |
| 2167 | end | |
| 2168 | Anim = "Idle" | |
| 2169 | if attack == false then | |
| 2170 | if equipped == true then | |
| 2171 | if animtype == 1 then | |
| 2172 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2173 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2174 | RW.C0 = clerp(RW.C0, cf(1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(100), rad(0), rad(-80)) * angles(rad(-5 * math.sin((sine) / 4)), rad(90), rad(0)) * (RWC0), 1 / animationspeed) | |
| 2175 | LW.C0 = clerp(LW.C0, cf(-1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(80), rad(0), rad(70)) * angles(rad(-5 * math.sin((sine) / 4)), rad(-90), rad(0)) * (LWC0), 1 / animationspeed) | |
| 2176 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2177 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2178 | end | |
| 2179 | if animtype == 2 then | |
| 2180 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(2.5 + 2.5 * math.cos((sine) / 4)), rad(0), rad(0)), 1 / animationspeed) | |
| 2181 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(2.5 * math.sin((sine) / 4)), rad(0), rad(0)), 1 / animationspeed) | |
| 2182 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(5), rad(10)) * angles(rad(60 * math.cos((sine) / 8)), rad(5), rad(0)) * (RWC0), 1 / animationspeed) | |
| 2183 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-5), rad(-10)) * angles(rad(-60 * math.cos((sine) / 8)), rad(-5), rad(0)) * (LWC0), 1 / animationspeed) | |
| 2184 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 5 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2185 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 5 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2186 | end | |
| 2187 | end | |
| 2188 | if animtype == 3 then | |
| 2189 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2190 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2191 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(0), rad(-20)) * angles(rad(0), rad(10), rad(0)) * (RWC0), 1 / animationspeed) | |
| 2192 | LW.C0 = clerp(LW.C0, cf(-1.25 + 0.25 * math.sin((sine) / 8) * PlayerSize, 0.5 * PlayerSize, -0.25 - 0.25 * math.sin((sine) / 8) * PlayerSize) * angles(rad(80 - 30 * math.cos((sine) / 4)), rad(0), rad(60 * math.sin((sine) / 8))) * (LWC0), 1 / animationspeed) | |
| 2193 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2194 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2195 | end | |
| 2196 | end | |
| 2197 | end | |
| 2198 | end | |
| 2199 | end | |
| 2200 | end | |
| 2201 | end |