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

Problem with kicking via the server side. Any help?

Asked by
poke7667 142
5 years ago
for i, v in pairs(game.Players:GetPlayers()) do
    v:Kick()
end

I tested this out in studio and in roblox in game. No one gets kicked. This script is on the server side.

0
Try a RemoteEvent fr2013 88 — 5y
0
That's not what I want to use. poke7667 142 — 5y
0
Very broad question, did anything error? Is this script actually waiting for players to join before running this loop? Vulkarin 581 — 5y
0
You aren't providing much context here...Is this all that's in the script? Optikk 499 — 5y
0
This is likely running before any players actually join the game. I recommend having this kind of thing run on an event so that you can test it. User#25115 0 — 5y

Answer this question