-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.lua
More file actions
846 lines (661 loc) · 25.7 KB
/
Copy pathcore.lua
File metadata and controls
846 lines (661 loc) · 25.7 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
836
837
838
839
840
841
842
843
844
845
846
local StartLoadTime = tick()
local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local Player = Players.LocalPlayer
local getgenv: () -> ({[string]: any}) = getfenv().getgenv
local PlaceName: string = getgenv().PlaceName or game:GetService("AssetService"):GetGamePlacesAsync(game.GameId):GetCurrentPage()[1].Name
local getexecutorname = getfenv().getexecutorname
local identifyexecutor: () -> (string) = getfenv().identifyexecutor
local request = getfenv().request
local getconnections: (RBXScriptSignal) -> ({RBXScriptConnection}) = getfenv().getconnections
local queue_on_teleport: (Code: string) -> () = getfenv().queue_on_teleport
local setfpscap: (FPS: number) -> () = getfenv().setfpscap
local isrbxactive: () -> (boolean) = getfenv().isrbxactive
local setclipboard: (Text: string) -> () = getfenv().setclipboard
local firesignal: (RBXScriptSignal) -> () = getfenv().firesignal
local ScriptVersion = getgenv().ScriptVersion
getgenv().gethui = function()
return game:GetService("CoreGui")
end
getgenv().FrostByteConnections = getgenv().FrostByteConnections or {}
local function HandleConnection(Connection: RBXScriptConnection, Name: string)
if getgenv().FrostByteConnections[Name] then
getgenv().FrostByteConnections[Name]:Disconnect()
end
getgenv().FrostByteConnections[Name] = Connection
end
getgenv().HandleConnection = HandleConnection
getgenv().GetClosestChild = function(Children: {PVInstance}, Callback: ((Child: PVInstance) -> boolean)?, MaxDistance: number?)
local Character = Player.Character
if not Character then
return
end
local HumanoidRootPart: Part = Character:FindFirstChild("HumanoidRootPart")
if not HumanoidRootPart then
return
end
local CurrentPosition: Vector3 = HumanoidRootPart.Position
local ClosestMagnitude = MaxDistance or math.huge
local ClosestChild
for _, Child in Children do
if not Child:IsA("PVInstance") then
continue
end
if Callback and Callback(Child) then
continue
end
local Magnitude = (Child:GetPivot().Position - CurrentPosition).Magnitude
if Magnitude < ClosestMagnitude then
ClosestMagnitude = Magnitude
ClosestChild = Child
end
end
return ClosestChild
end
if not firesignal and getconnections then
firesignal = function(Signal: RBXScriptSignal)
local Connections = getconnections(Signal)
Connections[#Connections]:Fire()
end
end
local UnsupportedName = " (执行器不支持)"
local function ApplyUnsupportedName(Name: string, Condition: boolean)
return Name .. if Condition then "" else UnsupportedName
end
getgenv().ApplyUnsupportedName = ApplyUnsupportedName
if queue_on_teleport then
queue_on_teleport([[
local TeleportService = game:GetService("TeleportService")
local TeleportData = TeleportService:GetLocalPlayerTeleportData()
if not TeleportData then
return
end
if typeof(TeleportData) == "table" and TeleportData.FrostByteRejoin then
return
end
loadstring(game:HttpGet("https://raw.githubusercontent.com/alyssagithub/Scripts/refs/heads/main/FrostByte/Initiate.lua"))()
]])
end
local OriginalFlags = {}
if getgenv().Flags then
for FlagName: string, FlagInfo in getgenv().Flags do
if typeof(FlagInfo.CurrentValue) ~= "boolean" then
continue
end
OriginalFlags[FlagName] = FlagInfo.CurrentValue
pcall(FlagInfo.Set, FlagInfo, false)
end
end
if getgenv().Rayfield then
getgenv().Rayfield:Destroy()
end
local Success, Rayfield = pcall(function()
return loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
end)
local function SendNotification(Title: string, Text: string, Duration: number?, Button1: string?, Button2: string?, Callback: BindableFunction?)
StarterGui:SetCore("SendNotification", {
Title = Title,
Text = Text,
Duration = Duration or 10,
Button1 = Button1,
Button2 = Button2,
Callback = Callback
})
end
if not Success or not Rayfield or not Rayfield.CreateWindow then
SendNotification("加载Rayfield时出错", "请尝试重新执行或重新加入游戏。")
return
end
local Flags: {[string]: {["CurrentValue"]: any, ["CurrentOption"]: {string}}} = Rayfield.Flags
getgenv().Flags = Flags
local function Notify(Title: string, Content: string, Image: string)
if not Rayfield then
return
end
Rayfield:Notify({
Title = Title,
Content = Content,
Duration = 10,
Image = Image or "info",
})
end
getgenv().Notify = Notify
task.spawn(function()
if ScriptVersion and ScriptVersion ~= "Universal" then
local PlaceFileName = getgenv().PlaceFileName
if not PlaceFileName then
return
end
local BindableFunction = Instance.new("BindableFunction")
local Response = false
local Button1 = "✅ 是"
local Button2 = "❌ 否"
local File = `https://raw.githubusercontent.com/alyssagithub/Scripts/refs/heads/main/FrostByte/Games/{PlaceFileName}.lua`
BindableFunction.OnInvoke = function(Button: string)
Response = true
if Button == Button1 then
loadstring(game:HttpGet(File))()
end
end
while task.wait(60) do
local Result = game:HttpGet(File)
if not Result then
continue
end
Result = Result:split('getgenv().ScriptVersion = "')[2]
Result = Result:split('"')[1]
if Result == ScriptVersion then
continue
end
SendNotification(`检测到新版本FrostByte {Result}!`, "是否加载新版本?", math.huge, Button1, Button2, BindableFunction)
break
end
end
end)
type Tab = {
CreateSection: (self: Tab, Name: string) -> Section,
CreateDivider: (self: Tab) -> Divider,
}
local Window
pcall(function()
Window = Rayfield:CreateWindow({
Name = `FrostByte | {PlaceName} | {ScriptVersion or "开发模式"}`,
Icon = "snowflake",
LoadingTitle = "❄ 由FrostByte献上的体验 ❄",
LoadingSubtitle = PlaceName,
Theme = "DarkBlue",
DisableRayfieldPrompts = false,
DisableBuildWarnings = false,
ConfigurationSaving = {
Enabled = true,
FolderName = "FrostByte",
FileName = `{getgenv().PlaceFileName or `DevMode-{game.PlaceId}`}-{Player.Name}`
},
Discord = {
Enabled = true,
Invite = "sS3tDP6FSB",
RememberJoins = true
},
})
getgenv().Window = Window
end)
function CreateUniversalTabs()
local VirtualUser = game:GetService("VirtualUser")
local VirtualInputManager = game:GetService("VirtualInputManager")
local TeleportService = game:GetService("TeleportService")
local RunService = game:GetService("RunService")
if not Window then
return
end
local Tab: Tab = Window:CreateTab("客户端", "user")
Tab:CreateSection("Discord")
Tab:CreateButton({
Name = "❄ • 加入FrostByte Discord!",
Callback = function()
if request then
request({
Url = 'http://127.0.0.1:6463/rpc?v=1',
Method = 'POST',
Headers = {
['Content-Type'] = 'application/json',
Origin = 'https://discord.com'
},
Body = HttpService:JSONEncode({
cmd = 'INVITE_BROWSER',
nonce = HttpService:GenerateGUID(false),
args = {code = 'sS3tDP6FSB'}
})
})
elseif setclipboard then
setclipboard("https://discord.gg/sS3tDP6FSB")
Notify("成功!", "已将Discord链接复制到剪贴板。")
end
Notify("Discord", "https://discord.gg/sS3tDP6FSB")
end,
})
Tab:CreateLabel("https://discord.gg/sS3tDP6FSB", "link")
Tab:CreateSection("统计信息")
local PingLabel = Tab:CreateLabel("延迟: 0 毫秒", "wifi")
local FPSLabel = Tab:CreateLabel("帧率: 0/秒", "monitor")
local Stats = game:GetService("Stats")
task.spawn(function()
while getgenv().Flags == Flags and task.wait(0.25) do
pcall(PingLabel.Set, PingLabel, `延迟: {math.floor(Stats.PerformanceStats.Ping:GetValue() * 100)/ 100} 毫秒`)
pcall(FPSLabel.Set, FPSLabel, `帧率: {math.floor(1 / Stats.FrameTime * 10) / 10}/秒`)
end
end)
Tab:CreateSection("防挂机")
Tab:CreateToggle({
Name = "🔒 • 防止挂机时断开连接",
CurrentValue = true,
Flag = "AntiAFK",
Callback = function()end,
})
getgenv().HandleConnection(Player.Idled:Connect(function()
if not Flags.AntiAFK.CurrentValue then
return
end
VirtualUser:CaptureController()
VirtualUser:ClickButton2(Vector2.zero)
VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.RightMeta, false, game)
VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.RightMeta, false, game)
end), "AntiAFK")
Tab:CreateSection("性能")
Tab:CreateSlider({
Name = ApplyUnsupportedName("🎮 • 最大帧率 (0为无限制)", setfpscap),
Range = {0, 240},
Increment = 1,
Suffix = "FPS",
CurrentValue = 0,
Flag = "MaxFPS",
Callback = function(Value)
if not setfpscap then
return
end
setfpscap(Value)
end,
})
local PreviousValue
Tab:CreateToggle({
Name = ApplyUnsupportedName("⬜ • 退出游戏时禁用3D渲染", isrbxactive),
CurrentValue = false,
Flag = "Rendering",
Callback = function(Value)
while Flags.Rendering.CurrentValue and task.wait() do
local CurrentValue = isrbxactive()
if PreviousValue == CurrentValue then
continue
end
PreviousValue = CurrentValue
RunService:Set3dRenderingEnabled(CurrentValue)
end
if Value then
RunService:Set3dRenderingEnabled(true)
end
end,
})
Tab:CreateSection("属性")
local WalkSpeedConnection: RBXScriptConnection
local ConnectedHumanoid
local function SetWalkSpeed()
local Character = Player.Character
if not Character then
return
end
local Humanoid: Humanoid = Character:FindFirstChild("Humanoid")
if not Humanoid then
return
end
if Flags.WalkSpeedChanger.CurrentValue then
Humanoid.WalkSpeed = Flags.WalkSpeed.CurrentValue
end
if not WalkSpeedConnection then
WalkSpeedConnection = Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(SetWalkSpeed)
ConnectedHumanoid = Humanoid
HandleConnection(WalkSpeedConnection, "WalkSpeedConnection")
end
end
HandleConnection(Player.CharacterAdded:Connect(function()
if WalkSpeedConnection then
WalkSpeedConnection:Disconnect()
WalkSpeedConnection = nil
end
SetWalkSpeed()
end), "WalkSpeedCharacterAdded")
Tab:CreateToggle({
Name = "⚡ • 启用移动速度修改",
CurrentValue = false,
Flag = "WalkSpeedChanger",
Callback = function(Value)
if Player.Character and Value then
SetWalkSpeed()
end
end,
})
Tab:CreateSlider({
Name = "💨 • 设置移动速度",
Range = {0, 300},
Increment = 1,
Suffix = "单位/秒",
CurrentValue = game:GetService("StarterPlayer").CharacterWalkSpeed,
Flag = "WalkSpeed",
Callback = function(Value)
SetWalkSpeed()
end,
})
Tab:CreateSection("安全")
local StaffRoleNames = {
"mod",
"dev",
"admin",
"owner",
"founder",
"manag",
}
local function IsInGroup(CheckPlayer: Player, GroupId: number)
local Success, Result = pcall(CheckPlayer.IsInGroup, CheckPlayer, GroupId)
return Success and Result
end
local function GetRoleInGroup(CheckPlayer: Player, GroupId: number)
local Success, Result = pcall(CheckPlayer.GetRoleInGroup, CheckPlayer, GroupId)
return if Success then Result else "访客"
end
local function GetRankInGroup(CheckPlayer: Player, GroupId: number)
local Success, Result = pcall(CheckPlayer.GetRankInGroup, CheckPlayer, GroupId)
return if Success then Result else 0
end
local function GetStaffRole(CheckPlayer: Player)
local StaffRole
if IsInGroup(CheckPlayer, 1200769) then
StaffRole = "Roblox管理员"
end
if game.CreatorType ~= Enum.CreatorType.Group then
return
end
local CreatorId = game.CreatorId
local Role = GetRoleInGroup(CheckPlayer, CreatorId)
for _, Name in StaffRoleNames do
if typeof(Role) == "string" and Role:lower():find(Name) then
StaffRole = Role
end
end
if GetRankInGroup(CheckPlayer, CreatorId) == 255 then
StaffRole = "群组拥有者"
end
return StaffRole
end
local function CheckIfStaff(CheckPlayer: Player)
if not Flags.StaffJoin.CurrentValue then
return
end
local StaffRole = GetStaffRole(CheckPlayer)
if not StaffRole then
return
end
Player:Kick(`检测到玩家 '{CheckPlayer.Name}' 为管理员,其角色为 '{StaffRole}'。\n\n如果认为这是误判,请联系FrostByte开发者。`)
end
Tab:CreateToggle({
Name = "🔔 • 管理员加入时自动离开",
CurrentValue = false,
Flag = "StaffJoin",
Callback = function(Value)
if not Value then
return
end
for _, CheckPlayer in Players:GetPlayers() do
CheckIfStaff(CheckPlayer)
end
end,
})
HandleConnection(Players.PlayerAdded:Connect(CheckIfStaff), "StaffJoin")
getgenv().Role = GetStaffRole(Player)
Tab:CreateDivider()
local Connections = {}
local OriginalText = {}
local function HandleUsernameChange(Object: Instance)
if not Flags.HideName.CurrentValue then
return
end
if not Object:IsA("TextLabel") and not Object:IsA("TextBox") and not Object:IsA("TextButton") then
return
end
local NameReplacement = Flags.NameReplacement.CurrentValue
if not Connections[Object] then
Connections[Object] = Object:GetPropertyChangedSignal("Text"):Connect(function()
HandleUsernameChange(Object)
end)
end
if Object.Text:find(Player.Name) then
OriginalText[Object] = Object.Text
Object.Text = Object.Text:gsub(Player.Name, NameReplacement)
elseif Object.Text:find(Player.DisplayName) then
OriginalText[Object] = Object.Text
Object.Text = Object.Text:gsub(Player.DisplayName, NameReplacement)
end
end
local DescendantAddedConnection
Tab:CreateToggle({
Name = "🛡 • 隐藏用户名和显示名称 (仅客户端)",
CurrentValue = false,
Flag = "HideName",
Callback = function(Value)
if Value and not DescendantAddedConnection then
for i,v in game:GetDescendants() do
HandleUsernameChange(v)
end
DescendantAddedConnection = game.DescendantAdded:Connect(HandleUsernameChange)
HandleConnection(DescendantAddedConnection, "HideName")
elseif DescendantAddedConnection then
DescendantAddedConnection:Disconnect()
DescendantAddedConnection = nil
for Object: TextLabel?, Text in OriginalText do
Object.Text = Text
end
OriginalText = {}
end
end,
})
-- 随机英文名字生成函数
local function GenerateRandomName()
local Names = {"Alex", "Ben", "Charlie", "David", "Emma", "Fiona", "Grace", "Hannah"}
return Names[math.random(1, #Names)] .. tostring(math.random(100, 999)) -- 随机英文名+3位数字
end
-- 替换名称改为随机英文名字,并默认显示随机值
Tab:CreateInput({
Name = "💬 • 替换名称",
CurrentValue = GenerateRandomName(), -- 默认随机英文名字
PlaceholderText = "输入新名称",
RemoveTextAfterFocusLost = false,
Flag = "NameReplacement",
Callback = function(Value)
if Value == "" then -- 如果用户清空输入,重新生成随机英文名字
Flags.NameReplacement:Set(GenerateRandomName())
end
end,
})
Tab:CreateDivider()
Tab:CreateToggle({
Name = "🌀 • 无碰撞",
CurrentValue = false,
Flag = "Noclip",
Callback = function(Value)
local Character = Player.Character
if not Character then
return Notify("错误", "你没有角色。")
end
for _, Part: Part in Character:GetChildren() do
if not Part:IsA("PVInstance") then
continue
end
if Value then
Part:SetAttribute("OriginalCollide", Part.CanCollide)
Part.CanCollide = false
else
Part.CanCollide = Part:GetAttribute("OriginalCollide") or Part.CanCollide
end
end
end,
})
Tab:CreateSection("可视化")
local CoreGui: Folder = game:GetService("CoreGui")
local function ESP(TargetPlayer: Player)
local TargetCharacter = TargetPlayer.Character or TargetPlayer.CharacterAdded:Wait()
local LocalCharacter = Player.Character
local FolderName = `{TargetPlayer.Name}_ESP`
local Holder = Instance.new("Folder")
Holder.Name = FolderName
Holder.Parent = CoreGui
for _, Object: BasePart | Model in TargetCharacter:GetChildren() do
if not Object:IsA("PVInstance") then
continue
end
local BoxHandleAdornment = Instance.new("BoxHandleAdornment")
BoxHandleAdornment.Name = TargetPlayer.Name
BoxHandleAdornment.Adornee = Object
BoxHandleAdornment.AlwaysOnTop = true
BoxHandleAdornment.ZIndex = 10
BoxHandleAdornment.Size = if Object:IsA("BasePart") then Object.Size else Object:GetExtentsSize()
BoxHandleAdornment.Transparency = 0.5
BoxHandleAdornment.Color = BrickColor.White()
BoxHandleAdornment.Parent = Holder
end
local BillboardGui = Instance.new("BillboardGui")
BillboardGui.Name = TargetPlayer.Name
BillboardGui.Adornee = TargetCharacter:FindFirstChild("Head") or TargetCharacter:FindFirstChildWhichIsA("PVInstance")
BillboardGui.Size = UDim2.new(0, 100, 0, 150)
BillboardGui.StudsOffset = Vector3.new(0, 1, 0)
BillboardGui.AlwaysOnTop = true
BillboardGui.Parent = Holder
local TextLabel = Instance.new("TextLabel")
TextLabel.BackgroundTransparency = 1
TextLabel.Position = UDim2.new(0, 0, 0, -50)
TextLabel.Size = UDim2.new(0, 100, 0, 100)
TextLabel.Font = Enum.Font.SourceSansSemibold
TextLabel.TextSize = 20
TextLabel.TextColor3 = Color3.new(1, 1, 1)
TextLabel.TextStrokeTransparency = 0
TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
TextLabel.Text = "未加载"
TextLabel.ZIndex = 10
TextLabel.Parent = BillboardGui
TargetPlayer.CharacterAdded:Once(function()
if not Flags.ESP.CurrentValue or not Holder.Parent then
return
end
if Holder.Parent then
Holder:Destroy()
end
ESP(Player)
end)
TargetPlayer.CharacterRemoving:Once(function()
Holder:Destroy()
end)
local RenderSteppedConnection: RBXScriptConnection
RenderSteppedConnection = RunService.RenderStepped:Connect(function()
if not Flags.ESP.CurrentValue then
RenderSteppedConnection:Disconnect()
return
end
if not Holder.Parent then
RenderSteppedConnection:Disconnect()
return
end
if not TargetCharacter or not TargetCharacter:FindFirstChildOfClass("Humanoid") or not LocalCharacter or not LocalCharacter:FindFirstChild("Humanoid") then
return
end
local Distance = math.floor((LocalCharacter:GetPivot().Position - TargetCharacter:GetPivot().Position).Magnitude)
TextLabel.Text = `名称: {TargetPlayer.Name} | 生命值: {math.floor(TargetCharacter.Humanoid.Health)} | 距离: {Distance}`
end)
end
Tab:CreateToggle({
Name = "🔍 • 无限视野ESP",
CurrentValue = false,
Flag = "ESP",
Callback = function(Value)
for _, Object: Folder? in CoreGui:GetChildren() do
if not Object.Name:find("_ESP") then
continue
end
Object:Destroy()
end
if not Value then
return
end
for _, TargetPlayer in Players:GetPlayers() do
if TargetPlayer == Player then
continue
end
ESP(TargetPlayer)
end
end,
})
Tab:CreateSection("界面")
local CustomThemes = {
BlackHistoryMonth = {
TextColor = Color3.fromRGB(),
Background = Color3.fromRGB(),
Topbar = Color3.fromRGB(),
Shadow = Color3.fromRGB(),
NotificationBackground = Color3.fromRGB(),
NotificationActionsBackground = Color3.fromRGB(),
TabBackground = Color3.fromRGB(),
TabStroke = Color3.fromRGB(),
TabBackgroundSelected = Color3.fromRGB(),
TabTextColor = Color3.fromRGB(),
SelectedTabTextColor = Color3.fromRGB(),
ElementBackground = Color3.fromRGB(),
ElementBackgroundHover = Color3.fromRGB(),
SecondaryElementBackground = Color3.fromRGB(),
ElementStroke = Color3.fromRGB(),
SecondaryElementStroke = Color3.fromRGB(),
SliderBackground = Color3.fromRGB(),
SliderProgress = Color3.fromRGB(),
SliderStroke = Color3.fromRGB(),
ToggleBackground = Color3.fromRGB(),
ToggleEnabled = Color3.fromRGB(),
ToggleDisabled = Color3.fromRGB(),
ToggleEnabledStroke = Color3.fromRGB(),
ToggleDisabledStroke = Color3.fromRGB(),
ToggleEnabledOuterStroke = Color3.fromRGB(),
ToggleDisabledOuterStroke = Color3.fromRGB(),
DropdownSelected = Color3.fromRGB(),
DropdownUnselected = Color3.fromRGB(),
InputBackground = Color3.fromRGB(),
InputStroke = Color3.fromRGB(),
PlaceholderColor = Color3.fromRGB()
},
Default = "DarkBlue",
Dark = "Default"
}
Tab:CreateDropdown({
Name = "🖼 • 更改主题",
Options = {"黑人历史月", "默认", "暗黑", "琥珀光", "紫晶", "海洋", "明亮", "绽放", "绿色", "宁静"},
MultipleOptions = false,
Flag = "Theme",
Callback = function(CurrentOption)
CurrentOption = CurrentOption[1]
if CurrentOption == "" then
return
end
local themeMap = {
["黑人历史月"] = "BlackHistoryMonth",
["默认"] = "Default",
["暗黑"] = "Dark",
["琥珀光"] = "AmberGlow",
["紫晶"] = "Amethyst",
["海洋"] = "Ocean",
["明亮"] = "Light",
["绽放"] = "Bloom",
["绿色"] = "Green",
["宁静"] = "Serenity"
}
Window.ModifyTheme(CustomThemes[themeMap[CurrentOption]] or themeMap[CurrentOption])
end,
})
Tab:CreateSection("开发")
Tab:CreateButton({
Name = "⚙️ • 重新加入",
Callback = function()
TeleportService:Teleport(game.PlaceId, Player, {FrostByteRejoin = true})
end,
})
task.delay(1, function()
for FlagName: string, CurrentValue: boolean? in OriginalFlags do
local FlagInfo = Flags[FlagName]
if not FlagInfo then
continue
end
pcall(FlagInfo.Set, FlagInfo, CurrentValue)
end
end)
Notify("欢迎使用FrostByte", `加载完成,用时 {math.floor((tick() - StartLoadTime) * 10) / 10}秒`, "loader-circle")
end
getgenv().CreateUniversalTabs = CreateUniversalTabs
if not ScriptVersion or ScriptVersion == "Universal" then
CreateUniversalTabs()
end
local FrostByteStarted = getgenv().FrostByteStarted
if FrostByteStarted then
FrostByteStarted()
end