So I’m making this game where you can teleport to an other world to do some stuff. I made a new place an used this script in a sort of portal:
local Part = script.Parent
Part.Touched:Connect(function(HIT)
local H = HIT.Parent:FindFirstChild(“Humanoid”)
if H then
local playerName = HIT.Parent.Name
local player = game.Players:FindFirstChild(playerName)
if player then
game:GetService('TeleportService'):Teleport(my code here)
end
end
end)
But I get error 773: “Roblox attempted to teleport to a place that is restricted” and I already tried a lot of things, so I was hoping someone could help me here.
TeleportAsync() takes a table for the players you want to teleport. You can do this by simply adding {} around the player you are trying to teleport. It should look something like this:
I think this error is caused by network issues because it only occurs sometimes. I’m not sure if this will help, but you can try to restart your router/device.
I don’t think that’s the problem because I use a network cable. But at this point I would try anything I’m trying to fix this about a week already and I’m getting frustrated.