CheckWork
|
  |
| Joined: 24 Jul 2012 |
| Total Posts: 435 |
|
|
| 25 Feb 2013 01:48 PM |
I made this script earlier with some help, is it all correct?
local waitingTime = 4:00 -- time inbetween each map local maps = game.Lighting.Maps:GetChildren()
while (true) do for i = 1, #maps do local currentMap = maps[i] local clone = currentMap:Clone() clone.Parent = Workspace wait(waitingTime) clone:Destroy() end print("Getting new map...") end
|
|
|
| Report Abuse |
|
|
|
| 25 Feb 2013 01:49 PM |
no you got errors everywhere
its better if you just throw it out
- the life of a baller |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 25 Feb 2013 01:51 PM |
You do realize the point of the scripters forum isn't to post all of your scripts, right?
Anyways, "local waitingTime = 4:00" would cause a syntax error because you cannot declare integers in a "x:x" format; so I suggest just changing it to 240 since you probably mean 4 minutes, and the wait function parses the given integer as seconds. Other than that everything else seems to be in order. |
|
|
| Report Abuse |
|
|
CheckWork
|
  |
| Joined: 24 Jul 2012 |
| Total Posts: 435 |
|
|
| 25 Feb 2013 01:55 PM |
So, this is correct?
local waitingTime = 240 -- time inbetween each map local maps = game.Lighting.Maps:GetChildren()
while (true) do for i = 1, #maps do local currentMap = maps[i] local clone = currentMap:Clone() clone.Parent = Workspace wait(waitingTime) clone:Destroy() end print("Getting new map...") end
~Sorry, I'm new to scripting~ |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 25 Feb 2013 02:05 PM |
| Seems to be in order, yes. |
|
|
| Report Abuse |
|
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 25 Feb 2013 03:33 PM |
I made a crap version once. Pastebin:/tqCnQ0yz
~ᴬᴵᴺ'ᵀ ᵀᴴᴬᵀ ᴬ ᴷᴵᶜᴷ ᴵᴺ ᵀᴴᴱ ᴴᴱᴬᴰˑ~ |
|
|
| Report Abuse |
|
|
sammy1229
|
  |
| Joined: 05 Aug 2010 |
| Total Posts: 669 |
|
| |
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 25 Feb 2013 04:02 PM |
| Awww.. I have seen that free model before! |
|
|
| Report Abuse |
|
|