View difference between Paste ID: r3yzm4Pp and nQ9XFyEE
SHOW: | | - or go back to the newest paste.
1
local PolarLibrary = {windows = 0}
2
local dragger = {}; 
3
local resizer = {};
4
5
do
6
	local mouse = game:GetService("Players").LocalPlayer:GetMouse();
7
	local inputService = game:GetService('UserInputService');
8
	local heartbeat = game:GetService("RunService").Heartbeat;
9
	-- // credits to Ririchi / Inori for this cute drag function :)
10
	function dragger.new(frame)
11
	    local s, event = pcall(function()
12
	    	return frame.MouseEnter
13
	    end)
14
15
	    if s then
16
	    	frame.Active = true;
17
18
	    	event:connect(function()
19
	    		local input = frame.InputBegan:connect(function(key)
20
	    			if key.UserInputType == Enum.UserInputType.MouseButton1 then
21
	    				local objectPosition = Vector2.new(mouse.X - frame.AbsolutePosition.X, mouse.Y - frame.AbsolutePosition.Y);
22
	    				while heartbeat:wait() and inputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
23
	    					frame:TweenPosition(UDim2.new(0, mouse.X - objectPosition.X + (frame.Size.X.Offset * frame.AnchorPoint.X), 0, mouse.Y - objectPosition.Y + (frame.Size.Y.Offset * frame.AnchorPoint.Y)), 'Out', 'Quad', 0.1, true);
24
	    				end
25
	    			end
26
	    		end)
27
28
	    		local leave;
29
	    		leave = frame.MouseLeave:connect(function()
30
	    			input:disconnect();
31
	    			leave:disconnect();
32
	    		end)
33
	    	end)
34
	    end
35
	end
36
	
37
	function resizer.new(p, s)
38
		p:GetPropertyChangedSignal('AbsoluteSize'):connect(function()
39
			s.Size = UDim2.new(s.Size.X.Scale, s.Size.X.Offset, s.Size.Y.Scale, p.AbsoluteSize.Y);
40
		end)
41
	end
42
end
43
local UserInputService = game:GetService("UserInputService")
44
local TweenService = game:GetService("TweenService")
45
local Library = {
46
    Colors = {
47
        Body = Color3.fromRGB(35, 35, 35);
48
        Section = Color3.fromRGB(40, 40, 40);
49
        CheckboxChecked = Color3.fromRGB(255, 255, 255);
50
        CheckboxUnchecked = Color3.fromRGB(50, 50, 50);
51
        Button = Color3.fromRGB(45, 45, 45);
52
        ColorPickerMarker = Color3.fromRGB(150, 150, 150);
53
        SliderBackground = Color3.fromRGB(50, 50, 50);
54
        Slider = Color3.fromRGB(255, 255, 255);
55
        Dropdown = Color3.fromRGB(45, 45, 45);
56
        DropdownButton = Color3.fromRGB(35, 35, 35);
57
        DropdownButtonHover = Color3.fromRGB(45, 45, 45);
58
        Underline = Color3.fromRGB(255, 92, 92);
59
        Border = Color3.fromRGB(0, 0, 0);
60
        Text = Color3.fromRGB(255, 255, 255);
61
        PlaceholderText = Color3.fromRGB(255, 255, 255);
62
    };
63
64
    Settings = {
65
        MainTextSize = 15;
66
        MainTweenTime = 1;
67
        RippleTweenTime = 1;
68
        CheckboxTweenTime = 0.5;
69
        ColorPickerTweenTime = 0.5;
70
        DropdownTweenTime = 0.5;
71
        DropdownButtonColorHoverTweenTime = 0.5;
72
        MainTextFont = Enum.Font.Code;
73
        UIToggleKey = Enum.KeyCode.RightControl;
74
        TweenEasingStyle = Enum.EasingStyle.Quart;
75
    }
76
}
77
default = {
78
    topcolor       = Color3.fromRGB(30, 30, 30);
79
    titlecolor     = Color3.fromRGB(255, 255, 255);
80
    
81
    underlinecolor = Color3.fromRGB(0, 255, 140);
82
    bgcolor        = Color3.fromRGB(35, 35, 35);
83
    boxcolor       = Color3.fromRGB(35, 35, 35);
84
    btncolor       = Color3.fromRGB(25, 25, 25);
85
    dropcolor      = Color3.fromRGB(25, 25, 25);
86
    sectncolor     = Color3.fromRGB(25, 25, 25);
87
    bordercolor    = Color3.fromRGB(60, 60, 60);
88
89
    font           = Enum.Font.SourceSans;
90
    titlefont      = Enum.Font.Code;
91
92
    fontsize       = 17;
93
    titlesize      = 18;
94
95
    textstroke     = 1;
96
    titlestroke    = 1;
97
98
    strokecolor    = Color3.fromRGB(0, 0, 0);
99
100
    textcolor      = Color3.fromRGB(255, 255, 255);
101
    titletextcolor = Color3.fromRGB(255, 255, 255);
102
103
    placeholdercolor = Color3.fromRGB(255, 255, 255);
104
    titlestrokecolor = Color3.fromRGB(0, 0, 0);
105
}
106
107
options = setmetatable({}, {__index = default})
108
function RippleEffect(button)
109
    spawn(function()
110
        local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
111
        local RippleHolder = Instance.new("Frame")
112
        local RippleEffect = Instance.new("ImageLabel")
113
114
        RippleHolder.Name = "RippleHolder"
115
        RippleHolder.Parent = button
116
        RippleHolder.BackgroundColor3 = Library.Colors.Border
117
        RippleHolder.BackgroundTransparency = 1
118
        RippleHolder.BorderColor3 = Library.Colors.Border
119
        RippleHolder.BorderSizePixel = 0
120
        RippleHolder.ClipsDescendants = true
121
        RippleHolder.Size = UDim2.new(0, 157, 0, 31)
122
123
        RippleEffect.Name = "RippleEffect"
124
        RippleEffect.Parent = RippleHolder
125
        RippleEffect.BackgroundTransparency = 1
126
        RippleEffect.BorderSizePixel = 0
127
        RippleEffect.Image = "rbxassetid://2708891598"
128
        RippleEffect.ImageColor3 = Color3.fromRGB(0,0,0)
129
        RippleEffect.ImageTransparency = 0.8
130
        RippleEffect.ScaleType = Enum.ScaleType.Fit
131
132
        RippleEffect.Position = UDim2.new((Mouse.X - RippleEffect.AbsolutePosition.X) / button.AbsoluteSize.X, 0, (Mouse.Y - RippleEffect.AbsolutePosition.Y) / button.AbsoluteSize.Y, 0)
133
        TweenService:Create(RippleEffect, TweenInfo.new(Library.Settings.RippleTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {Position = UDim2.new(-5.5, 0, -5.5, 0), Size = UDim2.new(12, 0, 12, 0)}):Play()
134
135
        wait(0.5)
136
        TweenService:Create(RippleEffect, TweenInfo.new(Library.Settings.MainTweenTime, Library.Settings.TweenEasingStyle, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play()
137
138
        wait(1)
139
        RippleHolder:Destroy()
140
    end)
141
end
142
function PolarLibrary:CreateWindow(name)
143
    self.windows = self.windows + 1;
144
    local ScreenGui = Instance.new("ScreenGui")
145
    local Titleee = Instance.new("ImageLabel")
146
    local MainFrame = Instance.new("Frame")
147
    local UIListLayout = Instance.new("UIListLayout")
148
    local Titletext = Instance.new("TextLabel")
149
    ScreenGui.Parent = game.CoreGui
150
    
151
    Titleee.Name = "Titleee"
152
    Titleee.Parent = ScreenGui
153
    Titleee.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
154
    Titleee.BackgroundTransparency = 1
155
    Titleee.Position =UDim2.new(0, (15 + ((200 * self.windows) - 200)), 0, 15)
156
    Titleee.Size = UDim2.new(0, 173, 0, 38)
157
    Titleee.Image = "rbxassetid://3570695787"
158
    Titleee.ImageColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
159
    Titleee.ScaleType = Enum.ScaleType.Slice
160
    Titleee.SliceCenter = Rect.new(100, 100, 100, 200)
161
    Titleee.SliceScale = 0.06
162
    dragger.new(Titleee)
163
    MainFrame.Name = "MainFrame"
164
    MainFrame.Parent = Titleee
165
    MainFrame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
166
    MainFrame.BorderSizePixel = 0
167
    MainFrame.Position = UDim2.new(0, 0, 0.973683774, 0)
168
    MainFrame.Size = UDim2.new(0, 173, 0, 0)
169
    local function getSize()
170
		local ySize = 0;
171
		for i, object in next, MainFrame:GetChildren() do
172
			if (not object:IsA('UIListLayout')) and (not object:IsA('UIPadding')) then
173
				ySize = ySize + object.AbsoluteSize.Y
174
			end
175
		end
176
		return UDim2.new(1, 0, 0, ySize + 10)
177
	end
178
179
	function Resize(tween, change)
180
		local size = change or getSize()
181
		MainFrame.ClipsDescendants = true;
182
		
183
		if tween then
184
			MainFrame:TweenSize(size, "Out", "Sine", 0.5, true)
185
		else
186
			MainFrame.Size = size
187
		end
188
	end
189
    UIListLayout.Parent = MainFrame
190
    UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
191
    UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
192
    Titletext.Name = "Titletext"
193
    Titletext.Parent = Titleee
194
    Titletext.BackgroundColor3 = Color3.new(1, 1, 1)
195
    Titletext.BackgroundTransparency = 1
196
    Titletext.Size = UDim2.new(0, 173, 0, 37)
197
    Titletext.Font = Enum.Font.GothamBold
198
    Titletext.Text = name
199
    Titletext.TextColor3 = Color3.new(1, 1, 1)
200
    Titletext.TextSize = 18
201
    game:GetService('UserInputService').InputBegan:connect(function(key, gpe)
202
        if key.KeyCode == Enum.KeyCode.RightShift then
203
            if Titleee.Visible == true then Titleee.Visible = false elseif Titleee.Visible == false then Titleee.Visible = true end
204
205
        end
206
    end)
207
    local RealLibrary = {}
208
    function RealLibrary:Section(name)
209
  
210
        local Section = Instance.new("Frame")
211
        local Sectiontext = Instance.new("TextLabel")
212
        local spacer = Instance.new("Frame")
213
        Section.Name = "Section"
214
        Section.Parent = MainFrame
215
        Section.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
216
        Section.BorderSizePixel = 0
217
        Section.Size = UDim2.new(0, 173, 0, 39)
218
219
        Sectiontext.Name = "Sectiontext"
220
        Sectiontext.Parent = Section
221
        Sectiontext.BackgroundColor3 = Color3.new(1, 1, 1)
222
        Sectiontext.BackgroundTransparency = 1
223
        Sectiontext.Size = UDim2.new(0, 173, 0, 37)
224
        Sectiontext.Font = Enum.Font.GothamBold
225
        Sectiontext.Text = name
226
        Sectiontext.TextColor3 = Color3.new(1, 1, 1)
227
        Sectiontext.TextSize = 18
228
229
        spacer.Name = "spacer"
230
        spacer.Parent = MainFrame
231
        spacer.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
232
        spacer.BorderSizePixel = 0
233
        spacer.Position = UDim2.new(0.00289017335, 0, 0.256578952, 0)
234
        spacer.Size = UDim2.new(0, 172, 0, 5)
235
        Resize()
236
    end
237
    function RealLibrary:Button(name, action)
238
        local TextLabel = Instance.new("TextLabel")
239
        local TextButton = Instance.new("TextButton")
240
        local spacer = Instance.new("Frame")
241
        local TextButton_Roundify_3px = Instance.new("ImageLabel")
242
        TextButton.Parent = MainFrame
243
        TextButton.BackgroundColor3 = Color3.new(0.788235, 0.619608, 0.156863)
244
        TextButton.BackgroundTransparency = 1
245
        TextButton.BorderSizePixel = 0
246-
        TextButton.Position = UDim2.new(0.0491329469, 0, 0.16858238, 0)
246+
        TextButton.Position = UDim2.new(0.0491329469, 0, 0.2, 0)
247
        TextButton.Size = UDim2.new(0, 156, 0, 31)
248
        TextButton.Font = Enum.Font.GothamBold
249
        TextButton.Text = "ButtonTest"
250
        TextButton.TextColor3 = Color3.new(0, 0, 0)
251
        TextButton.TextSize = 17
252
253
        TextButton_Roundify_3px.Name = "TextButton_Roundify_3px"
254
        TextButton_Roundify_3px.Parent = TextButton
255
        TextButton_Roundify_3px.Active = true
256
        TextButton_Roundify_3px.AnchorPoint = Vector2.new(0.5, 0.5)
257
        TextButton_Roundify_3px.BackgroundColor3 = Color3.new(1, 1, 1)
258
        TextButton_Roundify_3px.BackgroundTransparency = 1
259-
        TextButton_Roundify_3px.Position = UDim2.new(0.5, 0, 0.8, 0)
259+
        TextButton_Roundify_3px.Position = UDim2.new(0.5, 0, 0.7, 0)
260
        TextButton_Roundify_3px.Selectable = true
261
        TextButton_Roundify_3px.Size = UDim2.new(1, 0, 1, 0)
262
        TextButton_Roundify_3px.Image = "rbxassetid://3570695787"
263
        TextButton_Roundify_3px.ImageColor3 = Color3.new(0.788235, 0.619608, 0.156863)
264
        TextButton_Roundify_3px.ScaleType = Enum.ScaleType.Slice
265
        TextButton_Roundify_3px.SliceCenter = Rect.new(100, 100, 100, 100)
266
        TextButton_Roundify_3px.SliceScale = 0.06
267
        TextLabel.Parent = TextButton_Roundify_3px
268
        TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
269
        TextLabel.BackgroundTransparency = 1
270
        TextLabel.Size = UDim2.new(0, 157, 0, 31)
271
        TextLabel.Font = Enum.Font.GothamBold
272
        TextLabel.Text = name
273
        TextLabel.TextColor3 = Color3.new(0, 0, 0)
274
        TextLabel.TextSize = 17
275
        TextButton.MouseButton1Down:connect(function()
276
        action()
277
        RippleEffect(TextButton)
278
        end)
279
        spacer.Name = "spacer"
280
        spacer.Parent = MainFrame
281
        spacer.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
282
        spacer.BorderSizePixel = 0
283
        spacer.Position = UDim2.new(0.0028901733)
284
        spacer.Size = UDim2.new(0, 172, 0, 5)
285
        Resize()
286
        
287
    end
288
    function RealLibrary:Toggle(name, action)
289
        local ToggleHolder = Instance.new("Frame")
290
        local TextLabel_2 = Instance.new("TextLabel")
291
        local TextButton_2 = Instance.new("TextButton")
292
        local TextButton_Roundify_3px = Instance.new("ImageLabel")
293
        ToggleHolder.Name = "ToggleHolder"
294
        ToggleHolder.Parent = MainFrame
295
        ToggleHolder.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
296
        ToggleHolder.BorderSizePixel = 0
297
        ToggleHolder.Position = UDim2.new(0.00289017335, 0, 0.306513399, 0)
298
        ToggleHolder.Size = UDim2.new(0, 163, 0, 31)
299
300
        TextLabel_2.Parent = ToggleHolder
301
        TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
302
        TextLabel_2.BackgroundTransparency = 1
303
        TextLabel_2.Position = UDim2.new(-0.00195699371, 0, 0.0967741907, 0)
304
        TextLabel_2.Size = UDim2.new(0, 133, 0, 25)
305
        TextLabel_2.Font = Enum.Font.GothamSemibold
306
        TextLabel_2.Text = " "..name
307
        TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
308
        TextLabel_2.TextSize = 17
309
        TextLabel_2.TextXAlignment = Enum.TextXAlignment.Left
310
        TextButton_2.AutoButtonColor = false
311
        TextButton_2.Parent = ToggleHolder
312
        TextButton_2.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
313
        --TextButton_2.BackgroundTransparency = 1
314
       -- TextButton_2.BorderColor3 = Color3.new(1, 1, 1)
315
     --   TextButton_2.BorderSizePixel = 2
316
     TextButton_2.BorderSizePixel = false
317
        TextButton_2.Position = UDim2.new(0.849711001, 0, 0.0967741907, 0)
318
        TextButton_2.Size = UDim2.new(0, 25, 0, 25)
319
        TextButton_2.Font = Enum.Font.SourceSans
320
        TextButton_2.Text = ""
321
        TextButton_2.TextColor3 = Color3.new(1, 1, 1)
322
        TextButton_2.TextSize = 14
323
        TextButton_Roundify_3px.Name = "TextButton_Roundify_3px"
324
        TextButton_Roundify_3px.Parent = TextButton_2
325
        TextButton_Roundify_3px.Active = true
326
        TextButton_Roundify_3px.AnchorPoint = Vector2.new(0.5, 0.5)
327
        TextButton_Roundify_3px.BackgroundColor3 = Color3.new(1, 1, 1)
328
        TextButton_Roundify_3px.BackgroundTransparency = 1
329
        TextButton_Roundify_3px.Position = UDim2.new(0.5, 0, 0.5, 0)
330
        TextButton_Roundify_3px.Selectable = true
331
        TextButton_Roundify_3px.Size = UDim2.new(1, 0, 1, 0)
332
        TextButton_Roundify_3px.Image = "rbxassetid://3570695787"
333
        TextButton_Roundify_3px.ImageColor3 = Color3.fromRGB(201, 158, 40)
334
        TextButton_Roundify_3px.ScaleType = Enum.ScaleType.Slice
335
        TextButton_Roundify_3px.SliceCenter = Rect.new(100, 100, 100, 100)
336
        TextButton_Roundify_3px.ImageTransparency = 1
337
        TextButton_Roundify_3px.SliceScale = 0.03
338
        local Enabled = false
339
        TextButton_2.MouseButton1Down:connect(function()
340
            Enabled = not Enabled
341
        
342
            if Enabled then
343
                TweenService:Create(TextButton_Roundify_3px, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 0}):Play()
344
               -- TextButton_Roundify_3px.ImageColor3 = Color3.fromRGB(201, 158, 40)
345
            elseif not Enabled then
346
                TweenService:Create(TextButton_Roundify_3px, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play()
347
348
            end
349
          
350
            action(Enabled)
351
        end)
352
        local spacer = Instance.new("Frame")
353
        spacer.Name = "spacer"
354
        spacer.Parent = MainFrame
355
        spacer.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
356
        spacer.BorderSizePixel = 0
357
        spacer.Position = UDim2.new(0.0028901733)
358
        spacer.Size = UDim2.new(0, 172, 0, 5)
359
        Resize()
360
    end
361
    function RealLibrary:Slider(name,minimumvalue, maximumvalue, startvalue, precisevalue, action)
362
        local UserInputService = game:GetService("UserInputService")
363
local TweenService = game:GetService("TweenService")
364
        local SliderHolder = Instance.new("Frame")
365
local TextLabel_3 = Instance.new("TextLabel")
366
local Frame = Instance.new("ImageLabel")
367
local Frame_2 = Instance.new("ImageLabel")
368
local TextLabel_4 = Instance.new("TextLabel")
369
local Dragging = false
370
local PreciseSliderValue = precisevalue
371
        SliderHolder.Name = "SliderHolder"
372
SliderHolder.Parent = MainFrame
373
SliderHolder.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
374
SliderHolder.BorderSizePixel = 0
375
SliderHolder.Position = UDim2.new(0.00289017335, 0, 0.444444448, 0)
376
SliderHolder.Size = UDim2.new(0, 172, 0, 32)
377
378
TextLabel_3.Parent = SliderHolder
379
TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
380
TextLabel_3.BackgroundTransparency = 1
381
TextLabel_3.Position = UDim2.new(0.0465116277, 0, 0, 0)
382
TextLabel_3.Size = UDim2.new(0, 83, 0, 18)
383
TextLabel_3.Font = Enum.Font.GothamSemibold
384
TextLabel_3.Text = name
385
TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
386
TextLabel_3.TextSize = 14
387
TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
388
389
Frame.Name = "Frame2"
390
Frame.Parent = SliderHolder
391
Frame.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
392
Frame.BackgroundTransparency = 1
393
Frame.Position = UDim2.new(0.0465116277, 0, 0.5625, 0)
394
Frame.Size = UDim2.new(0, 157, 0, 6)
395
Frame.Image = "rbxassetid://3570695787"
396
Frame.ImageColor3 = Color3.new(0.137255, 0.137255, 0.137255)
397
Frame.ScaleType = Enum.ScaleType.Slice
398
Frame.SliceCenter = Rect.new(100, 100, 100, 100)
399
Frame.SliceScale = 0.05
400
Frame_2.Name = "Frame"
401
Frame_2.Parent = Frame
402
Frame_2.BackgroundColor3 = Color3.new(0.788235, 0.619608, 0.156863)
403
Frame_2.BackgroundTransparency = 1
404
Frame_2.Image = "rbxassetid://3570695787"
405
Frame_2.ImageColor3 = Color3.new(0.788235, 0.619608, 0.156863)
406
Frame_2.ScaleType = Enum.ScaleType.Slice
407
Frame_2.SliceCenter = Rect.new(100, 100, 100, 100)
408
Frame_2.SliceScale = 0.05
409
TextLabel_4.Parent = SliderHolder
410
TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
411
TextLabel_4.BackgroundTransparency = 1
412
TextLabel_4.Position = UDim2.new(0.604651153, 0, 0.09375, 0)
413
TextLabel_4.Size = UDim2.new(0, 61, 0, 12)
414
TextLabel_4.Font = Enum.Font.GothamSemibold
415
TextLabel_4.Text = tostring(startvalue or PreciseSliderValue and tonumber(string.format("%.2f", startvalue)))
416
TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
417
TextLabel_4.TextSize = 14
418
Frame_2.Size = UDim2.new(((startvalue or minimumvalue) - minimumvalue) / (maximumvalue - minimumvalue), 0, 0, 5)
419
local function Sliding(input)
420
    
421
    local Pos = UDim2.new(math.clamp((input.Position.X - Frame.AbsolutePosition.X) / Frame.AbsoluteSize.X, 0, 1), 0, 1, 0)
422
    Frame_2.Size = Pos
423
    TweenService:Create(Frame_2, TweenInfo.new(0.10, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Size = Pos}):Play()
424
    
425
    local NonSliderPreciseValue = math.floor(((Pos.X.Scale * maximumvalue) / maximumvalue) * (maximumvalue - minimumvalue) + minimumvalue)
426
    local SliderPreciseValue = ((Pos.X.Scale * maximumvalue) / maximumvalue) * (maximumvalue - minimumvalue) + minimumvalue
427
428
    local Value = (PreciseSliderValue and SliderPreciseValue or NonSliderPreciseValue)
429
    Value = tonumber(string.format("%.2f", Value))
430
431
    TextLabel_4.Text = tostring(Value)
432
    action(Value)
433
end;
434
435
Frame_2.InputBegan:Connect(function(input)
436
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
437
        Dragging = true
438
    end
439
    local wow = 1
440
441
    if wow < 0 then Frame_2.Size =UDim2.new(0, 3,0, 6)  end
442
end)
443
444
445
Frame_2.InputEnded:Connect(function(input)
446
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
447
        Dragging = false
448
    end
449
end)
450
451
Frame_2.InputBegan:Connect(function(input)
452
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
453
        Sliding(input)
454
    end
455
end)
456
457
UserInputService.InputChanged:Connect(function(input)
458
    if Dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
459
        Sliding(input)
460
    end
461
 
462
463
end)
464
local spacer = Instance.new("Frame")
465
spacer.Name = "spacer"
466
spacer.Parent = MainFrame
467
spacer.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
468
spacer.BorderSizePixel = 0
469
spacer.Position = UDim2.new(0.0028901733)
470
spacer.Size = UDim2.new(0, 172, 0, 5)
471
Resize()
472
    end
473
    function RealLibrary:TextBox(name, callback)
474
        local TextBox = Instance.new("TextBox")
475
        TextBox.Parent = MainFrame
476
TextBox.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
477
TextBox.BorderSizePixel = 0
478
TextBox.Position = UDim2.new(0.0549132936, 0, 0.586206913, 0)
479
TextBox.Size = UDim2.new(0, 154, 0, 29)
480
TextBox.Font = Enum.Font.GothamBold
481
TextBox.Text = name
482
TextBox.TextColor3 = Color3.new(0.454902, 0.454902, 0.454902)
483
TextBox.TextSize = 17
484
TextBox.FocusLost:connect(function(...)
485
    callback(TextBox, ...)
486
end)
487
local spacer = Instance.new("Frame")
488
spacer.Name = "spacer"
489
spacer.Parent = MainFrame
490
spacer.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
491
spacer.BorderSizePixel = 0
492
spacer.Position = UDim2.new(0.0028901733)
493
spacer.Size = UDim2.new(0, 172, 0, 5)
494
Resize()
495
    end
496
    return RealLibrary;
497
end
498
return PolarLibrary;