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

How do I access a member with a name with space?

Asked by 3 years ago

I need to access player high score which is located inside of leaderstats, but it has a space in it's name so script doesn't understand what am I doing. How do I do this?

player.leaderstats. High Score
0
player.leaderstats["High Score"] player.leaderstats:FindFirstChild("High Score") misha123 83 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

use player.leaderstats["High Score"]

Ad

Answer this question