local a=game.ServerStorage.States.MapVote a.CurrentlyVoting.Changed:connect(function()local Q=a.CurrentlyVoting.Value script.Parent.Image.Visible=Q script.Parent.CountLabel.Visible=Q script.Parent.MapName.Visible=Q script.Parent.Count.Visible=Q end)a.Map1.Changed:connect(function()local Q=a.Map1.Value script.Parent.Image.Image=Q.ImageAsset.Value script.Parent.MapName.Text=Q.Name end)a.Count1.Changed:connect(function()script.Parent.Count.Text=a.Count1.Value end)
-- goro7

local voteStates = game.ServerStorage.States.MapVote

voteStates.CurrentlyVoting.Changed:connect(function()
	-- Adjust visiblity
	local newVal = voteStates.CurrentlyVoting.Value
	script.Parent.Image.Visible = newVal
	script.Parent.CountLabel.Visible = newVal
	script.Parent.MapName.Visible = newVal
	script.Parent.Count.Visible = newVal
end)

voteStates.Map1.Changed:connect(function()
	-- Update map name and image
	local newMap = voteStates.Map1.Value
	script.Parent.Image.Image = newMap.ImageAsset.Value
	script.Parent.MapName.Text = newMap.Name
end)

voteStates.Count1.Changed:connect(function()
	-- Update map count
	script.Parent.Count.Text = voteStates.Count1.Value
end)
