local Status = workspace:WaitForChild("Status")
local Spawns = workspace:WaitForChild("Spawns"):GetChildren()
local tweenservice = game:GetService("TweenService")
local tweeninf = TweenInfo.new(
	1,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.InOut,
	0,
	false,
	1
)
local AnimDoor1 = workspace:WaitForChild("AnimDoor1")
local AnimDoor2 = workspace:WaitForChild("AnimDoor2")
local AnimDoor1property = {
	Position = Vector3.new(-23, -6.75, 316.375)
}
local AnimDoor2property = {
	Position = Vector3.new(-23, 42.625, 316.375)
}
local tweencreate1 = tweenservice:Create(AnimDoor1, tweeninf, AnimDoor1property)
local tweencreate2 = tweenservice:Create(AnimDoor2, tweeninf, AnimDoor2property)
local AnimDoor1property1 = {
	Position = Vector3.new(-23, 10, 316.375)
}
local AnimDoor2property2 = {
	Position = Vector3.new(-23, 26.125, 316.375)
}
local tweencreate1close = tweenservice:Create(AnimDoor1, tweeninf, AnimDoor1property1)
local tweencreate2close = tweenservice:Create(AnimDoor2, tweeninf, AnimDoor2property2)

function Intermission(startval, endval)
	for i = startval, endval, -1 do
		Status.Value = "Intermission: " .. i .. " seconds left"
		wait(1)
	end
end

function Round(startval, endval)
	for i = startval, endval, -1 do
		Status.Value = "Round: " .. i .. " seconds left"
		wait(1)
	end
end

while true do
	wait()
	local plrs = game:GetService("Players"):GetPlayers()
	-- problem here, very confused
end

I've tried many methods(like alot) to make my own intermission/round script taking hours to make this script but i dont seem to figure out still how to make, i want this script to first do an intermission and set players InRound.Value = false and InIntermission.Value = true(they are inside game.Players.PLAYERNAME), and then when intermission is done play the tweens tweencreate1:Play() and tweencreate2:Play() to open the Lobby's door, and then after 10 seconds play the tweens tweencreate1close:Play() and tweencreate2close:Play() to close the door, at the same time also start the Round, now i also want to check if there are no players in round(everyone died or everyone won the round) then do the intermission again and teleport players to Spawns, but the thing is that when i tried to make a code like that the round was still there and intermission was not started yet even everyone died or won the round, a some help will be appreciated, i already wasted my time figuring out how to make a code like that

1 comment

0

try Cooldown = 2 RoundTime = 4 wait(RoundTime) script.Parent.Visible = true wait(Cooldown) script.Parent.Visible = false