SHOW:
|
|
- or go back to the newest paste.
1 | - | -- Enum’s Admin V3 |
1 | + | -- Enum’s Admin V4 |
2 | -- By: TheOfficialSeb | |
3 | ||
4 | game:FindFirstChildOfClass("Players").Name = "Players" | |
5 | wait(0.3) | |
6 | ||
7 | Chat = {} | |
8 | Messages = 0 | |
9 | - | plrH = plr:WaitForChild('HumanoidRootPart') |
9 | + | |
10 | wait(0.5) | |
11 | plr = game.Workspace:WaitForChild(owner.Name) | |
12 | plrH = plr:WaitForChild('HumanoidRootPart2') | |
13 | ||
14 | - | local Num = math.random(1,8) |
14 | + | Messages = Messages+1 |
15 | - | if plrH:FindFirstChild("Item" .. Num) then |
15 | + | |
16 | - | plrH:FindFirstChild("Item" .. Num):Remove() |
16 | + | for i,v in pairs(plrH:GetChildren()) do |
17 | if v.ClassName == "Folder" then | |
18 | local a = 1 | |
19 | else | |
20 | v:Remove() | |
21 | end | |
22 | end | |
23 | ||
24 | --New Folder | |
25 | local NewFolder = Instance.new("Folder") | |
26 | NewFolder.Parent = plrH | |
27 | local Num = Messages | |
28 | NewFolder.Name = "Item" .. Num | |
29 | --New Model | |
30 | local NewModel = Instance.new("Model") | |
31 | NewModel.Parent = NewFolder | |
32 | NewModel.Name = msg | |
33 | --New PosValue | |
34 | local NewPosValue = Instance.new("Vector3Value") | |
35 | NewPosValue.Parent = NewModel | |
36 | NewPosValue.Name = "PosValue" | |
37 | - | local Places = |
37 | + | |
38 | - | {Vector3.new(5, 0, 5),Vector3.new(-5, 0, -5),Vector3.new(-5, 0, 0),Vector3.new(-5, 0, 5),Vector3.new(0, 0, 5),Vector3.new(5, 0, 5),Vector3.new(5, 0, 0),Vector3.new(5, 0, -5),Vector3.new(0, 0, -5)} |
38 | + | |
39 | NewHumanoid.Parent = NewModel | |
40 | - | local LocPos = Places[Num] |
40 | + | |
41 | local NewPart = Instance.new("Part") | |
42 | NewPart.Parent = NewModel | |
43 | NewPart.Material = "ForceField" | |
44 | - | Body.Position = plrH.Position + LocPos |
44 | + | |
45 | NewPart.BrickColor = BrickColor.new("Bright blue") | |
46 | NewPart.Anchored = false | |
47 | NewPart.CanCollide = false | |
48 | NewPart.Size = Vector3.new(2, 2, 2) | |
49 | NewPart.Name = "Head" | |
50 | --BodyPos | |
51 | - | game.Debris:AddItem(NewFolder,5) |
51 | + | |
52 | local LocPos = Vector3.new(1, 1, 1) | |
53 | - | i = 0 |
53 | + | |
54 | - | |
54 | + | |
55 | - | while i <= 50 do |
55 | + | |
56 | - | Body.Position = plrH.Position + LocPos |
56 | + | |
57 | - | i = i + 1 |
57 | + | |
58 | - | wait(0.1) |
58 | + | |
59 | Body2.Parent = Part | |
60 | Body2.AngularVelocity = Vector3.new(1, 1, 1) | |
61 | ||
62 | Amount = Messages | |
63 | DA = 360 / Amount | |
64 | - | plrH = plr:WaitForChild('HumanoidRootPart') |
64 | + | local pFolder = Instance.new("Folder",game.Lighting) |
65 | for i=1,Amount do | |
66 | local p = Instance.new('Part', pFolder) | |
67 | p.Size = Vector3.new(1, 1, 1) | |
68 | p.Anchored = true | |
69 | - | local Num = math.random(1,8) |
69 | + | p.CFrame = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(DA * i), 0) * CFrame.new(Amount + 0.5,0,0) |
70 | - | if plrH:FindFirstChild("Item" .. Num) then |
70 | + | |
71 | - | plrH:FindFirstChild("Item" .. Num):Remove() |
71 | + | |
72 | local m = plrH:GetChildren() | |
73 | local m2 = pFolder:GetChildren() | |
74 | for ic=1,#m do | |
75 | m[ic]:FindFirstChildOfClass("Model").PosValue.Value = m2[ic].Position | |
76 | m[ic]:FindFirstChildOfClass("Model").Head:FindFirstChildOfClass("BodyPosition").Position = plrH.Position + m2[ic].Position | |
77 | m2[ic]:Remove() | |
78 | end | |
79 | end | |
80 | ||
81 | function NewChatMessage(msg) | |
82 | wait(0.5) | |
83 | plr = game.Workspace:WaitForChild(owner.Name) | |
84 | plrH = plr:WaitForChild('HumanoidRootPart2') | |
85 | ||
86 | Messages = Messages+1 | |
87 | ||
88 | for i,v in pairs(plrH:GetChildren()) do | |
89 | if v.ClassName == "Folder" then | |
90 | local a = 1 | |
91 | else | |
92 | - | local Places = |
92 | + | v:Remove() |
93 | - | {Vector3.new(5, 0, 5),Vector3.new(-5, 0, -5),Vector3.new(-5, 0, 0),Vector3.new(-5, 0, 5),Vector3.new(0, 0, 5),Vector3.new(5, 0, 5),Vector3.new(5, 0, 0),Vector3.new(5, 0, -5),Vector3.new(0, 0, -5)} |
93 | + | |
94 | end | |
95 | - | local LocPos = Places[Num] |
95 | + | |
96 | --New Folder | |
97 | local NewFolder = Instance.new("Folder") | |
98 | NewFolder.Parent = plrH | |
99 | - | Body.Position = plrH.Position + LocPos |
99 | + | local Num = Messages |
100 | NewFolder.Name = "Item" .. Num | |
101 | --New Model | |
102 | local NewModel = Instance.new("Model") | |
103 | NewModel.Parent = NewFolder | |
104 | NewModel.Name = msg | |
105 | --New PosValue | |
106 | - | game.Debris:AddItem(NewFolder,5) |
106 | + | local NewPosValue = Instance.new("Vector3Value") |
107 | NewPosValue.Parent = NewModel | |
108 | - | i = 0 |
108 | + | NewPosValue.Name = "PosValue" |
109 | - | |
109 | + | |
110 | - | while i <= 50 do |
110 | + | |
111 | - | Body.Position = plrH.Position + LocPos |
111 | + | |
112 | - | i = i + 1 |
112 | + | |
113 | - | wait(0.1) |
113 | + | |
114 | NewPart.Parent = NewModel | |
115 | NewPart.Material = "ForceField" | |
116 | NewPart.Position = plrH.Position | |
117 | NewPart.BrickColor = BrickColor.new("Dark green") | |
118 | NewPart.Anchored = false | |
119 | - | plrH = plr:WaitForChild('HumanoidRootPart') |
119 | + | |
120 | NewPart.Size = Vector3.new(2, 2, 2) | |
121 | NewPart.Name = "Head" | |
122 | --BodyPos | |
123 | ||
124 | - | local Num = math.random(1,8) |
124 | + | local LocPos = Vector3.new(1, 1, 1) |
125 | - | if plrH:FindFirstChild("Item" .. Num) then |
125 | + | |
126 | - | plrH:FindFirstChild("Item" .. Num):Remove() |
126 | + | |
127 | Body.Parent = Part | |
128 | Body. MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
129 | ||
130 | local Body2 = Instance.new("BodyAngularVelocity") | |
131 | Body2.Parent = Part | |
132 | Body2.AngularVelocity = Vector3.new(1, 1, 1) | |
133 | ||
134 | Amount = Messages | |
135 | DA = 360 / Amount | |
136 | local pFolder = Instance.new("Folder",game.Lighting) | |
137 | for i=1,Amount do | |
138 | local p = Instance.new('Part', pFolder) | |
139 | p.Size = Vector3.new(1, 1, 1) | |
140 | p.Anchored = true | |
141 | p.CFrame = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(DA * i), 0) * CFrame.new(Amount + 0.5,0,0) | |
142 | end | |
143 | ||
144 | local m = plrH:GetChildren() | |
145 | local m2 = pFolder:GetChildren() | |
146 | for ic=1,#m do | |
147 | - | local Places = |
147 | + | m[ic]:FindFirstChildOfClass("Model").PosValue.Value = m2[ic].Position |
148 | - | {Vector3.new(5, 0, 5),Vector3.new(-5, 0, -5),Vector3.new(-5, 0, 0),Vector3.new(-5, 0, 5),Vector3.new(0, 0, 5),Vector3.new(5, 0, 5),Vector3.new(5, 0, 0),Vector3.new(5, 0, -5),Vector3.new(0, 0, -5)} |
148 | + | m[ic]:FindFirstChildOfClass("Model").Head:FindFirstChildOfClass("BodyPosition").Position = plrH.Position + m2[ic].Position |
149 | m2[ic]:Remove() | |
150 | - | local LocPos = Places[Num] |
150 | + | |
151 | end | |
152 | ||
153 | function NewErrorMessage(msg) | |
154 | - | Body.Position = plrH.Position + LocPos |
154 | + | wait(0.5) |
155 | plr = game.Workspace:WaitForChild(owner.Name) | |
156 | plrH = plr:WaitForChild('HumanoidRootPart2') | |
157 | ||
158 | Messages = Messages+1 | |
159 | ||
160 | for i,v in pairs(plrH:GetChildren()) do | |
161 | - | game.Debris:AddItem(NewFolder,5) |
161 | + | if v.ClassName == "Folder" then |
162 | local a = 1 | |
163 | - | i = 0 |
163 | + | |
164 | - | |
164 | + | v:Remove() |
165 | - | while i <= 50 do |
165 | + | |
166 | - | Body.Position = plrH.Position + LocPos |
166 | + | |
167 | - | i = i + 1 |
167 | + | |
168 | - | wait(0.1) |
168 | + | |
169 | local NewFolder = Instance.new("Folder") | |
170 | NewFolder.Parent = plrH | |
171 | local Num = Messages | |
172 | NewFolder.Name = "Item" .. Num | |
173 | --New Model | |
174 | local NewModel = Instance.new("Model") | |
175 | NewModel.Parent = NewFolder | |
176 | NewModel.Name = msg | |
177 | --New PosValue | |
178 | local NewPosValue = Instance.new("Vector3Value") | |
179 | NewPosValue.Parent = NewModel | |
180 | NewPosValue.Name = "PosValue" | |
181 | --New Humanoid | |
182 | local NewHumanoid = Instance.new("Humanoid") | |
183 | NewHumanoid.Parent = NewModel | |
184 | --New Part | |
185 | local NewPart = Instance.new("Part") | |
186 | NewPart.Parent = NewModel | |
187 | NewPart.Material = "ForceField" | |
188 | NewPart.Position = plrH.Position | |
189 | NewPart.BrickColor = BrickColor.new("Bright red") | |
190 | NewPart.Anchored = false | |
191 | NewPart.CanCollide = false | |
192 | NewPart.Size = Vector3.new(2, 2, 2) | |
193 | NewPart.Name = "Head" | |
194 | --BodyPos | |
195 | ||
196 | local LocPos = Vector3.new(1, 1, 1) | |
197 | local Part = NewPart | |
198 | local Body = Instance.new("BodyPosition") | |
199 | Body.Parent = Part | |
200 | Body. MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
201 | ||
202 | local Body2 = Instance.new("BodyAngularVelocity") | |
203 | Body2.Parent = Part | |
204 | Body2.AngularVelocity = Vector3.new(1, 1, 1) | |
205 | ||
206 | Amount = Messages | |
207 | DA = 360 / Amount | |
208 | local pFolder = Instance.new("Folder",game.Lighting) | |
209 | for i=1,Amount do | |
210 | local p = Instance.new('Part', pFolder) | |
211 | p.Size = Vector3.new(1, 1, 1) | |
212 | p.Anchored = true | |
213 | p.CFrame = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(DA * i), 0) * CFrame.new(Amount + 0.5,0,0) | |
214 | end | |
215 | ||
216 | local m = plrH:GetChildren() | |
217 | local m2 = pFolder:GetChildren() | |
218 | for ic=1,#m do | |
219 | m[ic]:FindFirstChildOfClass("Model").PosValue.Value = m2[ic].Position | |
220 | m[ic]:FindFirstChildOfClass("Model").Head:FindFirstChildOfClass("BodyPosition").Position = plrH.Position + m2[ic].Position | |
221 | m2[ic]:Remove() | |
222 | end | |
223 | end | |
224 | ||
225 | auto_move = coroutine.create(function() | |
226 | db050 = true | |
227 | owner.CharacterRemoved:connect(function(char) | |
228 | db050 = false | |
229 | end) | |
230 | local plrH = plr:WaitForChild('HumanoidRootPart2') | |
231 | while db050 do | |
232 | for i,v in pairs(plrH:GetChildren()) do | |
233 | v.Head:FindFirstChildOfClass("BodyPosition").Position = plrH.Position + m[ic]:FindFirstChildOfClass("Model").PosValue.Value | |
234 | end | |
235 | wait(0.1) | |
236 | end | |
237 | end) | |
238 | ||
239 | owner.Chatted:connect(function(message) | |
240 | local messageLow = string.lower(message) | |
241 | if messageLow:sub(1, 5) == "!age " then | |
242 | local TargetPlayer = FindPlayer(message:sub(6)) | |
243 | if game.Players:FindFirstChild(TargetPlayer) then | |
244 | NewMessage("Age: " .. game.Players:FindFirstChild(TargetPlayer).AccountAge) | |
245 | else | |
246 | NewErrorMessage("Error: Player Not Found!") | |
247 | end | |
248 | elseif messageLow:sub(1, 4) == "!re " then | |
249 | local TargetPlayer = FindPlayer(message:sub(5)) | |
250 | if game.Players:FindFirstChild(TargetPlayer) then | |
251 | if game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChild("HumanoidRootPart") then | |
252 | local Pos = game.Players:FindFirstChild(TargetPlayer).Character.HumanoidRootPart.CFrame | |
253 | game.Players:FindFirstChild(TargetPlayer):LoadCharacter() | |
254 | game.Players:FindFirstChild(TargetPlayer).Character.HumanoidRootPart.CFrame = Pos | |
255 | NewMessage("Respawned " .. TargetPlayer) | |
256 | else | |
257 | game.Players:FindFirstChild(TargetPlayer):LoadCharacter() | |
258 | NewMessage("Respawned " .. TargetPlayer) | |
259 | end | |
260 | else | |
261 | NewErrorMessage("Error: Player Not Found!") | |
262 | end | |
263 | elseif messageLow:sub(1, 4) == "!to " then | |
264 | local TargetPlayer = FindPlayer(messageLow:sub(5)) | |
265 | if game.Players:FindFirstChild(TargetPlayer) then | |
266 | local TPH = game.Players:FindFirstChild(TargetPlayer) | |
267 | owner.Character:WaitForChild('HumanoidRootPart').CFrame = TPH.Character:WaitForChild('HumanoidRootPart').CFrame | |
268 | NewMessage("Teleported to " .. TargetPlayer) | |
269 | else | |
270 | NewErrorMessage("Error: Player Not Found!") | |
271 | end | |
272 | elseif messageLow:sub(1, 6) == "!here " then | |
273 | local TargetPlayer = FindPlayer(messageLow:sub(7)) | |
274 | if game.Players:FindFirstChild(TargetPlayer) then | |
275 | local TPH = game.Players:FindFirstChild(TargetPlayer) | |
276 | TPH.Character:WaitForChild('HumanoidRootPart').CFrame = owner.Character:WaitForChild('HumanoidRootPart').CFrame | |
277 | NewMessage("Teleported " .. TargetPlayer .. " here") | |
278 | else | |
279 | NewErrorMessage("Error: Player Not Found!") | |
280 | end | |
281 | elseif messageLow:sub(1, 6) == "!grav " then | |
282 | if #messageLow >= 7 then | |
283 | game.Workspace.Gravity = tonumber(messageLow:sub(7)) | |
284 | NewMessage("Gravity Set to " .. tonumber(messageLow:sub(7))) | |
285 | else | |
286 | NewErrorMessage("Error: Gravity can't be nil!") | |
287 | end | |
288 | elseif messageLow:sub(1, 8) == "!fixgrav" then | |
289 | game.Workspace.Gravity = 196.19999694824 | |
290 | NewMessage("Gravity Fixed") | |
291 | elseif messageLow:sub(1, 8) == "!remove " then | |
292 | local TargetPlayer = FindPlayer(message:sub(9)) | |
293 | if game.Players:FindFirstChild(TargetPlayer) then | |
294 | game.Players:FindFirstChild(TargetPlayer).Character.Parent = nil | |
295 | else | |
296 | NewErrorMessage("Error: Player Not Found!") | |
297 | end | |
298 | NewMessage("Removed " .. TargetPlayer .. "'s Character") | |
299 | elseif messageLow:sub(1, 6) == "!kill " then | |
300 | local TargetPlayer = FindPlayer(message:sub(7)) | |
301 | if game.Players:FindFirstChild(TargetPlayer) then | |
302 | local TPH = game.Players:FindFirstChild(TargetPlayer) | |
303 | if TPH.Character then | |
304 | if game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid") then | |
305 | game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid").Health = 0 | |
306 | NewMessage("Killed " .. TargetPlayer) | |
307 | else | |
308 | NewErrorMessage("Error: Humanoid Not Found!") | |
309 | end | |
310 | else | |
311 | NewErrorMessage("Error: Character Not Found!") | |
312 | end | |
313 | else | |
314 | NewErrorMessage("Error: Player Not Found!") | |
315 | end | |
316 | elseif messageLow:sub(1, 5) == "!sit " then | |
317 | local TargetPlayer = FindPlayer(message:sub(7)) | |
318 | if game.Players:FindFirstChild(TargetPlayer) then | |
319 | local TPH = game.Players:FindFirstChild(TargetPlayer) | |
320 | if TPH.Character then | |
321 | if game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid") then | |
322 | game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid").Jump = true | |
323 | NewMessage("Seated " .. TargetPlayer) | |
324 | else | |
325 | NewErrorMessage("Error: Humanoid Not Found!") | |
326 | end | |
327 | else | |
328 | NewErrorMessage("Error: Character Not Found!") | |
329 | end | |
330 | else | |
331 | NewErrorMessage("Error: Player Not Found!") | |
332 | end | |
333 | elseif messageLow:sub(1, 6) == "!jump " then | |
334 | local TargetPlayer = FindPlayer(message:sub(7)) | |
335 | if game.Players:FindFirstChild(TargetPlayer) then | |
336 | local TPH = game.Players:FindFirstChild(TargetPlayer) | |
337 | if TPH.Character then | |
338 | if game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid") then | |
339 | game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid").Jump = true | |
340 | NewMessage("Made " .. TargetPlayer .. " Jump") | |
341 | else | |
342 | NewErrorMessage("Error: Humanoid Not Found!") | |
343 | end | |
344 | else | |
345 | NewErrorMessage("Error: Character Not Found!") | |
346 | end | |
347 | else | |
348 | NewErrorMessage("Error: Player Not Found!") | |
349 | end | |
350 | elseif messageLow:sub(1, 4) == "!ff " then | |
351 | local TargetPlayer = FindPlayer(message:sub(5)) | |
352 | if game.Players:FindFirstChild(TargetPlayer) then | |
353 | if game.Players:FindFirstChild(TargetPlayer).Character then | |
354 | Instance.new("ForceField", game.Players:FindFirstChild(TargetPlayer).Character) | |
355 | NewMessage("Gave " .. TargetPlayer .. " ForceField") | |
356 | else | |
357 | NewErrorMessage("Error: Character Not Found!") | |
358 | end | |
359 | else | |
360 | NewErrorMessage("Error: Player Not Found!") | |
361 | end | |
362 | elseif messageLow:sub(1, 6) == "!unff " then | |
363 | local TargetPlayer = FindPlayer(message:sub(7)) | |
364 | if game.Players:FindFirstChild(TargetPlayer) then | |
365 | if game.Players:FindFirstChild(TargetPlayer).Character then | |
366 | for i,obj in pairs(game.Players:FindFirstChild(TargetPlayer).Character:GetChildren()) do | |
367 | if obj.ClassName == "ForceField" then | |
368 | obj:Remove() | |
369 | end | |
370 | end | |
371 | NewMessage("Removed " .. TargetPlayer .. "'s ForceFields") | |
372 | else | |
373 | NewErrorMessage("Error: Character Not Found!") | |
374 | end | |
375 | else | |
376 | NewErrorMessage("Error: Player Not Found!") | |
377 | end | |
378 | elseif messageLow:sub(1, 4) == "!ex " then | |
379 | local TargetPlayer = FindPlayer(message:sub(5)) | |
380 | if game.Players:FindFirstChild(TargetPlayer) then | |
381 | local TPH = game.Players:FindFirstChild(TargetPlayer) | |
382 | - | elseif messageLow:sub(1, 5) == "!rag " then |
382 | + | |
383 | if TPH.Character:FindFirstChild("HumanoidRootPart") then | |
384 | local TPH = game.Players:FindFirstChild(TargetPlayer) | |
385 | - | local TP = game.Players:FindFirstChild(TargetPlayer) |
385 | + | |
386 | - | if TP.Character then |
386 | + | |
387 | - | TP.Character:BreakJoints() |
387 | + | |
388 | - | ragdollkill(TP.Character) |
388 | + | |
389 | - | NewMessage("Made " .. TargetPlayer .. " Ragdoll") |
389 | + | |
390 | NewErrorMessage("Error: HumanoidRootPart Not Found!") | |
391 | end | |
392 | else | |
393 | NewErrorMessage("Error: Character Not Found!") | |
394 | end | |
395 | else | |
396 | - | elseif messageLow:sub(1, 5) == "!fly " then |
396 | + | |
397 | end | |
398 | elseif messageLow:sub(1, 6) == "!stun " then | |
399 | local TargetPlayer = FindPlayer(message:sub(7)) | |
400 | if game.Players:FindFirstChild(TargetPlayer) then | |
401 | - | local TP = game.Players:FindFirstChild(TargetPlayer) |
401 | + | |
402 | - | Fly(TP) |
402 | + | |
403 | - | NewMessage("Asked " .. TargetPlayer .. " if she or he want's to fly | E=Up and Q=Stay") |
403 | + | |
404 | NewMessage("Studed " .. TargetPlayer) | |
405 | else | |
406 | NewErrorMessage("Error: Humanoid Not Found!") | |
407 | end | |
408 | else | |
409 | NewErrorMessage("Error: Character Not Found!") | |
410 | end | |
411 | else | |
412 | NewErrorMessage("Error: Player Not Found!") | |
413 | end | |
414 | elseif messageLow:sub(1, 8) == "!unstun " then | |
415 | local TargetPlayer = FindPlayer(message:sub(9)) | |
416 | if game.Players:FindFirstChild(TargetPlayer) then | |
417 | if game.Players:FindFirstChild(TargetPlayer).Character then | |
418 | if game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid") then | |
419 | game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChildOfClass("Humanoid").PlatformStand = false | |
420 | NewMessage("Unstuded " .. TargetPlayer) | |
421 | else | |
422 | NewErrorMessage("Error: Humanoid Not Found!") | |
423 | end | |
424 | else | |
425 | NewErrorMessage("Error: Character Not Found!") | |
426 | end | |
427 | else | |
428 | NewErrorMessage("Error: Player Not Found!") | |
429 | end | |
430 | elseif messageLow:sub(1, 7) == "!fling " then | |
431 | local TargetPlayer = FindPlayer(message:sub(8)) | |
432 | if game.Players:FindFirstChild(TargetPlayer) then | |
433 | if game.Players:FindFirstChild(TargetPlayer).Character then | |
434 | if game.Players:FindFirstChild(TargetPlayer).Character:FindFirstChild("HumanoidRootPart") then | |
435 | local TPH = game.Players:FindFirstChild(TargetPlayer).Character.HumanoidRootPart | |
436 | local Body = Instance.new("BodyPosition") | |
437 | Body.Parent = TPH | |
438 | Body.Position = Vector3.new(999 * 999,999 * 999,999 * 999) | |
439 | Body.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
440 | NewMessage("Flinged " .. TargetPlayer) | |
441 | else | |
442 | NewErrorMessage("Error: HumanoidRootPart Not Found!") | |
443 | end | |
444 | else | |
445 | NewErrorMessage("Error: Character Not Found!") | |
446 | end | |
447 | else | |
448 | NewErrorMessage("Error: Player Not Found!") | |
449 | end | |
450 | elseif messageLow:sub(1, 3) == "!m " then | |
451 | Message(message:sub(4)) | |
452 | NewMessage("Made Message") | |
453 | elseif messageLow:sub(1, 5) == "!list" then | |
454 | for i, player in pairs(game.Players:GetChildren()) do | |
455 | NewMessage(player.Name) | |
456 | end | |
457 | NewMessage("Listed Players") | |
458 | elseif messageLow:sub(1, 8) == "!chatlog" then | |
459 | for i, m in pairs(Chat) do | |
460 | NewMessage(m) | |
461 | end | |
462 | NewMessage("Listed chatlog") | |
463 | end | |
464 | end) | |
465 | ||
466 | function FindPlayer(FindUser) | |
467 | local findUser = string.lower(FindUser) | |
468 | local inputsize = string.len(findUser) | |
469 | for i, v in pairs(game.Players:GetChildren()) do | |
470 | local NameLow = string.lower(v.Name) | |
471 | - | function ragdollkill(character) |
471 | + | |
472 | - | local victimshumanoid = character:findFirstChildOfClass("Humanoid") |
472 | + | |
473 | - | if not character:findFirstChild("UpperTorso") then |
473 | + | |
474 | - | character.Archivable = true |
474 | + | |
475 | - | for i,v in pairs(character:GetChildren()) do |
475 | + | |
476 | - | if v.ClassName == "Sound" then |
476 | + | |
477 | - | v:remove() |
477 | + | |
478 | game.Players.ChildAdded:Connect(function(newPlayer) | |
479 | - | for q,w in pairs(v:GetChildren()) do |
479 | + | |
480 | - | if w.ClassName == "Sound" then |
480 | + | |
481 | - | w:remove() |
481 | + | |
482 | table.insert(Chat,newPlayer.Name .. ": " .. msg) | |
483 | NewChatMessage(newPlayer.Name .. ": " .. msg) | |
484 | end) | |
485 | - | local ragdoll = character:Clone() |
485 | + | |
486 | - | ragdoll:findFirstChildOfClass("Humanoid").Health = "inf" |
486 | + | |
487 | - | if ragdoll:findFirstChild("Health") then |
487 | + | |
488 | - | if ragdoll:findFirstChild("Health").ClassName == "Script" then |
488 | + | |
489 | - | ragdoll:findFirstChild("Health").Disabled = true |
489 | + | |
490 | table.insert(Chat,Player.Name .. ": " .. msg) | |
491 | NewChatMessage(Player.Name .. ": " .. msg) | |
492 | - | for i,v in pairs(character:GetChildren()) do |
492 | + | |
493 | - | if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then |
493 | + | |
494 | - | v:destroy() |
494 | + | |
495 | game.Players.ChildRemoved:Connect(function(removedPlayer) | |
496 | NewMessage("Disconnected: " .. removedPlayer.Name) | |
497 | - | for i,v in pairs(character:GetChildren()) do |
497 | + | |
498 | - | if v.ClassName == "Accessory" then |
498 | + | |
499 | - | local attachment1 = v.Handle:findFirstChildOfClass("Attachment") |
499 | + | |
500 | - | if attachment1 then |
500 | + | |
501 | - | for q,w in pairs(character:GetChildren()) do |
501 | + | |
502 | - | if w.ClassName == "Part" then |
502 | + | |
503 | - | local attachment2 = w:findFirstChild(attachment1.Name) |
503 | + | |
504 | - | if attachment2 then |
504 | + | |
505 | - | local hinge = Instance.new("HingeConstraint", v.Handle) |
505 | + | |
506 | - | hinge.Attachment0 = attachment1 |
506 | + | |
507 | - | hinge.Attachment1 = attachment2 |
507 | + | |
508 | - | hinge.LimitsEnabled = true |
508 | + | |
509 | - | hinge.LowerAngle = 0 |
509 | + | |
510 | - | hinge.UpperAngle = 0 |
510 | + | |
511 | - | end |
511 | + | |
512 | - | end |
512 | + | |
513 | Text.BackgroundTransparency = 0.55000001192093 | |
514 | Text.BorderSizePixel = 0 | |
515 | Text.Size = UDim2.new(1, 0, 1, 0) | |
516 | Text.Font = Enum.Font.SciFi | |
517 | - | ragdoll.Parent = workspace |
517 | + | |
518 | - | if ragdoll:findFirstChild("Right Arm") then |
518 | + | |
519 | - | local glue = Instance.new("Glue", ragdoll.Torso) |
519 | + | |
520 | - | glue.Part0 = ragdoll.Torso |
520 | + | |
521 | - | glue.Part1 = ragdoll:findFirstChild("Right Arm") |
521 | + | |
522 | - | glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
522 | + | |
523 | - | glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
523 | + | owner.CharacterAdded:connect(function(char) |
524 | - | local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm")) |
524 | + | local plrH = char:WaitForChild('HumanoidRootPart') |
525 | - | limbcollider.Size = Vector3.new(1.4,1,1) |
525 | + | local plrH2 = plrH:Clone() |
526 | - | limbcollider.Shape = "Cylinder" |
526 | + | plrH2.Parent = char |
527 | - | limbcollider.Transparency = 1 |
527 | + | plrH2.Name = "HumanoidRootPart2" |
528 | - | limbcollider.Name = "LimbCollider" |
528 | + | local Weld = Instance.new("Weld",char) |
529 | - | local limbcolliderweld = Instance.new("Weld", limbcollider) |
529 | + | Weld.Part0 = plrH |
530 | - | limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm") |
530 | + | Weld.Part1 = plrH2 |
531 | - | limbcolliderweld.Part1 = limbcollider |
531 | + | plrH2.ChildAdded:Connect(function(New) |
532 | - | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) |
532 | + | game.Debris:AddItem(New,5) |
533 | wait(5) | |
534 | - | if ragdoll:findFirstChild("Left Arm") then |
534 | + | Messages = Messages-1 |
535 | - | local glue = Instance.new("Glue", ragdoll.Torso) |
535 | + | |
536 | - | glue.Part0 = ragdoll.Torso |
536 | + | coroutine.resume(auto_move) |
537 | - | glue.Part1 = ragdoll:findFirstChild("Left Arm") |
537 | + | |
538 | - | glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
538 | + | owner:LoadCharacter() |
539 | - | glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
539 | + | wait(1) |
540 | - | local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm")) |
540 | + | NewMessage("Enum’s Admin V4 Loaded") |