-
Notifications
You must be signed in to change notification settings - Fork 100
/
Kick GUI
559 lines (533 loc) · 19.1 KB
/
Kick GUI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
local Settings = {
["Name"] = "transIate",
["Local"] = true,
["Context"] = true
}
local GetPlayer = function()
if Settings.Context or Settings.Local then
return Game.Players.LocalPlayer
else
return Game.Players:FindFirstChild(Settings.Name) or nil
end
end
local CurrentPlayer = GetPlayer()
--[[ We need someway to do this without substrings, right? ]]--
Explode = function(String)
local List = {}
for Item in string.gmatch(String, "%S+") do
table.insert(List, Item)
end
return List
end
--[[ In all of my days of scripting, I feel like this is the worst recurse function I've made... ]]--
Recurse = function(Location, Type, Objects)
if not Objects or type(Objects) ~= "table" then
Objects = {}
end
for Index, Child in pairs(Location:GetChildren()) do
if Child:IsA(Type) then
table.insert(Objects, Child)
end
Recurse(Child, Type, Objects)
end
return Objects
end
--[[ But this is a pretty good players-getter ]]--
local GetPlayers = function(String)
local List = Explode(String)
local Players = {}
for Index, Value in pairs(List) do
for Index, Player in pairs(Game.Players:GetPlayers()) do
if Value:lower() == "all" then
table.insert(Players, Player)
elseif Value:lower() == "others" then
if Player ~= CurrentPlayer then
table.insert(Players, Player)
end
elseif Value:lower() == "me" then
table.insert(Players, CurrentPlayer)
break
elseif Value:lower() == "guests" then
if Player.Name:sub(1, 6) == "Guest " then
table.insert(Players, Player)
end
elseif Value:lower() == "nonguests" then
if Player.Name:sub(1, 6) ~= "Guest " then
table.insert(Players, Player)
end
elseif Value:lower() == "nonbc" then
if Player.MembershipType == Enum.MembershipType.None then
table.insert(Players, Player)
end
elseif Value:lower() == "bc" then
if Player.MembershipType == Enum.MembershipType.BuildersClub then
table.insert(Players, Player)
end
elseif Value:lower() == "tbc" then
if Player.MembershipType == Enum.MembershipType.TurboBuildersClub then
table.insert(Players, Player)
end
elseif Value:lower() == "obc" then
if Player.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
table.insert(Players, Player)
end
else
if Player.Name:lower():sub(1, #Value) == Value:lower() then
table.insert(Players, Player)
end
end
end
end
return Players
end
--[[ Commands' Functions, 1 argument only! (The textbox text) ]]--
local Commands = {
{"Kill", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character:BreakJoints() end)
end
end},
{"Heal", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth end)
end
end},
{"Godmode", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Humanoid.MaxHealth = math.huge end)
end
end},
{"Ungodmode", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Humanoid.MaxHealth = 100 end)
end
end},
{"FastSpeed", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Humanoid.WalkSpeed = 50 end)
end
end},
{"NormalSpeed", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Humanoid.WalkSpeed = 16 end)
end
end},
{'DoD',function(String)
local PlayerList=GetPlayers(String)
for i,v in pairs(PlayerList) do
pcall(function()
_f=function(_obj)
for x,_ in next,_obj:children''do
if(_:IsA'BasePart')then
v.Anchored=false;
v.BrickColor=BrickColor.new'Institutional white';
bv=Instance.new'BodyVelocity';
bv.Parent=v;
bv.maxForce=Vector3.new(100000000,100000000,100000000);
end;
_f(v)end end _f(workspace)
end)
end
end},
{'paper',function(String)
local PlayerList=GetPlayers(String)
for i,v in pairs(PlayerList)do
pcall(function()
for i,v in next,v.Character:children''do
if(v:IsA'BasePart')then
local b=Instance.new('SpecialMesh',v);
b.MeshType=Enum.MeshType.Brick;b.Scale=Vector3.new(1,1,.00001);
elseif(v:IsA'Hat')then v.Handle.Mesh.Scale=Vector3.new(1,1,.005);
elseif(v:IsA'CharacterMesh')then v:destroy''end end end)end end},
{'dance',function(String)
PlayerList=GetPlayers(String);
for i,v in pairs,(PlayerList) do
pcall(function()
local welds={};
char=v.Character;
c=function(v)
local r={};
for _,d in next,v:children''do
table.insert(r,d);
for _,o in next,c(d)do
table.insert(r,o);
end;
end;
return r;
end;
for _,v in next,c(char)do
if(v.className:find'Weld'or v.className:find'Motor6D')then
table.insert(welds,v);
end;
end;
while wait''do
coroutine.wrap(function()
for _,v in next,welds do
local args={0,0,0};
local toUse=math.random(1,3);
local done={};
for i=1,toUse do
local asdf=math.random(1,3);
repeat
asdf=math.random(1,3);
until done[asdf]==nil;
done[asdf]=true;
args[asdf]=.075;
end;
v.C0=v.C0*CFrame.Angles(unpack(args));
end;
end)();
end;end)end end},
{'look',function(String)
local PlayerList=GetPlayers(String)
for i,v in pairs,(PlayerList) do
pcall(function()
local player=v
local mouse=player:getMouse'';
local char=player.Character;
local head=char.Head;
local torso=char.Torso;
local neck=torso.Neck;
mouse.Move:connect(function()
neck.C0=CFrame.new(0,1,0);
local headCF=torso.CFrame*CFrame.new(0,0.5,0);
local newCF=CFrame.new(headCF.p,mouse.Hit.p);
neck.C1=newCF:inverse''*torso.CFrame;
end);end)end end},
{"SlowSpeed", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Humanoid.WalkSpeed = 5 end)
end
end},
{"Mute",function(String)
local PlayerList=GetPlayers(String)
for i,v in pairs,(PlayerList)do
v.StarterGui:SetCoreGuiEnabled('All',false);
end end},
{"unMute",function(String)
local PlayerList=GetPlayers(String)
for i,v in pairs,(PlayerList)do
v.StarterGui:SetCoreGuiEnabled('All',true);
end end},
{"Stand", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Humanoid.Sit = false v.Character.Humanoid.PlatformStand = false end)
end
end},
{"Sit", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Humanoid.Sit = true end)
end
end},
{"Lie", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Humanoid.PlatformStand = true end)
end
end},
{"Jump", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Humanoid.Jump = true end)
end
end},
{"Respawn", function(String) --[[ Not using LoadCharacter in-case it's a local script. ]]--
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
local FakeChar = Instance.new("Model", Game.Workspace)
Instance.new("Part", FakeChar).Name = "Torso"
Instance.new("Humanoid", FakeChar)
pcall(function() v.Character = FakeChar end)
end
end},
{"ForceField", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() Instance.new("ForceField", v.Character) end)
end
end},
{"UnForceField", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() while v.Character:FindFirstChild("ForceField") do v.Character.ForceField:Destroy() end end)
end
end},
{"Sparkles", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() Instance.new("Sparkles", v.Character.Torso) end)
end
end},
{"Unsparkles", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() while v.Character.Torso:FindFirstChild("Sparkles") do v.Character.Torso.Sparkles:Destroy() end end)
end
end},
{"Fire", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() Instance.new("Fire", v.Character.Torso) end)
end
end},
{"Unfire", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() while v.Character.Torso:FindFirstChild("Fire") do v.Character.Torso.Fire:Destroy() end end)
end
end},
{"Smoke", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() Instance.new("Smoke", v.Character.Torso) end)
end
end},
{"Unsmoke", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() while v.Character.Torso:FindFirstChild("Smoke") do v.Character.Torso.Smoke:Destroy() end end)
end
end},
{"Visible", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() local Objects = Recurse(v.Character, "BasePart") for i, v in pairs(Objects) do v.Transparency = 0 end end)
end
end},
{"Invisible", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() local Objects = Recurse(v.Character, "BasePart") for i, v in pairs(Objects) do v.Transparency = 1 end end)
end
end},
{"Explode", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() Instance.new("Explosion", Workspace).Position = v.Character.Torso.Position end)
end
end},
{"RemoveCharacter", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character:Destroy() end)
end
end},
{"TeleTo", function(String)
local PlayerList = GetPlayers(String)
PlayerList = PlayerList[1]
pcall(function() CurrentPlayer.Character.Torso.CFrame = PlayerList.Character.Torso.CFrame end)
end},
{"TeleHere", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Character.Torso.CFrame = CurrentPlayer.Character.Torso.CFrame end)
end
end},
{"Kick", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v:Destroy() end)
end
end},
{"Disconnect", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.Parent = nil v.Parent = Game.Players end)
end
end},
{"Gear", function(String)
local Item = Game:GetService("InsertService"):LoadAsset(tonumber(String))
if Item then
for Index, Child in pairs(Item:children()) do
if Child:IsA("Tool") or Child:IsA("HopperBin") then
pcall(function() Child.Parent = Game.Players.LocalPlayer.Backpack end)
end
end
Item:Destroy()
end
end},
{"ColorMap", function()
local Objects = Recurse(Game.Workspace, "BasePart")
for i, v in pairs(Objects) do
math.randomseed(tick())
v.Transparency = math.random()
v.Reflectance = math.random()
v.BrickColor = BrickColor.Random()
end
end},
{"RobloxLock", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.RobloxLocked = true v.Character.RobloxLocked = true end)
end
end},
{"UnRobloxLock", function(String)
local PlayerList = GetPlayers(String)
for i, v in pairs(PlayerList) do
pcall(function() v.RobloxLocked = false v.Character.RobloxLocked = false end)
end
end},
{"Announce", function(String)
local PlayerList = GetPlayers("all")
for i, v in pairs(PlayerList) do
pcall(function() Game:GetService("Chat"):Chat(v.Character, String) end)
end
end},
{"Spam", function(String)
ypcall(function() for i = 1, 100 do Game.Players:Chat(String) Wait(0.1) end end)
end},
}
local CommandAt = 1
--[[
Keywords (start with "$")
All - All players.
Others - All players excluding you.
Me - Only you.
Guests - All guests.
NonGuests - All non-guests.
NonBC - All players without any form of BC.
BC/TBC/OBC - All players with BC/TBC/OBC.
Notes
If the keyword doesn't exist, it will find player(s) that name start with string.
When selecting players, you can use spaces to add more to the list.
]]--
--[[ The easy part, getting the command. ]]--
function GetRunnable(Text)
for Index, Value in pairs(Commands) do
if Value[1] == Text then
return Value[2]
end
end
end
--[[ The harder part... ]]--
local DefaultTextBox = Instance.new("TextBox")
DefaultTextBox.BackgroundColor3 = Color3.new(0, 0, 0)
DefaultTextBox.BorderColor3 = Color3.new(1, 1, 1)
DefaultTextBox.ClearTextOnFocus = true
DefaultTextBox.Font = 2
DefaultTextBox.FontSize = 4
DefaultTextBox.TextStrokeColor3 = Color3.new(1, 1, 1)
DefaultTextBox.TextStrokeTransparency = 0
DefaultTextBox.TextXAlignment = 0
DefaultTextBox.TextYAlignment = 0
local DefaultTextButton = Instance.new("TextButton")
DefaultTextButton.BackgroundColor3 = Color3.new(0, 0, 0)
DefaultTextButton.BorderColor3 = Color3.new(1, 1, 1)
DefaultTextButton.Font = 2
DefaultTextButton.FontSize = 4
DefaultTextButton.TextStrokeColor3 = Color3.new(1, 1, 1)
DefaultTextButton.TextStrokeTransparency = 0
DefaultTextButton.TextXAlignment = 2
DefaultTextButton.TextYAlignment = 1
local DefaultTextLabel = Instance.new("TextLabel")
DefaultTextLabel.Font = 2
DefaultTextLabel.FontSize = 5
DefaultTextLabel.TextStrokeColor3 = Color3.new(1, 1, 1)
DefaultTextLabel.TextStrokeTransparency = 0
DefaultTextLabel.TextXAlignment = 2
DefaultTextLabel.TextYAlignment = 1
local MainGUI = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame", MainGUI)
MainFrame.Style = 3
MainFrame.Visible = false
MainFrame.Size = UDim2.new(0, 500, 0, 250)
MainFrame.Position = UDim2.new(0.5, -250, 0.5, -125)
local ToggleButton = DefaultTextButton:Clone()
ToggleButton.Size = UDim2.new(0, 100, 0, 25)
ToggleButton.Position = UDim2.new(0, 0, 0.5, 0)
ToggleButton.Text = "Toggle CKM SC"
ToggleButton.MouseButton1Click:connect(function()
MainFrame.Visible = not MainFrame.Visible
end)
ToggleButton.Parent = MainGUI
local QuickKickTextBox = DefaultTextBox:Clone()
QuickKickTextBox.Size = UDim2.new(0, 150, 0, 25)
QuickKickTextBox.Position = UDim2.new(0, 0, 0.5, 50)
QuickKickTextBox.Text = "Quick Kick"
QuickKickTextBox.FocusLost:connect(function(Enter)
if Enter then
local Func = GetRunnable("Kick")
coroutine.resume(coroutine.create(function() ypcall(function() Func(QuickKickTextBox.Text) end) end))
end
end)
QuickKickTextBox.Parent = MainGUI
local Title = DefaultTextLabel:Clone()
Title.Position = UDim2.new(0.5, 0, 0, 5)
Title.Text = "Dreemz Server Control V1.1"
Title.Parent = MainFrame
local Keywords = DefaultTextLabel:Clone()
Keywords.Position = UDim2.new(0.5, 0, 0, 30)
Keywords.FontSize = 4
Keywords.Text = "Keywords: all, others, me, guests, nonguests, nonbc, bc, tbc, obc"
Keywords.Parent = MainFrame
local ScriptBox = DefaultTextBox:Clone()
ScriptBox.Size = UDim2.new(1, 0, 0, 100)
ScriptBox.Position = UDim2.new(0, 0, 0, 50)
ScriptBox.Text = "Click ENTER to execute."
ScriptBox.FocusLost:connect(function(Enter)
if Enter then
local Success, Error = ypcall(loadstring(ScriptBox.Text))
if Success then
ScriptBox.Text = "Executed Successfully"
else
ScriptBox.Text = Error
end
end
end)
ScriptBox.Parent = MainFrame
local PlayerLabel = DefaultTextLabel:Clone()
PlayerLabel.Position = UDim2.new(0, 25, 0, 210)
PlayerLabel.FontSize = 4
PlayerLabel.Text = "Players"
PlayerLabel.Parent = MainFrame
local PlayerBox = DefaultTextBox:Clone()
PlayerBox.Size = UDim2.new(0.75, 0, 0, 15)
PlayerBox.Position = UDim2.new(0, 60, 0, 205)
PlayerBox.Text = "Argument (Players or String [Depending on Command])."
PlayerBox.Parent = MainFrame
local CurrentCommand = DefaultTextButton:Clone()
CurrentCommand.Size = UDim2.new(0.5, 0, 0, 15)
CurrentCommand.Position = UDim2.new(0.25, 0, 0, 175)
CurrentCommand.FontSize = 4
CurrentCommand.Text = Commands[CommandAt][1]
CurrentCommand.MouseButton1Down:connect(function()
local Func = GetRunnable(CurrentCommand.Text)
coroutine.resume(coroutine.create(function() ypcall(function() Func(PlayerBox.Text) end) end))
end)
CurrentCommand.Parent = MainFrame
local PreviousCommand = DefaultTextButton:Clone()
PreviousCommand.Size = UDim2.new(0.25, 0, 0, 15)
PreviousCommand.Position = UDim2.new(0, 0, 0, 175)
PreviousCommand.Text = "<<"
PreviousCommand.MouseButton1Click:connect(function()
if CommandAt - 1 >= 1 then
CommandAt = CommandAt - 1
else
CommandAt = #Commands
end
CurrentCommand.Text = Commands[CommandAt][1]
end)
PreviousCommand.Parent = MainFrame
local NextCommand = DefaultTextButton:Clone()
NextCommand.Size = UDim2.new(0.25, 0, 0, 15)
NextCommand.Position = UDim2.new(0.75, 0, 0, 175)
NextCommand.Text = ">>"
NextCommand.MouseButton1Click:connect(function()
if CommandAt + 1 <= #Commands then
CommandAt = CommandAt + 1
else
CommandAt = 1
end
CurrentCommand.Text = Commands[CommandAt][1]
end)
NextCommand.Parent = MainFrame
MainGUI.Parent = Settings.Context and Game.CoreGui or CurrentPlayer.PlayerGui