I have researching and trying to find a map changing script that teleports you from the lobby to the map for 30 seconds and then teleport back to the lobby for item buying for 50 seconds. does anyone know how I would be able to do that.
Random map change with spawns?
1 answer
Hello, Mynameisguiseppe here.
In order to teleport the player, you can use
game.Workspace.Player.Torso.Position = Vector3.new(0, 50, 0)
This script will move the players torso to the position stated. You can use
wait(30)
to wait 30 seconds. So this should be the full script. With a few tweaks, it should work for you.
game.Workspace.Player.Torso.Position = Vector3.new(MAP POSITION) wait(30) game.Workspace.Player.Torso.Position = Vector3.new(LOBBY POSITION) wait(50)
This script will work, but it wont repeat ever. You can use a simple Repeat command to make it repeat, if you would like.
if you want a randomly changing map, a little more work is involved in that. You will need math.random and variables.
1 comment
Thanks I now have a working Game. Now i just need to make the maps
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
I know people may not like AlvinBlox but he has a tutorial series over this on YouTube on I think how to make a sword game or something.
Thank you I followed a tutorial but something happened with the code so, i am not sure you could answer that question?