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)
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)
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.