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

how do i Fix This place roulette script?

Asked by 2 years ago
Edited 2 years ago

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)

0
I know nothing about place teleportation.. But maybe try making an "if" statement that checks if the Place is public? ZIRFAL3 17 — 2y
0
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? ZIRFAL3 17 — 2y

Answer this question