Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 9df7a4d

Browse files
authored
Formatting
1 parent a6a8206 commit 9df7a4d

1 file changed

Lines changed: 74 additions & 61 deletions

File tree

admin.lua

Lines changed: 74 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
if not game:IsLoaded() then
32
game.Loaded:Wait()
43
end
@@ -58,115 +57,116 @@ commands = {
5857

5958
shadows = function(...)
6059
Lighting.GlobalShadows = true
61-
end,
60+
end,
6261

6362
noshadows = function(...)
64-
Lighting.GlobalShadows = false
65-
end,
63+
Lighting.GlobalShadows = false
64+
end,
6665

6766
position = function(...)
68-
rconsoleprint(tostring(character.HumanoidRootPart.Position.X .. character.HumanoidRootPart.Position.Y .. character.HumanoidRootPart.Position.Z'\n'))
69-
end,
67+
rconsoleprint(tostring(character.HumanoidRootPart.Position.X .. character.HumanoidRootPart.Position.Y .. character.HumanoidRootPart.Position.Z'\n'))
68+
end,
7069

7170
fireclickdetecors = function(...)
7271
for i, v in pairs(workspace:GetDescendants()) do
7372
if v:IsA("ClickDetector") then
7473
fireclickdetector(v)
7574
end
7675
end
77-
end,
76+
end,
7877

7978
blockhead = function(...)
8079
character.Head:FindFirstChildOfClass("SpecialMesh"):Destroy()
81-
end,
80+
end,
8281

8382
blockhats = function(...)
84-
for _,v in pairs(character:FindFirstChildOfClass('Humanoid'):GetAccessories()) do
85-
for i,c in pairs(v:GetDescendants()) do
86-
if c:IsA("SpecialMesh") then
87-
c:Destroy()
83+
for _,v in pairs(character:FindFirstChildOfClass('Humanoid'):GetAccessories()) do
84+
for i,c in pairs(v:GetDescendants()) do
85+
if c:IsA("SpecialMesh") then
86+
c:Destroy()
87+
end
8888
end
8989
end
90-
end
91-
end,
90+
end,
9291

9392
blocktool = function(...)
9493
for _,v in pairs(character:GetChildren()) do
95-
if v:IsA("Tool") or v:IsA("HopperBin") then
96-
for i,c in pairs(v:GetDescendants()) do
97-
if c:IsA("SpecialMesh") then
98-
c:Destroy()
94+
if v:IsA("Tool") or v:IsA("HopperBin") then
95+
for i,c in pairs(v:GetDescendants()) do
96+
if c:IsA("SpecialMesh") then
97+
c:Destroy()
98+
end
9999
end
100100
end
101101
end
102-
end
103-
end,
102+
end,
104103

105104
naked = function(...)
106105
for i, v in pairs(character:GetDescendants()) do
107106
if v:IsA("Clothing") or v:IsA("ShirtGraphic") then
108107
v:Destroy()
109108
end
110109
end
111-
end,
110+
end,
112111

113-
day = function(...)
114-
Lighting.ClockTime = 14
115-
rconsolewarn('This is client-side only.')
116-
end,
112+
day = function(...)
113+
Lighting.ClockTime = 14
114+
rconsolewarn("This is client-side only.")
115+
end,
117116

118-
night = function(...)
119-
Lighting.ClockTime = 0
120-
rconsolewarn('This is client-side only.')
121-
end,
117+
night = function(...)
118+
Lighting.ClockTime = 0
119+
rconsolewarn("This is client-side only.")
120+
end,
122121

123122
noface = function(...)
124123
for i, v in pairs(speaker.Character:GetDescendants()) do
125-
if v:IsA("Decal") and v.Name == 'face' then
124+
if v:IsA("Decal") and v.Name == "face" then
126125
v:Destroy()
127126
end
128127
end
129-
end,
128+
end,
130129

131130
fullbright = function(...)
132131
Lighting.Brightness = 2
133132
Lighting.ClockTime = 14
134133
Lighting.FogEnd = 100000
135134
Lighting.GlobalShadows = false
136135
Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)
137-
end,
136+
end,
138137

139-
nofog = function(...)
138+
nofog = function(...)
140139
Lighting.FogEnd = 100000
140+
141141
for i, v in pairs(Lighting:GetDescendants()) do
142142
if v:IsA("Atmosphere") then
143143
v:Destroy()
144144
end
145145
end
146+
146147
rconsolewarn('This is client-side only.')
147-
end,
148-
149-
150-
148+
end,
149+
151150
supportserver = function(...)
152151
rconsoleprint("https://discord.gg/aK6k4HKKjb\n Server link has been copied to your clipboard.\n")
153152
setclipboard("https://discord.gg/aK6k4HKKjb")
154-
155153
end,
156154

157155
noproximitycooldown = function(...)
158156
while task.wait() do
159-
game:GetService("ProximityPromptService").PromptButtonHoldBegan:Connect(fireproximityprompt)
160-
end
157+
game:GetService("ProximityPromptService").PromptButtonHoldBegan:Connect(fireproximityprompt)
158+
end
161159
end,
162160

163161
lagserver = function(...)
164162
for _, v in pairs(getconnections(game:GetService("ScriptContext").Error)) do
165163
v:Disable()
166164
end
165+
167166
local storage = game:GetService("ReplicatedStorage")
168167
local v = 96000000
169168
local msg = "" .. string.rep(" ", (v - 12))
169+
170170
for i = 1, 7 do
171171
if storage:FindFirstChild("DefaultChatSystemChatEvents") then
172172
storage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg, "All")
@@ -188,46 +188,58 @@ nofog = function(...)
188188
hookfunction((gcinfo or collectgarbage), function(...)
189189
return math.random(200, 350)
190190
end)
191+
191192
local gamemt = getrawmetatable(game)
193+
192194
setreadonly(gamemt, false)
195+
193196
local nc = gamemt.__namecall
197+
194198
gamemt.__namecall = newcclosure(function(...)
195-
if (getnamecallmethod() == "GetTotalMemoryUsageMb") then
199+
if getnamecallmethod() == "GetTotalMemoryUsageMb" then
196200
return math.random(395, 405)
197201
end
202+
198203
return nc(...)
199204
end)
205+
200206
hookfunction(game.Stats.GetTotalMemoryUsageMb, function()
201207
return math.random(395, 405)
202208
end)
209+
203210
rconsoleprint("Memory Spoofed!\n")
204211
end,
205212

206213
teleport = function(...)
207214
for i, plr in ipairs(Players:GetPlayers()) do
208215
rconsoleprint(i .. ".) " .. plr.Name .. "\n")
209216
end
217+
210218
rconsoleprint("Choice: ")
219+
211220
local playerNum = tonumber(rconsoleinput())
212221
local players = Players:GetPlayers()
222+
213223
if playerNum ~= nil and playerNum > 0 and playerNum <= #players then
214224
local plrchar = players[playerNum].Character
225+
215226
getroot(character).CFrame = getroot(plrchar).CFrame
216227
else
217228
rconsolewarn("Player chosen is invalid!\n")
218229
end
219230
end,
220231

221232
joinlogs = function(...)
222-
local args = {
223-
...
224-
}
233+
local args = {...}
234+
225235
joinlogsenabled = args[1] or not joinlogsenabled
236+
226237
if joinlogsenabled then
227238
joinlogcon = Players.PlayerAdded:Connect(function(plr)
228239
rconsoleprint("@@WHITE@@")
229240
rconsoleprint("\n" .. plr.Name .. " has joined, account is " .. plr.AccountAge .. " days old!\nInput: ")
230241
end)
242+
231243
leavelogcon = Players.PlayerRemoving:Connect(function(plr)
232244
rconsoleprint("@@WHITE@@")
233245
rconsoleprint("\n" .. plr.Name .. " has left!\nInput: ")
@@ -257,23 +269,23 @@ nofog = function(...)
257269
rconsolewarn('Anything you add or delete using "btools" will be client-side only.')
258270

259271
end,
260-
272+
261273
noclip = function(...)
262274
for i, v in pairs(Workspace[User]:GetChildren()) do
263-
if v:IsA("BasePart") then
264-
v.CanCollide = false
265-
end
266-
end
267-
end,
275+
if v:IsA("BasePart") then
276+
v.CanCollide = false
277+
end
278+
end
279+
end,
268280

269281
clip = function(...)
270-
for i, v in pairs(Workspace[User]:GetChildren()) do
271-
if v:IsA("BasePart") then
272-
v.CanCollide = true
273-
end
274-
end
275-
end,
276-
282+
for i, v in pairs(Workspace[User]:GetChildren()) do
283+
if v:IsA("BasePart") then
284+
v.CanCollide = true
285+
end
286+
end
287+
end,
288+
277289
walkspeed = function(...)
278290
local args = {...}
279291
local ws = args[1]
@@ -297,11 +309,13 @@ end
297309
local pid = game.PlaceId
298310
local jid = game.JobId
299311
local tps = game:GetService("TeleportService")
312+
300313
for _, v in ipairs(HttpService:JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/" .. pid .. "/servers/Public?sortOrder=Asc&limit=100")).data) do
301314
if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= jid then
302315
x[#x + 1] = v.id
303316
end
304317
end
318+
305319
if #x > 0 then
306320
tps:TeleportToPlaceInstance(pid, x[math.random(1, #x)])
307321
end
@@ -314,18 +328,17 @@ end
314328
end,
315329

316330
chat = function(...)
317-
local args = {
318-
...
319-
}
331+
local args = {...}
320332
local message = args[1]
321333
local storage = game:GetService("ReplicatedStorage")
334+
322335
if storage:FindFirstChild("DefaultChatSystemChatEvents") then
323336
storage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
324337
else
325338
rconsolewarn("It seems this game has a custom chat this command will not work.\n")
326339
end
327340
end,
328-
341+
329342
clear = rconsoleclear
330343
}
331344

0 commit comments

Comments
 (0)