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

My type game id to teleport to the game button don't work?

Asked by
jjjona1 -1
2 years ago
Edited 2 years ago

I don't know why it don't work

local GameIDType = game.StarterGui.ScreenGui.Frame.TextBox.Text

local TextButton = game.StarterGui.ScreenGui.Frame.TextButton

local TeleportService = game:GetService("TeleportService")

TextButton.MouseButton1Click:Connect(function(player)

TeleportService:Teleport(GameIDType, player)

end)

0
what is the error it gives? justinjosh5 19 — 2y
0
No errors. It just won't work. jjjona1 -1 — 2y

Answer this question