#Creating A Working Map Cycle. Every script I come up with just ends up not working.
56 messages · Page 1 of 1 (latest)
whats your current script?
I got rid of it but I remember what it was
ill show a screenshot
unless u needa send it as sc
saying he found it
its easier as text
local maps = game.Workspace.Maps.GetChildren()
function StartCycle()
while(true)do
for _map in pairs(maps)do
local m = map.Clone()
m.Parent= game.Workspace
m.MakeJoints()
wait(5)
m.Destroy()
end
end
end
StartCycle()
i've been modifying it there and there but I dont get what's not working in it
this was my last attempt at modifying it and they don't even disappear
It's alright
** You are now Level 1! **
how many maps are there?
there were 2 but I added one become I wanted 3 maps in my game but I thought it might've been breaking it so I removed one again
so 2?
yep
tbh me to
math.random works for 3+ maps
but if theres 2 u just gotta cycle it
you forgot the comma between "_map"
also show errors
output is key
Oh, so I would put a comma before or after it?
My script now looks like this
local maps = game.Workspace.Maps.GetChildren()
function StartCycle()
while(true)do
for _,map in pairs(maps)do
local m = map.Clone()
m.Parent= game.Workspace
m.MakeJoints()
wait(5)
m.Destroy()
end
end
end
StartCycle()
** You are now Level 2! **
nohing changed though
am I supposed to put the script in a certain area?
oh wait
I see the problem this time
wait nvm
I still don't know where I should put the script
serverscriptservice
thanks but it didnt fix anything
you still got the problem man...
and still no errors?