Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

TeleportToPrivateServer() not working: Error 769?

Asked by 5 years ago

I've been trying to get players to stand on a part that teleports them into another 'place' (separate from the starting place). However, when you step on it, it comes up with a teleport error (in-game, not testing) which is called error 769. Can anyone help please? The code is attached below. `local TeleportService = game:GetService("TeleportService") local id=3543671090

script.Parent.Touched:connect(function(hit) local code = TeleportService:ReserveServer(id) local player = game.Players:GetPlayerFromCharacter(hit.Parent) TeleportService:TeleportToPrivateServer(game.PlaceId, code, {player})

end)`

1 answer

Log in to vote
0
Answered by
WoTrox 345 Moderation Voter
5 years ago

LocalScript inside the Part

local TeleportService = game:GetService("TeleportService")
local gameID = --The place's Id 

script.Parent.Touched:Connect(function(hit)

    local character = script.Parent.Parent.Name
    local player = game.Players:FindFirstChild(character)
    TeleportService:Teleport(gameID, player)

end)

If not working send the error codes

0
@WoTrox still not working.Error 769 still there, i fixed it earlier by replacing game.PlaceId with 'id' but i realised that the script instantly teleports the player without anyone else. Primrose_Studio 53 — 5y
0
I've been looking at TeleportPartyAsync(). Is there any way where I can assign the players that touch this part into a group/ variable/ team and then teleport them into a PRIVATE server. I'm fairly sure that your script would have just sent them into any server. Primrose_Studio 53 — 5y
0
In my game, I made different places, like solo, duo, trio and squad, but I don't know any solutions for a private server. Sorry. And if you find something, please let me know. WoTrox 345 — 5y
0
I found a something on the Roblox Developer Console. https://developer.roblox.com/en-us/api-reference/function/TeleportService/ReserveServer WoTrox 345 — 5y
View all comments (2 more)
0
Yeah, I realised that it would only transport one player at a time into a private server, so the TeleportPartyAsync () teleports a group of players. If I could add the players to a list or variable, then it would be possible! Primrose_Studio 53 — 5y
0
Go ahead! Tell me if you succeed WoTrox 345 — 5y
Ad

Answer this question