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

OnEnter GUI, What is wrong?

EDIT: since you don't know what this is supposed to do, lol.

Its a custom Hint message GUI, for when a player joins, it shows Player name and "joined the server!"

and after 5 sec it is gonna disappear.

local frame = script.Parent.Parent
local TextLabel = script.Parent

frame.Visible = false

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

frame.Visible = true

	TextLabel.Text = Player.Name.. " joined the server!"
	
	wait(5)
	
frame.Visible = false	
	
end)

2 comments

1

You need to be more specific. What doesn't work, which part of the code doesn't execute?

1

More information is needed. What doesn't work? Any output? Where is the script? What type of script is it?

1 answer

Im not really sure what your asking because you need to be more specific but I do notice a typo in there.

TextLabel.Text = Player.Name " joined the server!"

This is what you put.

TextLabel.Text = Player.Name.. " joined the server!"

Thats what you should have put. I believe. Those dots are there for the script to say who joined the game. I actully made a script for this but mine was a hint message. Hope this helped:)

5 comments

0

Im not sure if what your trying to do works with text labels:) but hope this helped.

0

The two dots are an operator for string concatenation. String concatenation is the combining of two or more strings to form a whole string.

0

Thanks.. guess i misunderstood but Ik they have to be there. I appreciate the help.

0

No problem. There was nothing wrong with what you said, by the way. I was just adding more detail to your answer.

0

Thanks

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