How to kick from client

Hello !

I’m making a very simple script that ask the player a text on connection and if the player is right then we let him play but if he his wrong then we kick him.

The asking system is perfectly working but i can’t kick the user.

It’s client side and i’m trying to use : DropPlayer(playerSrc, ‘reason’) but i have no idea what should i give on “playerSrc”.

Thanks for your help !

1 Like

Drop player is a server native

So something like

DropPlayer(source, 'Thanks for stopping by. See you soon.') -- Change this message, It is displayed to the player on leave.

Source for above code

2 Likes

This works like a charm ! thanks a lot sir :slight_smile:

1 Like

no probs, happy to help

1 Like