Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does the custom gui not work on teleport?

Asked by 4 years ago
Edited 4 years ago

So, I'm trying to make a custom GUI for a teleporter to another place. But, it doesn't work. Help?

code: (no error)

LocalScript:

local service = game:GetService("TeleportService")
service:SetTeleportGui(script.Parent.ScreenGui) -- this doesn't work

Script:

local service = game:GetService("TeleportService")

script.Parent.ClickDetector.MouseClick:Connect(function(p)
    service:Teleport(0000000000,p) --i dont wanna show the id
end)

Also trying to look here on the Developer API Reference

b_mni

0
You're not testing this in Studio, correct? Rinpix 639 — 4y
0
Yeah teleport service doesn’t work in studio only in a real server I think OBenjOne 190 — 4y
0
i know that User#29913 36 — 4y

Answer this question