Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I put multiple local scripts into one local script?

I have a bunch of local scripts that I want to put into 1 to be more organized. I dont know how to make them all work in 1 local script. I was thinking of "couroutine.create(function()" but it wasnt working. Any help?

1 comment

0

=u=; Maybe if we could see some of the code you're trying to splice together we could help a bit more. With the context we have so far the only thing I can say is either use coroutines or mash the bits together and hope for the best.

1 answer

If you want to a REALLY rudimentary mix, you could just use spawn(), although personally I think you should personally make sure you want to do it in every aspect.

spawn(function()
	-- Code of one local script
end)

spawn(function()
	-- Code of second local script
end)

spawn(function()
	-- Code of third local script
end)

This is personally a really bad, but possible way of doing it.

1 comment

0

i got it to work with coroutine.create, thanks for trying tho

This discussion is preserved as it was. New answers, comments, and votes are closed.