How do I make a custom server lock?

Hello! I need help making a Custom Slock if you know the Script it would be a really Big Thanks! Just like Hilton Hotels. That would be great please post it in the Comments

1 Like

To do this, first you would need to create a slock variable.

When a player joins, if that variable is true then kick the player.

Then to change that value, create a function for when a player chats. Inside this function check if the player has permission (in group I assume) and if they do change the value.

1 Like

Could you DM ME the Script on Dizzy My User is: :hugs: A_ndrvw :hugs:#9406

You are not allowed to ask for code. (This should be in #help-and-feedback:scripting-support)

Does something specifically confuse you about my post above?

2 Likes

Okay. (30 Characters)…

I’m not really a Scripter so I don’t really Understand.

The code at the bottom gives you everything you need: Player | Documentation - Roblox Creator Hub

Although instead of kicking, make the command change the variable. Then kick when a player joins if that variable is true.

1 Like

Okay, thanks! (30 Characters).