I’m attempting to make a Trello-based blacklist appeal system for a group, but I’ve run into a problem that wasn’t happening before. The .OnServerInvoke callback never runs the function, or never picks up the invoke.
This is the RemoteFunction handlers:
checkBlacklist.OnServerInvoke = function(player)
if(checkForCard("5eaf4ffca11e1c2a52440572",player.Name) or checkForCard("5eaf5000d2587485cd9a1ae2",player.Name)) then
return true
else
return false
end
end
checkPermBlacklist.OnServerInvoke = function(player)
if(checkForAppeal("5eaf5001ad9d674db27c13f8",player.Name) or checkForAppeal("5eaf5000d2587485cd9a1ae2",player.Name)) then
return true
else
return false
end
end
checkAppeal.OnServerInvoke = function(player)
if(checkForAppeal("5eaf5001ad9d674db27c13f8",player.Name)) then
return true
else
return false
end
end
I tried putting a print or something at the top, and it never printed out when I invoked it. The localscript is here:
print("Retrieving data from the Trello...")
local isBlacklisted = game.ReplicatedStorage.CheckIfBlacklistExists:InvokeServer() print("Blacklist didn't yield.")
local isPermBlacklisted = game.ReplicatedStorage.CheckIfNoAppealBlacklistExists:InvokeServer(); print("Perm didn't yield.")
local appealSent = game.ReplicatedStorage.CheckIfAppealExists:InvokeServer(); print("Appeal didn't yield.")
print("Appealed: "..appealSent)
print("No appeal allowed: "..isPermBlacklisted)
print("Blacklisted: "..isBlacklisted)
if(appealSent) then
script.Parent.Status.Text = "Appeal Sent"
script.Parent.Description.Text = "Your appeal has already been sent and will be reviewed by our executives shortly!"
else
if(isBlacklisted and not isPermBlacklisted) then
script.Parent.Status.Text = "You're Blacklisted"
script.Parent.Description.Text = "You're blacklisted, but don't have too much fear! You can still appeal!"
script.Parent.AppealButton.Visible = true
else
if(isPermBlacklisted) then
script.Parent.Status.Text = "You're Blacklisted"
script.Parent.Description.Text = "You're blacklisted, but there's no appeal allowed for you!"
else
script.Parent.Status.Text = "Not Blacklisted"
script.Parent.Description.Text = "It doesn't look like you're currently blacklisted from Zackslater's Foundation!"
end
end
end
If anybody could help, that’d be awesome!