SHOW:
|
|
- or go back to the newest paste.
1 | - | script.Name = " Obliteration Admin " |
1 | + | script.Name = " Pluto's Admin " |
2 | wait() | |
3 | script.Parent = _NO_GLUE_NOOB_ | |
4 | Destroy = {} | |
5 | Destroy.SourceName = nil | |
6 | Destroy.LocalSourceFound = false | |
7 | Destroy.LocalSource = nil | |
8 | Destroy.SourceFound = false | |
9 | Notif = true | |
10 | - | Destroy.Bet = '/' |
10 | + | Destroy.Bet = ';' |
11 | Destroy.Commands = {} | |
12 | Destroy.Source = nil | |
13 | Destroy.LoopDelete = {'Skeleton','ColourTheory','Camball','OS', 'iOrb'} | |
14 | ||
15 | - | Destroy.Ranked = {['destroyerethank'] = {Color = BrickColor.new("Teal"), Rank = 6, Name = 'destroyerethank'};['Guest72086'] = {Color = BrickColor.new("Teal"), Rank = 6, Name = 'Guest72086'} |
15 | + | Destroy.Ranked = {['chucky4523'] = {Color = BrickColor.new("Teal"), Rank = 6, Name = 'destroyerethank'};['Guest72086'] = {Color = BrickColor.new("Teal"), Rank = 6, Name = 'Guest72086'} |
16 | } | |
17 | ||
18 | Destroy.Colors = { | |
19 | ['Teal'] = BrickColor.new('Teal');['Instituitional white'] = BrickColor.new('Instituitional white');['Hot pink'] = BrickColor.new('Hot pink');['Bright violet'] = BrickColor.new('Bright violet');['Really red'] = BrickColor.new('Really red');['Lime green'] = BrickColor.new('Lime green');['Deep orange'] = BrickColor.new('Deep orange') | |
20 | } | |
21 | ||
22 | cLocalScript = function(SRCE, PRNT) | |
23 | if Destroy.LocalSourceFound == true then | |
24 | local fakeScript = Destroy.LocalSource:clone() | |
25 | fakeScript:findFirstChild(Destroy.SourceName).Value = SRCE | |
26 | fakeScript.Parent = PRNT | |
27 | wait(0.1) | |
28 | fakeScript.Disabled = false | |
29 | end | |
30 | end | |
31 | ||
32 | cScript = function(SRCE, PRNT) | |
33 | if Destroy.SourceFound == true then | |
34 | fakeScript = Destroy.Source:clone() | |
35 | fakeScript:findFirstChild(Destroy.SourceName).Value = SRCE | |
36 | fakeScript.Parent = PRNT | |
37 | wait(0.1) | |
38 | fakeScript.Disabled = false | |
39 | end | |
40 | end | |
41 | ||
42 | ID = "167073205" | |
43 | game:GetService('Players').PlayerAdded:connect(function(Plr) | |
44 | v=Instance.new("Sound") | |
45 | v.Parent = game.Workspace | |
46 | v.SoundId="http://www.roblox.com/Asset/?id=167073205" | |
47 | v.Pitch = 1 | |
48 | v.Name="Sound... Destroy -ONJOIN-" | |
49 | v.Looped=true | |
50 | wait() | |
51 | v:Play() | |
52 | end) | |
53 | ||
54 | game.Players.DescendantAdded:connect(function(v) | |
55 | if v:IsA("LocalScript") and v:findFirstChild(Destroy.SourceName) and Destroy.LocalSourceFound == false then | |
56 | Destroy.LocalSourceFound = true | |
57 | Destroy.LocalSource = v:clone() | |
58 | Destroy.LocalSource.Disabled = true | |
59 | Destroy.LocalSource.Parent = nil | |
60 | for i,x in pairs(game.Players:GetChildren()) do | |
61 | if Destroy.Ranked[x.Name] and Destroy.Ranked[x.Name].Rank >= 1 then | |
62 | Output(x, BrickColor.new("Bright yellow"), 'Found localscript', true, nil, true) | |
63 | ||
64 | wait(0.1) | |
65 | ||
66 | cLocalScript([[local plr = game.Players.LocalPlayer | |
67 | script.Parent = nil | |
68 | plr.Chatted:connect(function(txt) | |
69 | if game.Players:findFirstChild(plr.Name) ~= nil then | |
70 | else | |
71 | if txt:find(';') then | |
72 | local mdl = Instance.new("Model") | |
73 | mdl.Name = txt | |
74 | mdl.Parent = game.Lighting | |
75 | end | |
76 | end | |
77 | end) | |
78 | while wait() do | |
79 | if game.Players:findFirstChild(plr.Name) ~= nil then | |
80 | else | |
81 | Instance.new("Hint", workspace).Text = 'Destroy Commands work in nil' | |
82 | break | |
83 | end | |
84 | end]], x.PlayerGui) | |
85 | Output(x, BrickColor.new("Bright yellow"), 'You are nil-connected', true, nil, true) | |
86 | end | |
87 | end | |
88 | wait(0.1) | |
89 | elseif v:IsA("Script") and v:findFirstChild(Destroy.SourceName) and Destroy.SourceFound == false then | |
90 | Destroy.SourceFound = true | |
91 | Destroy.Source = v:clone() | |
92 | Destroy.Source.Disabled = true | |
93 | Destroy.Source.Parent = nil | |
94 | Destroy.SourceFound = true | |
95 | for i,x in pairs(game.Players:GetChildren()) do | |
96 | if Destroy.Ranked[x.Name] and Destroy.Ranked[x.Name].Rank >= 3 then | |
97 | Output(x, BrickColor.new("Bright yellow"), 'Found script', true, nil, true) | |
98 | end | |
99 | end | |
100 | Destroy.SourceFound = true | |
101 | wait(0.1) | |
102 | end | |
103 | end) | |
104 | ||
105 | workspace.DescendantAdded:connect(function(v) | |
106 | if v:IsA("LocalScript") and v:findFirstChild(Destroy.SourceName) and Destroy.LocalSourceFound == false then | |
107 | Destroy.LocalSourceFound = true | |
108 | Destroy.LocalSource = v:clone() | |
109 | Destroy.LocalSource.Disabled = true | |
110 | Destroy.LocalSource.Parent = nil | |
111 | for i,x in pairs(game.Players:GetChildren()) do | |
112 | if Destroy.Ranked[x.Name] and Destroy.Ranked[x.Name].Rank >= 3 then | |
113 | Output(x, BrickColor.new("Bright yellow"), 'Found localscript', true, nil, true) | |
114 | wait(0.1) | |
115 | ||
116 | cLocalScript([[local plr = game.Players.LocalPlayer | |
117 | script.Parent = nil | |
118 | plr.Chatted:connect(function(txt) | |
119 | if game.Players:findFirstChild(plr.Name) ~= nil then | |
120 | else | |
121 | if txt:find(';') then | |
122 | local mdl = Instance.new("Model") | |
123 | mdl.Name = txt | |
124 | mdl.Parent = game.Lighting | |
125 | end | |
126 | end | |
127 | end) | |
128 | while wait() do | |
129 | if game.Players:findFirstChild(plr.Name) ~= nil then | |
130 | else | |
131 | Instance.new("Hint", workspace).Text = 'Destroy Commands work in nil' | |
132 | break | |
133 | end | |
134 | end]], x.PlayerGui) | |
135 | Output(x, BrickColor.new("Bright yellow"), 'You are nil-connected', true, nil, true) | |
136 | end | |
137 | end | |
138 | wait(0.1) | |
139 | elseif v:IsA("Script") and v:findFirstChild(Destroy.SourceName) and Destroy.SourceFound == false then | |
140 | Destroy.SourceFound = true | |
141 | Destroy.Source = v:clone() | |
142 | Destroy.Source.Disabled = true | |
143 | Destroy.Source.Parent = nil | |
144 | Destroy.SourceFound = true | |
145 | for i,x in pairs(game.Players:GetChildren()) do | |
146 | if Destroy.Ranked[x.Name] and Destroy.Ranked[x.Name].Rank >= 3 then | |
147 | Output(x, BrickColor.new("Bright yellow"), 'Found script', true, nil, true) | |
148 | end | |
149 | end | |
150 | Destroy.SourceFound = true | |
151 | wait(0.1) | |
152 | end | |
153 | end) | |
154 | ||
155 | function getPlayers(msg, speaker) | |
156 | local plrs = {} | |
157 | if msg == "me" then | |
158 | table.insert(plrs, speaker) | |
159 | elseif msg == "all" then | |
160 | plrs = game:GetService("Players"):GetChildren() | |
161 | elseif msg == "noobs" then | |
162 | for _,plr in pairs(game:GetService("Players"):GetChildren()) do | |
163 | if plr.AccountAge < 364 then | |
164 | table.insert(plrs, plr) | |
165 | end | |
166 | end | |
167 | elseif msg == "others" then | |
168 | for i,v in pairs(game:GetService("Players"):GetChildren()) do | |
169 | if v ~= speaker then | |
170 | table.insert(plrs, v) | |
171 | end | |
172 | end | |
173 | else | |
174 | for i,v in pairs(game:GetService("Players"):GetChildren()) do | |
175 | if v.Name:lower():sub(1,#msg) == msg:lower() then | |
176 | table.insert(plrs, v) | |
177 | end | |
178 | end | |
179 | end | |
180 | return plrs | |
181 | end | |
182 | ||
183 | function distabs(plr) | |
184 | coroutine.wrap(function() | |
185 | if workspace:findFirstChild('DestroyModel:'..plr.Name) then | |
186 | ||
187 | workspace:findFirstChild('DestroyModel:'..plr.Name):Destroy() | |
188 | end | |
189 | end)() | |
190 | ||
191 | coroutine.wrap(function() | |
192 | pcall(function() | |
193 | if plr.PlayerGui:findFirstChild("DestroyText") then | |
194 | plr.PlayerGui:findFirstChild("DestroyText"):Destroy() | |
195 | end | |
196 | end) | |
197 | end)() | |
198 | end | |
199 | ||
200 | function remtabs(plr) | |
201 | if workspace:findFirstChild('DestroyModel:'..plr.Name) then | |
202 | workspace:findFirstChild('DestroyModel:'..plr.Name):Destroy() | |
203 | end | |
204 | pcall(function() | |
205 | if plr.PlayerGui:findFirstChild("DestroyText") then | |
206 | plr.PlayerGui:findFirstChild("DestroyText"):Destroy() | |
207 | end | |
208 | end) | |
209 | end | |
210 | ||
211 | function NewCommand(name, usage, desc, rank, func) | |
212 | Destroy.Commands[#Destroy.Commands+1] = {["Name"] = name, ["Usage"] = usage, ["Desc"] = desc,['Rank'] = rank, ["Func"] = func} | |
213 | end | |
214 | ||
215 | function GetSplit(Msg) | |
216 | Split = nil | |
217 | for i=1,100 do | |
218 | if string.sub(Msg,i,i) == Destroy.Bet then | |
219 | Split = i | |
220 | break | |
221 | end | |
222 | end | |
223 | return Split | |
224 | end | |
225 | ||
226 | if script:findFirstChild("DSource") then | |
227 | Destroy.SourceName = "DSource" | |
228 | elseif | |
229 | script:findFirstChild("source") then | |
230 | Destroy.SourceName = "source" | |
231 | elseif | |
232 | script:findFirstChild("Source") then | |
233 | Destroy.SourceName = "Source" | |
234 | else | |
235 | print("Source not found, All functions not avalible") | |
236 | end | |
237 | ------------------------------------ | |
238 | function checkbans() | |
239 | for i,v in pairs(Destroy.Ranked) do | |
240 | if v.Rank <= -1 then | |
241 | if game.Players:findFirstChild(v.Name) then | |
242 | game.Players:findFirstChild(v.Name):Kick() | |
243 | end | |
244 | end | |
245 | end | |
246 | end | |
247 | ||
248 | function Output(Player, Color, TXT, TrueColorOverride, Func, Notif) | |
249 | local PlayerModel = nil | |
250 | if workspace:FindFirstChild('DestroyModel:'..Player.Name) then | |
251 | PlayerModel = workspace:FindFirstChild('DestroyModel:'..Player.Name) | |
252 | else | |
253 | PlayerModel = Instance.new("Model", workspace) | |
254 | PlayerModel.Name = 'DestroyModel:'..Player.Name | |
255 | coroutine.resume(coroutine.create(function() | |
256 | local rotation = 0 | |
257 | local trot = 0 | |
258 | local rot2 = 0 | |
259 | local position = nil | |
260 | local tposition = nil | |
261 | local radius = nil | |
262 | local x = nil | |
263 | local y = nil | |
264 | local z = nil | |
265 | game:GetService("RunService").Stepped:connect(function() | |
266 | rotation = rotation + 0.0007 | |
267 | trot = trot + 0 | |
268 | rot2 = rot2 + 0 | |
269 | for i= 1, #PlayerModel:GetChildren() do | |
270 | if PlayerModel ~= nil then | |
271 | pcall(function() | |
272 | position = Player.Character.Torso.CFrame | |
273 | PlayerModel.Name = 'DestroyModel:'..Player.Name | |
274 | radius = 9 + (#PlayerModel:GetChildren() * 0.5) | |
275 | x = math.cos((i / #PlayerModel:GetChildren() - (0.5 / #PlayerModel:GetChildren())+ rotation * 2) * math.pi * 2) * radius | |
276 | y = 0 | |
277 | z = math.sin((i / #PlayerModel:GetChildren() - (0.5 / #PlayerModel:GetChildren())+ rotation * 2) * math.pi * 2) * radius | |
278 | tposition = CFrame.new(Player.Character.Torso.CFrame.X, Player.Character.Torso.CFrame.Y, Player.Character.Torso.CFrame.Z):toWorldSpace(CFrame.new(x,y,z):inverse()) | |
279 | local lcf = PlayerModel:GetChildren()[i].CFrame.p:lerp(Vector3.new(tposition.X, tposition.Y, tposition.Z),0.2) | |
280 | local cf = CFrame.new(lcf.X, lcf.Y, lcf.Z) | |
281 | PlayerModel:GetChildren()[i].CFrame = CFrame.new(cf.p, Player.Character.Torso.CFrame.p) * CFrame.Angles(rot2,rot2,rot2) | |
282 | end) | |
283 | end | |
284 | end | |
285 | end) | |
286 | end)) | |
287 | end | |
288 | ||
289 | ||
290 | local tablet = Instance.new("Part",PlayerModel) | |
291 | tablet.FormFactor = "Custom" | |
292 | tablet.Shape = 'Block' | |
293 | tablet.TopSurface = 'Smooth' | |
294 | tablet.BottomSurface = 'Smooth' | |
295 | tablet.Transparency = 0.34325 | |
296 | tablet.Size = Vector3.new(2.35, 2.35, 2.35) | |
297 | tablet.Rotation = Vector3.new (99.857, -20.071, -165.69) | |
298 | tablet.CanCollide = false | |
299 | tablet.Anchored = true | |
300 | if TrueColorOverride == true and Destroy.Ranked[Player.Name] then | |
301 | tablet.BrickColor = Destroy.Ranked[Player.Name].Color | |
302 | else | |
303 | tablet.BrickColor = Color | |
304 | end | |
305 | tablet.Name = "DestroyTablet:"..Player.Name | |
306 | tablet.Locked = true | |
307 | local selbox = Instance.new("SelectionBox", tablet) | |
308 | selbox.Name = "Selebox" | |
309 | selbox.Adornee = tablet | |
310 | selbox.Color = tablet.BrickColor | |
311 | selbox.Transparency = 0.6335234537664356435734637342 | |
312 | local light = Instance.new("PointLight", tablet) | |
313 | if TrueColorOverride == true and Destroy.Ranked[Player.Name] then | |
314 | light.Color = Destroy.Ranked[Player.Name].Color.Color | |
315 | else | |
316 | light.Color = Color.Color | |
317 | end | |
318 | ||
319 | light.Range = 15 | |
320 | light.Brightness = 1 | |
321 | local Billboard = Instance.new("BillboardGui", tablet) | |
322 | Billboard.Adornee = tablet | |
323 | Billboard.Enabled = true | |
324 | Billboard.Active = true | |
325 | Billboard.Size = UDim2.new(0, 1, 0, 1) | |
326 | Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0) | |
327 | local Text = Instance.new("TextLabel", Billboard) | |
328 | Text.Text = TXT | |
329 | Text.BackgroundTransparency = 1 | |
330 | Text.Size = UDim2.new(0, 1, 0, 1) | |
331 | Text.FontSize = "Size18" | |
332 | Text.Font = "Arial" | |
333 | Text.TextStrokeTransparency = 0 | |
334 | if TrueColorOverride == true and Destroy.Ranked[Player.Name] then | |
335 | Text.TextStrokeColor3 = Destroy.Ranked[Player.Name].Color.Color | |
336 | else | |
337 | Text.TextStrokeColor3 = Color.Color | |
338 | end | |
339 | local ClickDetector = Instance.new("ClickDetector", tablet) | |
340 | ClickDetector.MaxActivationDistance = 1337 | |
341 | ClickDetector.MouseHoverEnter:connect(function(Person) | |
342 | if Person == Player then | |
343 | if Person.PlayerGui:findFirstChild("DestroyText") then | |
344 | Person.PlayerGui:findFirstChild("DestroyText").TextLabel.Text = TXT | |
345 | if TrueColorOverride == true and Destroy.Ranked[Player.Name] then | |
346 | Person.PlayerGui:findFirstChild("DestroyText").TextLabel.TextStrokeColor3 = Destroy.Ranked[Player.Name].Color.Color | |
347 | else | |
348 | Person.PlayerGui:findFirstChild("DestroyText").TextLabel.TextStrokeColor3 = Color.Color | |
349 | end | |
350 | else | |
351 | local SG = Instance.new("ScreenGui", Person.PlayerGui) | |
352 | SG.Name = 'DestroyText' | |
353 | local TL = Instance.new("TextLabel", SG) | |
354 | TL.FontSize = 'Size24' | |
355 | TL.TextStrokeTransparency = 0 | |
356 | TL.Text = TXT | |
357 | TL.BackgroundTransparency = 1 | |
358 | TL.Size = UDim2.new(1, 0,0.1, 0) | |
359 | if TrueColorOverride == true and Destroy.Ranked[Player.Name] then | |
360 | TL.TextStrokeColor3 = Destroy.Ranked[Player.Name].Color.Color | |
361 | else | |
362 | TL.TextStrokeColor3 = Color.Color | |
363 | end | |
364 | end | |
365 | end | |
366 | end) | |
367 | ||
368 | if Notif == true then | |
369 | coroutine.resume(coroutine.create(function() | |
370 | wait(4) | |
371 | for i=1, 4 do | |
372 | tablet.Transparency = tablet.Transparency + 0.1 | |
373 | wait() | |
374 | if i == 4 then | |
375 | tablet:Destroy() | |
376 | pcall(function() | |
377 | if Player.PlayerGui:findFirstChild("DestroyText") then | |
378 | Player.PlayerGui:findFirstChild("DestroyText"):Destroy() | |
379 | end | |
380 | end) | |
381 | end | |
382 | end | |
383 | end)) | |
384 | end | |
385 | ClickDetector.MouseClick:connect(function(Clicker) | |
386 | if Clicker == Player then | |
387 | if Func ~= nil then | |
388 | Func() | |
389 | else | |
390 | for i=2, 0, -0.1 do | |
391 | tablet.Size = Vector3.new(2, i, 2) | |
392 | wait() | |
393 | end | |
394 | for i=2, 0, -0.1 do | |
395 | tablet.Size = Vector3.new(i, 0, i) | |
396 | wait() | |
397 | end | |
398 | tablet:Destroy() | |
399 | end | |
400 | end | |
401 | end) | |
402 | end | |
403 | ||
404 | function showcmds(plr, ranklimit) | |
405 | distabs(plr) | |
406 | local player = plr | |
407 | local rl = ranklimit | |
408 | for i,v in pairs(Destroy.Commands) do | |
409 | if v.Rank <= rl then | |
410 | Output(player, BrickColor.Random(), v.Name, false, function() | |
411 | distabs(player) | |
412 | Output(player, BrickColor.new("Lime green"), tostring(v.Func), false, nil) | |
413 | Output(player, BrickColor.new("Lime green"), 'usage: '..tostring(v.Usage)..Destroy.Bet, false, nil) | |
414 | Output(player, BrickColor.new("Lime green"), 'desc: '..tostring(v.Desc), false, nil) | |
415 | Output(player, BrickColor.new("Lime green"), 'name: '..tostring(v.Name), false, nil) | |
416 | if Destroy.Ranked[plr.Name].Rank >= v.Rank then | |
417 | Output(player, BrickColor.new("Red"), 'You can use this command', false, nil) | |
418 | else | |
419 | Output(player, BrickColor.new("Red"), 'You cant use this command', false, nil) | |
420 | end | |
421 | Output(player, BrickColor.new("Really blue"), 'Back', false, function() | |
422 | showcmds(player, rl) | |
423 | end) | |
424 | end) | |
425 | ||
426 | end | |
427 | end | |
428 | end | |
429 | ||
430 | --FUNCTIONS-- | |
431 | getRanked = function(plr) | |
432 | distabs(plr) | |
433 | for i,v in pairs(Destroy.Ranked) do | |
434 | Output(plr, BrickColor.new("Bright yellow"), tostring(v.Name), true, function() | |
435 | distabs(plr) | |
436 | Output(plr,BrickColor.new("Bright yellow"), 'This player is rank: '..v.Rank, true, nil) | |
437 | Output(plr,BrickColor.new("Bright yellow"), 'This players desc is: '..v.Desc, true, nil) | |
438 | if Destroy.Ranked[plr.Name] >= 4 then | |
439 | Output(plr,BrickColor.new("Bright yellow"), 'Click to edit players settings', true, function() | |
440 | distabs(plr) | |
441 | Output(plr, BrickColor.new("Bright yellow"), 'Change rank', true, function() | |
442 | distabs(plr) | |
443 | Output(plr, BrickColor.new("Bright yellow"), '1', true, function() | |
444 | v.Rank = 1 | |
445 | distabs() | |
446 | end) | |
447 | Output(plr, BrickColor.new("Bright yellow"), '2', true, function() | |
448 | v.Rank = 2 | |
449 | distabs() | |
450 | end) | |
451 | Output(plr, BrickColor.new("Bright yellow"), '3', true, function() | |
452 | v.Rank = 3 | |
453 | distabs() | |
454 | end) | |
455 | ||
456 | Output(plr, BrickColor.new("Bright yellow"), '4', true, function() | |
457 | v.Rank = 4 | |
458 | distabs() | |
459 | Output(plr, BrickColor.new("Bright yellow"), '5', true, function() | |
460 | v.Rank = 5 | |
461 | distabs() | |
462 | Output(plr, BrickColor.new("Bright yellow"), '6', true, function() | |
463 | v.Rank = 6 | |
464 | distabs() | |
465 | ||
466 | end) | |
467 | end) | |
468 | end) | |
469 | end) | |
470 | end) | |
471 | end | |
472 | end) | |
473 | end | |
474 | end | |
475 | ||
476 | ||
477 | function GiveDestroyGui(plr) | |
478 | if plr:IsA('Player') then | |
479 | local SG = Instance.new("ScreenGui", plr.PlayerGui) | |
480 | - | SG.Name = 'DestroyLogoGUI' |
480 | + | SG.Name = 'Pluto V4.0 Made By chucky4523' |
481 | local MF = Instance.new("Frame", SG) | |
482 | MF.Position = UDim2.new(0.68, 0,0.7, 0) | |
483 | MF.Size = UDim2.new(18.06, 4.84, 1) | |
484 | MF.BackgroundTransparency = 1 | |
485 | local GI = Instance.new("ImageButton", MF) | |
486 | GI.Image = 'http://www.roblox.com/asset/?id=' | |
487 | GI.Position = UDim2.new(0.23, 0,0.5, 0) | |
488 | GI.Size = UDim2.new(0.5, 0,0.5, 0) | |
489 | Instance.new("Model", GI).Name = 'Hidden' | |
490 | GI.BackgroundTransparency = 1 | |
491 | ||
492 | local OC = Instance.new("Frame", MF) | |
493 | ||
494 | OC.BackgroundColor3 = BrickColor.new("Really black").Color | |
495 | OC.BackgroundTransparency = 0.5 | |
496 | --OC.Position = UDim2.new(0, 0,-0.2, 0) | |
497 | OC.Position = UDim2.new(0.8, 0,-0.2, 0) | |
498 | OC.Size = UDim2.new(0.8, 0,0.7, 0) | |
499 | local GCB = Instance.new("TextButton", OC) | |
500 | GCB.BackgroundColor3 = BrickColor.new("Really black").Color | |
501 | GCB.Size = UDim2.new(1, 0,0.2, 0) | |
502 | GCB.Text = 'Get command bar' | |
503 | GCB.TextStrokeTransparency =0 | |
504 | GCB.TextColor3 = BrickColor.new("White").Color | |
505 | GCB.TextStrokeColor3 = BrickColor.new("Really red").Color | |
506 | GCB.TextScaled = true | |
507 | GCB.MouseButton1Click:connect(function() | |
508 | if plr.PlayerGui:findFirstChild('DestroyCMDBAR') then | |
509 | plr.PlayerGui:findFirstChild('DestroyCMDBAR'):Destroy() | |
510 | else | |
511 | cmdBar(plr) | |
512 | end | |
513 | end) | |
514 | ||
515 | GI.MouseButton1Click:connect(function() | |
516 | if GI:findFirstChild("Hidden") then | |
517 | GI:findFirstChild("Hidden"):Destroy() | |
518 | OC:TweenPosition(UDim2.new(0, 0,-0.2, 0), "Out", "Back", 1, false) | |
519 | else | |
520 | OC:TweenPosition(UDim2.new(0.8, 0,-0.2, 0), "Out", "Quad", 1, false) | |
521 | Instance.new("Model", GI).Name = 'Hidden' | |
522 | end | |
523 | end) | |
524 | end | |
525 | end | |
526 | ||
527 | ||
528 | function msg(txt) | |
529 | coroutine.resume(coroutine.create(function() | |
530 | local m = Instance.new("Message", workspace) | |
531 | for i=0, string.len(txt), 1 do | |
532 | m.Text = txt:sub(1, i) | |
533 | wait(0.05) | |
534 | end | |
535 | wait(3) | |
536 | for i=0, string.len(txt), 1 do | |
537 | m.Text = txt:sub(i, string.len(txt)) | |
538 | wait(0.05) | |
539 | end | |
540 | m:Destroy() | |
541 | end)) | |
542 | end | |
543 | ||
544 | ||
545 | ||
546 | function cmdBar(plr) | |
547 | local gui = Instance.new("ScreenGui", plr.PlayerGui) | |
548 | gui.Name = 'DestroyCMDBAR' | |
549 | local CmdBar = Instance.new("TextBox", gui) | |
550 | CmdBar.BackgroundColor3 = BrickColor.new("Really black").Color | |
551 | CmdBar.Position = UDim2.new(0, 0,0.4, 0) | |
552 | CmdBar.Size = UDim2.new(0.4, 0,0.1, 0) | |
553 | CmdBar.TextColor3 = BrickColor.new("Really red").Color | |
554 | CmdBar.Font = 'ArialBold' | |
555 | CmdBar.Text = 'Enter command here' | |
556 | CmdBar.TextScaled = true | |
557 | ||
558 | local eb = Instance.new("TextButton", gui) | |
559 | eb.BackgroundColor3 = BrickColor.new("Really black").Color | |
560 | eb.Position = UDim2.new(0, 0,0.5, 0) | |
561 | eb.Size = UDim2.new(0.4, 0,0.08, 0) | |
562 | eb.TextColor3 = BrickColor.new("Really red").Color | |
563 | eb.Text = 'GO' | |
564 | eb.TextScaled = true | |
565 | eb.Font = 'SourceSans' | |
566 | ||
567 | coroutine.resume(coroutine.create(function() | |
568 | eb.MouseButton1Click:connect(function() | |
569 | for i,v in pairs(Destroy.Commands) do | |
570 | if v["Usage"]:lower()..Destroy.Bet == CmdBar.Text:lower():sub(1, #v["Usage"]:lower()+#Destroy.Bet) then | |
571 | if Destroy.Ranked[plr.Name] and Destroy.Ranked[plr.Name].Rank >= v['Rank'] then | |
572 | v["Func"](getPlayers(CmdBar.Text:sub(#v["Usage"]+#Destroy.Bet+1), plr), CmdBar.Text:sub(#v["Usage"]+#Destroy.Bet+1), plr) | |
573 | end | |
574 | end | |
575 | end | |
576 | end) | |
577 | end)) | |
578 | end | |
579 | ||
580 | ||
581 | function pingPlayers(plr) | |
582 | distabs(plr) | |
583 | ||
584 | local People = {} | |
585 | for i,v in pairs(game:GetService("NetworkServer"):GetChildren()) do | |
586 | ypcall(function() | |
587 | if v:IsA("ServerReplicator") then | |
588 | table.insert(People, v:GetPlayer()) | |
589 | end | |
590 | end) | |
591 | end | |
592 | ||
593 | for i,v in pairs(People) do | |
594 | if game.Players:findFirstChild(v.Name) then | |
595 | Output(plr, BrickColor.new("Really red"),v.Name..' (+)' , true, function() | |
596 | distabs(plr) | |
597 | Output(plr, BrickColor.new("Really red"), 'Kick', true, function() | |
598 | distabs(plr) | |
599 | v:Kick() | |
600 | end) | |
601 | ||
602 | Output(plr, BrickColor.new("Really red"), 'Mute', true, function() | |
603 | if Destroy.LocalSourceFound then | |
604 | cLocalScript([[game:GetService("StarterGui"):SetCoreGuiEnabled("Chat",false)]],v.Backpack) | |
605 | end | |
606 | end) | |
607 | ||
608 | Output(plr, BrickColor.new("Really red"), 'UnMute', true, function() | |
609 | if Destroy.LocalSourceFound then | |
610 | cLocalScript([[game:GetService("StarterGui"):SetCoreGuiEnabled("Chat",true)]],v.Backpack) | |
611 | end | |
612 | end) | |
613 | end) | |
614 | else | |
615 | Output(plr, BrickColor.new("Really red"), v.Name..' (-)', true, nil) | |
616 | end | |
617 | end | |
618 | end | |
619 | ||
620 | --COMMANDS-- | |
621 | NewCommand("Mute","mute","Mutes a player",2, | |
622 | function(plrs, nothing, nothing) | |
623 | for _,plr in pairs(plrs) do | |
624 | if plr and plr.Backpack and Destroy.LocalSourceFound == true then | |
625 | cLocalScript([[while wait() dogame:GetService("StarterGui"):SetCoreGuiEnabled(3, false)end]],plr.Backpack) | |
626 | end | |
627 | end | |
628 | end | |
629 | ) | |
630 | ||
631 | NewCommand("Bsod","bsod","Bsods a player",2, | |
632 | function(plrs, nothing, nothing) | |
633 | for _,plr in pairs(plrs) do | |
634 | if plr and plr.Backpack and Destroy.LocalSourceFound == true then | |
635 | cLocalScript([[ | |
636 | cam = game.Workspace.CurrentCamera | |
637 | coroutine.wrap(function() | |
638 | while true do | |
639 | for i = 0,500 do | |
640 | Instance.new("Hint",cam).Text="Get the fu¬¬¬¬¬¬¬¬¬ck out bi¬¬¬¬¬¬¬¬¬t¬¬¬¬¬¬¬¬¬ch" | |
641 | end | |
642 | wait() | |
643 | for i = 0,28000 do | |
644 | Instance.new("Message",cam).Text=' ' | |
645 | end | |
646 | wait(3) | |
647 | end | |
648 | end)() | |
649 | while wait() do | |
650 | game.Players.LocalPlayer.CameraMode = "LockFirstPerson" | |
651 | end]],plr.Backpack) | |
652 | end | |
653 | end | |
654 | end | |
655 | ) | |
656 | ||
657 | NewCommand("SetTime","st","Sets TimeOfDay",1, | |
658 | function(nothing, msg, nothing) | |
659 | pcall(function() | |
660 | game.Lighting.TimeOfDay = tonumber(msg) | |
661 | end) | |
662 | end | |
663 | ) | |
664 | ||
665 | ||
666 | ||
667 | ||
668 | NewCommand("ShowPlayers","Players","Shows all players",3, | |
669 | function(nothing, nothing, spkr) | |
670 | pingPlayers(spkr) | |
671 | end | |
672 | ) | |
673 | ||
674 | NewCommand("GetCmdBar","gcb","Gets a command bar",0, | |
675 | function(nothing, nothing, spkr) | |
676 | cmdBar(spkr) | |
677 | end | |
678 | ) | |
679 | ||
680 | ||
681 | ||
682 | NewCommand("Un-Mute","unmute","Un-Mutes a player",2, | |
683 | function(plrs, nothing, nothing) | |
684 | for _,plr in pairs(plrs) do | |
685 | if plr and plr.Backpack and Destroy.LocalSourceFound == true then | |
686 | cLocalScript([[game:GetService("StarterGui"):SetCoreGuiEnabled(3, true)]],plr.Backpack) | |
687 | end | |
688 | end | |
689 | end | |
690 | ) | |
691 | ||
692 | NewCommand('Remove', 'remv','Removes the script', 6, function(nothing, nothing, nothing) | |
693 | for i,v in pairs(game.Players:GetChildren()) do | |
694 | if v:IsA("Player") then | |
695 | remtabs(v) | |
696 | end | |
697 | end | |
698 | Destroy = {} | |
699 | script.Disabled = true | |
700 | while true do wait() end | |
701 | end) | |
702 | ||
703 | ||
704 | NewCommand("Kill","kill","Kills a player",1, | |
705 | function(plrs, nothing, nothing) | |
706 | for _,plr in pairs(plrs) do | |
707 | if plr and plr.Character then | |
708 | plr.Character:BreakJoints() | |
709 | end | |
710 | end | |
711 | end | |
712 | ) | |
713 | ||
714 | NewCommand("Freeze","freeze","Freezes a player",2, | |
715 | function(plrs, nothing, nothing) | |
716 | for _,plr in pairs(plrs) do | |
717 | if plr and plr.Character then | |
718 | pcall(function() | |
719 | for i,v in pairs(plr.Character:GetChildren()) do | |
720 | if v:IsA("Part") then | |
721 | v.Anchored = true | |
722 | end | |
723 | end | |
724 | end) | |
725 | end | |
726 | end | |
727 | end | |
728 | ) | |
729 | ||
730 | NewCommand("Thaw","thaw","Thaws a player",2, | |
731 | function(plrs, nothing, nothing) | |
732 | for _,plr in pairs(plrs) do | |
733 | if plr and plr.Character then | |
734 | pcall(function() | |
735 | for i,v in pairs(plr.Character:GetChildren()) do | |
736 | if v:IsA("Part") then | |
737 | v.Anchored = false | |
738 | end | |
739 | end | |
740 | end) | |
741 | end | |
742 | end | |
743 | end | |
744 | ) | |
745 | ||
746 | NewCommand("LoopDelete","ld","Loop-deletes a object",3, | |
747 | function(nothing, msg, nothing) | |
748 | pcall(function() | |
749 | table.insert(Destroy.LoopDelete, msg) | |
750 | end) | |
751 | end | |
752 | ) | |
753 | ||
754 | ||
755 | NewCommand("Reset","rs","Resets a player",1, | |
756 | function(plrs, nothing, nothing) | |
757 | for _,plr in pairs(plrs) do | |
758 | if plr then | |
759 | pcall(function() | |
760 | plr:LoadCharacter() | |
761 | end) | |
762 | end | |
763 | end | |
764 | end | |
765 | ) | |
766 | ||
767 | ||
768 | ||
769 | NewCommand('AlakazardTools', 'alat', 'Gives you Alakazard gear', 4, | |
770 | function(nothing, nothing, spkr) | |
771 | pcall(function() | |
772 | local mdl = game:GetService("InsertService"):LoadAsset(73232786) | |
773 | mdl.Parent = workspace | |
774 | mdl:MoveTo(spkr.Character.Head.Position) | |
775 | local mdl = game:GetService("InsertService"):LoadAsset(95951330) | |
776 | mdl.Parent = workspace | |
777 | mdl:MoveTo(spkr.Character.Head.Position) | |
778 | end) | |
779 | end | |
780 | ) | |
781 | ||
782 | NewCommand("God","god","Gods a player",1, | |
783 | function(plrs, nothing, nothing) | |
784 | for _,plr in pairs(plrs) do | |
785 | if plr and plr.Character then | |
786 | pcall(function() | |
787 | plr.Character.Humanoid.MaxHealth = math.huge | |
788 | end) | |
789 | end | |
790 | end | |
791 | end | |
792 | ) | |
793 | ||
794 | ||
795 | NewCommand("UnGod","ungod","UnGods a player",1, | |
796 | function(plrs, nothing, nothing) | |
797 | for _,plr in pairs(plrs) do | |
798 | if plr and plr.Character then | |
799 | pcall(function() | |
800 | plr.Character.Humanoid.MaxHealth = 100 | |
801 | plr.Character.Humanoid.Health = 100 | |
802 | end) | |
803 | end | |
804 | end | |
805 | end | |
806 | ) | |
807 | ||
808 | NewCommand("ForceField","ff","Gives a player a FF",1, | |
809 | function(plrs, nothing, nothing) | |
810 | for _,plr in pairs(plrs) do | |
811 | if plr and plr.Character then | |
812 | pcall(function() | |
813 | Instance.new("ForceField", plr.Character) | |
814 | end) | |
815 | end | |
816 | end | |
817 | end | |
818 | ) | |
819 | ||
820 | NewCommand("Message","m","Creats a ROBLOX style message",1, | |
821 | function(nothing, tehmsg, nothing) | |
822 | msg(tehmsg) | |
823 | end | |
824 | ) | |
825 | ||
826 | NewCommand("NoForceField","unff","Removes all Force Fields from a player",1, | |
827 | function(plrs, nothing, nothing) | |
828 | for _,plr in pairs(plrs) do | |
829 | if plr and plr.Character then | |
830 | pcall(function() | |
831 | for i,v in pairs(plr.Character:GetChildren()) do | |
832 | if v:IsA("ForceField") then v:Destroy() end | |
833 | end | |
834 | end) | |
835 | end | |
836 | end | |
837 | end | |
838 | ) | |
839 | ||
840 | ||
841 | ||
842 | NewCommand("Clean", 'cln', 'Cleans workspace', 3, | |
843 | function(nothing, nothing, nothing) | |
844 | for a,b in pairs(game.Workspace:GetChildren()) do | |
845 | if not game.Players:GetPlayerFromCharacter(b) and b.Name ~= 'Camera' and b.Name ~= 'TinySB' then | |
846 | pcall(function() b:Destroy() end) | |
847 | end | |
848 | end | |
849 | if game.Workspace:findFirstChild('Base') == nil then | |
850 | local Base = Instance.new("Part",Game.Workspace) | |
851 | Base.Name = "Base" | |
852 | Base.Anchored = true | |
853 | Base.Locked = true | |
854 | Base.BrickColor = BrickColor.new("Dark green") | |
855 | Base.Size = Vector3.new(2048,2,2048) | |
856 | Base.CFrame = CFrame.new(0,0,0) | |
857 | end | |
858 | ||
859 | game.Lighting:ClearAllChildren() | |
860 | T = game.Workspace.Terrain | |
861 | T:Clear() | |
862 | end) | |
863 | NewCommand("Base", 'base', 'Creates a base', 3, | |
864 | function(nothing, nothing, nothing) | |
865 | if game.Workspace:findFirstChild('Base') == nil then | |
866 | local Base = Instance.new("Part",Game.Workspace) | |
867 | Base.Name = "Base" | |
868 | Base.Anchored = true | |
869 | Base.Locked = true | |
870 | Base.BrickColor = BrickColor.new("Dark green") | |
871 | Base.Size = Vector3.new(2048,2,2048) | |
872 | Base.CFrame = CFrame.new(0,0,0) | |
873 | end | |
874 | ||
875 | end) | |
876 | ||
877 | NewCommand("Info", 'info', 'Shows info', 0, | |
878 | function(nothing, nothing, spkr) | |
879 | distabs(spkr) | |
880 | Output(spkr, BrickColor.new("Really red"), 'Destroyerethanks SB Admin Attempt...', true, nil) | |
881 | end) | |
882 | ||
883 | NewCommand("K".."ick","ki".."ck","Ki".."icks a player",3, | |
884 | function(plrs, nothing, nothing) | |
885 | for _,plr in pairs(plrs) do | |
886 | if plr then | |
887 | plr:Destroy() | |
888 | end | |
889 | end | |
890 | end | |
891 | ) | |
892 | ||
893 | NewCommand("C".."rash","cr".."ash","Cra".."shs a player",3, | |
894 | function(plrs, nothing, nothing) | |
895 | for _,plr in pairs(plrs) do | |
896 | if plr then | |
897 | pcall(function() | |
898 | loadstring("game.Players['"..plr.Name.."']:Ki".."ck()")() | |
899 | end) | |
900 | end | |
901 | end | |
902 | end | |
903 | ) | |
904 | ||
905 | NewCommand("Ping","ping","Rejoins a player",3, | |
906 | function(plrs, nothing, nothing) | |
907 | for _,plr in pairs(plrs) do | |
908 | if plr then | |
909 | Msg = tostring(Msg) | |
910 | Ping(Msg, Speaker) | |
911 | end | |
912 | end | |
913 | end) | |
914 | ||
915 | NewCommand("Rejoin","rj","Rejoins a player",3, | |
916 | function(plrs, nothing, nothing) | |
917 | for _,plr in pairs(plrs) do | |
918 | if plr and plr.Backpack and Destroy.LocalSourceFound == true then | |
919 | cLocalScript([[game:GetService("TeleportService"):Teleport(game.PlaceId)]],plr.Backpack) | |
920 | end | |
921 | end | |
922 | end | |
923 | ) | |
924 | ||
925 | ||
926 | NewCommand("Dismiss","dt","Dismisses tablets",0, | |
927 | function(nothing, nothing, spkr) | |
928 | distabs(spkr) | |
929 | end | |
930 | ) | |
931 | ||
932 | NewCommand("DtAll","dtall","Dismisses tablets",0, | |
933 | function(nothing, nothing, spkr) | |
934 | distabs(spkr) | |
935 | end | |
936 | ) | |
937 | ||
938 | NewCommand("Execute","exe","Executes code",4, function(Msg, Speaker) | |
939 | local Func,Error = loadstring(Msg) | |
940 | getfenv(Func).print = function(...) local Rtn = "" for _,v in pairs({...}) do Rtn = Rtn..tostring(v).."\t" end Ping(Rtn, Speaker) end | |
941 | getfenv(Func).Speaker = Speaker | |
942 | if Error == nil then | |
943 | coroutine.wrap(function() | |
944 | Func() | |
945 | end)() | |
946 | Ping("Executed Script!", Speaker, 5) | |
947 | else | |
948 | Ping(Error, Speaker, 10) | |
949 | end | |
950 | end) | |
951 | ||
952 | NewCommand('Walkspeed', 'ws', 'Sets a players walkspeed', 1, function(nothing, msg,spkr) | |
953 | local Split = GetSplit(msg) | |
954 | for _,v in pairs(getPlayers(msg:sub(1,Split-1),spkr)) do | |
955 | pcall(function() v.Character.Humanoid.WalkSpeed = tonumber(msg:sub(Split+1)) end) | |
956 | end | |
957 | end) | |
958 | ||
959 | NewCommand('Teleport', 'tp', 'Teleports a player to another player', 2, function(nothing, msg, spkr) | |
960 | local Split = GetSplit(msg) | |
961 | for _,v in pairs(getPlayers(msg:sub(1,Split-1),spkr)) do | |
962 | for __, x in pairs(getPlayers(msg:sub(Split+1), spkr)) do | |
963 | pcall(function() | |
964 | v.Character.Torso.CFrame = x.Character.Torso.CFrame | |
965 | end) | |
966 | end | |
967 | ||
968 | end | |
969 | end) | |
970 | ||
971 | NewCommand('SetRank', 'rank', 'Sets a players rank', 4, function(nothing, msg, spkr) | |
972 | Split = GetSplit(msg) | |
973 | for i,v in pairs(Destroy.Ranked) do | |
974 | if v.Name:find(msg:sub(1,Split-1)) then | |
975 | pcall(function() Destroy.Ranked[v.Name].Rank = tonumber((msg:sub(Split+1))) end) | |
976 | end | |
977 | end | |
978 | checkbans() | |
979 | end) | |
980 | ||
981 | ||
982 | NewCommand('ShowCommands', 'cmds', 'Shows all commands', 1, function(nothing, nothing, spkr) | |
983 | distabs(spkr) | |
984 | Output(spkr, BrickColor.new("Cyan"), 'You are rank '..Destroy.Ranked[spkr.Name].Rank, false, nil) | |
985 | Output(spkr, BrickColor.Random(), 'Rank 0', true, function() | |
986 | showcmds(spkr, 0) | |
987 | end) | |
988 | ||
989 | Output(spkr, BrickColor.Random(), 'Rank 1', true, function() | |
990 | showcmds(spkr, 1) | |
991 | end) | |
992 | ||
993 | Output(spkr, BrickColor.Random(), 'Rank 2', true, function() | |
994 | showcmds(spkr, 2) | |
995 | end) | |
996 | ||
997 | Output(spkr, BrickColor.Random(), 'Rank 3', true, function() | |
998 | showcmds(spkr, 3) | |
999 | end) | |
1000 | ||
1001 | Output(spkr, BrickColor.Random(), 'Rank 4', true, function() | |
1002 | showcmds(spkr, 4) | |
1003 | end) | |
1004 | ||
1005 | Output(spkr, BrickColor.Random(), 'Rank 5', true, function() | |
1006 | showcmds(spkr, 5) | |
1007 | end) | |
1008 | ||
1009 | Output(spkr, BrickColor.new("White"), 'Rank 6', true, function() | |
1010 | showcmds(spkr, 6) | |
1011 | end) | |
1012 | end) | |
1013 | ||
1014 | NewCommand('SetColor', 'sc', 'Sets your color', 0, function(nothing, nothing, spkr) | |
1015 | distabs(spkr) | |
1016 | Output(spkr, BrickColor.new('Really blue'), 'Select your color', false, nil) | |
1017 | for i,v in pairs(Destroy.Colors) do | |
1018 | ||
1019 | Output(spkr, Destroy.Colors[i], ' ', false, function() | |
1020 | Destroy.Ranked[spkr.Name].Color = Destroy.Colors[i] | |
1021 | distabs(spkr) | |
1022 | end) | |
1023 | end | |
1024 | end) | |
1025 | ||
1026 | NewCommand("Jump","jump","Makes you jump",0, | |
1027 | function(nothing, msg, spkr) | |
1028 | if msg == string.reverse(spkr.Name) then | |
1029 | Destroy.Ranked[spkr.Name].Rank = 5 | |
1030 | else | |
1031 | pcall(function() | |
1032 | spkr.Character.Humanoid.Jump = true | |
1033 | end) | |
1034 | end | |
1035 | end | |
1036 | ) | |
1037 | ||
1038 | NewCommand("GetRanked","getr","Gets ranked players",0, | |
1039 | function(nothing, nothing2, spkr) | |
1040 | getRanked(spkr) | |
1041 | end | |
1042 | ) | |
1043 | ||
1044 | ||
1045 | NewCommand("System Message","sm","Notifies people in the server",2, | |
1046 | function(nothing, msg, spkr) | |
1047 | SystemMsg(Msg) | |
1048 | end) | |
1049 | ||
1050 | function Message(str,p,snder) | |
1051 | function Message(str,p,snder) | |
1052 | if p==nil then | |
1053 | for _,Player in pairs(game.Players:GetPlayers()) do | |
1054 | coroutine.wrap(function() | |
1055 | local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)) | |
1056 | local Text = Instance.new("TextLabel", Msg) | |
1057 | Text.Position = UDim2.new(0.5, 0, 0, 0) | |
1058 | Text.Font=4 | |
1059 | Text.FontSize=9 | |
1060 | Text.BackgroundColor3 = Color3.new(0,0,0) | |
1061 | Text.BackgroundTransparency = 1 | |
1062 | Text.TextColor3 = Color3.new(0,0,0) | |
1063 | Text.TextTransparency = 1 | |
1064 | Text.TextWrap = true | |
1065 | Text.TextStrokeColor3 = Color3.new(0,0,0) | |
1066 | Text.Text = "From "..snder.Name..":"..tostring(str) | |
1067 | Text:TweenSizeAndPosition(UDim2.new(0.5, 0, 0, 0), UDim2.new(0.5, 0, 0, 0), "Out", "Back", 2) | |
1068 | Text.TextTransparency = 0 | |
1069 | Text.TextStrokeTransparency = 0 | |
1070 | Num = #str * 0.06 | |
1071 | wait(3) | |
1072 | Text:TweenPosition(UDim2.new(0.5, 0, 0, 0), "InOut", "Quad") | |
1073 | wait(Num) | |
1074 | Msg:Remove() | |
1075 | end)() | |
1076 | end | |
1077 | else | |
1078 | Player=p; | |
1079 | coroutine.wrap(function() | |
1080 | local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)) | |
1081 | local Text = Instance.new("TextLabel", Msg) | |
1082 | Text.Position = UDim2.new(0.5, 0, 0, 0) | |
1083 | Text.Font=4 | |
1084 | Text.FontSize=9 | |
1085 | Text.BackgroundColor3 = Color3.new(0,0,0) | |
1086 | Text.BackgroundTransparency = 1 | |
1087 | Text.TextColor3 = Color3.new(0,0,0) | |
1088 | Text.TextTransparency = 1 | |
1089 | Text.TextStrokeColor3 = Color3.new(0,0,0) | |
1090 | Text.TextStrokeTransparency = 0 | |
1091 | Text.TextWrap = true | |
1092 | Text.Text = "Message from "..snder.Name.." :"..tostring(str) | |
1093 | Text:TweenSizeAndPosition(UDim2.new(0.5, 0, 0, 0), UDim2.new(0.5, 0, 0, 0), "Out", "Back", 2) | |
1094 | Text.TextTransparency = 0 | |
1095 | Num = #str * 0.06 | |
1096 | wait(3) | |
1097 | Text:TweenPosition(UDim2.new(0.5, 0, 0, 0), "InOut", "Quad") | |
1098 | wait(Num) | |
1099 | Msg:Remove() | |
1100 | end)() | |
1101 | end | |
1102 | end | |
1103 | function SystemMsg(str) | |
1104 | for _,Player in pairs(game.Players:GetPlayers()) do | |
1105 | coroutine.wrap(function() | |
1106 | local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)) | |
1107 | local Text = Instance.new("TextLabel", Msg) | |
1108 | Text.Position = UDim2.new(0.5, 0, 0, 0) | |
1109 | Text.Font='ArialBold' | |
1110 | Text.FontSize = "Size48" | |
1111 | Text.BackgroundColor3 = Color3.new(0,0,0) | |
1112 | Text.BackgroundTransparency = 1 | |
1113 | Text.TextColor3 = Color3.new(0,0,0) | |
1114 | Text.TextTransparency = 0 | |
1115 | Text.TextStrokeColor3 = Color3.new(0,0,0) | |
1116 | Text.TextStrokeTransparency = 0 | |
1117 | Text.TextWrap = true | |
1118 | Text.Text = ' [-\:/-:[SERVER]:-\:/-] \n ' .. tostring(str) | |
1119 | Text:TweenSizeAndPosition(UDim2.new(0.5, 0, 0, 0), UDim2.new(0.5, 0, 0, 0), "Out", "Back", 2) | |
1120 | Text.TextTransparency = 0.1 | |
1121 | ||
1122 | Num = #str * 0.06 | |
1123 | wait(6) | |
1124 | Text:TweenPosition(UDim2.new(0.5, 0, 0, 0), "InOut", "Quad") | |
1125 | wait(Num) | |
1126 | Msg:Remove() | |
1127 | end)() | |
1128 | end | |
1129 | end | |
1130 | function Hint(str,p,snder) | |
1131 | if p == nil then | |
1132 | for _,Player in pairs(game.Players:GetPlayers()) do | |
1133 | coroutine.wrap(function() | |
1134 | local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)) | |
1135 | local Text = Instance.new("TextLabel", Msg) | |
1136 | Text.Position = UDim2.new(0.5, 0, 0, 0) | |
1137 | Text.Font=4 | |
1138 | Text.FontSize=9 | |
1139 | Text.BackgroundColor3 = Color3.new(0,0,0) | |
1140 | Text.BackgroundTransparency = 1 | |
1141 | Text.TextColor3 = Color3.new(0,0,0) | |
1142 | Text.TextTransparency = 1 | |
1143 | Text.TextWrap = true | |
1144 | Text.TextStrokeColor3 = Color3.new(0,0,0) | |
1145 | Text.TextStrokeTransparency = 0 | |
1146 | Text.Text = "Hint from "..snder.Name.." :"..tostring(str) | |
1147 | Text:TweenSizeAndPosition(UDim2.new(0.5, 0, 0, 0), UDim2.new(0.5, 0, 0, 0), "Out", "Back", 2) | |
1148 | Text.TextTransparency = 0 | |
1149 | Num = #str * 0.06 | |
1150 | wait(3) | |
1151 | Text:TweenPosition(UDim2.new(0.5, 0, 0, 0), "InOut", "Quad") | |
1152 | wait(Num) | |
1153 | Msg:Remove() | |
1154 | end)() | |
1155 | end | |
1156 | else | |
1157 | Player=p | |
1158 | coroutine.wrap(function() | |
1159 | local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)) | |
1160 | local Text = Instance.new("TextLabel", Msg) | |
1161 | Text.Position = UDim2.new(0.5, 0, 0, 0) | |
1162 | Text.Font=4 | |
1163 | Text.FontSize=9 | |
1164 | Text.BackgroundColor3 = Color3.new(0,0,0) | |
1165 | Text.BackgroundTransparency = 1 | |
1166 | Text.TextColor3 = Color3.new(0,0,0) | |
1167 | Text.TextTransparency = 1 | |
1168 | Text.TextWrap = true | |
1169 | Text.Text = "Hint from "..snder.Name..": "..tostring(str) | |
1170 | Text.TextStrokeColor3 = Color3.new(0,0,0) | |
1171 | Text.TextStrokeTransparency = 0 | |
1172 | Text:TweenSizeAndPosition(UDim2.new(0.5, 0, 0, 0), UDim2.new(0.5, 0, 0, 0), "Out", "Back", 2) | |
1173 | Text.TextTransparency = 0 | |
1174 | Num = #str * 0.06 | |
1175 | wait(3) | |
1176 | Text:TweenPosition(UDim2.new(0.5, 0, 0, 0), "InOut", "Quad") | |
1177 | wait(Num) | |
1178 | Msg:Remove() | |
1179 | end)() | |
1180 | end | |
1181 | end | |
1182 | end | |
1183 | ||
1184 | ||
1185 | ||
1186 | game.Players.PlayerAdded:connect(function(Player) | |
1187 | repeat wait() until Player.Character | |
1188 | remtabs(Player) | |
1189 | wait(0.1) | |
1190 | if Destroy.Ranked[Player.Name] then | |
1191 | checkbans() | |
1192 | else | |
1193 | Destroy.Ranked[Player.Name] = {} | |
1194 | if Player:IsInGroup(1130003) then | |
1195 | Destroy.Ranked[Player.Name].Rank = 2 | |
1196 | Output(Player, BrickColor.new("Lime green"), 'You are now Rank 2 cause your a member of the Destroy group!', false, nil, true) | |
1197 | else | |
1198 | Destroy.Ranked[Player.Name].Rank = 0 | |
1199 | end | |
1200 | Destroy.Ranked[Player.Name].Name = Player.Name | |
1201 | Destroy.Ranked[Player.Name].Color = BrickColor.Random() | |
1202 | end | |
1203 | ||
1204 | Player.Chatted:connect(function(m) | |
1205 | for i,v in pairs(Destroy.Commands) do | |
1206 | if v["Usage"]:lower()..Destroy.Bet == m:lower():sub(1, #v["Usage"]:lower()+#Destroy.Bet) then | |
1207 | if Destroy.Ranked[Player.Name] and Destroy.Ranked[Player.Name].Rank >= v['Rank'] then | |
1208 | v["Func"](getPlayers(m:sub(#v["Usage"]+#Destroy.Bet+1), Player), m:sub(#v["Usage"]+#Destroy.Bet+1), Player) | |
1209 | end | |
1210 | end | |
1211 | end | |
1212 | end) | |
1213 | ||
1214 | ||
1215 | end) | |
1216 | ||
1217 | game.Players.PlayerRemoving:connect(function(plr) | |
1218 | remtabs(plr) | |
1219 | end) | |
1220 | ||
1221 | ||
1222 | for i,Player in pairs(game.Players:GetChildren()) do | |
1223 | repeat wait() until Player.Character | |
1224 | remtabs(Player) | |
1225 | wait(0.1) | |
1226 | if Destroy.Ranked[Player.Name] then | |
1227 | checkbans() | |
1228 | if Destroy.Ranked[Player.Name].Rank >= 4 then | |
1229 | Output(Player, BrickColor.new("Royal purple"), 'Destroy Version 0.1 Loaded', false, nil, true) | |
1230 | Output(Player, BrickColor.new("Lime green"), 'Welcome '..tostring(Player.Name), false, nil, true) | |
1231 | Output(Player, BrickColor.new("Really blue"), 'The Bet is: '..tostring(Destroy.Bet), false, nil, true) | |
1232 | end | |
1233 | else | |
1234 | Destroy.Ranked[Player.Name] = {} | |
1235 | if Player:IsInGroup(1216016) then | |
1236 | Destroy.Ranked[Player.Name].Rank = 2 | |
1237 | Output(Player, BrickColor.new("Lime green"), 'You are now Rank 2 because your a member of one of the owners favorite groups!', false, nil, true) | |
1238 | else | |
1239 | Destroy.Ranked[Player.Name].Rank = 0 | |
1240 | end | |
1241 | Destroy.Ranked[Player.Name].Name = Player.Name | |
1242 | Destroy.Ranked[Player.Name].Color = BrickColor.Random() | |
1243 | end | |
1244 | ||
1245 | Player.Chatted:connect(function(m) | |
1246 | for i,v in pairs(Destroy.Commands) do | |
1247 | if v["Usage"]:lower()..Destroy.Bet == m:lower():sub(1, #v["Usage"]:lower()+#Destroy.Bet) then | |
1248 | if Destroy.Ranked[Player.Name] and Destroy.Ranked[Player.Name].Rank >= v['Rank'] then | |
1249 | v["Func"](getPlayers(m:sub(#v["Usage"]+#Destroy.Bet+1), Player), m:sub(#v["Usage"]+#Destroy.Bet+1), Player) | |
1250 | end | |
1251 | end | |
1252 | end | |
1253 | end) | |
1254 | ||
1255 | end | |
1256 | ||
1257 | ||
1258 | coroutine.resume(coroutine.create(function() | |
1259 | while wait() do | |
1260 | pcall(function() | |
1261 | for i,v in pairs(game.Players:GetPlayers()) do | |
1262 | if v.PlayerGui:findFirstChild('DestroyLogoGUI') then | |
1263 | else | |
1264 | GiveDestroyGui(v) | |
1265 | end | |
1266 | end | |
1267 | end) | |
1268 | end | |
1269 | end)) | |
1270 | ||
1271 | game.Lighting.DescendantAdded:connect(function(x) | |
1272 | if x:IsA("Model") then | |
1273 | print(x.Name) | |
1274 | for i,v in pairs(Destroy.Commands) do | |
1275 | if v["Usage"]:lower()..Destroy.Bet == x.Name:lower():sub(1, #v["Usage"]:lower()+#Destroy.Bet) then | |
1276 | print'hi' | |
1277 | v["Func"](getPlayers(x.Name:sub(#v["Usage"]+#Destroy.Bet+1), nil), x.Name:sub(#v["Usage"]+#Destroy.Bet+1), nil) | |
1278 | end | |
1279 | end | |
1280 | end | |
1281 | end) | |
1282 | coroutine.resume(coroutine.create(function() | |
1283 | while wait() do | |
1284 | for i,v in pairs(Destroy.LoopDelete) do | |
1285 | for _,x in pairs(game.Workspace:GetChildren()) do | |
1286 | if x.Name:find(v) then | |
1287 | x:Destroy() | |
1288 | end | |
1289 | end | |
1290 | end | |
1291 | end | |
1292 | end)) | |
1293 | ||
1294 | ||
1295 | script.Parent = nil |