I've got my round script working but my main focus is getting the gui visible. I'm really confused on how to get this to appear. (btw sorry for all these gui posts but I am so confused on this)

Script in SSS


local Int = game:GetService("ReplicatedStorage"):WaitForChild("Int")
local b = game:GetService("ReplicatedStorage"):WaitForChild("Bint")


game.ReplicatedStorage.Intermis.OnServerEvent:Connect(function(player, text)
while true do 	
		
			Int.Value = Int.Value - 10
			wait(1)
	if Int.Value == 0 then
		b.Value = 600
		for _,player in pairs (game.Players:GetPlayers()) do		
			if player.Character then			
			player.Character:SetPrimaryPartCFrame(CFrame.new(13.945, 2.78, 3.213))
			while true do
			b.Value = b.Value - 50
			wait(1)
			
	if b.Value == 0  then
			player.Character:SetPrimaryPartCFrame(CFrame.new(202.809, -48.632, -117.99))
			Int.Value = 30	
							
							
						end
					end
				end
			end
		end
	end
end)

game.ReplicatedStorage.gui:FireAllClients()





Local Script in StarterGui

local inter = game:GetService("ReplicatedStorage")
local bui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")

game.ReplicatedStorage.gui.OnClientEvent:Connect(function(play)
local Int = game:GetService("ReplicatedStorage"):WaitForChild("Int")
local b = game:GetService("ReplicatedStorage"):WaitForChild("Bint")
while wait(1) do
	bui.Intermission.TextLabel.Text = "Intermission = "..Int.Value
if Int.Value == 0 then
	bui.Intermission.TextLabel.Visible = false
	bui.Intermission.hui.Visible = true
	bui.Intermission.hui.Text = "Time Left = "..b.Value
if b.Value == 0 then
bui.Intermission.hui.Visible = false	
bui.Intermission.TextLabel.Visible = true
			end
		end
	end
end)




inter:WaitForChild("Intermis"):FireServer(script.Parent.TextLabel.Text)

4 comments

0

Learn how to write a short, self-contained, verifiable example. Look it up on Google. You need to cut out the unnecessary code from your question and get straight to the point. To help you do that, remove the parts of code that you're showing that has NOTHING to do with your question. Once you do that, you will get a more effective answer, if any.

0

wait() should NOT be a condition, for while loops.

0

I think I know what is wrong. Try to relocate the "FireAllClients" and "FireServer" method to where the variables are(before the while loops). If that doesn't work, then you may have a problem with your "if" statements in logic. I would double check that since the if statements may not be leading up to making the textLabel visible.

0

I've changed the condition to true instead of wait(1) and i've moved both the FireServer and FireAllClients