Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Do I Get A Gui To Fill Up The Entire Screen?

Its a GUI that opens when a player joins the game and stays for 5 secounds. script here:

game.Players.PlayerAdded:connect(function (newPlayer)
wait(0.01)
a = script.MagicalGUI:Clone()
a.Parent = newPlayer.PlayerGui
wait(5)
newPlayer.PlayerGui.MagicalGUI:Remove()

end)

How can I get it to fill the entire screen?

2 answers

✓ Accepted answer

Set your Frame's size to {1, 0},{1, 0} or in Lua UDim2.new(1, 0, 1, 0).

UDim2

game.Players.PlayerAdded:connect(function (newPlayer)

wait(0.01)

a = script.Parent

a.Visible=true

wait(5)

a.Visible=false

 

end)

It's already in the player Starter GUI upon login.

(To Size it go to the size property in your GUI and change first and third value to 1)

This discussion is preserved as it was. New answers, comments, and votes are closed.