|
| 22 Dec 2013 05:37 AM |
function enter(newPlayer) if newPlayer:GetRankInGroup(852023)>= 70 then else newPlayer:Kick() wait(3) end end I'm only wanting those people with the rank above LTG to enter, those below get kicked.
|
|
|
| Report Abuse |
|
|
Scriptury
|
  |
| Joined: 21 Aug 2013 |
| Total Posts: 220 |
|
|
| 22 Dec 2013 05:38 AM |
| You need to check the data type returned by the GetRankInGroup method. |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2013 05:38 AM |
| What do you mean, exactly? |
|
|
| Report Abuse |
|
|
Scriptury
|
  |
| Joined: 21 Aug 2013 |
| Total Posts: 220 |
|
|
| 22 Dec 2013 05:40 AM |
game.Players.PlayerAdded:connect(function(player) if Player:GetRankInGroup(852023) <= LTG_RANK then player:Kick() end end) |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2013 05:41 AM |
Oh stupid me I got > greater than mixed in with < less than Also doesn't Player need to be player? |
|
|
| Report Abuse |
|
|
Scriptury
|
  |
| Joined: 21 Aug 2013 |
| Total Posts: 220 |
|
| |
|
|
| 22 Dec 2013 05:45 AM |
game.Players.PlayerAdded:connect(function(player) if player:GetRankInGroup(852023) <= 70 then player:Kick() end end) |
|
|
| Report Abuse |
|
|
Scriptury
|
  |
| Joined: 21 Aug 2013 |
| Total Posts: 220 |
|
| |
|