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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 14 Dec 2011 09:23 PM |
http://www.lua.org/pil/
That's also a nice one |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 24 May 2009 |
| Total Posts: 1103 |
|
| |
|