So basically I made a gui button with a local script that is supposed to tp you to another game
Local Script:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
local fade = player:FindFirstChild(“PlayerGui”):FindFirstChild(“Fade”)
while true do
fade.Frame.BackgroundTransparency = fade.Frame.BackgroundTransparency - 0.1
wait()
if fade.Frame.BackgroundTransparency == 0 then
game:GetService(“TeleportService”):Teleport(4616652839, player)
end
end
I’m pretty sure if you are using a local script you do not need to add the player argument when you are teleporting so you can just try the code below.
Well first you can only use teleport service in a actual game, so you cannot test it in studio and the game has to be accessable to you, eg: a game you own or one that is public.