i want this script to every 3 mins start a challange i hav edited a mini game script can some1 tell me if it will work or not and can someone edit it so that at the end every1 who is alive is shown in a message and if there is more than one person that has won randomly select one and copy a tool into their backpack and starter gear.
here is the script:
games = 1 --How many minigames Only ten unless you know how to edit
waittime = 180 --Wait time in between minigames
gametime = 120 --The time the minigame lasts
game1name = "Ghost Challange"
game1position = 411, 13.2, 127 --Must be in x,y,z form. Where do people spawn for the 1st game?
-- If you want to make 11 12 etc. Make a game11position and game11name and then edit the script below so it corresponds with that info.
--To make minigames, put each minigame in Lighting. *The name of the model must be the name of the minigame.*
----------------------------------------------------------------------------------------------------------------------------------- IMPORTANT STUFF BELOW! DO NOT EDIT!
while true do
wait(waittime)
local m = math.random(1)
local player = game.Players:GetPlayers()
for i = 1, #player do
msg = Instance.new("Message")
msg.Parent = nil
if m == 1 then
msg.Parent = game.Workspace
msg.Text = "The challange is..."
wait(4)
msg.Text = game1name
wait(3)
msg.Text = "The challange will be starting in:"
wait(1)
msg.Text = "***3***"
wait(1)
msg.Text = "**2**"
wait(1)
msg.Text = "*1*"
wait(1)
msg.Text = "!START!"
wait(2)
player[i].Character:MoveTo(Vector3.new(game1position))
player[i].Character:MoveTo(Vector3.new(game1position))
player[i].Character:MoveTo(Vector3.new(game1position))
msg:remove()
game.Lighting:findFirstChild(game1name):clone().Parent = game.Workspace
wait(gametime) --time of game
msg.Parent = game.Workspace
msg.Text = "Finished!"
wait(2) --time that the message shows up.
msg:remove()
game.Workspace:findFirstChild(game1name):Remove()
end
end
end
thnx mad |