SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[mediafire gtfo password]]-- | |
| 2 | ||
| 3 | - | zeta = game.Players.SurfaceSwine |
| 3 | + | zeta = game.Players.XxXexe5 |
| 4 | main = "Really black" | |
| 5 | range = 20 | |
| 6 | guard = false | |
| 7 | tor = zeta.Character.Torso | |
| 8 | bp = Instance.new("Model")
| |
| 9 | bp.Parent = zeta.Character | |
| 10 | bp.Name = "Backpack Guardian is on Stand..By" | |
| 11 | script.Parent = bp | |
| 12 | hum = Instance.new("Humanoid")
| |
| 13 | hum.MaxHealth = 0 | |
| 14 | hum.Parent = bp | |
| 15 | head = Instance.new("Part")
| |
| 16 | head.Parent = bp | |
| 17 | head.Size = tor.Size | |
| 18 | head.Name = "Head" | |
| 19 | head.BrickColor = BrickColor.new(main) | |
| 20 | head.TopSurface = "Smooth" | |
| 21 | head.BottomSurface = "Smooth" | |
| 22 | head:BreakJoints() | |
| 23 | weld = Instance.new("Weld")
| |
| 24 | weld.Parent = tor | |
| 25 | weld.Part0 = tor | |
| 26 | weld.Part1 = head | |
| 27 | weld.C0 = CFrame.new(0,0,1) * CFrame.Angles(0,0,0) | |
| 28 | head2 = Instance.new("Part")
| |
| 29 | head2.Parent = bp | |
| 30 | head2.Size = Vector3.new(1,1,1) | |
| 31 | head2.Name = "Shield" | |
| 32 | head2.BrickColor = BrickColor.new("Really blue")
| |
| 33 | head2.TopSurface = "Smooth" | |
| 34 | head2.Transparency = 0.8 | |
| 35 | head2.CanCollide = false | |
| 36 | head2.BottomSurface = "Smooth" | |
| 37 | msh = Instance.new("SpecialMesh")
| |
| 38 | msh.MeshType = "Sphere" | |
| 39 | msh.Parent = head2 | |
| 40 | msh.Scale = Vector3.new(1,1,1) | |
| 41 | head2:BreakJoints() | |
| 42 | weld = Instance.new("Weld")
| |
| 43 | weld.Parent = tor | |
| 44 | weld.Part0 = tor | |
| 45 | weld.Part1 = head2 | |
| 46 | weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
| 47 | ||
| 48 | function fire(player) | |
| 49 | human = player.Character:findFirstChild("Humanoid")
| |
| 50 | if human ~= nil then | |
| 51 | lasa = Instance.new("SelectionPartLasso")
| |
| 52 | lasa.Parent = game.Workspace | |
| 53 | lasa.Humanoid = human | |
| 54 | lasa.Part = head | |
| 55 | lasa.Color = BrickColor.new("Really black")
| |
| 56 | wait(0.01) | |
| 57 | human.Parent:BreakJoints() | |
| 58 | lasa:Remove() | |
| 59 | end | |
| 60 | end | |
| 61 | ||
| 62 | function chat(msg) | |
| 63 | if string.sub(msg:lower(), 1, 8) == "guard/on" and guard == false then | |
| 64 | for i = 1, range*20 do | |
| 65 | wait() | |
| 66 | msh.Scale = msh.Scale + Vector3.new(0.1,0.085,0.1) | |
| 67 | end | |
| 68 | bp.Name = "Backpack Guardian; Auto-Attack Range:" ..range | |
| 69 | guard = true | |
| 70 | end | |
| 71 | if string.sub(msg:lower(), 1, 9) == "guard/off" and guard == true then | |
| 72 | for i = 1, range*20 do | |
| 73 | wait() | |
| 74 | msh.Scale = msh.Scale - Vector3.new(0.1,0.1,0.1) | |
| 75 | end | |
| 76 | guard = false | |
| 77 | bp.Name = "Backpack Guardian is on StandBy" | |
| 78 | end | |
| 79 | if string.sub(msg, 1, 6) == "laser/" then | |
| 80 | txt = string.sub(msg, 7) | |
| 81 | body = game.Players:GetChildren() | |
| 82 | for i = 1, #body do | |
| 83 | if body[i].Name == txt then | |
| 84 | fire(body[i]) | |
| 85 | end | |
| 86 | end | |
| 87 | end | |
| 88 | end | |
| 89 | ||
| 90 | zeta.Chatted:connect(chat) | |
| 91 | ||
| 92 | ||
| 93 | while true do | |
| 94 | wait() | |
| 95 | if guard == true then | |
| 96 | play = game.Players:GetChildren() | |
| 97 | for i = 1, #play do | |
| 98 | if play[i].Name ~= zeta.Name then | |
| 99 | if play[i].Character ~= nil then | |
| 100 | if play[i].Character:findFirstChild("Torso") ~= ni then
| |
| 101 | if play[i].Character.Humanoid.Health < 1 then | |
| 102 | else | |
| 103 | torso = play[i].Character:findFirstChild("Torso")
| |
| 104 | if math.ceil((torso.Position - head2.Position).magnitude) < range then | |
| 105 | fire(play[i]) | |
| 106 | end | |
| 107 | end | |
| 108 | end | |
| 109 | end | |
| 110 | end | |
| 111 | end | |
| 112 | end | |
| 113 | end |