I have a game called President. It'll choose a random map every 130 seconds. I need help with the script. Help?
COMMUNITY QUESTION
How do I make it choose a random map?
2 answers
Try using, if the maps are in a model in Server Storage;
while true do
--PlrStuff
newmap = game.ServerStorage.Maps[math.random(1,#game.ServerStorage.Maps:GetChildren())]:Clone()
newmap.Parent = workspace
wait(130)
newmap:Destroy()
--PlrStuff
end
That's as much as I am helping.
By the way, I think your game idea is already taken; http://www.roblox.com/Very-Important-Person-place?id=136740426 They streamed a game like it on The Next Level last night.
-- Note that the maps have to be in lighting.
while true do
local maps = {game.Lighting. PUT MAP NAME HERE, game.Lighting. PUT MAP NAME HERE, game.Lighting. PUT MAP NAME HERE}
i = math.random(1, #maps)
maps[i]:Clone().Parent = Workspace
wait(130)
Workspace.maps[i].Name:remove() -- This part might be bad idk
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
