Hello, I'm trying to make it so after you managed to finish the puzzle in a game it'll teleport you to the next part through teleport service which teleports all players currently in the server. However when me and my friends tested it it shown this error in the client output: "PlaceTeleporter: teleport failed because script failed to load." Any idea on how I can fix this? Here is my code, should I change anything? I have tried repeating the teleport aswell but unfortunately that doesn't work either.
local Players = game.Players:GetPlayers() local TeleportService = game:GetService("TeleportService") script.Parent.Touched:Connect(function(hit) if hit.Parent.Humanoid ~= nil then if script.Parent.Value.Value == true then print("Teleporting Players...") local reserve = TeleportService:ReserveServer(8532865349) wait(0.5) if reserve then print("Teleported Players.") print(Players) TeleportService:TeleportToPrivateServer(8532865349,reserve,Players) end end end end end)