"Attempt to compare string and number" Help?
Working on a gui that is cloned to your playerGui if you are at or above a certain group rank. After testing, this should work, but still isnt. Both of the values shown are number values. No values here are string.
This is a serverScript that is in serverScriptService.
My code:
1 | local groupId = script.GroupId.Value |
2 | local minimumRank = script.MinimumRank.Value |
4 | game.Players.PlayerAdded:Connect( function (player) |
5 | if player:GetRoleInGroup(groupId) < = minimumRank then |
6 | local guiClone = script.Announce:Clone() |
7 | guiClone.Parent = player:WaitForChild( "PlayerGui" ) |
Any help would be appreciated.