SHOW:
|
|
- or go back to the newest paste.
| 1 | local name = "Meti2000" | |
| 2 | local players = game:GetService("Players")
| |
| 3 | local me = players:FindFirstChild(name) | |
| 4 | local char = me.Character | |
| 5 | script.Parent = char | |
| 6 | script.Name = "_Main" | |
| 7 | local mimic = name | |
| 8 | local protectbool = true | |
| 9 | local count = 0 | |
| 10 | local protect = {}
| |
| 11 | Decal = Instance.new("Decal")
| |
| 12 | mo = Instance.new("Model")
| |
| 13 | mo.Parent = char | |
| 14 | mo.Name = "Dancing" | |
| 15 | head = Instance.new("Part")
| |
| 16 | head.Parent = mo | |
| 17 | head.Name = "Head" | |
| 18 | head.CanCollide = false | |
| 19 | head.formFactor = "Symmetric" | |
| 20 | head.Transparency = 0 | |
| 21 | head.BrickColor = BrickColor.new("Bright yellow")
| |
| 22 | head.Size = Vector3.new(2, 1, 1) | |
| 23 | head.Anchored = true | |
| 24 | i = Instance.new("SpecialMesh")
| |
| 25 | i.Scale = Vector3.new(1.3, 1.3, 1.3) | |
| 26 | i.Parent = head | |
| 27 | Decal.Parent = head | |
| 28 | Decal.Texture = "rbxassetid://76864258" | |
| 29 | -------------------------------- | |
| 30 | torso = Instance.new("Part")
| |
| 31 | torso.Parent = mo | |
| 32 | torso.CanCollide = false | |
| 33 | torso.Name = "Torso" | |
| 34 | torso.formFactor = "Symmetric" | |
| 35 | torso.Transparency = 0 | |
| 36 | torso.BrickColor = BrickColor.new("Bright blue")
| |
| 37 | torso.Size = Vector3.new(2, 2, 1) | |
| 38 | torso.Anchored = true | |
| 39 | is = Instance.new("SpecialMesh")
| |
| 40 | is.MeshType = "Brick" | |
| 41 | is.Scale = Vector3.new(1, 1, 1) | |
| 42 | is.Parent = torso | |
| 43 | --------------------------------- | |
| 44 | ra = Instance.new("Part")
| |
| 45 | ra.Parent = mo | |
| 46 | ra.CanCollide = false | |
| 47 | ra.Name = "RA" | |
| 48 | ra.formFactor = "Symmetric" | |
| 49 | ra.Transparency = 0 | |
| 50 | ra.BrickColor = BrickColor.new("Bright yellow")
| |
| 51 | ra.Size = Vector3.new(1, 2, 1) | |
| 52 | ra.Anchored = true | |
| 53 | i = Instance.new("SpecialMesh")
| |
| 54 | i.MeshType = "Brick" | |
| 55 | i.Scale = Vector3.new(1, 1, 1) | |
| 56 | i.Parent = ra | |
| 57 | --------------------------------- | |
| 58 | la = Instance.new("Part")
| |
| 59 | la.CanCollide = false | |
| 60 | la.Parent = mo | |
| 61 | la.Name = "LA" | |
| 62 | la.formFactor = "Symmetric" | |
| 63 | la.Transparency = 0 | |
| 64 | la.BrickColor = BrickColor.new("Bright yellow")
| |
| 65 | la.Size = Vector3.new(1, 2, 1) | |
| 66 | la.Anchored = true | |
| 67 | i = Instance.new("SpecialMesh")
| |
| 68 | i.MeshType = "Brick" | |
| 69 | i.Scale = Vector3.new(1, 1, 1) | |
| 70 | i.Parent = la | |
| 71 | --------------------------------- | |
| 72 | --------------------------------- | |
| 73 | rl = Instance.new("Part")
| |
| 74 | rl.Parent = mo | |
| 75 | rl.CanCollide = false | |
| 76 | rl.Name = "RL" | |
| 77 | rl.formFactor = "Symmetric" | |
| 78 | rl.Transparency = 0 | |
| 79 | rl.BrickColor = BrickColor.new("Bright green")
| |
| 80 | rl.Size = Vector3.new(1, 2, 1) | |
| 81 | rl.Anchored = true | |
| 82 | i = Instance.new("SpecialMesh")
| |
| 83 | i.MeshType = "Brick" | |
| 84 | i.Scale = Vector3.new(1, 1, 1) | |
| 85 | i.Parent = rl | |
| 86 | --------------------------------- | |
| 87 | ll = Instance.new("Part")
| |
| 88 | ll.Parent = mo | |
| 89 | ll.CanCollide = false | |
| 90 | ll.Name = "LL" | |
| 91 | ll.formFactor = "Symmetric" | |
| 92 | ll.Transparency = 0 | |
| 93 | ll.BrickColor = BrickColor.new("Bright green")
| |
| 94 | ll.Size = Vector3.new(1, 2, 1) | |
| 95 | ll.Anchored = true | |
| 96 | i = Instance.new("SpecialMesh")
| |
| 97 | i.MeshType = "Brick" | |
| 98 | i.Scale = Vector3.new(1, 1, 1) | |
| 99 | i.Parent = ll | |
| 100 | --------------------------------- | |
| 101 | local gui = Instance.new("BillboardGui")
| |
| 102 | gui.Parent = mo | |
| 103 | gui.Adornee = head | |
| 104 | gui.Size = UDim2.new(2, 0, 2, 0) | |
| 105 | gui.StudsOffset = Vector3.new(0, 3, 0) | |
| 106 | local frame = Instance.new("Frame")
| |
| 107 | frame.Parent = gui | |
| 108 | frame.Size = UDim2.new(2, 0, 2, 0) | |
| 109 | frame.BackgroundTransparency = 1 | |
| 110 | local text = Instance.new("TextLabel")
| |
| 111 | text.Parent = frame | |
| 112 | text.Size = UDim2.new(5, 0, 5, 0) | |
| 113 | text.BackgroundTransparency = 1 | |
| 114 | text.Text = "Guard" | |
| 115 | --------------------------------- | |
| 116 | function SPL(Color, Target, Part, Time) | |
| 117 | coroutine.resume(coroutine.create(function() | |
| 118 | local SPL = Instance.new("SelectionPartLasso", Workspace)
| |
| 119 | SPL.Color = BrickColor.new(Color) | |
| 120 | SPL.Humanoid = Target | |
| 121 | SPL.Part = Part | |
| 122 | wait(Time) | |
| 123 | pcall(function() SPL:Remove() end) | |
| 124 | end)) | |
| 125 | end | |
| 126 | function sb(color, adorn, time) | |
| 127 | coroutine.resume(coroutine.create(function() | |
| 128 | local SB = Instance.new("SelectionBox")
| |
| 129 | SB.Parent = head | |
| 130 | SB.Adornee = adorn | |
| 131 | SB.Color = BrickColor.new(color) | |
| 132 | wait(time) | |
| 133 | pcall(function() SB:Remove() end) | |
| 134 | end)) | |
| 135 | end | |
| 136 | --------------------------------- | |
| 137 | function talk(msg) | |
| 138 | if string.sub(msg, 1, 5) == "kill " then | |
| 139 | said = string.lower(string.sub(msg, 6)) | |
| 140 | look = players:GetChildren() | |
| 141 | for i = 1, #look do | |
| 142 | if string.find(string.lower(look[i].Name), said) == 1 then | |
| 143 | human = look[i].Character.Humanoid | |
| 144 | SPL("Bright red", human, head, 1.5)
| |
| 145 | sb("Bright red", human.Parent, 1.5)
| |
| 146 | human.Parent:BreakJoints() | |
| 147 | end | |
| 148 | end | |
| 149 | end | |
| 150 | if string.sub(msg, 1, 7) == "follow " then | |
| 151 | said = string.lower(string.sub(msg, 8)) | |
| 152 | look = players:GetChildren() | |
| 153 | for i = 1, #look do | |
| 154 | if string.find(string.lower(look[i].Name), said) == 1 then | |
| 155 | mimic = look[i].Name | |
| 156 | end | |
| 157 | end | |
| 158 | end | |
| 159 | if string.sub(msg, 1, 8) == "protect " then | |
| 160 | said = string.lower(string.sub(msg, 9)) | |
| 161 | look = players:GetChildren() | |
| 162 | for i = 1, #look do | |
| 163 | if string.find(string.lower(look[i].Name), said) == 1 then | |
| 164 | table.insert(protect,look[i].Name) | |
| 165 | end | |
| 166 | end | |
| 167 | end | |
| 168 | if string.sub(msg, 1, 10) == "unprotect " then | |
| 169 | said = string.lower(string.sub(msg, 11)) | |
| 170 | look = players:GetChildren() | |
| 171 | for i = 1, #look do | |
| 172 | for i,v in ipairs(protect) do | |
| 173 | count = count + 1 | |
| 174 | if protect[count] == nil then return end | |
| 175 | if string.find(look[i]:lower(),protect[count]:lower()) then | |
| 176 | table.remove(protect,protect[count]) | |
| 177 | else print("Not found")
| |
| 178 | end | |
| 179 | end | |
| 180 | end | |
| 181 | count = 0 | |
| 182 | end | |
| 183 | if msg == "clean" then | |
| 184 | mo:remove() | |
| 185 | script:remove() | |
| 186 | end | |
| 187 | end | |
| 188 | me.Chatted:connect(talk) | |
| 189 | --------------------------------- | |
| 190 | local x = -6.5 | |
| 191 | local y = 0 | |
| 192 | local z = 0 | |
| 193 | while true do | |
| 194 | if me.Character.Humanoid.Health == 0 then return end | |
| 195 | local clone = players:FindFirstChild(mimic) | |
| 196 | if clone == nil then return end | |
| 197 | head.CFrame = clone.Character.Head.CFrame + Vector3.new(x,y,z) | |
| 198 | torso.CFrame = clone.Character.Torso.CFrame + Vector3.new(x,y,z) | |
| 199 | ra.CFrame = clone.Character["Right Arm"].CFrame + Vector3.new(x,y,z) | |
| 200 | la.CFrame = clone.Character["Left Arm"].CFrame + Vector3.new(x,y,z) | |
| 201 | rl.CFrame = clone.Character["Right Leg"].CFrame + Vector3.new(x,y,z) | |
| 202 | ll.CFrame = clone.Character["Left Leg"].CFrame + Vector3.new(x,y,z) | |
| 203 | coroutine.wrap(function() | |
| 204 | if protectbool == true then | |
| 205 | ||
| 206 | for a,t in ipairs(protect) do | |
| 207 | ||
| 208 | if t == nil then return end | |
| 209 | ||
| 210 | if players:FindFirstChild(t) == nil then return end | |
| 211 | ||
| 212 | if players[t].Character == nil then return end | |
| 213 | ||
| 214 | for i,v in pairs(players:GetPlayers()) do | |
| 215 | ||
| 216 | if (players[t].Character.Torso.Position - v.Character.Torso.Position).magnitude < 10 then | |
| 217 | if v.Name == t then return end | |
| 218 | SPL("Bright red", v.Character.Humanoid, head, 1.5)
| |
| 219 | sb("Bright red", v.Character, 1.5)
| |
| 220 | v.Character:BreakJoints() | |
| 221 | end | |
| 222 | end | |
| 223 | end | |
| 224 | end | |
| 225 | end)() | |
| 226 | wait() | |
| 227 | end | |
| 228 | print("kill guy")
| |
| 229 | warn("protect guy")
| |
| 230 | print("follow guy")
| |
| 231 | warn("unprotect guy")
| |
| 232 | print("clean")
| |
| 233 | ||
| 234 | if _Main == nil then | |
| 235 | _Main:Create() | |
| 236 | end |