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)

2 comments
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.
no u read it wrong incap