I’m in the process of making a Private Server System for my upcoming Roblox Roleplay Game, and there is an issue with the Private Servers Join Code. It was working fine, then when I added something new to test, it didn’t teleport me, so I checked the console, and theres an error on line 103. So I removed my new change and tried again, and the error still showed, and nothing on that line was changed.
Wondering if someone could help me out.
Error:
Script: (Line 100 - Line 107)
JoinServerButton.MouseButton1Click:Connect(function()
if JoinServerCodeEntered ~= nil then
local ID = ServerName:GetAsync(JoinServerCodeEntered)
local Code = ServerAccessCode:GetAsync(ID)
TeleportService:TeleportToPrivateServer(game.PlaceId, Code, {Player})
end
end)
The line with the issue is this line here:
local Code = ServerAccessCode:GetAsync(ID)