i am making an admin panel with server joining but i keep getting the error Cannot teleport to empty instance id. Aborting teleport.
it takes the textvalue of a textbox where you input a job id, which when its valid still returns that error
hierarchy:
local jobId = game.JobId
local tpService = game:GetService("TeleportService")
local joinJobId = script.Parent.Parent.Parent.jobId.Job.Text
local text = script.Parent
print("jobId: " .. jobId)
text.Text = jobId
local joinButton = script.Parent.Parent.Parent.joinJobId.Join
joinButton.MouseButton1Click:Connect(function()
print(joinJobId)
tpService:TeleportToPlaceInstance(game.PlaceId, joinJobId)
end)