#this wont send me to THE PLACE OMG
86 messages · Page 1 of 1 (latest)
You are now Stage 4 Homeless! 
https://create.roblox.com/docs/mechanics/teleporting-between-places
TeleportService doesn't support playtesting in Roblox Studio. You must publish the experience and play it on the Roblox application for testing.
Make sure that's cleared up first. If you are aware of that, then are you getting any errors?
Wait wtf am I reading... lol
Are you trying to teleport a player's character to a block? Or a player to another place?

player
to a place
LOL
I SEE IT

I'm concerned... What do you see? lmao. Because given your goal, your code is in a completely different realm
it wont send me after revamping the whole script omfg
Are you trying it in Studio? It has to be in a real running game
no
real game
real stuff
It's tough to debug as there's no output.... Hmm
this is like the only thing
Don't call TeleportAsync directly on the player, use the TeleportService
so wait
like this?
button.MouseButton1Click:Connect(function()
local gameId = 11390456132 -- Replace this with the ID of the game that you want to join
local gameInfo = game:GetService("MarketplaceService"):GetProductInfo(gameId)
if gameInfo then
-- Join the game
local success, errorMessage = game:GetService("TeleportService"):Teleport(gameInfo.GameId)
if not success then
print("Error teleporting to game: " .. errorMessage)
game.StarterGui:SetCore("SendNotification", {
Title = "Error Teleporting",
Text = "An error occurred while trying to teleport to the game. Please try again later.",
Duration = 5,
})
end
else
print("Game not found")
end
end)
Teleport has 4 parameters
😝
And it returns nothing
Teleport:(placeId, the player to teleport) at least
There's two others but they're optional
TeleportAsync only works in server scripts, but Idk if that's true for Teleport
button.MouseButton1Click:Connect(function()
local gameId = 11390456132 -- Replace this with the ID of the game that you want to join
local gameInfo = game:GetService("MarketplaceService"):GetProductInfo(gameId)
if gameInfo then
-- Join the game
local success, errorMessage = game:GetService("TeleportService"):Teleport(game.Players.LocalPlayer, gameInfo.GameId)
if not success then
print("Error teleporting to game: " .. errorMessage)
game.StarterGui:SetCore("SendNotification", {
Title = "Error Teleporting",
Text = "An error occurred while trying to teleport to the game. Please try again later.",
Duration = 5,
})
end
else
print("Game not found")
end
end)
```?
Swap them...
bruh
i thought it was optional to unswap!!
local button = game.StarterGui.AreaGui.DaveGUI.DaveGUI.Davez.Wilderness
button.MouseButton1Click:Connect(function()
local gameId = 11390456132 -- Replace this with the ID of the game that you want to join
local gameInfo = game:GetService("MarketplaceService"):GetProductInfo(gameId)
if gameInfo then
-- Join the game
local success, errorMessage = game:GetService("TeleportService"):Teleport(gameinfo.Gameid, game.Players.LocalPlayer)
if not success then
print("Error teleporting to game: " .. errorMessage)
game.StarterGui:SetCore("SendNotification", {
Title = "Error Teleporting",
Text = "An error occurred while trying to teleport to the game. Please try again later.",
Duration = 5,
})
end
else
print("Game not found")
end
end)
isn't is GameId?
whoops
man!
scripting while using discords chat does not help u!!
local button = game.StarterGui.AreaGui.DaveGUI.DaveGUI.Davez.Wilderness
button.MouseButton1Click:Connect(function()
local gameId = 11390456132 -- Replace this with the ID of the game that you want to join
local gameInfo = game:GetService("MarketplaceService"):GetProductInfo(gameId)
if gameInfo then
-- Join the game
local success, errorMessage = game:GetService("TeleportService"):Teleport(gameinfo.gameid, game.Players.LocalPlayer)
if not success then
print("Error teleporting to game: " .. errorMessage)
game.StarterGui:SetCore("SendNotification", {
Title = "Error Teleporting",
Text = "An error occurred while trying to teleport to the game. Please try again later.",
Duration = 5,
})
end
else
print("Game not found")
end
end)
i fixed the captial I on gameinfo too
i swear if this doesn't work im blaming my game
Hmm
button.MouseButton1Click:Connect(function()
local gameId = 11390456132 -- Replace this with the ID of the game that you want to join
local gameInfo = game:GetService("MarketplaceService"):GetProductInfo(gameId)
if gameInfo then
-- Join the game
local success, errorMessage = game:GetService("TeleportService"):Teleport(gameId, game.Players.LocalPlayer)
if not success then
print("Error teleporting to game: " .. errorMessage)
game.StarterGui:SetCore("SendNotification", {
Title = "Error Teleporting",
Text = "An error occurred while trying to teleport to the game. Please try again later.",
Duration = 5,
})
end
else
print("Game not found")
end
end)
You need to chill 😐
I swear there is some invisible hacker or human in my game is his brain is going: This kid cannot go to this place no matter what
Like
this script is retiring
huh
Place is restricted for me
** You are now Level 5! **
Also drop the success, error thing. This method returns nothing
You have Stage 5 Cancer! Please wait while we kill you peacefully 
oh wait
LOL
oopsie forgor the variable for the button
😝 😝 😝 😝 IM SO GOOFY AND SILLY😝 😝 😝
Your script will break if it's not successful though, errorMessage will return nil when a teleport fails

The Teleport:() method returns void, so you're setting nothing to success and errorMessage. The string concatenation a few lines below will error out
That it statement will always run too because not nil is truthy
Anyway, I gotta run. Hopefully you can figure this out lol

Also, calm the heck down. It's not that serious
bye
i love sarcasm bro
its so silly!!
