local ReplicatedFirst = game:GetService("ReplicatedFirst")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.IgnoreGuiInset = true
screenGui.Parent = playerGui
local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.new(1, 0, 1, 0)
textLabel.BackgroundColor3 = Color3.fromRGB(16, 16, 16)
textLabel.Font = Enum.Font.Merriweather
textLabel.TextColor3 = Color3.new(0.819608, 0.819608, 0.819608)
textLabel.Text = ""
textLabel.TextSize = 40
textLabel.Parent = screenGui
-- Remove the default loading screen
ReplicatedFirst:RemoveDefaultLoadingScreen()
wait(5) -- Force screen to appear for a minimum number of seconds
if not game:IsLoaded() then
game.Loaded:Wait()
end
if game:IsLoaded() then
textLabel.Text = "Extraction Point"
wait(2)
screenGui:Destroy()
end```
Does someone know how to fade the screen to transperancy 1 instead of just disappearing immediatley?
Hi, you could use a gui object that covers the screen and its black. You could then tween the transparency of this. To fix the topbar problem, you could make a property of it called IgnoreGuiInset and set that to true.
local Players = game:GetService("Players")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.IgnoreGuiInset = true
screenGui.Parent = playerGui
local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.new(1, 0, 1, 0)
textLabel.BackgroundColor3 = Color3.fromRGB(16, 16, 16)
textLabel.Font = Enum.Font.Merriweather
textLabel.TextColor3 = Color3.new(0.819608, 0.819608, 0.819608)
textLabel.Text = ""
textLabel.TextSize = 40
textLabel.Parent = screenGui
local TextTurnOnSound = game.SoundService["Lights Turning On"]
-- Remove the default loading screen
ReplicatedFirst:RemoveDefaultLoadingScreen()
wait(5) -- Force screen to appear for a minimum number of seconds
if not game:IsLoaded() then
game.Loaded:Wait()
end
local BlackScreenFade = Instance.new("Frame")
BlackScreenFade.BackgroundColor = BrickColor.Black()
local Transperancy = {}
BlackScreenFade.Transparency = 1
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear)
local tween = TweenService:Create(BlackScreenFade, tweenInfo, Transperancy)
BlackScreenFade.Size = UDim2.new(1, 0, 1, 0)
if game:IsLoaded() then
textLabel.Text = "Extraction Point"
if TextTurnOnSound.Playing then
TextTurnOnSound.Playing = false
else
TextTurnOnSound.Playing = true
end
wait(2)
tween:Play()
end
K first line, Iâm guessing thatâs a Frame. Itâs BackgroundColor3
Then you spelt transparency wrong
Then itâs BackgroundTransparency, not Transparency on line 3
Then for the third argument in the :Create, you are setting it to an empty table. You need to set it to this {BackgroundTransparency = 0}