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)`
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