Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why is everyone clone script so different?

Asked by 9 years ago

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()
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... Redbullusa 1580 — 9y
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. Redbullusa 1580 — 9y
0
@Redbullusa Thank you so much robloxiveboy 25 — 9y
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. adark 5487 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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.

Ad

Answer this question