i was bored so i decided to do it this is the script:
local RandomNumber = math.random(1736481,340000000000000)
local TeleportService = game:GetService("TeleportService")
script.Parent.ClickDetector.MouseClick:Connect(function(player)
TeleportService:Teleport(RandomNumber, game.Players.LocalPlayer)
print(RandomNumber)
end)
the problem is that these places nay be privated and also that it doesnt teleport if the place is public plrase help (sorry for grammatic mistakes)

2 comments
I know nothing about place teleportation.. But maybe try making an "if" statement that checks if the Place is public?
Also I think the "RandomNumber" variable might not changing, so try making a loop that changes the variable's number to a new one constantly. And you say it's not teleporting, are you testing this in roblox studio, or in the game?