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