-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.lua
More file actions
356 lines (309 loc) · 7.49 KB
/
Copy pathexample.lua
File metadata and controls
356 lines (309 loc) · 7.49 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
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
local MonoUI = loadstring(game:HttpGet("http://localhost:6767/mono-ui.luau"))()
MonoUI.SetWatermark({
visible = true,
text = "MonoUI Premium",
})
task.spawn(function()
task.wait(0.5)
MonoUI.Notify({
title = "System Initialized",
content = "MonoUI has successfully loaded all modular assets.",
icon = "check-circle",
duration = 5,
})
task.wait(0.3)
MonoUI.Notify({
title = "Config Loaded",
content = "Found and applied saved configuration file.",
icon = "settings",
duration = 4,
})
task.wait(0.3)
MonoUI.Notify({
title = "AutoExec Ready",
content = "Persistence script queued for next teleport.",
icon = "zap",
duration = 3,
})
end)
MonoUI.module = {
profile = true
}
local window = MonoUI.CreateWindow({
Title = "mono ui",
Subtitle = "premium modular library",
Size = UDim2.fromOffset(600, 400),
Icon = "shield",
ConfigName = "mono_demo_config",
AutoSave = true,
AutoExec = true,
})
local consoleTab = window:CreateTab({
text = "Console",
icon = "terminal",
})
consoleTab:CreateSection({
text = "System Action Logs"
})
local logger = consoleTab:CreateLogger({
text = "Mono Console Output",
height = 280,
})
window.event.PreOpened(function(event)
logger:Log("INFO", "PreOpened event triggered!")
event.message("Booting MonoUI Library...")
task.wait(1.0)
event.message("Loading Config File...")
task.wait(0.8)
event.message("Done!")
task.wait(0.4)
event.done()
end)
window.event.Closed(function()
logger:Log("WARNING", "Main GUI has been closed!")
end)
window.event.Minimized(function()
logger:Log("INFO", "Main GUI minimized.")
end)
local tab1 = window:CreateTab({
text = "Combat",
icon = "swords",
})
tab1:CreateSection({
text = "Combat Hacks"
})
tab1:CreateInput({
text = "Aimbot Key",
placeholder = "Type custom text...",
default = "Headshot",
flag = "aimbot_key_text",
callback = function(value)
logger:Log("INFO", "Aimbot text set to long text: " .. value)
end
})
tab1:CreateToggle({
text = "Silent Aim",
default = false,
flag = "silent_aim_state",
callback = function(state)
logger:Log("INFO", "Silent Aim: " .. (state and "ENABLED" or "DISABLED"))
end
})
tab1:CreateDropdown({
text = "Target Mode",
list = {"Distance", "FOV", "Health"},
default = "Distance",
multiple = false,
flag = "target_mode_dropdown",
callback = function(value)
logger:Log("INFO", "Target Mode set to: " .. tostring(value[1] or value))
end
})
tab1:CreateSlider({
text = "Aimbot FOV Range",
min = 10,
max = 300,
default = 90,
flag = "aimbot_fov_slider",
callback = function(value)
logger:Log("INFO", "Aimbot FOV range: " .. math.floor(value))
end
})
tab1:CreateButton({
text = "Force Reset Aim",
callback = function()
logger:Log("SUCCESS", "Aim system forcefully reset!")
end
})
local tab2 = window:CreateTab({
text = "Settings",
icon = "settings",
})
local hbar = tab2:CreateHBar()
local leftCol = hbar:CreateVBar()
local rightCol = hbar:CreateVBar()
leftCol:CreateSection({
text = "Target Configurations"
})
leftCol:CreateTargetBody({
text = "Body Hitboxes (Multi)",
multiple = true,
default = {"Head", "Torso"},
disabledParts = {"LeftArm", "RightArm"},
flag = "hitbox_multi_parts",
callback = function(parts)
logger:Log("INFO", "Active hitboxes: " .. table.concat(parts, ", "))
end
})
rightCol:CreateSection({
text = "UI Theme & Toggle"
})
rightCol:CreateColorPicker({
text = "Accent Color",
default = Color3.fromRGB(0, 162, 255),
flag = "ui_theme_accent",
callback = function(color)
MonoUI.SetThemeColor("AccentColor", color)
MonoUI.Notify({
title = "Theme Updated",
content = "GUI accent theme color has been customized.",
icon = "palette",
duration = 2.5,
})
logger:Log("SUCCESS", "Accent theme color customized.")
end
})
local visibleState = true
rightCol:CreateKeybind({
text = "Toggle Menu Key",
default = Enum.KeyCode.RightControl,
flag = "menu_toggle_keybind",
callback = function(key)
visibleState = not visibleState
window:SetVisible(visibleState)
MonoUI.Notify({
title = "GUI Toggle",
content = "Main window visibility set to: " .. tostring(visibleState),
icon = "eye",
duration = 2.5,
})
logger:Log("WARNING", "GUI visibility toggled using: " .. key.Name)
end
})
local playersTab = window:CreateTab({
text = "Players",
icon = "users",
})
playersTab:CreateSection({
text = "Player list ESP & Teleport"
})
playersTab:CreateTargetBody({
text = "Primary Hitbox (Single)",
multiple = false,
default = "Head",
flag = "hitbox_single_part",
callback = function(parts)
logger:Log("INFO", "Primary hitbox: " .. table.concat(parts, ", "))
end
})
playersTab:CreatePlayerList({
text = "Active Server Players",
height = 280,
buttons = {
{
text = "TP",
type = "button",
callback = function(player)
logger:Log("INFO", "Teleporting to: " .. player.Name)
local localPlayer = game:GetService("Players").LocalPlayer
if localPlayer and localPlayer.Character and player.Character then
local root = localPlayer.Character:FindFirstChild("HumanoidRootPart")
local targetRoot = player.Character:FindFirstChild("HumanoidRootPart")
if root and targetRoot then
root.CFrame = targetRoot.CFrame * CFrame.new(0, 0, -3)
end
end
end
},
{
text = "ESP",
type = "toggle",
callback = function(player, active)
logger:Log("INFO", "ESP for " .. player.Name .. ": " .. (active and "ON" or "OFF"))
if active then
local char = player.Character
if char then
local hl = Instance.new("Highlight")
hl.Name = "MonoESP"
hl.FillColor = Color3.fromRGB(0, 162, 255)
hl.FillTransparency = 0.5
hl.OutlineColor = Color3.fromRGB(255, 255, 255)
hl.OutlineTransparency = 0
hl.Adornee = char
hl.Parent = char
end
else
local char = player.Character
if char then
local hl = char:FindFirstChild("MonoESP")
if hl then
hl:Destroy()
end
end
end
end
}
}
})
local profileTab = window:CreateTab({
text = "Profile",
icon = "user",
})
profileTab:CreateSection({
text = "User Profile"
})
profileTab:CreateParagraph({
text = "Welcome to <b>MonoUI</b>! This is a dynamic paragraph component showing auto-wrapped text. Supports <i>RichText</i> formatting, including <b>bold</b>, <i>italics</i>, and <font color='#00a2ff'>custom colors</font>.",
size = 15,
})
profileTab:CreateDivider({
height = 20,
line = true,
})
profileTab:CreateParagraph({
text = "This second paragraph is separated from the first one by a Divider component with a visual separation line.",
size = 14,
color = Color3.fromRGB(150, 150, 160)
})
window:CreateTab({
text = "Favorites",
icon = "star",
})
window:CreateTab({
text = "Favorites",
icon = "star",
})
window:CreateTab({
text = "Favorites",
icon = "star",
})
window:CreateTab({
text = "Favorites",
icon = "star",
})
window:CreateTab({
text = "Favorites",
icon = "star",
})
window:CreateTab({
text = "Favorites",
icon = "star",
})
window:CreateTab({
text = "Favorites",
icon = "star",
})
logger:Log("SUCCESS", "All tabs loaded successfully!")
MonoUI.CreateControlHUD({
{
icon = "swords",
default = false,
callback = function(active)
logger:Log("INFO", "Control HUD - Silent Aim toggled: " .. (active and "ON" or "OFF"))
end
},
{
icon = "eye",
default = true,
callback = function(active)
logger:Log("INFO", "Control HUD - Player ESP toggled: " .. (active and "ON" or "OFF"))
end
},
{
icon = "gauge",
default = false,
callback = function(active)
logger:Log("INFO", "Control HUD - Speed Hack toggled: " .. (active and "ON" or "OFF"))
end
}
})