You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? i want to teleport a player to a game
-
What is the issue? it only works for me, other players get an error
-
What solutions have you tried so far? i tried using different scripts and i changed the id to place id
the game i’m trying to teleport a player from is a private game and i’m trying to do that using touch scripts, they both have http requests and api services enabled
local GameId = "16685424447"
local Touched = false
function Touched(Player)
local FromChar = game.Players:GetPlayerFromCharacter(Player.Parent)
if FromChar then
if not Touched then
local TeleService = game:GetService("TeleportService")
TeleService:Teleport(GameId,FromChar)
local Touched = true
else
print("Already Touched")
end
end
end
script.Parent.Touched:Connect(Touched)