I’m trying to do this
-- client
for i, v in pairs(children) do
if v:IsA("ImageButton") and v.Name ~= "Booksona" then
v.Visible = false
local ok = remote:InvokeServer(v.Name)
if ok == true then
v.Visible = true
end
end
end
-- server
local function bruh(player, name)
return BadgeService:UserHasBadgeAsync(player.UserId, IDs[name])
end
remote.OnServerInvoke = bruh()
but it’s saying on the second line of the server script that argument 2 is missing or nil.