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
 

Re: map changer

Previous Thread :: Next Thread 
XhymbbQd6 is not online. XhymbbQd6
Joined: 22 Jul 2011
Total Posts: 1468
14 Dec 2011 09:04 PM
i need help with this script, i tryed it but it wont work, its a map changer but it resets your player whenever the map changes so your respawn in it

Function
Findfirstchild.lighting."Map name"
Findfirstchild.lighting."Map name"
Findfirstchild.lighting."Map name"
insert.workspace"Map name"
Humaniond.Health = 0
wait(500)
findfirstchild.workspace.Remove"Map name"
teleport.players"LOBBY"
wait(10)

insert.workspace"Map name"
Humaniond.Health = 0
wait(500)
findfirstchild.workspace.Remove"Map name"

end
end
Report Abuse
CrasyTrex is not online. CrasyTrex
Joined: 13 Mar 2011
Total Posts: 761
14 Dec 2011 09:06 PM
What are you trying to do? Like make it generate random maps like map1 map2 and kill the players when it happens?
Report Abuse
ahmazingchic28 is not online. ahmazingchic28
Joined: 29 Sep 2010
Total Posts: 5
14 Dec 2011 09:10 PM
This makes no sense... Instead of doing lobby or teleport to map, use exact coordinates instead. Makes it easier. Thats what I would do.
Report Abuse
CrasyTrex is not online. CrasyTrex
Joined: 13 Mar 2011
Total Posts: 761
14 Dec 2011 09:14 PM
Yes most of the lines make no sense at all to my mind unless their is more to the script -_-.
Report Abuse
SarahAngel is not online. SarahAngel
Joined: 12 Dec 2009
Total Posts: 2166
14 Dec 2011 09:17 PM
This makes no sense at all. I think you need more experience. wiki.roblox.com is the place to go.
Report Abuse
CrasyTrex is not online. CrasyTrex
Joined: 13 Mar 2011
Total Posts: 761
14 Dec 2011 09:20 PM
True I mean if part of it was missing it would still seem crazy because no way teleport is part of lua I mean you could find the torso and cframe it to be in the lobby or something but this is just crazy.
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
14 Dec 2011 09:21 PM
Some ppl think they can script
But they can't.

http://wiki.roblox.com/index.php/Absolute_beginner%27s_guide_to_scripting


http://wiki.roblox.com/index.php/Script_Creation_Walkthrough
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
14 Dec 2011 09:23 PM
http://www.lua.org/pil/

That's also a nice one
Report Abuse
CrasyTrex is not online. CrasyTrex
Joined: 13 Mar 2011
Total Posts: 761
14 Dec 2011 09:24 PM
oh yeah and it is :FindFirstChild("")--name of model, part or whatever goes in the quotes unless you are like doing :FindFirstChild(""..script.Parent.Parent.Parent.Name) like using it in a tool or something
Report Abuse
XhymbbQd6 is not online. XhymbbQd6
Joined: 22 Jul 2011
Total Posts: 1468
15 Dec 2011 09:21 PM
i suck at scripting!!! i know i know i know
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
15 Dec 2011 10:17 PM
maps = {
game.Lighting["NameHere"] -- delete any you don't use.
game.Lighting["NameHere"] -- add more by copy and pasteing.
game.Lighting["NameHere"]
game.Lighting["NameHere"]
}

TimeBetweenChange = 3 -- In minutes, time between which a new map is chosen.
local map --Ignore
local oldMap -- Ignore

while true do
for i=1, #maps do
if oldMap then
oldMap:Destroy()
end
wait(1)
map = maps[i]:clone()
map.Parent = game.Workspace
oldmap = map
wait(TimeBetweenChange*60)
end
wait(1)
end

It's a love-hate relationship....
Report Abuse
XhymbbQd6 is not online. XhymbbQd6
Joined: 22 Jul 2011
Total Posts: 1468
16 Dec 2011 12:36 PM
does it kill the players so the players now spawn at the new map?
Report Abuse
iCookieNL is not online. iCookieNL
Joined: 24 May 2009
Total Posts: 1103
16 Dec 2011 12:39 PM
No.
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