forked from bloodball/UI-Librarys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Discord Lib
118 lines (93 loc) · 1.85 KB
/
Discord Lib
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
local DiscordLib =
loadstring(game:HttpGet "https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/discord")()
local win = DiscordLib:Window("discord library")
local serv = win:Server("Preview", "")
local btns = serv:Channel("Buttons")
btns:Button(
"Kill all",
function()
DiscordLib:Notification("Notification", "Killed everyone!", "Okay!")
end
)
btns:Seperator()
btns:Button(
"Get max level",
function()
DiscordLib:Notification("Notification", "Max level!", "Okay!")
end
)
local tgls = serv:Channel("Toggles")
tgls:Toggle(
"Auto-Farm",
false,
function(bool)
print(bool)
end
)
local sldrs = serv:Channel("Sliders")
local sldr =
sldrs:Slider(
"Slide me!",
0,
1000,
400,
function(t)
print(t)
end
)
sldrs:Button(
"Change to 50",
function()
sldr:Change(50)
end
)
local drops = serv:Channel("Dropdowns")
local drop =
drops:Dropdown(
"Pick me!",
{"Option 1", "Option 2", "Option 3", "Option 4", "Option 5"},
function(bool)
print(bool)
end
)
drops:Button(
"Clear",
function()
drop:Clear()
end
)
drops:Button(
"Add option",
function()
drop:Add("Option")
end
)
local clrs = serv:Channel("Colorpickers")
clrs:Colorpicker(
"ESP Color",
Color3.fromRGB(255, 1, 1),
function(t)
print(t)
end
)
local textbs = serv:Channel("Textboxes")
textbs:Textbox(
"Gun power",
"Type here!",
true,
function(t)
print(t)
end
)
local lbls = serv:Channel("Labels")
lbls:Label("This is just a label.")
local bnds = serv:Channel("Binds")
bnds:Bind(
"Kill bind",
Enum.KeyCode.RightShift,
function()
print("Killed everyone!")
end
)
serv:Channel("by dawid#7205")
win:Server("Main", "http://www.roblox.com/asset/?id=6031075938")