Hello, I've been using CreatePlaceAsync to create self-saving places, but once they're created when it teleports me to the game I get "Failed to Connect to the Game (ID=17: Connection Attempt Failed)" every time. Normal games work fine. This glitch has been bothering me since CreatePlace/SavePlace features were released.
EDIT: I have also tried joining the created game directly via the servers menu, it doesn't work. I have also attempted simply teleporting to the created place directly, without the extra version control and data stores. doesn't work.
EDIT2: Giving up doesn't seem to work either, nor does banging on the keyboard.
EDIT3: Apparently the "You have lost connection" error also appears occasionally instead of ID=17.
In case it will help, here's the place teleport code.
local DS = game:GetService("DataStoreService"):GetGlobalDataStore(script.Parent.Parent.placeVers.Value..'-minibuilds') local debounce = false local ver = script.Parent.Parent.placeVers.Value script.Parent.MouseButton1Click:connect(function() if debounce == false then debounce = true local placeId = script.Parent.placeId.Value local place = DS:GetAsync(placeId..'-'..ver) if place ~= nil then script.Parent.Text = "Loading Place . . ." for i,v in pairs(script.Parent.Parent:GetChildren()) do if v ~= script.Parent and v:IsA("TextButton") then v:Destroy() end end game:GetService("TeleportService"):Teleport(place, script.Parent.Parent.Parent.Parent.Parent) else script.Parent.Text = "Loading Place . . ." for i,v in pairs(script.Parent.Parent:GetChildren()) do if v ~= script.Parent and v:IsA("TextButton") then v:Destroy() end end wait(1) local newPlaceId = game:GetService("AssetService"):CreatePlaceAsync(script.Parent.Name..'-'..ver, placeId) DS:SetAsync(placeId..'-'..ver, newPlaceId) wait(1) game:GetService("TeleportService"):Teleport(newPlaceId, script.Parent.Parent.Parent.Parent.Parent) end end end)
And the place saving code.
local savemins = script.saveMinutes wait(60) while true do if game.JobId ~= '' then game:GetService("AssetService"):SavePlaceAsync() end wait(savemins.Value*60) end
Thank you in advance for any help or insight you have.
These errors mean "cannot connect to server/place."
The best advice I could give you is to wait for a few seconds before joining the server. If that doesn't resolve the problem, then instantiate the place using a different method.