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

So I am wondering if I can use the player name for a Text label like this?

Asked by 3 years ago
local plr = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui", game.StarterGui)

local test = Instance.new("TextLabel", gui)
test.Text = "Welcome"..plr.Name.."!"
0
You can test any questions you have in roblox studios JustinWe12 723 — 3y
0
?? if u want it to show right away do Instance.new("ScreenGui", player:WaitForChild('PlayerGui')) otherwise everything should work? BulletproofVast 1033 — 3y
0
yes you can CalledMetatable 0 — 3y
0
You can't use StarterGui, you need to use PlayerGui, I always use this tutorial in cases like that hehehe. Hope this helps! (I'm not sure if that's it) https://www.youtube.com/watch?v=txcHH11-3v8&t=250s PandaFaminto0202 -6 — 3y

Answer this question