I am trying to make a button in my Backrooms game that teleports you from the menu to Level 0, which is in a separate place but it won’t work. Here’s the script:
The problem might be with how you are trying to access the TeleportService.
Consider replacing teleport = game["Teleport Service"] to teleport = game:GetService("TeleportService").
Also, teleport.SetTeleportGUI(game.ReplicatedStorage.ScreenGui) isn’t required and can be removed, as this is no longer used in Roblox.
Finally, always ensure that the teleport function is running in a server script since TeleportService does not work on local scripts.
Here’s the updated script:
local testplace = 11187756726
local button = script.Parent
local teleport = game:GetService("TeleportService")
button.MouseButton1Click:Connect(function()
teleport:Teleport(testplace)
end)
Now, when you click the button, it’s supposed to teleport you to the “testplace”. If it still not working, make sure your “testplace” ID is the correct place id.