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

How can I store maps in a game?

Asked by
Carvyy 15
10 years ago

I need to store different maps, with the bricks and all somehow so I the game can choose one later on and load it. For now I just want to know how I can store them all and make them appear/disappear. I was thinking something that would have them there, but disable and enable then when needed.

5 answers

Log in to vote
0
Answered by 10 years ago

Store the maps in ReplicatedStorage, they'll load on both the client and the server. Storing maps in server-storage won't replicate it to the server, and it'll take longer to replicate the maps to the client once you parent/clone them to Workspace.

Ad
Log in to vote
1
Answered by 10 years ago

We'll are you making a map generator,or just want to store maps.If you just want to store map you put the map (if it is an model) into lightning

Log in to vote
1
Answered by 10 years ago

In Lightning Or ServerStorage

Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
10 years ago

ServerStorage.

Log in to vote
0
Answered by
IcyEvil 260 Moderation Voter
10 years ago

Well first off for different maps you need to Copy the maps and paste them in lighting than delete the copy thats in workspace, There should be different scripts concerning this, for instance here a Holo script is something that you add certain people to a list and they can say a command that enables the map and say another command that disables it here is one Holo script made by one of my friend


--Build your map or door or whatever you want to pop up, then put it in the Lighting. --Then follow the instructions admin = { "admin" } --put the names of the people you want to be able to do the commands here game.Players.PlayerAdded:connect(function(nP) --don't touch this for _,v in pairs(admin) do --or this if nP.Name == v then --or this nP.Chatted:connect(function(msg) --or this :P if msg == "computer load blah" then --change the pink words to what you want the command to be. x = game.Lighting.Random:Clone() --change .Random to the name of your Model that you put in the Lighting x.Parent = game.Workspace --Don't touch anything below this wait(3) end end) end end end) admin = { "admin" } --put the names of the people you want to be able to do the commands here game.Players.PlayerAdded:connect(function(nP) --don't touch this for _,v in pairs(admin) do --or this if nP.Name == v then --or this nP.Chatted:connect(function(msg) --or this :P if msg == "computer exit blah" then --change the pink words to what you want the command to be. game.Workspace.Random:Remove()--change .Random to the name of your Model that you put in the Lighting wait(3) end end) end end end) --copy this and edit as many times as needed. This is only for one thing right now!

It works to I have used this very script to build some of my Holos.

0
Thanks! I understand it more now, although it was't really what I was looking for but it was still great help. Thanks! Carvyy 15 — 10y

Answer this question