game.ReplicatedStorage.Ban.OnServerEvent:Connect(function(plr,Player,Error)
local Fakeplr = game.Players:GetPlayerFromCharacter(Player.Character)
if not Fakeplr then
Error.Visible = true
wait(3)
Error.Visible = false
else
local PlayerToBeBanned = game.Players:FindFirstChild(Player)
PlayerToBeBanned.BanItems.Player.Value = plr.Name
PlayerToBeBanned.BanItems.IsBanned.Value = true
end
end)