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 » Scripting Helpers
Home Search
 

How would I script this?

Previous Thread :: Next Thread 
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
15 Nov 2012 10:19 PM
And I need 1mil R$. We all know that isn't gonna happen.

~ thedeathmaster01 ~
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
15 Nov 2012 10:24 PM
What?
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
15 Nov 2012 10:25 PM
Bump.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
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
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
15 Nov 2012 10:47 PM
Bump.
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
16 Nov 2012 07:17 AM
Bump again.
Report Abuse
spookyBen is not online. 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
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
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
1234Christopher is not online. 1234Christopher
Joined: 21 Oct 2008
Total Posts: 1715
16 Nov 2012 04:26 PM
Try pighead10's minigame tutorials on Utube.
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
16 Nov 2012 04:39 PM
Bump.
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
16 Nov 2012 04:50 PM
Stop bumping.

No request in this forum if you're gonna request then go to LMaD
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
16 Nov 2012 04:57 PM
Make me.
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
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
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
16 Nov 2012 05:14 PM
Okay.
Report Abuse
Fredfishy is not online. 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
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
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 is not online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
16 Nov 2012 05:18 PM
@Poke,
Sorry :cc
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
16 Nov 2012 05:36 PM
I don't care, my friend will do it for me.
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
16 Nov 2012 05:37 PM
Then don't post here.
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
16 Nov 2012 05:57 PM
@legend

Nope. I won't.
Report Abuse
Ryan7965 is not online. 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
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
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
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
16 Nov 2012 06:39 PM
When I said "friend," I wasn't talking to you.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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