Not Entering into Datastore

So i’m Making a Ban Gui but my code for entering the player into the datastore is not working?

i’ve went to the DevHub for this and youtube.
my code

local DDS = game:GetService("DataStoreService")
local Players = game:GetService("Players")
local BanStore = DDS:GetDataStore("BanStore1")
local secondsInADay = 86400
local Admins = {
	"DeveloperSiverity",
	"Renzpalo1",
	"chickeip"
}

game.ReplicatedStorage.Ban.OnServerEvent:Connect(function(plr, Player, Reason, Duration)
	for i,v in pairs(Admins) do
		if plr.Name == v then
			local success, Error = pcall(function()

				BanStore:SetAsync(game.Players:GetUserIdFromNameAsync(Player), {BanStart = os.time(), BanDuration = (Duration * secondsInADay), banReason = Reason})	
				print("Entered into Ban Datastore")
			end)
			game.Players:FindFirstChild(Player):Kick("You have been banned from this game By a admin For "..Reason)
			if not success then
				warn("Failed")
			end


		end


	end




end)

Only the warn gets passed

if you mean this warning:
warn("Failed")
try adding this after it:

warn(Error)
then telling us what it outputs

I’ll do that tommoroq I’m right now in bed

The error is weird its not in red
function: 0x69969ec8a823ea92

the image is
Screen Shot 2022-01-12 at 7.12.33 PM

Edit: i changed the warn To error and it said Error occurred, no output from Lua.

Can you provide us with the script again please

It’s the exact just I replace warn with pront(error)

What line is line 25?

gotta get to 30 letters