Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

OnEnter GUI, What is wrong?

Asked by
iNicklas 215 Moderation Voter
9 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

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)
1
You need to be more specific. What doesn't work, which part of the code doesn't execute? Spongocardo 1991 — 9y
1
More information is needed. What doesn't work? Any output? Where is the script? What type of script is it? Perci1 4988 — 9y

1 answer

Log in to vote
4
Answered by
iSvenDerp 233 Moderation Voter
9 years ago

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:)

0
Im not sure if what your trying to do works with text labels:) but hope this helped. iSvenDerp 233 — 9y
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. Spongocardo 1991 — 9y
0
Thanks.. guess i misunderstood but Ik they have to be there. I appreciate the help. iSvenDerp 233 — 9y
0
No problem. There was nothing wrong with what you said, by the way. I was just adding more detail to your answer. Spongocardo 1991 — 9y
0
Thanks iSvenDerp 233 — 9y
Ad

Answer this question