Why does the IDE think I need to close a block? its a variable?

local players = game:GetService("Players")
local replicatedStorage = game:GetService("ReplicatedStorage")
local winsEvent = replicatedStorage:WaitForChild("WinsEvent")
local player = players.LocalPlayer
local function resetWinsGui()
	local winsGui = player.PlayerGui:WaitForChild("MainGUI"):WaitForChild("Wins")	
	local contentsFolder = winsGui:WaitForChild("Contents")
	if contentsFolder then
		local winnersLabels = contentsFolder:GetChildren()
			if #winnersLabels >0 then
				for i = 1, #winnersLabels do						
					winnersLabels[i]:Destroy()
				end
			
			end
	end

end

if you look at the variable “Local winsLabels” it has a dropdown line
as if it wants an “end”

I can’t figure it out. I’ve retyped it and everything

And I notice after posting that it doesn’t show the drop down line here… but it thinks it wants an “end” of that local winsLabels…

? no red line tho, no error… just that dropdown line

1 Like