Still have questions? Join our Discord server and get real time help.
Log in to vote

Why isn't my TeleportService:GetPlayerInstance() script working correctly?

Asked by
katclap 22
8 days ago
Edited by RobloxWhizYT 8 days ago

I am making a friends list for players to join their friends because my game, Project Auction Reborn, involves a multiplayer aspect but uses a different start place, upon entering the game there is a list of online friends, clicking join on one of them fires an event to the server with the parameters: player and user Id of the friend. The server is then supposed to forward the player to his/her friend. Upon activating this i receive no error but nothing happens. please help!

Below is the server code

function tele (player, userId)
local TeleportService = game:GetService("TeleportService")  
        local success, errorMessage, placeId, jobId = pcall(function()
            return TeleportService:GetPlayerPlaceInstanceAsync(userId)
        if success then
            -- Teleport player
            TeleportService:TeleportToPlaceInstance(placeId, jobId, player)


Answer this question