Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

I cant get all the players to teleport, and it wont display winners help me?[SOLVED PARTIALLY]

Asked by 10 years ago
while true do 
wait(30) 
local m = math.random(1,4) 
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 = "Choosing Minigame."
wait(1)
msg.Text = "Choosing Minigame.."
wait(1)
msg.Text = "Choosing Minigame..."
wait(1)
msg.Text = "A Minigame has been chosen!"
wait(3)
msg.Text = "The Minigame is..."
wait(3)
msg.Text = "Paintball!"
wait(2)
msg.Text = "Paintball to death!"
wait(5)
msg.Text = "The game will be starting in:"
wait(1)
msg.Text = "...3..."
wait(1)
msg.Text = "..2.."
wait(1)
msg.Text = ".1."
wait(1)
msg.Text = "Begin!"
wait(1)
player[i].Character:MoveTo(Vector3.new(75.4, 326.9, -469.7))
msg:remove()
game.Lighting.Minigame1:clone().Parent = game.Workspace 
game.Lighting.LinkedPaintballGun:clone().Parent = player[i].Backpack
wait(120) 
msg.Parent = game.Workspace
msg.Text = "Winner(s)!" 
wait(3)
msg:remove() 
game.Workspace.Minigame1:Remove() 
end
if m == 2 then
msg.Parent = game.Workspace
msg.Text = "Choosing Minigame." 
wait(1)
msg.Text = "Choosing Minigame.."
wait(1)
msg.Text = "Choosing Minigame..."
wait(1)
msg.Text = "A Minigame has been chosen!"
wait(3)
msg.Text = "The Minigame is..."
wait(3)
msg.Text = "Sword Fight" 
wait(2)
msg.Text = "Battle each other with linked swords."
wait(4)
msg.Text = "The game will be starting in:"
wait(1)
msg.Text = "...3..."
wait(1)
msg.Text = "..2.."
wait(1)
msg.Text = ".1."
wait(1)
msg.Text = "Begin!"
wait(1)
player[i].Character:MoveTo(Vector3.new(-159, 566.8, -365)) 
msg:remove()
game.Lighting.Minigame2:clone().Parent = game.Workspace
game.Lighting.Sword:clone().Parent = player[i].Backpack 
wait(120)
msg.Parent = game.Workspace
msg.Text = "Winner(s)!"
wait(3)
msg:remove() 
game.Workspace.Minigame2:Remove() 
end
if m == 3 then 
msg.Text = "Choosing Minigame."
wait(1)
msg.Text = "Choosing Minigame..."
wait(1)
msg.Text = "A Minigame has been chosen!"
wait(3)
msg.Text = "The Minigame is..."
wait(3)
msg.Text = "RISING LAVA" 
wait(2)
msg.Text = "Survive!" 
wait(4)
msg.Text = "The game will be starting in:"
wait(1)
msg.Text = "...3..."
wait(1)
msg.Text = "..2.."
wait(1)
msg.Text = ".1."
wait(1)
msg.Text = "Begin!"
wait(1)
player[i].Character:MoveTo(Vector3.new(184, 611.8, -349)) 
msg:remove()
game.Lighting.Minigame3:clone().Parent = game.Workspace
wait(60)
msg.Parent = game.Workspace
msg.Text = "Winner(s)!"
wait(3)
msg:remove() 
game.Workspace.Minigame3:Remove()
end
if m == 4 then
msg.Parent = game.Workspace
msg.Text = "Choosing Minigame." 
wait(1)
msg.Text = "Choosing Minigame.."
wait(1)
msg.Text = "Choosing Minigame..."
wait(1)
msg.Text = "A Minigame has been chosen!"
wait(3)
msg.Text = "The Minigame is..."
wait(3)
msg.Text = "Rocket Fight!" 
wait(2)
msg.Text = "Blow em' up!" 
wait(4)
msg.Text = "The game will be starting in:"
wait(1)
msg.Text = "...3..."
wait(1)
msg.Text = "..2.."
wait(1)
msg.Text = ".1."
wait(1)
msg.Text = "Begin!"
wait(1)
player[i].Character:MoveTo(Vector3.new(244.5, 604.4, -118))
msg:remove()
game.Lighting.Minigame4:clone().Parent = game.Workspace
game.Lighting.RocketLauncher:clone().Parent = player[i].Backpack
wait(120)
msg.Parent = game.Workspace
msg.Text = "Winner(s)"
wait(3)
msg:remove() 
game.Workspace.Minigame4:Remove()
end
end
end``

1 answer

Log in to vote
0
Answered by
c0des 207 Moderation Voter
10 years ago

It would be easier if you placed invisible and non-cancollided bricks in the locations you want players to teleport to and putting the brick and it's position in there instead of a Vector3.

0
OMG! How come I never thought of that XD Thank you! c: MUSHR0OM 0 — 10y
Ad

Answer this question