Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make it say custom value is you are in that group?

So when it detects your in that group it makes the Regiment Value = "LG"? ``~~~~~~~~~~~~~~~~~ local Regiment = Instance.new("StringValue") Regiment.Name = "Regiment" Regiment.Value = player:IsInGroup(5965580)

1 answer

✓ Accepted answer

You can use a simple Ternary statement since the :IsInGroup() method of Player returns a Boolean. Using this, we can balance whether to set "LG", or an alternative Value if they're not.

local Regiment = Instance.new("StringValue")
Regiment.Name = "Regiment" 
Regiment.Value = (Player:IsInGroup(5965580) and "LG" or "Isn't LG")

This discussion is preserved as it was. New answers, comments, and votes are closed.