well i hav made this mini challange that i edited from a mini game script and when it sterts the mini game and teles me it doesn't go to the right place. the way i got he position of where i wanted it to tele every1 is that i put a brick there and got it's position.
heres 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
|