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