Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

TeleportToPrivateServer() not working: Error 769?

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

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

6 comments

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.

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.

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.

0
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!

0

Go ahead! Tell me if you succeed

This discussion is preserved as it was. New answers, comments, and votes are closed.