Hello,
I made this script below where if a player is in a certain rank in a group, they can use the KeyCode
“T” to trigger a function. Now, players in the group that are less than the rank are not able to perform the action, whereas players not in the group at all can perform the action with the KeyCode
. Does anyone know a solution to where maybe the script can detect if the player is not in the group which wouldn’t allow them to trigger the function?
UserInputService.InputBegan:Connect(function(Key)
if Key.KeyCode == Enum.KeyCode.T and Player:GetRankInGroup(groupID)>= ReqRank then
ChangeActive()
end
end)