TeleportService works on main place and not in the other place?
Touch brick that creates an apartment and then TPs you. This works.
01 | game:GetService( 'TeleportService' ).CustomizedTeleportUI = true |
03 | ds = game:GetService( "DataStoreService" ):GetGlobalDataStore() |
05 | local handler = game:GetService( "AssetService" ) |
08 | script.Parent.Touched:connect( function (hit) |
09 | local h = hit.Parent:FindFirstChild( "Humanoid" ) |
10 | if h and db = = false then db = true |
11 | local p = game.Players:FindFirstChild(h.Parent.Name) |
12 | local createPlace = handler:CreatePlaceAsync(game.Players:FindFirstChild(p.Name).Name.. "'s Apartment" , 445919249 ) |
14 | game:GetService( 'TeleportService' ):Teleport(createPlace,p) |
Clickable button in the Apartment place thats supposed to take you back to the main game.This doesnt work and gives a local error.
01 | game:GetService( 'TeleportService' ).CustomizedTeleportUI = true |
04 | script.Parent.MouseClick:connect( function (p) |
06 | game:GetService( 'TeleportService' ):TeleportToPlaceInstance( 372961598 , 1 ,p) |
Error I get from Local Output : Teleport exception : HTTP 400 (HTTP/1.1 Bad Request)