I’m not sure if this is the right category but I couldn’t find a better one.
There’s a core script called “LoadingScreen3D” that seems to create a part with a loading screen on it as a surface gui??? It’s very strange. Does anyone know what this is?
Here’s the link: Core-Scripts/LoadingScreen3D.lua
Here's the code that interests me most
local surfaceGuiAdorn = Util:Create'Part'
{
Name = "LoadingGui";
Transparency = 1;
CanCollide = false;
Anchored = true;
Archivable = false;
FormFactor = Enum.FormFactor.Custom;
RobloxLocked = true;
Parent = RobloxGui;
}
local loadingSurfaceGui = Util:Create'SurfaceGui'
{
Name = "LoadingSurfaceGui";
Adornee = surfaceGuiAdorn;
ToolPunchThroughDistance = 1000;
CanvasSize = Vector2.new(500, 500);
Archivable = false;
Parent = CoreGui;
}
local backgroundImage = Util:Create'ImageLabel'
{
Name = 'LoadingBackground';
Size = UDim2.new(1,0,1,0);
Image = 'rbxasset://textures/ui/LoadingScreen/BackgroundLight.png';
ScaleType = Enum.ScaleType.Slice;
SliceCenter = Rect.new(70,70,110,110);
BackgroundTransparency = 1;
Parent = loadingSurfaceGui;
}
local spinnerRotation = 0
local spinnerImage = Util:Create'ImageLabel'
{
Name = 'Spinner';
Size = UDim2.new(0.25,0,0.25,0);
Position = UDim2.new(0.5 - (0.25/2), 0, 0.45 - (0.25/2), 0);
Image = 'rbxasset://textures/ui/LoadingScreen/LoadingSpinner.png';
BackgroundTransparency = 1;
Parent = backgroundImage;
}
local loadingText = Util:Create'TextLabel'
{
Name = 'LoadingText';
Text = 'Loading...';
BackgroundTransparency = 1;
Font = Enum.Font.SourceSans;
FontSize = Enum.FontSize.Size60;
Position = UDim2.new(0.5,0,0.2,0);
Parent = backgroundImage;
}
local gameNameText = Util:Create'TextLabel'
{
Name = 'GameNameText';
Text = '';
BackgroundTransparency = 1;
Font = Enum.Font.SourceSans;
FontSize = Enum.FontSize.Size60;
Size = UDim2.new(0.9, 0, 0.1, 0);
Position = UDim2.new(0.05,0,0.65,0);
ClipsDescendants = true;
Parent = backgroundImage;
}
local creatorTextContainer = Util:Create'Frame'
{
Name = 'CreatorTextContainer';
Size = UDim2.new(0.9, 0, 0.1, 0);
Position = UDim2.new(0.05,0,0.77,0);
BackgroundTransparency = 1;
ClipsDescendants = true;
Parent = backgroundImage;
}
local creatorTextPosition = 0
local creatorText = Util:Create'TextLabel'
{
Name = 'CreatorText';
Text = '';
BackgroundTransparency = 1;
Font = Enum.Font.SourceSans;
FontSize = Enum.FontSize.Size42;
Size = UDim2.new(1, 0, 1, 0);
Parent = creatorTextContainer;
}
