Ad
Log in to vote
0

How do I make a intermission with my lobby in my game?

Asked by 2 months ago
Edited 2 months ago

I have a game with a lobby, But no intermission, I can make the Gui but I don't know the scripts for it, I want the intermission to let you be in the lobby for 1:00 then you random spawn you on red or blue team then you have 5:00 to fight then the rounds ends and you get teleported to the lobby again, then it repeats.

0
are you asking us to write a script for you? EmeraldRailYT 8 — 2mo

1 answer

Log in to vote
0
Answered by 2 months ago
Edited 2 months ago

I'm new so cut me some slack but I think for the Teleport Section, you can make the local players character root part's Cframe the same as the part you want it to tp to and maybe 3 studs up so you dont get eaten. For the team selection you can use the shuffle function and a couple of for loops (make sure to use a table for the teams) The intermission part is a little tricky to explain with words so heres a example script:

local time = 60
while wait(1) do
if time == 0 then

-- Enter your tp script thing here and what else you want to happen when the time hits 0

gui.TextLabel.Text = "Times up!"
break
else
gui.TextLabel.Text = tostring(time) --sets onscreen gui timer
time = time - 1
end
end

Once again I'm new so this may be wrong

Let me know if you need anything else, I know this is a little vague so sorry about that.

0
ok TheKittyKingOfficial 0 — 2mo
0
Accept my answer if it worked please EmeraldRailYT 8 — 2mo
Ad

Answer this question