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

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

Asked by 3 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.

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.
3
What does the error say? Sparks 534 — 3y

1 answer

Log in to vote
1
Answered by 3 years ago

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.

0
Okay thx. THUNDER_WOW 203 — 3y
0
I found found out what my problem was, thx. THUNDER_WOW 203 — 3y
Ad

Answer this question