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

Why is everyone clone script so different?

So heres my script to generate a clone of a map for a map changing script. When i see other versions of clones or map changing scripts they have way different scripts like ones with if statements, some state new instances. Is there anything wrong with mine? It works. But others make me wonder if im missing something to make the script better.

local players = game.Players
local num = math.random (1, 2)
local Map1 = game.ServerStorage.Maps.Map1

function engageMap1()
	wait(5)
	game.ServerStorage.Maps.Map1:clone().Parent = game.Workspace
	wait(3)
end

engageMap1()

4 comments

2

Everyone's scripting style will be different, because it all comes down to the initial learning experience, their strengths, and their weaknesses, etc. Programming typically deals with problem solving in the real world. The awesome thing about this is that there are multiple ways to solve a problem. Some solutions require less work than others. This will indicate the degree of efficiency the...

2

...solution potentially contains. So, do not worry about whether your script is "wrong", as long as the script itself is working as intended. If not, then find a solution to the problem, whether by improving its efficiency, or starting the script over.

0

@Redbullusa Thank you so much

0

A key point in the differences between the "round" scripts is that certain games require different functionalities. For some game s, like Hide and Seek, simply pasting in the map is enough. For others, such as my Kiseki remake, the map has to be "initialized" and then properly inserted using my Module code for everything to go smoothly.

1 answer

Hey there!

There was a question similiar to this here. A script example is there.

As redbull states, everyone is different in their methods, so you do you.

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