R

[fuzki lib] zavetui

public
rrixh Apr 15, 2024 Never 63
Clone
Lua zavetui.fuzki_lulaslollipop 645 lines (527 loc) | 25.99 KB
1
local FuzkiLib = {}
2
3
function FuzkiLib:Create(name)
4
name = name or "Name"
5
local InsideFuzki = {}
6
7
local Fuzki = Instance.new("ScreenGui")
8
local MainLib = Instance.new("Frame")
9
local headerLine = Instance.new("Frame")
10
local mainCorner = Instance.new("UICorner")
11
local tabMain = Instance.new("Frame")
12
local tabFrame = Instance.new("Frame")
13
local tabList = Instance.new("UIListLayout")
14
local lineTab = Instance.new("Frame")
15
local title = Instance.new("TextLabel")
16
local elements = Instance.new("Frame")
17
local elementsCorner = Instance.new("UICorner")
18
local elementFolder = Instance.new("Folder")
19
20
Fuzki.Name = "Zavet"
21
Fuzki.Parent = game.CoreGui
22
Fuzki.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
23
24
MainLib.Name = "MainLib"
25
MainLib.Parent = Fuzki
26
MainLib.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
27
MainLib.Position = UDim2.new(0.357499987, 0, 0.162544176, 0)
28
MainLib.Size = UDim2.new(0, 469, 0, 484)
29
30
headerLine.Name = "headerLine"
31
headerLine.Parent = MainLib
32
headerLine.BackgroundColor3 = Color3.fromRGB(190, 190, 190)
33
headerLine.BorderSizePixel = 0
34
headerLine.Position = UDim2.new(0, 0, 0.0909090936, 0)
35
headerLine.Size = UDim2.new(0, 469, 0, 1)
36
37
mainCorner.Name = "mainCorner"
38
mainCorner.Parent = MainLib
39
40
tabMain.Name = "tabMain"
41
tabMain.Parent = MainLib
42
tabMain.BackgroundColor3 = Color3.fromRGB(117, 117, 117)
43
tabMain.BackgroundTransparency = 1.000
44
tabMain.BorderSizePixel = 0
45
tabMain.Position = UDim2.new(0.0362473354, 0, 0.111570247, 0)
46
tabMain.Size = UDim2.new(0, 435, 0, 36)
47
48
tabFrame.Name = "tabFrame"
49
tabFrame.Parent = tabMain
50
tabFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
51
tabFrame.BackgroundTransparency = 1.000
52
tabFrame.Size = UDim2.new(0, 435, 0, 36)
53
54
tabList.Name = "tabList"
55
tabList.Parent = tabFrame
56
tabList.FillDirection = Enum.FillDirection.Horizontal
57
tabList.HorizontalAlignment = Enum.HorizontalAlignment.Right
58
tabList.SortOrder = Enum.SortOrder.LayoutOrder
59
tabList.VerticalAlignment = Enum.VerticalAlignment.Bottom
60
tabList.Padding = UDim.new(0, 1)
61
62
lineTab.Name = "lineTab"
63
lineTab.Parent = tabMain
64
lineTab.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
65
lineTab.BorderSizePixel = 0
66
lineTab.Position = UDim2.new(0, 0, 0.972222209, 0)
67
lineTab.Size = UDim2.new(0, 435, 0, 1)
68
69
local UserInputService = game:GetService("UserInputService")
70
71
local TopBar = MainLib
72
73
local Camera = workspace:WaitForChild("Camera")
74
75
local DragMousePosition
76
local FramePosition
77
local Draggable = false
78
79
local function HWMW_fake_script() -- MainLib.MoveUI
80
local script = Instance.new('LocalScript', MainLib)
81
82
local UIS = game:GetService('UserInputService')
83
84
local frame = script.Parent
85
86
87
88
local dragToggle = nil
89
90
local dragSpeed = 0.25
91
92
local dragStart = nil
93
94
local startPos = nil
95
96
97
98
local function updateInput(input)
99
100
local delta = input.Position - dragStart
101
102
local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
103
104
startPos.Y.Scale, startPos.Y.Offset + delta.Y)
105
106
game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
107
108
end
109
110
111
112
frame.InputBegan:Connect(function(input)
113
114
if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
115
116
dragToggle = true
117
118
dragStart = input.Position
119
120
startPos = frame.Position
121
122
input.Changed:Connect(function()
123
124
if input.UserInputState == Enum.UserInputState.End then
125
126
dragToggle = false
127
128
end
129
130
end)
131
132
end
133
134
end)
135
136
137
138
UIS.InputChanged:Connect(function(input)
139
140
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
141
142
if dragToggle then
143
144
updateInput(input)
145
146
end
147
148
end
149
150
end)
151
end
152
coroutine.wrap(HWMW_fake_script)()
153
154
155
156
title.Name = "title"
157
title.Parent = MainLib
158
title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
159
title.BackgroundTransparency = 1.000
160
title.Position = UDim2.new(0.0362473354, 0, 0, 0)
161
title.Size = UDim2.new(0, 200, 0, 44)
162
title.Font = Enum.Font.GrenzeGotisch
163
title.Text = "Zavet"
164
title.TextColor3 = Color3.fromRGB(212, 212, 212)
165
title.TextSize = 90.000
166
title.TextXAlignment = Enum.TextXAlignment.Left
167
168
elements.Name = "elements"
169
elements.Parent = MainLib
170
elements.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
171
elements.BorderSizePixel = 0
172
elements.ClipsDescendants = true
173
elements.Position = UDim2.new(0.0362473354, 0, 0.198347107, 0)
174
elements.Size = UDim2.new(0, 435, 0, 372)
175
176
elementsCorner.CornerRadius = UDim.new(0, 3)
177
elementsCorner.Name = "elementsCorner"
178
elementsCorner.Parent = elements
179
180
elementFolder.Name = "elementFolder"
181
elementFolder.Parent = elements
182
183
function InsideFuzki:CreateSection(tab)
184
tab = tab or "tab"
185
local tabButton = Instance.new("TextButton")
186
local tabCorner = Instance.new("UICorner")
187
local elementContainer = Instance.new("ScrollingFrame")
188
local elementList = Instance.new("UIListLayout")
189
190
tabButton.Name = "tabButton"..tab
191
tabButton.Parent = tabFrame
192
tabButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
193
tabButton.Position = UDim2.new(0.800000012, 0, 0.194444448, 0)
194
tabButton.Size = UDim2.new(0, 86, 0, 29)
195
tabButton.Font = Enum.Font.GothamSemibold
196
tabButton.TextColor3 = Color3.fromRGB(218, 218, 218)
197
tabButton.TextSize = 14.000
198
tabButton.Text = tab
199
200
tabCorner.CornerRadius = UDim.new(0, 3)
201
tabCorner.Name = "tabCorner"
202
tabCorner.Parent = tabButton
203
204
elementContainer.Name = tab.."elementContainer"
205
elementContainer.Parent = elementFolder
206
elementContainer.Active = true
207
elementContainer.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
208
elementContainer.BackgroundTransparency = 1.000
209
elementContainer.Size = UDim2.new(0, 435, 0, 372)
210
elementContainer.CanvasSize = UDim2.new(0, 0, 15, 0)
211
elementContainer.ScrollBarThickness = 0
212
elementContainer.Visible = false
213
214
elementList.Name = "elementList"
215
elementList.Parent = elementContainer
216
elementList.SortOrder = Enum.SortOrder.LayoutOrder
217
218
tabButton.MouseButton1Click:Connect(function()
219
for i,v in next, elementFolder:GetChildren() do
220
v.Visible = false
221
end
222
for i,v in next, tabFrame:GetChildren() do
223
if v:IsA("TextButton") then
224
v.BackgroundColor3 = Color3.fromRGB(52, 52, 52)
225
end
226
end
227
tabButton.BackgroundColor3 = Color3.fromRGB(40,40,40)
228
elementContainer.Visible = true
229
end)
230
local Items = {}
231
232
function Items:CreateLabel(text)
233
local textLabelFrame = Instance.new("Frame")
234
local TextLabel = Instance.new("TextLabel")
235
local tglLine = Instance.new("Frame")
236
237
textLabelFrame.Name = "textLabelFrame"
238
textLabelFrame.Parent = elementContainer
239
textLabelFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
240
textLabelFrame.BackgroundTransparency = 1.000
241
textLabelFrame.Size = UDim2.new(0, 435, 0, 50)
242
243
TextLabel.Parent = textLabelFrame
244
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
245
TextLabel.BackgroundTransparency = 1.000
246
TextLabel.Position = UDim2.new(0.0390804596, 0, 0, 0)
247
TextLabel.Size = UDim2.new(0, 398, 0, 49)
248
TextLabel.Font = Enum.Font.GothamSemibold
249
TextLabel.Text = text
250
TextLabel.TextColor3 = Color3.fromRGB(212, 212, 212)
251
TextLabel.TextSize = 16.000
252
253
tglLine.Name = "tglLine"
254
tglLine.Parent = textLabelFrame
255
tglLine.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
256
tglLine.BorderSizePixel = 0
257
tglLine.Position = UDim2.new(0.0390804596, 0, 0.980000019, 0)
258
tglLine.Size = UDim2.new(0, 401, 0, 1)
259
end
260
function Items:CreateButton(text, info, callback)
261
text = text or "Button Epic"
262
info = info or "Epic Info"
263
callback = callback or function() end
264
265
local buttonFrame = Instance.new("Frame")
266
local btnLine = Instance.new("Frame")
267
local btnInfo = Instance.new("TextLabel")
268
local TextButton = Instance.new("TextButton")
269
local buttonCorner = Instance.new("UICorner")
270
271
buttonFrame.Name = "buttonFrame"
272
buttonFrame.Parent = elementContainer
273
buttonFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
274
buttonFrame.BackgroundTransparency = 1.000
275
buttonFrame.Size = UDim2.new(0, 435, 0, 50)
276
277
btnLine.Name = "btnLine"
278
btnLine.Parent = buttonFrame
279
btnLine.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
280
btnLine.BorderSizePixel = 0
281
btnLine.Position = UDim2.new(0.0390804596, 0, 0.980000019, 0)
282
btnLine.Size = UDim2.new(0, 401, 0, 1)
283
284
btnInfo.Name = "btnInfo"
285
btnInfo.Parent = buttonFrame
286
btnInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
287
btnInfo.BackgroundTransparency = 1.000
288
btnInfo.Position = UDim2.new(0.0390804596, 0, 0, 0)
289
btnInfo.Size = UDim2.new(0, 210, 0, 49)
290
btnInfo.Font = Enum.Font.GothamSemibold
291
btnInfo.Text = info
292
btnInfo.TextColor3 = Color3.fromRGB(212, 212, 212)
293
btnInfo.TextSize = 16.000
294
btnInfo.TextXAlignment = Enum.TextXAlignment.Left
295
296
TextButton.Parent = buttonFrame
297
TextButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
298
TextButton.BorderSizePixel = 0
299
TextButton.Position = UDim2.new(0.666666687, 0, 0.180000007, 0)
300
TextButton.Size = UDim2.new(0, 128, 0, 30)
301
TextButton.Font = Enum.Font.GothamSemibold
302
TextButton.TextColor3 = Color3.fromRGB(212, 212, 212)
303
TextButton.TextSize = 14.000
304
TextButton.Text = text
305
306
buttonCorner.CornerRadius = UDim.new(0, 3)
307
buttonCorner.Name = "buttonCorner"
308
buttonCorner.Parent = TextButton
309
310
TextButton.MouseButton1Click:Connect(function()
311
callback()
312
end)
313
end
314
315
function Items:CreateToggle(info, callback)
316
toggle = toggle or "Toggle"
317
info = info or "Info"
318
callback = callback or function() end
319
320
local toggleFrame = Instance.new("Frame")
321
local tglLine = Instance.new("Frame")
322
local toggleInfo = Instance.new("TextLabel")
323
local toggle = Instance.new("Frame")
324
local toggleCorner = Instance.new("UICorner")
325
local toggleBtn = Instance.new("TextButton")
326
local togCorner = Instance.new("UICorner")
327
328
toggleFrame.Name = "toggleFrame"
329
toggleFrame.Parent = elementContainer
330
toggleFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
331
toggleFrame.BackgroundTransparency = 1.000
332
toggleFrame.Size = UDim2.new(0, 435, 0, 50)
333
334
tglLine.Name = "tglLine"
335
tglLine.Parent = toggleFrame
336
tglLine.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
337
tglLine.BorderSizePixel = 0
338
tglLine.Position = UDim2.new(0.0390804596, 0, 0.980000019, 0)
339
tglLine.Size = UDim2.new(0, 401, 0, 1)
340
341
toggleInfo.Name = "toggleInfo"
342
toggleInfo.Parent = toggleFrame
343
toggleInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
344
toggleInfo.BackgroundTransparency = 1.000
345
toggleInfo.Position = UDim2.new(0.0390804596, 0, 0, 0)
346
toggleInfo.Size = UDim2.new(0, 210, 0, 49)
347
toggleInfo.Font = Enum.Font.GothamSemibold
348
toggleInfo.Text = info
349
toggleInfo.TextColor3 = Color3.fromRGB(212, 212, 212)
350
toggleInfo.TextSize = 16.000
351
toggleInfo.TextXAlignment = Enum.TextXAlignment.Left
352
353
toggle.Name = "toggle"
354
toggle.Parent = toggleFrame
355
toggle.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
356
toggle.Position = UDim2.new(0.891954064, 0, 0.180000007, 0)
357
toggle.Size = UDim2.new(0, 30, 0, 30)
358
359
toggleCorner.CornerRadius = UDim.new(0, 3)
360
toggleCorner.Name = "toggleCorner"
361
toggleCorner.Parent = toggle
362
363
toggleBtn.Name = "toggleBtn"
364
toggleBtn.Parent = toggle
365
toggleBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
366
toggleBtn.BorderSizePixel = 0
367
toggleBtn.Position = UDim2.new(0.060919337, 0, 0.0666666627, 0)
368
toggleBtn.Size = UDim2.new(0, 26, 0, 26)
369
toggleBtn.Font = Enum.Font.GothamSemibold
370
toggleBtn.Text = ""
371
toggleBtn.TextColor3 = Color3.fromRGB(212, 212, 212)
372
toggleBtn.TextSize = 14.000
373
374
togCorner.CornerRadius = UDim.new(0, 3)
375
togCorner.Name = "togCorner"
376
togCorner.Parent = toggleBtn
377
378
379
local tog = false
380
local ts = game:GetService("TweenService")
381
local tsInfo = TweenInfo.new(0.15, Enum.EasingStyle.Quint, Enum.EasingDirection.In)
382
383
local off = {
384
BackgroundColor3 = Color3.fromRGB(40, 40, 40)
385
}
386
local on = {
387
BackgroundColor3 = Color3.fromRGB(205,201,201)
388
}
389
390
local playon = ts:Create(toggleBtn,tsInfo, on)
391
local playoff = ts:Create(toggleBtn,tsInfo, off)
392
toggleBtn.MouseButton1Click:Connect(function()
393
tog = not tog
394
callback(tog)
395
if tog then
396
playon:Play()
397
else
398
playoff:Play()
399
end
400
end)
401
end
402
function Items:CreateBind(info, first, callback)
403
info = info or "Info"
404
callback = callback or function() end
405
local oldKey = first.Name
406
407
local keybindFrame = Instance.new("Frame")
408
local tglLine = Instance.new("Frame")
409
local bindInf = Instance.new("TextLabel")
410
local keybindBtn = Instance.new("TextButton")
411
local bindCorner = Instance.new("UICorner")
412
413
keybindFrame.Name = "keybindFrame"
414
keybindFrame.Parent = elementContainer
415
keybindFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
416
keybindFrame.BackgroundTransparency = 1.000
417
keybindFrame.Size = UDim2.new(0, 435, 0, 50)
418
419
tglLine.Name = "tglLine"
420
tglLine.Parent = keybindFrame
421
tglLine.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
422
tglLine.BorderSizePixel = 0
423
tglLine.Position = UDim2.new(0.0390804596, 0, 0.980000019, 0)
424
tglLine.Size = UDim2.new(0, 401, 0, 1)
425
426
bindInf.Name = info
427
bindInf.Parent = keybindFrame
428
bindInf.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
429
bindInf.BackgroundTransparency = 1.000
430
bindInf.Position = UDim2.new(0.0390804596, 0, 0, 0)
431
bindInf.Size = UDim2.new(0, 210, 0, 49)
432
bindInf.Font = Enum.Font.GothamSemibold
433
bindInf.Text = "Keybind Info"
434
bindInf.TextColor3 = Color3.fromRGB(212, 212, 212)
435
bindInf.TextSize = 16.000
436
bindInf.TextXAlignment = Enum.TextXAlignment.Left
437
438
keybindBtn.Name = "keybindBtn"
439
keybindBtn.Parent = keybindFrame
440
keybindBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
441
keybindBtn.BorderSizePixel = 0
442
keybindBtn.Position = UDim2.new(0.891954005, 0, 0.180000007, 0)
443
keybindBtn.Size = UDim2.new(0, 30, 0, 30)
444
keybindBtn.Font = Enum.Font.GothamSemibold
445
keybindBtn.Text = oldKey
446
keybindBtn.TextColor3 = Color3.fromRGB(212, 212, 212)
447
keybindBtn.TextSize = 14.000
448
449
bindCorner.CornerRadius = UDim.new(0, 3)
450
bindCorner.Name = "bindCorner"
451
bindCorner.Parent = keybindBtn
452
453
keybindBtn.MouseButton1Click:connect(function(e)
454
keybindBtn.Text = "..."
455
local a, b = game:GetService('UserInputService').InputBegan:wait();
456
if a.KeyCode.Name ~= "Unknown" then
457
keybindBtn.Text = a.KeyCode.Name
458
oldKey = a.KeyCode.Name;
459
end
460
end)
461
462
game:GetService("UserInputService").InputBegan:connect(function(current, ok)
463
if not ok then
464
if current.KeyCode.Name == oldKey then
465
callback()
466
end
467
end
468
end)
469
end
470
function Items:CreateTextBox(info, placeholder, callback)
471
info = info or "Info"
472
placeholder = placeholder or "Type Here"
473
callback = callback or function() end
474
475
local textBoxFrame = Instance.new("Frame")
476
local btnLine = Instance.new("Frame")
477
local textboxInfo = Instance.new("TextLabel")
478
local textBoxout = Instance.new("Frame")
479
local buttonCorner = Instance.new("UICorner")
480
local TextBox = Instance.new("TextBox")
481
482
textBoxFrame.Name = "textBoxFrame"
483
textBoxFrame.Parent = elementContainer
484
textBoxFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
485
textBoxFrame.BackgroundTransparency = 1.000
486
textBoxFrame.Size = UDim2.new(0, 435, 0, 50)
487
488
btnLine.Name = "btnLine"
489
btnLine.Parent = textBoxFrame
490
btnLine.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
491
btnLine.BorderSizePixel = 0
492
btnLine.Position = UDim2.new(0.0390804596, 0, 0.980000019, 0)
493
btnLine.Size = UDim2.new(0, 401, 0, 1)
494
495
textboxInfo.Name = "textboxInfo"
496
textboxInfo.Parent = textBoxFrame
497
textboxInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
498
textboxInfo.BackgroundTransparency = 1.000
499
textboxInfo.Position = UDim2.new(0.0390804596, 0, 0, 0)
500
textboxInfo.Size = UDim2.new(0, 210, 0, 49)
501
textboxInfo.Font = Enum.Font.GothamSemibold
502
textboxInfo.Text = info
503
textboxInfo.TextColor3 = Color3.fromRGB(212, 212, 212)
504
textboxInfo.TextSize = 16.000
505
textboxInfo.TextXAlignment = Enum.TextXAlignment.Left
506
507
textBoxout.Name = "textBoxout"
508
textBoxout.Parent = textBoxFrame
509
textBoxout.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
510
textBoxout.ClipsDescendants = true
511
textBoxout.Position = UDim2.new(0.666666687, 0, 0.180000007, 0)
512
textBoxout.Size = UDim2.new(0, 128, 0, 30)
513
514
buttonCorner.CornerRadius = UDim.new(0, 3)
515
buttonCorner.Name = "buttonCorner"
516
buttonCorner.Parent = textBoxout
517
518
TextBox.Parent = textBoxout
519
TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
520
TextBox.BackgroundTransparency = 1.000
521
TextBox.Size = UDim2.new(0, 128, 0, 30)
522
TextBox.Font = Enum.Font.GothamSemibold
523
TextBox.PlaceholderColor3 = Color3.fromRGB(212, 212, 212)
524
TextBox.PlaceholderText = placeholder
525
TextBox.Text = ""
526
TextBox.TextColor3 = Color3.fromRGB(212, 212, 212)
527
TextBox.TextSize = 14.000
528
529
TextBox.FocusLost:Connect(function(EnterPressed)
530
if not EnterPressed then return end
531
callback(TextBox.Text)
532
TextBox.Text = ""
533
end)
534
end
535
function Items:CreateSlider(minvalue, maxvalue, info, callback)
536
minvalue = minvalue or 0
537
maxvalue = maxvalue or 500
538
callback = callback or function() end
539
540
local sliderFrame = Instance.new("Frame")
541
local btnLine = Instance.new("Frame")
542
local sliderInfo = Instance.new("TextLabel")
543
local sliderBtn = Instance.new("TextButton")
544
local sliderCorner = Instance.new("UICorner")
545
local Frame = Instance.new("Frame")
546
local buttonCorner = Instance.new("UICorner")
547
local sliderVal = Instance.new("TextLabel")
548
549
550
sliderFrame.Name = "sliderFrame"
551
sliderFrame.Parent = elementContainer
552
sliderFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
553
sliderFrame.BackgroundTransparency = 1.000
554
sliderFrame.Size = UDim2.new(0, 435, 0, 50)
555
556
btnLine.Name = "btnLine"
557
btnLine.Parent = sliderFrame
558
btnLine.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
559
btnLine.BorderSizePixel = 0
560
btnLine.Position = UDim2.new(0.0390804596, 0, 0.980000019, 0)
561
btnLine.Size = UDim2.new(0, 401, 0, 1)
562
563
sliderInfo.Name = "sliderInfo"
564
sliderInfo.Parent = sliderFrame
565
sliderInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
566
sliderInfo.BackgroundTransparency = 1.000
567
sliderInfo.Position = UDim2.new(0.0390804596, 0, 0, 0)
568
sliderInfo.Size = UDim2.new(0, 200, 0, 49)
569
sliderInfo.Font = Enum.Font.GothamSemibold
570
sliderInfo.Text = info
571
sliderInfo.TextColor3 = Color3.fromRGB(212, 212, 212)
572
sliderInfo.TextSize = 16.000
573
sliderInfo.TextXAlignment = Enum.TextXAlignment.Left
574
575
sliderBtn.Name = "sliderBtn"
576
sliderBtn.Parent = sliderFrame
577
sliderBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
578
sliderBtn.BorderSizePixel = 0
579
sliderBtn.Position = UDim2.new(0.666666687, 0, 0.379999995, 0)
580
sliderBtn.Size = UDim2.new(0, 128, 0, 10)
581
sliderBtn.Font = Enum.Font.GothamSemibold
582
sliderBtn.Text = ""
583
sliderBtn.TextColor3 = Color3.fromRGB(212, 212, 212)
584
sliderBtn.TextSize = 14.000
585
586
sliderCorner.CornerRadius = UDim.new(0, 3)
587
sliderCorner.Name = "sliderCorner"
588
sliderCorner.Parent = sliderBtn
589
590
Frame.Parent = sliderBtn
591
Frame.BackgroundColor3 = Color3.fromRGB(212, 212, 212)
592
Frame.Size = UDim2.new(0, 15, 0, 10)
593
594
buttonCorner.CornerRadius = UDim.new(0, 3)
595
buttonCorner.Name = "buttonCorner"
596
buttonCorner.Parent = Frame
597
598
sliderVal.Name = "sliderVal"
599
sliderVal.Parent = sliderFrame
600
sliderVal.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
601
sliderVal.BackgroundTransparency = 1.000
602
sliderVal.Position = UDim2.new(0.459770113, 0, -0.0199999996, 0)
603
sliderVal.Size = UDim2.new(0, 80, 0, 49)
604
sliderVal.Font = Enum.Font.GothamSemibold
605
sliderVal.Text = minvalue.."/"..maxvalue
606
sliderVal.TextColor3 = Color3.fromRGB(212, 212, 212)
607
sliderVal.TextSize = 16.000
608
sliderVal.TextXAlignment = Enum.TextXAlignment.Right
609
610
local mouse = game.Players.LocalPlayer:GetMouse()
611
local uis = game:GetService("UserInputService")
612
local Value;
613
614
sliderBtn.MouseButton1Down:Connect(function()
615
Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 128) * Frame.AbsoluteSize.X) + tonumber(minvalue)) or 0
616
pcall(function()
617
callback(Value)
618
end)
619
Frame.Size = UDim2.new(0, math.clamp(mouse.X - Frame.AbsolutePosition.X, 0, 128), 0, 10)
620
moveconnection = mouse.Move:Connect(function()
621
sliderVal.Text = Value.."/"..maxvalue
622
Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 128) * Frame.AbsoluteSize.X) + tonumber(minvalue))
623
pcall(function()
624
callback(Value)
625
end)
626
Frame.Size = UDim2.new(0, math.clamp(mouse.X - Frame.AbsolutePosition.X, 0, 128), 0, 10)
627
end)
628
releaseconnection = uis.InputEnded:Connect(function(Mouse)
629
if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
630
Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 128) * Frame.AbsoluteSize.X) + tonumber(minvalue))
631
pcall(function()
632
callback(Value)
633
end)
634
Frame.Size = UDim2.new(0, math.clamp(mouse.X - Frame.AbsolutePosition.X, 0, 128), 0, 10)
635
moveconnection:Disconnect()
636
releaseconnection:Disconnect()
637
end
638
end)
639
end)
640
end
641
return Items
642
end
643
return InsideFuzki
644
end
645
return FuzkiLib