So I’m trying to make my server auto when a player join and only for certain ranks can join. The server can be unslock by doing the unslock command, im not sure how to do it… would anyone help me? preferably if you can help me using the BAE if not, its fine
I tried reading your question.
If what you are trying to do is making a server that only allows players with a certain rank. All you need to do is check what rank the player is when they join and then kick them using player:Kick().
it’s simple to make server lock all you need is basic knowledge of Group and TextService
-
Make server stats to easy access and changing server lock and unlock by values on serverstorage or anywhere,
-
After creating the server stats you will need to make script that checks player chats by TextService and playing around strings,
-
When player chats you are going to check the message that he sent if it’s the targeted words like
:serverlock
then you are going to check if the player has the ability to lock the server by group rankPlayer:GetRoleIn(Id Of Targeted Group)
by if statement. -
If the player have ability to lock the server you are going to change server stats to lock and when ever player joined you going to check if the player rank is above the targeted rank
Player:GetRoleIn(Id Of Targeted Group)
by if statement. -
if player isn’t have the ablity to bypass server lock he will get kicked by
TargetedPlayer:Kick("Message")
if he can by pass then you are not going to do anything
For unlocking just do like locking but change the server stats to unlock
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.