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

I've made a admin and dont know what to put in the game.Players bit? [Solved]

Asked by 4 years ago
Edited by Ziffixture 4 years ago

Here is the code

01commands.kick = function(sender, arguments)
02 
03    print("Kick Fired By "..sender.Name)
04 
05    for _, playerName in pairs(arguments) do
06        print(playerName)
07    end
08 
09    local playerToKick = arguments[1]
10 
11    if playerToKick then
12        local plrToK = findPlayer(playerToKick)
13 
14        if plrToK then
15            game.Players.    :Kick("Removed From The Server")
View all 73 lines...

1 answer

Log in to vote
0
Answered by 4 years ago

This question has been solved by the original poster.

game.Players[playerToKick]:Kick("")

Figured it out

Ad

Answer this question