#Creating A Working Map Cycle. Every script I come up with just ends up not working.

56 messages · Page 1 of 1 (latest)

mystic junco
#

I just want 3 groups of parts to cycle through and show one at a time while destroying the others between like 10 seconds or smth. Can anyone help?

mystic junco
#

ill show a screenshot

silver thorn
#

do it as text

mystic junco
#

oh i'll just copy and paste in then

#

because my friend sent me it

silver thorn
#

unless u needa send it as sc

mystic junco
#

saying he found it

silver thorn
#

its easier as text

mystic junco
#

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

silver thorn
#

what is the script currently doing

#

hmm

#

im on phone rn gimmie a sec

mystic junco
#

It's alright

honest hemlockBOT
#

studio** You are now Level 1! **studio

mystic junco
#

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

mystic junco
#

yep

silver thorn
#

hm

#

try using math.random

#

wait no

#

wait yes

mystic junco
#

in which way

#

(sorry im kinda a newbie to scripting)

silver thorn
#

math.random works for 3+ maps

#

but if theres 2 u just gotta cycle it

mystic junco
#

ima do 3 then

#

wanted to do 3 anyways

#

I wanna try and re-type it for 3

opal wolf
#

also show errors

#

output is key

mystic junco
opal wolf
#

between the dash and map

#

show the output, it can help a ton yknow

mystic junco
#

Oh thanks

#

I'll show you the errors and tell you if it works

mystic junco
#

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()

honest hemlockBOT
#

studio** You are now Level 2! **studio

mystic junco
#

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

silver thorn
mystic junco
#

thanks but it didnt fix anything

opal wolf
#

and still no errors?