How would i do this? i have 2 games. one’s for testing and one for the public. i have multiple buttons that teleport you and it’s getting tedious to change the ids. it’s broken right now. it’d make my life easier.
How do you mean “tedious to change the IDs”?
Does each place teleport you to different locations, or another game?
Why not put a NumberValue in the Workspace, and a variable at the beginning of each of your teleport scripts.
place = --enter the place ID# from the NumberValue.Value here
This makes it so you only have to change it in one location.
i seem to be pretty dumb. thank you!
I’ve realized this actually wouldn’t work because i need to overwrite the normal version a lot since i work o the other one and the id will get overwritten.
https://create.roblox.com/docs/reference/engine/classes/DataModel#PlaceId
local placeId = game.PlaceId
If you’re talking about redirecting multiple universes just write out a condition.
local teleportPlaceId
if game.PlaceId == >enterplaceidhere then
teleportPlaceId =
else
teleportPlaceId =
end
--teleport them to teleportPlaceId
Bruh. This won’t work as I’d still need to copy and paste the IDs.
There is NO way to get a different place’s place id. You will HAVE to copy it.
And it’s one thing.
Do not be lazy.
Unless it’s your own game. Then u can do game.PlaceID
THAT’S SO STUPID. I sent a feature request. I hope they do help. Otherwise i might just throw away the whole place idea.
What if you did something like this?
local place1Id, place2Id, place3Id
if game.PlaceId == 1234 then -- id of your test game
place1Id = 1235
place2Id = 1236
place3Id = 1237
elseif game.PlaceId == 4321 then -- id of your public game
place1Id = 4322
place2Id = 4323
place3Id = 4324
end
Then it will automatically change the id based on if you are in the test game or not
Ight you have to paste it once. lol. Not every single time. YOU have to specify where you want a place to redirect to. A feature request would be pointless if you can’t do that.
if this place is this id go here
if this place is the testing id go here
I’m sorry but that’s as simple as it gets.
It’s still dumb that i have to copy and paste each place. I’m making a poll on my server to ask if i should delete all the places or just copy and paste.
Well you can’t just set-up a proxy or API as it doesn’t work like that.
Every game has to copy the place ID, yes it is tedious. But being lazy isn’t the right approach.
You have to copy and paste the IDs. Doing anything differently would be more tedious than you say. If you want, you could store these IDs in an IntValue so you don’t have to change it that much.
This isn’t a feature unfortunately. This thread made me realize that i should merge my game together. It’s gonna work if teleport service is down now plus smaller loading times.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.