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

How to give leaderstats a word value?

Asked by
dxrrevn 13
3 years ago
Edited 3 years ago

I'm currently making a Self Check-In system for an airline I'm working on; I need to have a player's airline class as a leaderstat, however that would involve having words as the [statname].Value. I have this already:

1game.Players.PlayerAdded:Connect(function(plr)
2    local leaderstats = Instance.new("Folder", plr)
3    leaderstats.Name = "leaderstats"
4 
5    local Class = Instance.new("IntValue", leaderstats)
6    Class.Name = "Class"
7    Class.Value = "Awaiting Check-In"
8end)

and I'm not sure how to work it. Whenever I join the game, the value comes out at '0' instead of 'Awaiting Check-In' (https://gyazo.com/05bff9e2fa2fc823d3260061fa443adf) Does anyone know how to resolve this issue? If yes, get back to me as soon as possible.

Thanks, dxrrevn

0
LINE 5: Change IntValue to StringValue ThatCoolCoderGuy 18 — 3y
0
Thanks, that's helped! dxrrevn 13 — 3y

Answer this question