How are you able to make a TextButton teleport the player to a different game? This is what i've tried from a different one:
local button = script.Parent button.Visible=true local teleportService = game:GetService("TeleportService") Test.MouseButton1Down:connect(function(player) teleportService:Teleport(4674197557) end)
Anything helps! Thanks!
As you want to teleport a player you use teleport service https://developer.roblox.com/en-us/api-reference/function/TeleportService/Teleport
local Players = game:GetService("Players") local TeleportService = game:GetService("TeleportService") local placeId = 4674197557 -- replace here local userId = game.Players.LocalPlayer.UserId -- find the player local player = game.Players.LocalPlayer -- teleport the player script.Parent.MouseButton1Click:Connect(function() TeleportService:Teleport(placeId, player) end)