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

How do I display text on a players arm?

Asked by 3 years ago
Edited 3 years ago

I'm trying to make it to where a players leaderstats are listed on their arm, this is my code so far:

local plr = game:GetService("Players").LocalPlayer
while true do
    wait(0.2)
    plr.Humanoid.Parent["Right Arm"].SurfaceGui.TextLabel.Text = plr.leaderstats.Time.Value
end

I don't know what I did wrong, can anyone help?

0
Is this in a local script or a serverscript JustinWe12 723 — 3y
0
You first have to define plr JustinWe12 723 — 3y
0
@JustinWe12 It's a local script in StarterCharacterScripts dexter9306 0 — 3y
0
@JustenWe12 forgot to include that part I'll edit it, but player is defined. dexter9306 0 — 3y
0
If you want other players to see the leaderstats, you need to change the Text in a server script using remote events. JustinWe12 723 — 3y

Answer this question