Server.HandleJoinRequest(groupID, player.Name, Accept)
I assume you forgot to remove the userid parameter from the HandleJoinRequest
function inside of the Server
module
My guess is that the server/api you’re using to accept the join request is supposed to take a userID, check the function to make sure there isn’t a parameter for the userId.
Nope, I didn’t.
Server.HandleJoinRequest = function(GroupId, PlayerUsername, Boolean)
assert(typeof(GroupId) == "number", "Error: GroupId must be an integer") -- Throw error if GroupId is not an integer
assert(typeof(PlayerUsername) == "string", "Error: PlayerUsername must be a string") -- Throw error if PlayerUsername is not a string
assert(typeof(Boolean) == "boolean", "Error: Boolean must be a boolean value") -- Throw error if Boolean is not a boolean value
local Body = {
Group = GroupId;
Username = PlayerUsername;
Accept = Boolean; -- true or false
}
local Success, Result = pcall(function()
return Request('HandleJoinRequest', Body)
end)
print(Result)
end
There’s no parameter for the userId, it’s checking for the players username by a string value, however, I don’t know how to make a string value based on a players username when someone connects to the game.
Is the error returned from the website or is it a roblox error?
ROBLOX Error, I’m using noblox.js features for my vps coding on repl.
Can you show a screenshot of the whole error stack?
Do you have discord by any chance, we can further discuss on discord.
Add: DivideAndConquere#0001
Since the year I joined ROBLOX 2012, started developing from building to LUA, .js, C#, Python, etc as the years progress.
WOW!, thanks for being scripting so far and helping people
Please post it here so other people can help you too.
Please post an image of the error you are receiving.
Error: Required argument "userId" is missing
Please show the whole output window.
Just go look at the source code I’m using lol.
The source code is not the error.
I just need to get the players username from a string value.
You need to provide the entire error for us to assist.