forked from requarks/wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlol.lua
More file actions
50 lines (46 loc) · 1.24 KB
/
lol.lua
File metadata and controls
50 lines (46 loc) · 1.24 KB
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
local BackdoorTAB = gui:tab{
Icon = "rbxassetid://6034837802",
Name = "Backdoor"
}
BackdoorTAB:textbox({
Name = "Server Script",
Callback = function(v)
print(v)
if v == "" then
getgenv().ServerScriptText = ""
BackdoorTAB:prompt{
Title = "Warning",
Text = "Server Script is empty",
Buttons = {
Ok = function() end,
}
}
end
getgenv().ServerScriptText = v
end,})
BackdoorTAB:button({
Name = "Execute Server Script",
Callback = function()
if getgenv().ServerScriptText == "" then
BackdoorTAB:prompt{
Title = "Error!",
Text = "Server Script is empty!",
Buttons = {
Ok = function()
gui:set_status("Enter a server script to execute.")
end,
}
}
end
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(getgenv().ServerScriptText, "Access")
BackdoorTAB:prompt{
Title = "Success!",
Text = "Server Script executed successfully.",
Buttons = {
Ok = function()
gui:set_status("Last Action: Executed Server Script on "..game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name)
end,
}
}
end,
})