I have a script so when a player clicks a button, he gets teleported to another game. Whenever I test it, I get nothing. No error, nothing in the output. I tried to run the game in roblox itself but still nothing. My code:
local tp = game:GetService("TeleportService")
local m = require(game.ReplicatedStorage.PlaceIDs)
script.Parent.MouseButton1Click:Connect(function()
tp:Teleport(m.tp1, game.Players.LocalPlayer)
end)
Whenver I print the "m.tp1" it gives me the id of the game, so I don't know what I am doing wrong.

1 comment
There doesn't seem to be an issue with the script itself(you can remove the LocalPlayer argument though, since running this function from the client doesn't need the player parameter).