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 get this to work for a GUI?

Here is a script iv'e been working on for players joining, could anyone tell or help me how to make this into a gui? (The gui is a Screen gui > Frame >Frame inside Frame and Text Box or Button)

Here it is.

game.Players.PlayerAdded:connect(function(Player)
	wait(1/3)
	local h = Instance.new("Hint",workspace)
	h.Text = "[CONSOLE] "..Player.Name.." Has joined!"
	wait(5)
	h:Remove()
	
	
end)

even just giving a link to something that will help is all I need.

1 answer

ScriptingHelpers is not a place for requests.

However, you just need to set the Text Property of the TextButton or Box or Label, like you're doing for that Hint.

Instead of Remove, you should be using Destroy, by the way. Except for the GUI, you're going to want to set the text to "" (an empty string) instead of either Destroying or Removeing it.

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