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 |
|
|
|
| 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
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 217 |
|
| |
|
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
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 20 Oct 2015 08:00 PM |
| game.Player.Torso.CFrame = CFrame.new(map position) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 217 |
|
| |
|
|
| 22 Oct 2015 07:41 AM |
| Did you do as i told you? And whats the output? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 24 May 2017 10:00 AM |
| wow 'is this too much to ask for ' necromancer |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 28 Aug 2017 07:06 AM |
help me pls You can send me the script |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2017 05:50 AM |
hay aoxic i need help wit that
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|