Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What would be a script for a kick gui? If someone could help me that would be great!

Asked by 6 years ago

If I wanted to kick someone with a screen GUI where I would put in the username of player and press enter it would kick. How would I do that?

2 answers

Log in to vote
0
Answered by 6 years ago

You will have to show that you've put in a good effort to complete this before asking for help, otherwise you're basically asking for someone to create the whole thing for you. Here's something to get you started.

  1. Create the GUI itself. You will need at least a TextBox so the player can type something, and a TextButton or ImageButton so the player can "submit" their input.

  2. Read this introduction on working with GUIs.

  3. Since kicking a player can only be done via a server Script, and you are (presumably) using a LocalScript to run the GUI, you will have to learn how to pass information between the Client and the Server, using Remotes.

  4. Use what you've learned to kick a player with a specific name in a server Script that gets its input from a LocalScript running on the Client.

0
Do you know anyone I can pay to do it?? ModerationError 0 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

im not going to write one for you but here is how you kick people I would recomend using a "for loop" to search for the player in players to avoid errors example:

game.Players.ThisIsAnAccount255:Kick("reason")

Answer this question