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

How do I make a GUI with an increasing size?

For some reason this dosen't work, what is the problem?

local introSize1 = 0

	while introSize1 < 430 do
		
	introSize1 = introSize1 + 1
	game.StarterGui.Intro.frameOne.Size = UDim2.new(1, 0, 0, introSize1)
	
	
	
		wait(0.1)
	end

3 comments

0

You are changing it in "StarterGui" Not their playergui

0

What do you mean by that, can you give me an example?

0

"game.StarterGui" is a GUI container that replicates the GUIs to the players. It has no visual effect upon each of the player once the GUIs in it are manipulated (unless if the player respawns). The PlayerGui's what you're looking for. It's the Player's own GUI container that you can manipulate in for this purpose.

2 answers

Try this

local introSize1 = 0
game.Players.PlayerAdded:connect(function(p)
p.PlayerGui:WaitForChild("Intro") 
p.PlayerGui.Intro:WaitForChild("frameOne")

    while introSize1 < 430 do

    introSize1 = introSize1 + 1
    p.PlayerGui.Intro.frameOne.Size = UDim2.new(1, 0, 0, introSize1)



        wait(0.1)
    end


end)
local player = game.Players.LocalPlayer
repeat wait() until player.Character
local gui = player.PlayerGui

local introSize1 = 0
    while introSize1 < 430 do
    introSize1 = introSize1 + 1
    gui.Intro.frameOne.Size = UDim2.new(1, 0, 0, introSize1)
        wait(0.1)
    end


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