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?

5 comments

0

Is this in a local script or a serverscript

0

You first have to define plr

0

@JustinWe12 It's a local script in StarterCharacterScripts

0

@JustenWe12 forgot to include that part I'll edit it, but player is defined.

0

If you want other players to see the leaderstats, you need to change the Text in a server script using remote events.