|
| 15 Nov 2012 10:18 PM |
| I need a script that chooses a random map from a model wich is a folder in the Lighting. This is for a game that chooses a map, loads if, then teleports the players. Also, I don't even know where to start on this script. Thanks. |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2012 10:19 PM |
And I need 1mil R$. We all know that isn't gonna happen.
~ thedeathmaster01 ~ |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 15 Nov 2012 10:26 PM |
I mean you're asking for a script. Almost no one here will give/make you one.
~ thedeathmaster01 ~ |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2012 10:28 PM |
| I don't think it would be a very hard script, but I don't know how to do it. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
spookyBen
|
  |
| Joined: 13 Dec 2009 |
| Total Posts: 6581 |
|
|
| 16 Nov 2012 07:34 AM |
Im not absolutely sure if this'll work, but hopefully it should
while true do game.Lighting.math.random = Workspace wait(50) ---- DO NOT EDIT THIS, only edit the number inside the parentheses. The number is how many seconds till it picks another map. game.Workspace.Map1 = Lighting wait() game.Workspace.Lighting.math.random = Workspace wait(50) game.Workspace.Lighting.Map2 = Workspace wait() end
_________________________________________________________________
Im not absolutely sure if this'll work, but it should, and keep continuing the script based on how many maps you have. Make sure its above the end though, otherwise it won't occur. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2012 04:11 PM |
| Thanks for helping, but that's not how I need it. This script will be inside a larger script, the main script for the game. It needs to choose one random map from a folder in the Lighting and load it into the game. Then it teleports players to it. (I don't need the teleport script.) |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2012 04:26 PM |
| Try pighead10's minigame tutorials on Utube. |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Nov 2012 04:50 PM |
Stop bumping.
No request in this forum if you're gonna request then go to LMaD |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Nov 2012 05:11 PM |
....
You just lost all of your hope for getting help now..
have fun sitting in the dark.
|
|
|
| Report Abuse |
|
|
| |
|
Fredfishy
|
  |
| Joined: 21 Mar 2009 |
| Total Posts: 4197 |
|
|
| 16 Nov 2012 05:15 PM |
I need a script that chooses a random map from a model wich is a folder in the Lighting. This is for a game that chooses a map, loads if, then teleports the players. Also, I don't even know where to start on this script. Thanks.
1. Do something like "letable = game.Lighting:GetChildren()" 2. Pick a random map from that folder - letable[math.random(1,#letable)] 3. Clone it into the workspace and rename it something like "mrmap" 4. players = game.Players:GetChildren() 5. Teleport players one by one using "for i, v in pairs(players) do" to a specific point on the map 6. Wait until you want the map away 7. Remove "mrmap" from workspace. Since it's always set to the same name, this is easy. 8. Repeat the script. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2012 05:16 PM |
I could easily script this but scene he said "make me" i'm not going to.
I suggest that you guys don't do it ether..
|
|
|
| Report Abuse |
|
|
Fredfishy
|
  |
| Joined: 21 Mar 2009 |
| Total Posts: 4197 |
|
| |
|
|
| 16 Nov 2012 05:36 PM |
| I don't care, my friend will do it for me. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Ryan7965
|
  |
| Joined: 14 May 2009 |
| Total Posts: 102 |
|
|
| 16 Nov 2012 06:24 PM |
| I would use a random # generator, assign a number to each map and use math.random(lowerLimit,UpperLimit) and then assign that map as some variable that you will use through the rest of the function like newmap = "m"..math.random(Lower,Upper) then later in the script game.Lighting[newmap].Parent = workspace and then continue your coding from there |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2012 06:38 PM |
@Clone
Did I say ANYTHING about your stupid name? No, I didn't, idiot. That's why I'm asking Scripting Helpers you piece of crap. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2012 06:39 PM |
| When I said "friend," I wasn't talking to you. |
|
|
| Report Abuse |
|
|