I'm trying to make a ban button and it shows me this error, can anyone help me?
Here's my script
local banDataStore = game:GetService("DataStoreService"):GetDataStore("banDataStore")
local Frame = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
local Player = Frame.Username.Text
local PlayerUID = Player.UserId
local success, errorMessage = pcall(function()
banDataStore:SetAsync(PlayerUID, true)
end)
if not success then
print("L")
end
Player:Kick("You've been banned from this game!")
end)

2 comments
What line is the error at?
Line 19