Empty
Empty
Empty
ReplicatedFirst è un'area speciale per risorse e script che devono essere inviati ai giocatori non appena si uniscono al gioco, anche prima che il resto del gioco venga caricato.
Empty
Empty
Empty
Viene utilizzato per mostrare elementi come schermate di caricamento o istruzioni iniziali ai giocatori mentre il resto del gioco è ancora in fase di caricamento.
Empty
Empty
Empty
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local Players = game:GetService("Players")
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", screenGui)
textLabel.Size = UDim2.new(1, 0, 1, 0)
textLabel.BackgroundColor3 = Color3.new(1, 1, 1)
textLabel.Font = Enum.Font.GothamSemibold
textLabel.TextColor3 = Color3.new(0.8, 0.8, 0.8)
textLabel.Text = "Loading...."
textLabel.TextSize = 28
ReplicatedFirst:RemoveDefaultLoadingScreen()
if not game:IsLoaded() then
game.Loaded:Wait()
end
wait(2) -- Minimum wait time to show the screen
screenGui:Destroy()
Roblox Studio
Se hai trovato utile questo tutorial e desideri supportare il mio lavoro, considera di offrirmi un caffè.
Grazie mille per il tuo supporto!
Offrimi un caffè