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

Player.Name isn't working for Text = Player.Name?

I have this script that clones a overhead gui in server script service. It goes like the following. I have a script in Server Script Service, and inside that a Bilboard Gui and inside that Gui a text button. Ever time I try and put the player it does not work.

The script:

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		local Gui = script.BillboardGui:Clone()
		Gui.Parent = Character.Head
		Gui.TextButton.Text = Player.Name <<<--- This for some reason give me an error.
	end)
end)
-- I wrote this script from memory and some words may be misspelled but that is not the issue.

1 comment

3

What does the error say?

1 answer

✓ Accepted answer

Hi thunder,

I've looked at the script you've provided, and found no error there, even when testing it on studio myself. I've provided a game here that has the script fully working.

Hope this helps you with your problem.

2 comments

0

Okay thx.

0

I found found out what my problem was, thx.

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