-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathOrionRamke.lua
More file actions
835 lines (716 loc) Β· 42.2 KB
/
OrionRamke.lua
File metadata and controls
835 lines (716 loc) Β· 42.2 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
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
local Orion = {}
function Orion:CreateOrion(orionName)
orionName = orionName or "Orion"
local isClosed = false
local ScreenGui = Instance.new("ScreenGui")
local MainWhiteFrame = Instance.new("Frame")
local mainCorner = Instance.new("UICorner")
local MainWhiteFrame_2 = Instance.new("Frame")
local mainCorner_2 = Instance.new("UICorner")
local tabFrame = Instance.new("Frame")
local tabList = Instance.new("UIListLayout")
local tabPadd = Instance.new("UIPadding")
local header = Instance.new("Frame")
local mainCorner_4 = Instance.new("UICorner")
local libTitle = Instance.new("TextLabel")
local closeLib = Instance.new("ImageButton")
local elementContainer = Instance.new("Frame")
local mainCorner_5 = Instance.new("UICorner")
local mainList = Instance.new("UIListLayout")
local pagesFolder = Instance.new("Folder")
local UserInputService = game:GetService("UserInputService")
local TopBar = header
local Camera = workspace:WaitForChild("Camera")
local DragMousePosition
local FramePosition
local Draggable = false
TopBar.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
Draggable = true
DragMousePosition = Vector2.new(input.Position.X, input.Position.Y)
FramePosition = Vector2.new(MainWhiteFrame.Position.X.Scale, MainWhiteFrame.Position.Y.Scale)
end
end)
UserInputService.InputChanged:Connect(function(input)
if Draggable == true then
local NewPosition = FramePosition + ((Vector2.new(input.Position.X, input.Position.Y) - DragMousePosition) / Camera.ViewportSize)
MainWhiteFrame.Position = UDim2.new(NewPosition.X, 0, NewPosition.Y, 0)
end
end)
UserInputService.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
Draggable = false
end
end)
ScreenGui.Parent = game.CoreGui
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
MainWhiteFrame.Name = "MainWhiteFrame"
MainWhiteFrame.Parent = ScreenGui
MainWhiteFrame.BackgroundColor3 = Color3.fromRGB(139, 0, 23)
MainWhiteFrame.BorderSizePixel = 0
MainWhiteFrame.ClipsDescendants = true
MainWhiteFrame.Position = UDim2.new(0.236969739, 0, 0.360436916, 0)
MainWhiteFrame.Size = UDim2.new(0, 528, 0, 310)
mainCorner.CornerRadius = UDim.new(0, 3)
mainCorner.Name = "mainCorner"
mainCorner.Parent = MainWhiteFrame
MainWhiteFrame_2.Name = "MainWhiteFrame"
MainWhiteFrame_2.Parent = MainWhiteFrame
MainWhiteFrame_2.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
MainWhiteFrame_2.BorderSizePixel = 0
MainWhiteFrame_2.ClipsDescendants = true
MainWhiteFrame_2.Position = UDim2.new(0.0113636367, 0, 0, 0)
MainWhiteFrame_2.Size = UDim2.new(0, 525, 0, 310)
mainCorner_2.CornerRadius = UDim.new(0, 3)
mainCorner_2.Name = "mainCorner"
mainCorner_2.Parent = MainWhiteFrame_2
tabFrame.Name = "tabFrame"
tabFrame.Parent = MainWhiteFrame_2
tabFrame.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
tabFrame.BorderColor3 = Color3.fromRGB(53, 53, 53)
tabFrame.ClipsDescendants = true
tabFrame.Size = UDim2.new(0, 100, 0, 309)
tabList.Name = "tabList"
tabList.Parent = tabFrame
tabList.HorizontalAlignment = Enum.HorizontalAlignment.Right
tabList.SortOrder = Enum.SortOrder.LayoutOrder
tabList.Padding = UDim.new(0, 2)
tabPadd.Name = "tabPadd"
tabPadd.Parent = tabFrame
tabPadd.PaddingRight = UDim.new(0, 2)
tabPadd.PaddingTop = UDim.new(0, 5)
header.Name = "header"
header.Parent = MainWhiteFrame_2
header.BackgroundColor3 = Color3.fromRGB(181, 1, 31)
header.Position = UDim2.new(0.207619041, 0, 0.0258064512, 0)
header.Size = UDim2.new(0, 408, 0, 43)
mainCorner_4.CornerRadius = UDim.new(0, 3)
mainCorner_4.Name = "mainCorner"
mainCorner_4.Parent = header
libTitle.Name = "libTitle"
libTitle.Parent = header
libTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
libTitle.BackgroundTransparency = 1.000
libTitle.Position = UDim2.new(0.0294117648, 0, 0, 0)
libTitle.Size = UDim2.new(0, 343, 0, 43)
libTitle.Font = Enum.Font.GothamSemibold
libTitle.Text = orionName
libTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
libTitle.TextSize = 18.000
libTitle.TextXAlignment = Enum.TextXAlignment.Left
closeLib.Name = "closeLib"
closeLib.Parent = header
closeLib.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
closeLib.BackgroundTransparency = 1.000
closeLib.Position = UDim2.new(0.91911763, 0, 0.209302321, 0)
closeLib.Size = UDim2.new(0, 25, 0, 25)
closeLib.Image = "rbxassetid://4988112250"
closeLib.MouseButton1Click:Connect(function()
isClosed = not isClosed
if isClosed then
closeLib.Image = "rbxassetid://5165666242"
game.TweenService:Create(closeLib, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
Rotation = 360
}):Play()
MainWhiteFrame:TweenSize(UDim2.new(0, 424,0, 58), "In", "Linear", 0.12)
game.TweenService:Create(MainWhiteFrame_2, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
BackgroundTransparency = 1
}):Play()
game.TweenService:Create(MainWhiteFrame, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
BackgroundTransparency = 1
}):Play()
else
closeLib.Image = "rbxassetid://4988112250"
game.TweenService:Create(closeLib, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
Rotation = 0
}):Play()
MainWhiteFrame:TweenSize(UDim2.new(0, 528,0, 310), "In", "Linear", 0.12)
game.TweenService:Create(MainWhiteFrame_2, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
BackgroundTransparency = 0
}):Play()
game.TweenService:Create(MainWhiteFrame, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
BackgroundTransparency = 0
}):Play()
end
end)
elementContainer.Name = "elementContainer"
elementContainer.Parent = MainWhiteFrame_2
elementContainer.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
elementContainer.Position = UDim2.new(0.207619041, 0, 0.187096775, 0)
elementContainer.Size = UDim2.new(0, 408, 0, 243)
mainCorner_5.CornerRadius = UDim.new(0, 3)
mainCorner_5.Name = "mainCorner"
mainCorner_5.Parent = elementContainer
mainList.Name = "mainList"
mainList.Parent = MainWhiteFrame
mainList.HorizontalAlignment = Enum.HorizontalAlignment.Right
mainList.SortOrder = Enum.SortOrder.LayoutOrder
pagesFolder.Parent = elementContainer
local SectionHandler = {}
function SectionHandler:CreateSection(secName)
secName = secName or "Tab"
-- Tab Button Instances
local tabBtn = Instance.new("TextButton")
local mainCorner_3 = Instance.new("UICorner")
tabBtn.Name = "tabBtn"..secName
tabBtn.Parent = tabFrame
tabBtn.BackgroundColor3 = Color3.fromRGB(25,25,25)
tabBtn.BorderColor3 = Color3.fromRGB(53, 53, 53)
tabBtn.Position = UDim2.new(0.0599999987, 0, 0.0323624611, 0)
tabBtn.Size = UDim2.new(0, 95, 0, 32)
tabBtn.Font = Enum.Font.GothamSemibold
tabBtn.Text = secName
tabBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
tabBtn.TextSize = 14.000
tabBtn.AutoButtonColor = false
mainCorner_3.CornerRadius = UDim.new(0, 3)
mainCorner_3.Name = "mainCorner"
mainCorner_3.Parent = tabBtn
-- New Section Frame Instances
local newPage = Instance.new("ScrollingFrame")
local pageItemList = Instance.new("UIListLayout")
local UIPadding = Instance.new("UIPadding")
newPage.Name = "newPage"..secName
newPage.Parent = pagesFolder
newPage.Active = true
newPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
newPage.BackgroundTransparency = 1.000
newPage.BorderSizePixel = 0
newPage.Size = UDim2.new(1, 0, 1, 0)
newPage.ScrollBarThickness = 5
newPage.ScrollBarImageColor3 = Color3.fromRGB(255, 2, 40)
newPage.Visible = false
pageItemList.Name = "pageItemList"
pageItemList.Parent = newPage
pageItemList.HorizontalAlignment = Enum.HorizontalAlignment.Center
pageItemList.SortOrder = Enum.SortOrder.LayoutOrder
pageItemList.Padding = UDim.new(0, 3)
UIPadding.Parent = newPage
UIPadding.PaddingRight = UDim.new(0, 5)
UIPadding.PaddingTop = UDim.new(0, 5)
local function UpdateSize()
local cS = pageItemList.AbsoluteContentSize
game.TweenService:Create(newPage, TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
CanvasSize = UDim2.new(0,cS.X,0,cS.Y + 10)
}):Play()
end
newPage.ChildAdded:Connect(UpdateSize)
newPage.ChildRemoved:Connect(UpdateSize)
UpdateSize()
tabBtn.MouseButton1Click:Connect(function()
UpdateSize()
for i,v in next, pagesFolder:GetChildren() do
v.Visible = false
UpdateSize()
end
newPage.Visible = true
for i,v in next, tabFrame:GetChildren() do
if v:IsA("TextButton") then
UpdateSize()
game.TweenService:Create(v, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.Out),{
BackgroundColor3 = Color3.fromRGB(25,25,25)
}):Play()
end
end
game.TweenService:Create(tabBtn, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.Out),{
BackgroundColor3 = Color3.fromRGB(139, 0, 23)
}):Play()
end)
local ElementHandler = {}
function ElementHandler:TextLabel(labelText)
labelText = labelText or ""
local labelFrame = Instance.new("Frame")
local mainCorner = Instance.new("UICorner")
local txtLabel = Instance.new("TextLabel")
labelFrame.Name = "labelFrame"
labelFrame.Parent = newPage
labelFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
labelFrame.Position = UDim2.new(0.0367647074, 0, 0.0185185187, 0)
labelFrame.Size = UDim2.new(0, 394, 0, 42)
mainCorner.CornerRadius = UDim.new(0, 3)
mainCorner.Name = "mainCorner"
mainCorner.Parent = labelFrame
txtLabel.Name = "txtLabel"
txtLabel.Parent = labelFrame
txtLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
txtLabel.BackgroundTransparency = 1.000
txtLabel.Position = UDim2.new(0, 0, 0.0238095243, 0)
txtLabel.Size = UDim2.new(0, 395, 0, 41)
txtLabel.Font = Enum.Font.GothamSemibold
txtLabel.Text = labelText
txtLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
txtLabel.TextSize = 14.000
end
function ElementHandler:TextButton(buttonText, buttonInfo, callback)
buttonText = buttonText or ""
buttonInfo = buttonInfo or ""
callback = callback or function() end
local textButtonFrame = Instance.new("Frame")
local mainCorner = Instance.new("UICorner")
local TextButton = Instance.new("TextButton")
local mainCorner_2 = Instance.new("UICorner")
local textButtonInfo = Instance.new("TextLabel")
textButtonFrame.Name = "textButtonFrame"
textButtonFrame.Parent = newPage
textButtonFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
textButtonFrame.Position = UDim2.new(0.0147058824, 0, 0.0246913582, 0)
textButtonFrame.Size = UDim2.new(0, 394, 0, 42)
mainCorner.CornerRadius = UDim.new(0, 3)
mainCorner.Name = "mainCorner"
mainCorner.Parent = textButtonFrame
TextButton.Parent = textButtonFrame
TextButton.BackgroundColor3 = Color3.fromRGB(181, 1, 31)
TextButton.Position = UDim2.new(0.017766498, 0, 0.166666672, 0)
TextButton.Size = UDim2.new(0, 141, 0, 27)
TextButton.Font = Enum.Font.GothamSemibold
TextButton.Text = buttonText
TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
TextButton.TextSize = 14.000
mainCorner_2.CornerRadius = UDim.new(0, 3)
mainCorner_2.Name = "mainCorner"
mainCorner_2.Parent = TextButton
textButtonInfo.Name = "textButtonInfo"
textButtonInfo.Parent = textButtonFrame
textButtonInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
textButtonInfo.BackgroundTransparency = 1.000
textButtonInfo.Position = UDim2.new(0.395939082, 0, 0.0238095243, 0)
textButtonInfo.Size = UDim2.new(0, 226, 0, 41)
textButtonInfo.Font = Enum.Font.GothamSemibold
textButtonInfo.Text = buttonInfo
textButtonInfo.TextColor3 = Color3.fromRGB(198, 198, 198)
textButtonInfo.TextSize = 14.000
textButtonInfo.TextXAlignment = Enum.TextXAlignment.Right
TextButton.MouseButton1Click:Connect(function()
callback()
end)
end
function ElementHandler:Toggle(togInfo, callback)
togInfo = togInfo or ""
callback = callback or function() end
local toggleFrame = Instance.new("Frame")
local mainCorner = Instance.new("UICorner")
local toggleInfo = Instance.new("TextLabel")
local toggleInerFrame = Instance.new("Frame")
local mainCorner_2 = Instance.new("UICorner")
local toggleInnerFrame1 = Instance.new("Frame")
local mainCorner_3 = Instance.new("UICorner")
local toggleBtn = Instance.new("TextButton")
local mainCorner_4 = Instance.new("UICorner")
local UIListLayout = Instance.new("UIListLayout")
local UIListLayout_2 = Instance.new("UIListLayout")
toggleFrame.Name = "toggleFrame"
toggleFrame.Parent = newPage
toggleFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
toggleFrame.Position = UDim2.new(0.0147058824, 0, 0.0246913582, 0)
toggleFrame.Size = UDim2.new(0, 394, 0, 42)
mainCorner.CornerRadius = UDim.new(0, 3)
mainCorner.Name = "mainCorner"
mainCorner.Parent = toggleFrame
toggleInfo.Name = "toggleInfo"
toggleInfo.Parent = toggleFrame
toggleInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
toggleInfo.BackgroundTransparency = 1.000
toggleInfo.Position = UDim2.new(0.395939082, 0, 0.0238095243, 0)
toggleInfo.Size = UDim2.new(0, 226, 0, 41)
toggleInfo.Font = Enum.Font.GothamSemibold
toggleInfo.Text = togInfo
toggleInfo.TextColor3 = Color3.fromRGB(198, 198, 198)
toggleInfo.TextSize = 14.000
toggleInfo.TextXAlignment = Enum.TextXAlignment.Right
toggleInerFrame.Name = "toggleInerFrame"
toggleInerFrame.Parent = toggleFrame
toggleInerFrame.BackgroundColor3 = Color3.fromRGB(181, 1, 31)
toggleInerFrame.Position = UDim2.new(0.0177664906, 0, 0.166666672, 0)
toggleInerFrame.Size = UDim2.new(0, 27, 0, 27)
mainCorner_2.CornerRadius = UDim.new(0, 3)
mainCorner_2.Name = "mainCorner"
mainCorner_2.Parent = toggleInerFrame
toggleInnerFrame1.Name = "toggleInnerFrame1"
toggleInnerFrame1.Parent = toggleInerFrame
toggleInnerFrame1.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
toggleInnerFrame1.Position = UDim2.new(0.0177664906, 0, -0.0185185075, 0)
toggleInnerFrame1.Size = UDim2.new(0, 25, 0, 25)
mainCorner_3.CornerRadius = UDim.new(0, 3)
mainCorner_3.Name = "mainCorner"
mainCorner_3.Parent = toggleInnerFrame1
toggleBtn.Name = "toggleBtn"
toggleBtn.Parent = toggleInnerFrame1
toggleBtn.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
toggleBtn.Position = UDim2.new(2.2399888, 0, -0.0185185149, 0)
toggleBtn.Size = UDim2.new(0, 23, 0, 23)
toggleBtn.Font = Enum.Font.GothamSemibold
toggleBtn.Text = ""
toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
toggleBtn.TextSize = 14.000
toggleBtn.AutoButtonColor = false
mainCorner_4.CornerRadius = UDim.new(0, 3)
mainCorner_4.Name = "mainCorner"
mainCorner_4.Parent = toggleBtn
UIListLayout.Parent = toggleInnerFrame1
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
UIListLayout_2.Parent = toggleInerFrame
UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout_2.VerticalAlignment = Enum.VerticalAlignment.Center
local toggled = false
toggleBtn.MouseButton1Click:Connect(function()
toggled = not toggled
callback(toggled)
if toggled then
game.TweenService:Create(toggleBtn, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.Out),{
BackgroundColor3 = Color3.fromRGB(181, 1, 31)
}):Play()
else
game.TweenService:Create(toggleBtn, TweenInfo.new(0.18, Enum.EasingStyle.Quint, Enum.EasingDirection.Out),{
BackgroundColor3 = Color3.fromRGB(25,25,25)
}):Play()
end
end)
end
function ElementHandler:Slider(sliderin, minvalue, maxvalue, callback)
minvalue = minvalue or 0
maxvalue = maxvalue or 500
callback = callback or function() end
sliderin = sliderin or "info ok"
local sliderFrame = Instance.new("Frame")
local mainCorner = Instance.new("UICorner")
local sliderInfo = Instance.new("TextLabel")
local sliderValue = Instance.new("TextLabel")
local sliderBtn = Instance.new("TextButton")
local sliderdragfrm = Instance.new("UIListLayout")
local sliderMainFrm = Instance.new("Frame")
local sliderlist = Instance.new("UIListLayout")
local mainCorner_2 = Instance.new("UICorner")
local mainCorner_3 = Instance.new("UICorner")
sliderFrame.Name = "sliderFrame"
sliderFrame.Parent = newPage
sliderFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
sliderFrame.Position = UDim2.new(0.0147058824, 0, 0.0246913582, 0)
sliderFrame.Size = UDim2.new(0, 394, 0, 42)
mainCorner.CornerRadius = UDim.new(0, 3)
mainCorner.Name = "mainCorner"
mainCorner.Parent = sliderFrame
sliderInfo.Name = "sliderInfo"
sliderInfo.Parent = sliderFrame
sliderInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
sliderInfo.BackgroundTransparency = 1.000
sliderInfo.Position = UDim2.new(0.570575714, 0, 0.0238095243, 0)
sliderInfo.Size = UDim2.new(0, 157, 0, 41)
sliderInfo.Font = Enum.Font.GothamSemibold
sliderInfo.Text = sliderin
sliderInfo.TextColor3 = Color3.fromRGB(198, 198, 198)
sliderInfo.TextSize = 14.000
sliderInfo.TextXAlignment = Enum.TextXAlignment.Right
sliderValue.Name = "sliderValue"
sliderValue.Parent = sliderFrame
sliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
sliderValue.BackgroundTransparency = 1.000
sliderValue.Position = UDim2.new(0.395939082, 0, 0.285714298, 0)
sliderValue.Size = UDim2.new(0, 68, 0, 17)
sliderValue.Font = Enum.Font.GothamSemibold
sliderValue.Text = minvalue.."/"..maxvalue
sliderValue.TextColor3 = Color3.fromRGB(199, 0, 33)
sliderValue.TextSize = 14.000
sliderValue.TextXAlignment = Enum.TextXAlignment.Left
sliderBtn.Name = "sliderBtn"
sliderBtn.Parent = sliderFrame
sliderBtn.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
sliderBtn.BorderSizePixel = 0
sliderBtn.Position = UDim2.new(0.0179999992, 0, 0.381000012, 0)
sliderBtn.Size = UDim2.new(0, 141, 0, 10)
sliderBtn.AutoButtonColor = false
sliderBtn.Font = Enum.Font.SourceSans
sliderBtn.Text = ""
sliderBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
sliderBtn.TextSize = 14.000
sliderdragfrm.Name = "sliderdragfrm"
sliderdragfrm.Parent = sliderBtn
sliderdragfrm.SortOrder = Enum.SortOrder.LayoutOrder
sliderdragfrm.VerticalAlignment = Enum.VerticalAlignment.Center
sliderMainFrm.Name = "sliderMainFrm"
sliderMainFrm.Parent = sliderBtn
sliderMainFrm.BackgroundColor3 = Color3.fromRGB(181, 1, 31)
sliderMainFrm.BorderColor3 = Color3.fromRGB(181, 1, 31)
sliderMainFrm.BorderSizePixel = 0
sliderMainFrm.Size = UDim2.new(0, 0, 0, 10)
sliderlist.Name = "sliderlist"
sliderlist.Parent = sliderMainFrm
sliderlist.HorizontalAlignment = Enum.HorizontalAlignment.Right
sliderlist.SortOrder = Enum.SortOrder.LayoutOrder
sliderlist.VerticalAlignment = Enum.VerticalAlignment.Center
mainCorner_2.CornerRadius = UDim.new(0, 5)
mainCorner_2.Name = "mainCorner"
mainCorner_2.Parent = sliderMainFrm
mainCorner_2.Archivable = false
mainCorner_3.CornerRadius = UDim.new(0, 3)
mainCorner_3.Name = "mainCorner"
mainCorner_3.Parent = sliderBtn
local mouse = game.Players.LocalPlayer:GetMouse()
local uis = game:GetService("UserInputService")
local Value;
sliderBtn.MouseButton1Down:Connect(function()
Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 141) * sliderMainFrm.AbsoluteSize.X) + tonumber(minvalue)) or 0
pcall(function()
callback(Value)
end)
sliderMainFrm.Size = UDim2.new(0, math.clamp(mouse.X - sliderMainFrm.AbsolutePosition.X, 0, 141), 0, 10)
moveconnection = mouse.Move:Connect(function()
sliderValue.Text = Value.."/"..maxvalue
Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 141) * sliderMainFrm.AbsoluteSize.X) + tonumber(minvalue))
pcall(function()
callback(Value)
end)
sliderMainFrm.Size = UDim2.new(0, math.clamp(mouse.X - sliderMainFrm.AbsolutePosition.X, 0, 141), 0, 10)
end)
releaseconnection = uis.InputEnded:Connect(function(Mouse)
if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
Value = math.floor((((tonumber(maxvalue) - tonumber(minvalue)) / 141) * sliderMainFrm.AbsoluteSize.X) + tonumber(minvalue))
pcall(function()
callback(Value)
end)
sliderValue.Text = Value.."/"..maxvalue
sliderMainFrm.Size = UDim2.new(0, math.clamp(mouse.X - sliderMainFrm.AbsolutePosition.X, 0, 141), 0, 10)
moveconnection:Disconnect()
releaseconnection:Disconnect()
end
end)
end)
end
function ElementHandler:KeyBind(keInfo, firstt, callback)
local oldKey = firstt.Name
keInfo = keInfo or ""
callback = callback or function() end
local keybindFrame = Instance.new("Frame")
local mainCorner = Instance.new("UICorner")
local TextButton = Instance.new("TextButton")
local mainCorner_2 = Instance.new("UICorner")
local keybindinfo = Instance.new("TextLabel")
keybindFrame.Name = "keybindFrame"
keybindFrame.Parent = newPage
keybindFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
keybindFrame.Position = UDim2.new(0.0147058824, 0, 0.0246913582, 0)
keybindFrame.Size = UDim2.new(0, 394, 0, 42)
mainCorner.CornerRadius = UDim.new(0, 3)
mainCorner.Name = "mainCorner"
mainCorner.Parent = keybindFrame
TextButton.Parent = keybindFrame
TextButton.BackgroundColor3 = Color3.fromRGB(181, 1, 31)
TextButton.Position = UDim2.new(0.017766498, 0, 0.166666672, 0)
TextButton.Size = UDim2.new(0, 76, 0, 27)
TextButton.Font = Enum.Font.GothamSemibold
TextButton.Text = oldKey
TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
TextButton.TextSize = 14.000
mainCorner_2.CornerRadius = UDim.new(0, 3)
mainCorner_2.Name = "mainCorner"
mainCorner_2.Parent = TextButton
keybindinfo.Name = "keybindinfo"
keybindinfo.Parent = keybindFrame
keybindinfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
keybindinfo.BackgroundTransparency = 1.000
keybindinfo.Position = UDim2.new(0.395939082, 0, 0.0238095243, 0)
keybindinfo.Size = UDim2.new(0, 226, 0, 41)
keybindinfo.Font = Enum.Font.GothamSemibold
keybindinfo.Text = keInfo
keybindinfo.TextColor3 = Color3.fromRGB(198, 198, 198)
keybindinfo.TextSize = 14.000
keybindinfo.TextXAlignment = Enum.TextXAlignment.Right
TextButton.MouseButton1Click:connect(function(e)
TextButton.Text = ". . ."
local a, b = game:GetService('UserInputService').InputBegan:wait();
if a.KeyCode.Name ~= "Unknown" then
TextButton.Text = a.KeyCode.Name
oldKey = a.KeyCode.Name;
end
end)
game:GetService("UserInputService").InputBegan:connect(function(current, ok)
if not ok then
if current.KeyCode.Name == oldKey then
callback()
end
end
end)
end
function ElementHandler:TextBox(textInfo, placeHolderText1, callback)
textInfo = textInfo or ""
placeHolderText1 = placeHolderText1 or ""
callback = callback or function() end
local textBoxFrame = Instance.new("Frame")
local mainCorner = Instance.new("UICorner")
local textboxInfo = Instance.new("TextLabel")
local texboxInner = Instance.new("Frame")
local mainCorner_2 = Instance.new("UICorner")
local textboxinneer = Instance.new("Frame")
local mainCorner_3 = Instance.new("UICorner")
local UIListLayout = Instance.new("UIListLayout")
local TextBox = Instance.new("TextBox")
local UIListLayout_2 = Instance.new("UIListLayout")
--Properties:
textBoxFrame.Name = "textBoxFrame"
textBoxFrame.Parent = newPage
textBoxFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
textBoxFrame.Position = UDim2.new(0.0147058824, 0, 0.0246913582, 0)
textBoxFrame.Size = UDim2.new(0, 394, 0, 42)
mainCorner.CornerRadius = UDim.new(0, 3)
mainCorner.Name = "mainCorner"
mainCorner.Parent = textBoxFrame
textboxInfo.Name = "textboxInfo"
textboxInfo.Parent = textBoxFrame
textboxInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
textboxInfo.BackgroundTransparency = 1.000
textboxInfo.Position = UDim2.new(0.395939082, 0, 0.0238095243, 0)
textboxInfo.Size = UDim2.new(0, 226, 0, 41)
textboxInfo.Font = Enum.Font.GothamSemibold
textboxInfo.Text = textInfo
textboxInfo.TextColor3 = Color3.fromRGB(198, 198, 198)
textboxInfo.TextSize = 14.000
textboxInfo.TextXAlignment = Enum.TextXAlignment.Right
texboxInner.Name = "texboxInner"
texboxInner.Parent = textBoxFrame
texboxInner.BackgroundColor3 = Color3.fromRGB(181, 1, 31)
texboxInner.Position = UDim2.new(0.017766498, 0, 0.166666672, 0)
texboxInner.Size = UDim2.new(0, 141, 0, 27)
mainCorner_2.CornerRadius = UDim.new(0, 3)
mainCorner_2.Name = "mainCorner"
mainCorner_2.Parent = texboxInner
textboxinneer.Name = "textboxinneer"
textboxinneer.Parent = texboxInner
textboxinneer.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
textboxinneer.ClipsDescendants = true
textboxinneer.Position = UDim2.new(0.411347508, 0, 0.0370370373, 0)
textboxinneer.Size = UDim2.new(0, 139, 0, 25)
mainCorner_3.CornerRadius = UDim.new(0, 3)
mainCorner_3.Name = "mainCorner"
mainCorner_3.Parent = textboxinneer
UIListLayout.Parent = textboxinneer
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
TextBox.Parent = textboxinneer
TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextBox.BackgroundTransparency = 1.000
TextBox.Size = UDim2.new(1, 0, 1, 0)
TextBox.Font = Enum.Font.GothamSemibold
TextBox.PlaceholderColor3 = Color3.fromRGB(115, 115, 115)
TextBox.PlaceholderText = placeHolderText1
TextBox.Text = ""
TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
TextBox.TextSize = 13.000
TextBox.TextWrapped = true
UIListLayout_2.Parent = texboxInner
UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout_2.VerticalAlignment = Enum.VerticalAlignment.Center
TextBox.FocusLost:Connect(function(EnterPressed)
if not EnterPressed then return end
callback(TextBox.Text)
TextBox.Text = ""
end)
end
function ElementHandler:Dropdown(dInfo, list, callback)
dInfo = dInfo or ""
list = list or {}
callback = callback or function() end
local isDropped = false
local dropDownFrame = Instance.new("Frame")
local mainCorner = Instance.new("UICorner")
local dropdownmain = Instance.new("Frame")
local mainCorner_2 = Instance.new("UICorner")
local dropdownItem = Instance.new("TextLabel")
local ImageButton = Instance.new("ImageButton")
local UIListLayout = Instance.new("UIListLayout")
local DropYSize = 42
dropDownFrame.Name = "dropDownFrame"
dropDownFrame.Parent = newPage
dropDownFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
dropDownFrame.ClipsDescendants = true
dropDownFrame.Position = UDim2.new(0.011029412, 0, 0.0205760058, 0)
dropDownFrame.Size = UDim2.new(0, 394, 0, 42)
mainCorner.CornerRadius = UDim.new(0, 3)
mainCorner.Name = "mainCorner"
mainCorner.Parent = dropDownFrame
dropdownmain.Name = "dropdownmain"
dropdownmain.Parent = dropDownFrame
dropdownmain.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
dropdownmain.Size = UDim2.new(0, 394, 0, 42)
mainCorner_2.CornerRadius = UDim.new(0, 3)
mainCorner_2.Name = "mainCorner"
mainCorner_2.Parent = dropdownmain
dropdownItem.Name = "dropdownItem"
dropdownItem.Parent = dropdownmain
dropdownItem.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
dropdownItem.BackgroundTransparency = 1.000
dropdownItem.Position = UDim2.new(0.0223523453, 0, 0, 0)
dropdownItem.Size = UDim2.new(0, 291, 0, 41)
dropdownItem.Font = Enum.Font.GothamSemibold
dropdownItem.Text = dInfo
dropdownItem.TextColor3 = Color3.fromRGB(255, 1, 43)
dropdownItem.TextSize = 14.000
dropdownItem.TextXAlignment = Enum.TextXAlignment.Left
ImageButton.Parent = dropdownmain
ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageButton.BackgroundTransparency = 1.000
ImageButton.Position = UDim2.new(0.89974618, 0, 0.238095239, 0)
ImageButton.Size = UDim2.new(0, 27, 0, 21)
ImageButton.Image = "rbxassetid://5165666242"
ImageButton.ImageColor3 = Color3.fromRGB(181, 1, 31)
ImageButton.MouseButton1Click:Connect(function()
if isDropped then
isDropped = false
dropDownFrame:TweenSize(UDim2.new(0, 394, 0, 42), "In", "Quint", 0.10)
game.TweenService:Create(ImageButton, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
Rotation = 0
}):Play()
wait(0.10)
UpdateSize()
else
isDropped = true
dropDownFrame:TweenSize(UDim2.new(0, 394, 0, DropYSize), "In", "Quint", 0.10)
game.TweenService:Create(ImageButton, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
Rotation = 180
}):Play()
wait(0.10)
UpdateSize()
end
end)
UIListLayout.Parent = dropDownFrame
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 5)
for i,v in next, list do
local optionBtn = Instance.new("TextButton")
local mainCorner_3 = Instance.new("UICorner")
optionBtn.Name = "optionBtn"
optionBtn.Parent = dropDownFrame
optionBtn.BackgroundColor3 = Color3.fromRGB(118, 0, 20)
optionBtn.Position = UDim2.new(0.0253807101, 0, 0.311258286, 0)
optionBtn.Size = UDim2.new(0, 377, 0, 39)
optionBtn.Font = Enum.Font.GothamSemibold
optionBtn.Text = " "..v
optionBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
optionBtn.TextSize = 14.000
optionBtn.TextXAlignment = Enum.TextXAlignment.Left
DropYSize = DropYSize + 48
mainCorner_3.CornerRadius = UDim.new(0, 3)
mainCorner_3.Name = "mainCorner"
mainCorner_3.Parent = optionBtn
optionBtn.MouseButton1Click:Connect(function()
callback(v)
dropdownItem.Text = dInfo..": "..v
dropDownFrame:TweenSize(UDim2.new(0, 394, 0, 42), "In", "Quint", 0.10)
wait(0.10)
UpdateSize()
game.TweenService:Create(ImageButton, TweenInfo.new(0.10, Enum.EasingStyle.Quad, Enum.EasingDirection.In),{
Rotation = 0
}):Play()
isDropped = false
end)
end
end
return ElementHandler
end
return SectionHandler
end
return Orion