generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Map Teleportation

Previous Thread :: Next Thread 
rjordan14 is not online. rjordan14
Joined: 22 Nov 2014
Total Posts: 217
20 Oct 2015 02:11 PM
How do I teleport my players to ONE of the FIVE maps I have made? I want it to be randomized. I want it so you start off in the Lobby I made, and after waiting at the lobby for 30 seconds, the players randomly teleport to one of the five maps I've made for 200 seconds, & when the 200 seconds is finished, they teleport back to the lobby for 30 seconds, then to another randomized map I made for 200 seconds then back to the lobby and so on... Someone help me with this script please! Sorry if this isn't in the right category :/ Also could you add this message in the middle of the screen when the players are teleporting to the maps "Round Over.." & when the players are teleporting from the lobby to the randomized map have it say "Starting Game.." Is this too much to ask for? :/
Report Abuse
Faisal1207 is not online. Faisal1207
Joined: 27 Dec 2013
Total Posts: 499
20 Oct 2015 04:18 PM
Im on phone now, but ill make an model when I'm not. Maybe.



- No signature -
Report Abuse
rjordan14 is not online. rjordan14
Joined: 22 Nov 2014
Total Posts: 217
20 Oct 2015 05:54 PM
Okay thank you!
Report Abuse
aoxic is not online. aoxic
Joined: 26 Oct 2012
Total Posts: 492
20 Oct 2015 06:50 PM
I may help you with the teleport thingy, and the "Round Over.." thing.
PM me if ya need me.
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
20 Oct 2015 08:00 PM
game.Player.Torso.CFrame = CFrame.new(map position)
Report Abuse
OurFinalHope is not online. OurFinalHope
Joined: 11 Mar 2012
Total Posts: 39
20 Oct 2015 09:39 PM
dont teleport to a random map. just have a random map spawn so you dont lag up your game with tons of maps
Report Abuse
Faisal1207 is not online. Faisal1207
Joined: 27 Dec 2013
Total Posts: 499
21 Oct 2015 07:56 AM
Have an model called "Spawns" in each of your maps, also have an model directly in workspace called "MapStorage", also have an model with all your maps inside "ServerStorage" and insert this script as an ServerScript into "ServerScriptService", lastly have an model called lobby which has another model called "Spawns" let these be normal spawns as whenever they die they will spawn back there as i won't call a script for that(Basically Respawn spawns):

local roundTime = 200 -- In game round time.
local intermissionTime = 30 -- Intermission time.

local mapStor = game.Workspace:WaitForChild("MapStorage")
local lobbySpawnMod = game.Workspace.Lobby:WaitForChild("Spawns")
local lobSpawns = lobbySpawnMod:GetChildren()

local mapModel = game.ServerStorage:WaitForChild("Maps")
local maps = mapModel:GetChildren()

function tpToMap()
for _, plrs in pairs(game.Players:GetPlayers()) do
local chosenMap = maps[math.random(1,#maps)]
print("Choosen map is", chosenMap)
local spawnModel = chosenMap:WaitForChild("Spawns")
local spawns = spawnModel:GetChildren()
local spawnIndex = spawns[math.random(1,#spawns)]
local spawn = spawns[spawnIndex]
local tor = plrs.Character:WaitForChild("Torso")
tor.CFrame = CFrame.new(spawn.Position + Vector3.new(0,3,0))
end
end

function tpBack()
for _, plrs in pairs(game.Players:GetPlayers()) do
local tor = plrs.Character:WaitForChild("Torso")
local spawnIndex = lobSpawns[math.random(1,#lobSpawns)]
local spawn = lobSpawns[spawnIndex]
tor.CFrame = CFrame.new(spawn.Position + Vector3.new(0,3,0))
end

while true do
wait(intermissionTime)
tpToMap()
wait(roundTime)
tpBack()
end

Blind scripting. Tell me if it works or not.


- "I say no because yes is overrated"
Report Abuse
rjordan14 is not online. rjordan14
Joined: 22 Nov 2014
Total Posts: 217
21 Oct 2015 05:24 PM
Didn't work :(
Report Abuse
Faisal1207 is not online. Faisal1207
Joined: 27 Dec 2013
Total Posts: 499
22 Oct 2015 07:41 AM
Did you do as i told you? And whats the output?
Report Abuse
rjordan14 is not online. rjordan14
Joined: 22 Nov 2014
Total Posts: 217
22 Oct 2015 08:21 AM
Yes I did what you said. And what's an output? I'm newer to Roblox Studio
Report Abuse
InedibleGames is not online. InedibleGames
Joined: 27 Apr 2014
Total Posts: 1140
24 May 2017 10:00 AM
wow 'is this too much to ask for ' necromancer
Report Abuse
Airwaiv is not online. Airwaiv
Joined: 24 Jul 2014
Total Posts: 2
09 Jul 2017 01:20 PM
p[i].Character:MoveTo(math.random[-59, 37.5, #### or ##### ####### ###### ############ ########## change to position of maps
Report Abuse
HappyS_101 is not online. HappyS_101
Joined: 08 Mar 2017
Total Posts: 17
01 Aug 2017 04:04 AM
Dude go check out AlvinBlox's youtube channel. He makes a video on how to do what you r trying to. But it an older video do you have to scroll down to see where it is...
Report Abuse
mengod1 is not online. mengod1
Joined: 25 Apr 2014
Total Posts: 2
13 Aug 2017 01:31 PM
Hey, I mean the script kind of works, but it does need some brushing up. The most important part is inserting the maps into the "Map Storage" this shouldn't be that complected.
Report Abuse
XenovianKing is not online. XenovianKing
Joined: 22 Jan 2017
Total Posts: 1
28 Aug 2017 07:06 AM
help me pls
You can send me the script
Report Abuse
CandyMan0911 is not online. CandyMan0911
Joined: 15 Jun 2017
Total Posts: 11
03 Oct 2017 05:50 AM
hay aoxic i need help wit that
Report Abuse
CandyMan0911 is not online. CandyMan0911
Joined: 15 Jun 2017
Total Posts: 11
03 Oct 2017 05:54 AM
if anyone wants to help me with player teleporting and intermissions join my group and in chat say Script so i know what your job is.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image