Okay need help with this so, I have a script and a module script linked to the discord bot I made
This script is in server script service
local module = require(game:GetService("ServerScriptService").Whitelist)
local players = game:GetService("Players")
local event = game:GetService("ReplicatedStorage").LinkHandler
game.Players.PlayerAdded:Connect(function(player)
local userid = player.UserId
print(module.GetVerifyStatus(tonumber(userid)))
local code = module.GetLinkCode(tonumber(userid))
print(code)
event:FireClient(player, code)
end)
My issue is when i call the gelinkcode it is supposed to respond with a random code as long as the userid is real and subsiquently i also have the getverifystatus which will respond with link or complete. However it just responds with nil for both.
as you can see sometimes it works sometimes it doesnt