Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Configuration ------------------------------------------------------------------------------------------
- local mapDirectory = game.Lighting.Maps -sword fights on the heights original- This is where your maps are!
- local msg = Instance.new("Message")
- msg.Parent = game.Lighting
- local time = 60
- local text = "Changing map.."
- -- Script ----------------------------------------------------------------------------------------------------
- while true do
- local maps = mapDirectory:getChildren()
- if #maps == 0 then
- print("Maps not found! Selfremoving...")
- --script:remove()
- return
- end
- local pickedMap = maps[math.random(1, #maps)]
- local pickedMapClone = pickedMap:clone()
- pickedMapClone:makeJoints()
- msg.Parent = game.Workspace
- msg.Text = "Map Change!"
- wait(3)
- msg.Text = text --"Picked Map is " ..pickedMapClone.Name.."."
- print("Map inserted: " .. pickedMap.Name)
- wait(5)
- msg.Parent = game.Lighting
- wait(time)
- pickedMapClone:remove()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement