I have this error every so often so I have to spam click. https://gyazo.com/b8205c0c17681364a34698382ab6edc4
script.Parent.MouseButton1Click:connect(function() local TeleportService = game:GetService("TeleportService") TeleportService:Teleport(425571759,game.Players.LocalPlayer) end)
The game is in the same universe
I found a temporary fix, by repeating the script until you teleport
I don't really have an answer to this, but I did it a different way and it works perfectly fine:
player = game.Players.LocalPlayer placeId = PLACEID script.Parent.MouseButton1Click:connect(function() game:GetService("TeleportService"):Teleport(placeId, player) end)
~ For some reason I can't comment?