-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsursa.lua.lua
More file actions
223 lines (208 loc) · 6.37 KB
/
Copy pathsursa.lua.lua
File metadata and controls
223 lines (208 loc) · 6.37 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
local Lib = {}
function Lib:MakePrototypeLibrary(Title)
local SG = Instance.new("ScreenGui")
SG.Name = "zuqo test"
SG.DisplayOrder = math.huge
SG.ResetOnSpawn = false
SG.IgnoreGuiInset = true
SG.Parent = gethui()
local Back = Instance.new("Frame")
Back.Name = "Back"
Back.BackgroundColor3 = Color3.fromHex("121318")
Back.Size = UDim2.new(0, 450, 0, 300)
Back.Draggable = true
Back.BorderSizePixel = 0
Back.Position = UDim2.new(0.5, 0, 0.7, 0)
Back.Active = true
Back.AnchorPoint = Vector2.new(0.5, 0.5)
Back.Parent = SG
Instance.new("UICorner", Back).CornerRadius = UDim.new(0, 8)
local X = Instance.new("TextButton")
X.Name = "X"
X.BackgroundTransparency = 1
X.Font = 9
X.TextColor3 = Color3.fromHex("AFA1FD")
X.Size = UDim2.new(0, 30, 0, 30)
X.Text = "X"
X.TextScaled = true
X.Position = UDim2.new(0, 410, 0, 10)
X.Parent = Back
X.MouseButton1Click:Connect(function()
SG:Destroy()
end)
local TitleUI = Instance.new("TextLabel")
TitleUI.Name = "TitleUI"
TitleUI.Size = UDim2.new(0, 400, 0, 30)
TitleUI.Text = Title
TitleUI.TextColor3 = Color3.fromHex("AFA1FD")
TitleUI.Font = 9
TitleUI.Position = UDim2.new(0, 10, 0, 10)
TitleUI.TextScaled = true
TitleUI.BackgroundTransparency = 1
TitleUI.TextXAlignment = 0
TitleUI.Parent = Back
local ToggleUI = Instance.new("TextButton")
ToggleUI.Name = "ToggleUI"
ToggleUI.Font = 9
ToggleUI.Size = UDim2.new(0, 32, 0, 32)
ToggleUI.TextScaled = true
ToggleUI.TextColor3 = Color3.fromHex("AFA1FD")
ToggleUI.Position = UDim2.new(1, -224, 0, 4)
ToggleUI.Text = "P"
ToggleUI.BackgroundTransparency = 0.4
ToggleUI.BackgroundColor3 = Color3.fromHex("121318")
ToggleUI.Parent = SG
Instance.new("UICorner", ToggleUI).CornerRadius = UDim.new(0, 8)
ToggleUI.MouseButton1Click:Connect(function()
Back.Visible = not Back.Visible
end)
local TabsOpenContainer = Instance.new("ScrollingFrame")
TabsOpenContainer.ScrollingDirection = 2
TabsOpenContainer.BackgroundColor3 = Color3.fromHex("17181D")
TabsOpenContainer.CanvasSize = UDim2.new(0, 0, 0, 0)
TabsOpenContainer.AutomaticCanvasSize = 2
TabsOpenContainer.Name = "TabsOpenContainer"
TabsOpenContainer.Position = UDim2.new(0, 10, 0, 45)
TabsOpenContainer.ElasticBehavior = 1
TabsOpenContainer.BorderSizePixel = 0
TabsOpenContainer.ScrollBarThickness = 0
TabsOpenContainer.Size = UDim2.new(0, 105, 0, 245)
TabsOpenContainer.BackgroundTransparency = 0
TabsOpenContainer.Parent = Back
local L = Instance.new("UIListLayout")
L.SortOrder = 2
L.HorizontalAlignment = 1
L.Padding = UDim.new(0, 2)
L.Parent = TabsOpenContainer
local TabsContainer = Instance.new("Frame")
TabsContainer.Size = UDim2.new(0, 315, 0, 245)
TabsContainer.BorderSizePixel = 0
TabsContainer.Name = "TabsContainer"
TabsContainer.Position = UDim2.new(0, 125, 0, 45)
TabsContainer.BackgroundColor3 = Color3.fromHex("17181D")
TabsContainer.Parent = Back
local MakeATab = {}
function MakeATab:MakeTab(Title, Visible)
local OpenTab = Instance.new("TextButton")
OpenTab.BorderSizePixel = 0
OpenTab.Name = "OpenTab"
OpenTab.TextColor3 = Color3.fromHex("7A7A84")
if Visible then OpenTab.TextColor3 = Color3.fromHex("AFA1FD") end
OpenTab.AutoButtonColor = false
OpenTab.Text = Title
OpenTab.Size = UDim2.new(1, 0, 0, 25)
OpenTab.TextScaled = true
OpenTab.BackgroundColor3 = Color3.fromHex("1D1D27")
OpenTab.Font = 9
OpenTab.Parent = TabsOpenContainer
Instance.new("UICorner", OpenTab).CornerRadius = UDim.new(0, 8)
local Tab = Instance.new("ScrollingFrame")
Tab.Name = "Tab"
Tab.Visible = Visible or false
Tab.ScrollingDirection = 2
Tab.AutomaticCanvasSize = 2
Tab.ElasticBehavior = 1
Tab.CanvasSize = UDim2.new(0, 0, 0, 0)
Tab.ScrollBarThickness = 0
Tab.Size = UDim2.new(1, 0, 1, 0)
Tab.BackgroundTransparency = 1
Tab.Parent = TabsContainer
local L = Instance.new("UIListLayout")
L.SortOrder = 2
L.HorizontalAlignment = 1
L.Padding = UDim.new(0, 4)
L.Parent = Tab
OpenTab.MouseButton1Click:Connect(function()
for i,v in ipairs(TabsOpenContainer:GetChildren()) do
if v.Name == "OpenTab" then
v.TextColor3 = Color3.fromHex("7A7A84")
end
end
for i,v in ipairs(TabsContainer:GetChildren()) do
v.Visible = false
end
OpenTab.TextColor3 = Color3.fromHex("AFA1FD")
Tab.Visible = true
end)
local TabElements = {}
function TabElements:Info(Title)
local Info = Instance.new("TextLabel")
Info.TextScaled = true
Info.Font = 9
Info.Size = UDim2.new(1, 0, 0, 25)
Info.BackgroundTransparency = 1
Info.Text = Title
Info.TextXAlignment = 0
Info.Name = "Info"
Info.TextColor3 = Color3.fromHex("AFA1FD")
Info.Parent = Tab
end
function TabElements:Button(Title, Cally)
local Button = Instance.new("TextButton")
Button.TextXAlignment = 0
Button.Name = "Button"
Button.TextColor3 = Color3.fromHex("7A7A84")
Button.Text = Title
Button.AutoButtonColor = false
Button.Font = 9
Button.Size = UDim2.new(1, 0, 0, 25)
Button.TextScaled = true
Button.BackgroundColor3 = Color3.fromHex("1D1D27")
Button.BorderSizePixel = 0
Button.Parent = Tab
Instance.new("UICorner", Button).CornerRadius = UDim.new(0, 8)
local ButtonImg = Instance.new("ImageLabel")
ButtonImg.Position = UDim2.new(1, -30, 0, 0)
ButtonImg.Image = "rbxassetid://15808210872"
ButtonImg.Size = UDim2.new(0, 30, 0, 30)
ButtonImg.BackgroundTransparency = 1
ButtonImg.Parent = Button
Instance.new("UICorner", ButtonImg).CornerRadius = UDim.new(0, 8)
Button.MouseButton1Click:Connect(function()
coroutine.wrap(function()
Button.TextColor3 = Color3.fromHex("AFA1FD")
task.wait(1)
Button.TextColor3 = Color3.fromHex("7A7A84")
end)()
pcall(Cally)
end)
end
function TabElements:Toggle(Title, Cally)
local Tog = Instance.new("TextLabel")
Tog.Size = UDim2.new(1, -40, 0, 25)
Tog.BorderSizePixel = 0
Tog.BackgroundColor3 = Color3.fromHex("1D1D27")
Tog.TextXAlignment = 0
Tog.TextColor3 = Color3.fromHex("7A7A84")
Tog.Text = Title
Tog.Font = 9
Tog.TextScaled = true
Tog.Parent = Tab
Instance.new("UICorner", Tog).CornerRadius = UDim.new(0, 8)
local TogButton = Instance.new("ImageButton")
TogButton.ImageTransparency = 1
TogButton.BackgroundTransparency = 0.9
TogButton.Size = UDim2.new(0, 25, 0, 25)
TogButton.Image = "rbxassetid://15808206473"
TogButton.BackgroundColor3 = Color3.fromHex("7A7A84")
TogButton.Position = UDim2.new(1, 10, 0, 0)
TogButton.Parent = Tog
Instance.new("UICorner", TogButton).CornerRadius = UDim.new(0, 8)
local On = false
TogButton.MouseButton1Click:Connect(function()
On = not On
if On then
TogButton.ImageTransparency = 0
Tog.TextColor3 = Color3.fromHex("AFA1FD")
else
TogButton.ImageTransparency = 1
Tog.TextColor3 = Color3.fromHex("7A7A84")
end
pcall(Cally, On)
end)
end
return TabElements
end
return MakeATab
end
return Lib