-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-bar.lua
More file actions
275 lines (252 loc) · 8.28 KB
/
Copy pathexample-bar.lua
File metadata and controls
275 lines (252 loc) · 8.28 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
local MonoUI = loadstring(game:HttpGet("http://192.168.100.101:6767/mono-ui.luau"))()
-- Initial Notification
MonoUI.Notify({
title = "Test Script Loaded",
content = "MonoUI is running with 3-tab testing layout.",
icon = "check-circle",
duration = 5,
})
-- Create Window
local window = MonoUI.CreateWindow({
Title = "MonoUI Ultimate Testing",
Subtitle = "Full Component & Grid Test",
Size = UDim2.fromOffset(620, 420),
Icon = "shield",
ConfigName = "mono_ultimate_test_config",
AutoSave = true,
})
-- PreOpened Action Log
local logger
window.event.PreOpened(function(event)
event.message("Setting up test tabs...")
task.wait(0.5)
event.message("Binding actions...")
task.wait(0.3)
event.done()
end)
-- TAB 1: Grid & Layouts (HBar + VBar)
local tabLayout = window:CreateTab({
text = "Grid Layouts",
icon = "grid",
})
tabLayout:CreateSection({ text = "Row 1 - 2 Column Grid (HBar + VBar)" })
local row1 = tabLayout:CreateHBar()
local leftCol = row1:CreateVBar()
local rightCol = row1:CreateVBar()
-- Left Column Elements
leftCol:CreateSection({ text = "Left Column (Target)" })
leftCol:CreateToggle({
text = "Aimbot Active",
default = false,
flag = "grid_aimbot_enabled",
callback = function(state)
if logger then logger:Log("INFO", "Aimbot Active: " .. tostring(state)) end
end,
})
leftCol:CreateSlider({
text = "Smooth Value",
min = 1, max = 20, default = 5,
flag = "grid_aimbot_smooth",
callback = function(value)
if logger then logger:Log("INFO", "Aimbot Smooth: " .. math.floor(value)) end
end,
})
leftCol:CreateDropdown({
text = "Aimbot Target",
list = {"Head", "Torso", "HumanoidRootPart"},
default = "Head",
flag = "grid_aimbot_target",
callback = function(val)
if logger then logger:Log("INFO", "Aimbot Target: " .. tostring(val[1] or val)) end
end,
})
-- Right Column Elements
rightCol:CreateSection({ text = "Right Column (Visuals)" })
rightCol:CreateColorPicker({
text = "Accent Color",
default = Color3.fromRGB(0, 162, 255),
flag = "grid_visual_color",
callback = function(color)
MonoUI.SetThemeColor("AccentColor", color)
if logger then logger:Log("SUCCESS", "Accent Theme Color Updated!") end
end,
})
rightCol:CreateKeybind({
text = "Toggle GUI Key",
default = Enum.KeyCode.RightControl,
flag = "grid_menu_key",
callback = function(key)
if logger then logger:Log("WARNING", "GUI Toggle bind changed to: " .. key.Name) end
end,
})
rightCol:CreateInput({
text = "Config Name",
placeholder = "Enter name...",
default = "Default",
flag = "grid_config_name",
callback = function(text)
if logger then logger:Log("INFO", "Config Name set to: " .. text) end
end,
})
tabLayout:CreateSection({ text = "Row 2 - 3 Column Grid (HBar + VBar)" })
local row2 = tabLayout:CreateHBar()
local col1 = row2:CreateVBar()
local col2 = row2:CreateVBar()
local col3 = row2:CreateVBar()
col1:CreateButton({
text = "Button A",
callback = function()
if logger then logger:Log("INFO", "Button A Pressed!") end
end,
})
col2:CreateButton({
text = "Button B",
callback = function()
if logger then logger:Log("INFO", "Button B Pressed!") end
end,
})
col3:CreateButton({
text = "Button C",
callback = function()
if logger then logger:Log("INFO", "Button C Pressed!") end
end,
})
-- TAB 2: Standard Layout (Full Width)
local tabStandard = window:CreateTab({
text = "Standard Width",
icon = "maximize",
})
tabStandard:CreateSection({ text = "Standard Components (Full-width)" })
tabStandard:CreateToggle({
text = "Esp Chams",
default = true,
flag = "std_chams_enabled",
callback = function(state)
if logger then logger:Log("INFO", "ESP Chams: " .. tostring(state)) end
end,
})
tabStandard:CreateSlider({
text = "Esp Render Distance",
min = 50, max = 2000, default = 500,
flag = "std_render_distance",
callback = function(value)
if logger then logger:Log("INFO", "Chams distance: " .. math.floor(value)) end
end,
})
tabStandard:CreateDropdown({
text = "Chams Type",
list = {"Outline", "Fill", "Highlight", "Both"},
default = "Highlight",
flag = "std_chams_type",
callback = function(val)
if logger then logger:Log("INFO", "Chams style: " .. tostring(val[1] or val)) end
end,
})
tabStandard:CreateInput({
text = "Custom Player Tag",
placeholder = "Default: Guest",
default = "",
flag = "std_player_tag",
callback = function(text)
if logger then logger:Log("INFO", "Tag changed: " .. text) end
end,
})
tabStandard:CreateTargetBody({
text = "Body Hitboxes (Multi)",
multiple = true,
default = {"Head", "Torso"},
disabledParts = {"LeftArm", "RightArm"},
flag = "std_hitbox_parts",
callback = function(parts)
if logger then logger:Log("INFO", "Active hitboxes: " .. table.concat(parts, ", ")) end
end,
})
tabStandard:CreateButton({
text = "Force Re-render Visuals",
callback = function()
if logger then logger:Log("SUCCESS", "Forcing render refresh...") end
end,
})
tabStandard:CreateDivider({
height = 24,
line = true,
})
tabStandard:CreateSection({ text = "Information Panel" })
tabStandard:CreateParagraph({
text = "<b>MonoUI Info:</b> This standard full-width tab demonstrates various widget controls. You can separate layout zones dynamically using the new <code>CreateDivider</code> component, or display formatted notices using the new <code>CreateParagraph</code> component.",
size = 14,
})
-- TAB 3: Console & Players
local tabWidgets = window:CreateTab({
text = "Widgets Console",
icon = "terminal",
})
tabWidgets:CreateSection({ text = "Activity Console Logs" })
logger = tabWidgets:CreateLogger({
text = "Mono Console",
height = 140,
})
tabWidgets:CreateSection({ text = "Active Server Players" })
tabWidgets:CreatePlayerList({
text = "Roblox Active Players",
height = 160,
buttons = {
{
text = "TP",
type = "button",
callback = function(player)
if logger then logger:Log("INFO", "Attempting TP to: " .. player.Name) end
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)
if logger then logger:Log("INFO", "ESP state for " .. player.Name .. ": " .. (active and "ON" or "OFF")) end
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
local hl = char and char:FindFirstChild("MonoESP")
if hl then hl:Destroy() end
end
end,
}
}
})
-- Create Control HUD (Floating)
MonoUI.CreateControlHUD({
{
icon = "shield",
default = false,
callback = function(active)
if logger then logger:Log("INFO", "HUD Aimbot State: " .. (active and "ON" or "OFF")) end
end
},
{
icon = "eye",
default = true,
callback = function(active)
if logger then logger:Log("INFO", "HUD Visuals State: " .. (active and "ON" or "OFF")) end
end
}
})
logger:Log("SUCCESS", "Ultimate testing script initialized successfully!")