Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hnt(string)
- for i,v in ipairs(game.Players:GetChildren()) do
- v.PlayerGui.ScreenGui.Info.Text = string
- end
- end
- while true do
- minigames = game.ServerStorage.Maps:GetChildren()
- local m = math.random(1, #minigames)
- wait(5)
- if game.Players.NumPlayers >= 2 then
- hnt ("Choosing Map")
- wait(2)
- hnt ("minigame = "..m.Name)
- wait(2)
- for i,plr in pairs (game.Players:GetPlayers()) do
- plr.value.Value = 1
- end
- hnt ("Generating map")
- wait(2)
- local map = game.ServerStorage.Map:Clone()
- map.Parent = game.Workspace
- hnt ("game will start in 20 seconds")
- wait(15)
- local plrs = game.Players.NumPlayers
- game.ServerScriptService.Alive.Value = plrs
- local Coordinates = {
- ["X"] = {-48, 48, -48, 48, -101, 48, 0, 101};
- ["Y"] = {27.999, 27.997, 27.999, 28, 28.992, 27.997, 28.997, 28.992};
- ["Z"] = {-48, 48, -48, 48, -101, 48, 0, 101};
- }
- for i, Player in pairs (game.Players:getPlayers()) do
- if Player.value.Value == 1 then
- Player.Character:MoveTo(Vector3.new(Coordinates["X"][i], Coordinates["Y"][i], Coordinates["Z"][i]))
- Player.Character.Torso.Anchored = true
- end
- end
- hnt (".....5.....")
- wait(1)
- hnt ("....4....")
- wait(1)
- hnt ("...3...")
- wait(1)
- hnt ("..2..")
- wait(1)
- hnt (".1.")
- wait(1)
- hnt ("Begin!")
- for __, player in pairs(game.Players:GetPlayers()) do
- player.Character.Torso.Anchored = false
- for _,weapon in ipairs(game.ServerStorage.Swords:GetChildren()) do
- newWeapon = weapon:Clone()
- if weapon.Name == "Sword" then
- if player.value.Value == 1 then
- newWeapon.Parent = player.Backpack
- end
- end
- end
- end
- hnt ("you have 1 minute to kill other players")
- wait(3)
- hnt ("last standing's win 10 points")
- local get = 0
- local got = 53
- while get < got do
- if game.ServerScriptService.Alive.Value == 1 then
- hnt ("There's a winner, he gets 20 points")
- wait(1)
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.value.Value == 1 then
- v.leaderstats.Points.Value = v.leaderstats.Points.Value + 20
- wait(1)
- v:LoadCharacter()
- end
- end
- hnt ("Removing map")
- game.Workspace.Map:remove()
- wait(1)
- hnt ("Starting new round")
- wait(1)
- return
- end
- get = get + 1
- wait(1)
- end
- hnt (".....5.....")
- wait(1)
- hnt ("....4....")
- wait(1)
- hnt ("...3...")
- wait(1)
- hnt ("..2..")
- wait(1)
- hnt (".1.")
- wait(1)
- hnt ("Stop!")
- for i,v in pairs(game.Players:GetPlayers()) do
- v.Character.Torso.Anchored = true
- wait(1)
- hnt ("winner(s) get 20 points")
- wait(1)
- if v.value.Value == 1 then
- v.leaderstats.Points.Value = v.leaderstats.Points.Value + 20
- wait(1)
- v:LoadCharacter()
- end
- end
- wait(2)
- hnt ("Removing map")
- wait(2)
- game.Workspace.Map:remove()
- hnt ("Starting new round")
- wait(2)
- else
- hnt("1 player more has to join")
- wait(3)
- hnt(" ")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement