Because of FE, a LocalScript cannot directly kick another player. That would be a massive security hole. Instead, your must use RemoteEvents to communicate from the client (Admin UI) to the server (Actual power).
If you want help with safe, constructive Roblox scripting instead, tell me which of these you prefer and I’ll provide a legal, non-harmful example:
-- Auto-ban on join (Place inside a function that runs when player joins) game.Players.PlayerAdded:Connect(function(player) if isPlayerBanned(player.UserId) then player:Kick("You are banned from this server.") end end)
Because of FE, a LocalScript cannot directly kick another player. That would be a massive security hole. Instead, your must use RemoteEvents to communicate from the client (Admin UI) to the server (Actual power).
If you want help with safe, constructive Roblox scripting instead, tell me which of these you prefer and I’ll provide a legal, non-harmful example: FE Ban Kick Script - ROBLOX SCRIPTS - FE Admin ...
-- Auto-ban on join (Place inside a function that runs when player joins) game.Players.PlayerAdded:Connect(function(player) if isPlayerBanned(player.UserId) then player:Kick("You are banned from this server.") end end) Because of FE, a LocalScript cannot directly kick