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

Why is this gui not making new texting after the wait command??

I made this for fun but its not working im sure this is a easy fix

Kids = 4

if Kids == 4 then
	game.StarterGui.ScreenGui.Frame.TextLabel.Text = ("hello")
	wait(5)
	game.StarterGui.ScreenGui.Frame.TextLabel.Text = ("How are you?")
	wait(7)
	game.StarterGui.ScreenGui.Frame.TextLabel.Text = ("My name is bob")
	wait(7)
	game.StarterGui.ScreenGui.Frame.TextLabel.Text = ("I am a slime guy")
	wait(7)
	game.StarterGui.ScreenGui.Frame.TextLabel.Text = ("I am green")
	wait(7)
	game.StarterGui.ScreenGui.Frame.TextLabel.Text = ("I like to play Roblox")
	wait(6)
	game.StarterGui.ScreenGui.Frame.TextLabel.Text = ("The end..")

end

if Kids == 1 or 2 or 3 or 5 or 6 or 7
then
	game.StarterGui.ScreenGui.Frame.TextLabel.Text = ("Wrong Password")
	
	
end

1 answer

You are editing the StarterGui instead of the PlayerGui. The StarterGui is a container that stores the gui to be given to a player when they spawn in. What you need to do is directly edit the PlayerGui.

Each player has a PlayerGui. In order to access it, you need to do game.Players.[PlayerName].PlayerGui.

To read more, go to the following link: https://developer.roblox.com/en-us/api-reference/class/PlayerGui

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