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

Ban script isn't working?

Asked by 4 years ago
Edited 4 years ago

I am trying to make a ban GUI where moderators can ban players but the player doesn't get kicked.

-- local script
while true do
    wait(1)
    game.ReplicatedStorage.Remotes.RequestData:FireServer()
end
-- server script
game.ReplicatedStorage.Remotes.ban.OnServerEvent:Connect(function(player)
    game.ServerStorage[player.Name].NotBanned.Value = false
end)
-- other server script
game.ReplicatedStorage.Remotes.RequestData.OnServerEvent:Connect(function(player)
    if game.ServerStorage[player.Name].NotBanned == false then
        player:Kick('Banned')
    end
end)
0
Are you seriously having the banned person determine whether or not they should be kicked? And there's absolutely no data store service here... make your title relevant to the body of the question. User#24403 69 — 4y
0
no u read it wrong incap greatneil80 2647 — 4y

Answer this question