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

Help with the statement that clones things in the server script service?

Asked by 9 years ago

As practice im trying to make a script that spawns in different maps. This is my milestone, to make a script that can clone or spawn things like maps into my workspace from server script storage to show ingame. Like minigame servers. Heres what i have so far thanks:

local players = game.Players
local num = math.random (1, 2)
print(num)

if num == 1

end

0
There are a few things I would like to point out. First of all, you can only have scripts in the ServerScriptService (you probably meant ServerStorage). Secondly, as a start for you, after your if statement, find the location of your map in storage and clone it using the :Clone() method as seen here: http://wiki.roblox.com/index.php?title=API:Class/Instance/Clone. SanityMan 239 — 9y
0
@SanityMan You can also have running scripts in "game.Workspace". "game.ServerScriptService" is just an alternative storage container for the sake of organization. Redbullusa 1580 — 9y

Answer this question