I need help on making a lobby script. My other account is obc but the stupid kids chat thinggy is being stupid. I know how to script a little bit. Here is the script: while true do local start = 10
local hint = Instance.new("Hint") hint.Parent = game.Workspace for i = 1,start do hint.Text = start - i wait(1) end hint.Text = "Starting Game." -- Change this to what you want it to say when its starting the game wait(2) hint:remove()
target = CFrame.new(-331.6, 2.5, -26.6) -- Location you want them to go for i, player in pairs(game.Players:GetChildren()) do player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0) end
local start = 10 local hint = Instance.new("Hint") hint.Parent = game.Workspace for i = 1,start do hint.Text = start - i wait(1) end hint.Text = "You Lost!" -- Lose message p = game.Players:GetChildren() for i = 1,#p do p[i].Character.Head:remove() end wait(2) hint:remove()
end
I want to know how to also add a winning message, some code that selects 1 player and makes him/her a certain team. Also I want to know how to generate a map when the game starts. Could somebody please help me?
while true do local start = 10 local hint = Instance.new("Hint") hint.Parent = game.Workspace for i = 1,start do hint.Text = start - i wait(1) end hint.Text = "Starting Game." -- Change this to what you want it to say when its starting the game wait(2) hint:remove() target = CFrame.new(-331.6, 2.5, -26.6) -- Location you want them to go for i, player in pairs(game.Players:GetChildren()) do player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0) end local start = 10 local hint = Instance.new("Hint") hint.Parent = game.Workspace for i = 1,start do hint.Text = start - i wait(1) end hint.Text = "You Lost!" -- Lose message p = game.Players:GetChildren() for i = 1,#p do p[i].Character.Head:remove() end wait(2) hint:remove() end
This is the script in lua format