--Local
local data = game.ReplicatedStorage.Remotes.Check:InvokeServer(tostring(script.Parent.ID.ContentLabel.Text), 1)
---Server
local function OnInvoke(p, Player,Intent,Table)
if Intent == 1 then --Check status
local data = BannedPlayers:GetAsync(Player.UserId.."_BanV1")
return data
-- I cut out a lot here.
end
end
game.ReplicatedStorage.Remotes.Check.OnServerInvoke = OnInvoke
p is the player you are receiving the message from. If you aren’t returning anything, use a RemoteEvent instead. Also, you cannot send a Player through a Remote, since it is an instance. You can only send the player’s name.