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

Changing the text on a Gui to a players name is causing an error. How do I fix this?

Asked by 4 years ago
Edited 4 years ago
game.Players.PlayerAdded:Connect(function(player)
clonegui.Frame.Name.Text = (" "..player.Name)
end)

This is the error: ServerScriptService.Script:2: attempt to index field 'Name' (a string value)

0
I think you might be trying to access a children of the Frame, but the script is thinking you're trying to use the Name property, try renaming the child of Frame to something else so it goes like "clonegui.Frame.[new name].Text" instead Z0ggg 20 — 4y
0
yeah just remove the .Name HappyTimIsHim 652 — 4y
0
if you need me to be more detailed, i can write an actual answer instead Z0ggg 20 — 4y
0
No you're right I understand. Thanks it's fixed now. FallenZalio 99 — 4y

Answer this question