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 2 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 — 2y
0
?? if u want it to show right away do Instance.new("ScreenGui", player:WaitForChild('PlayerGui')) otherwise everything should work? BulletproofVast 1033 — 2y
0
yes you can CalledMetatable 0 — 2y
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 — 2y

Answer this question