local j=game.ServerStorage.States.MapVote j.CurrentlyVoting.Changed:connect(function()local F=j.CurrentlyVoting.Value script.Parent.Image.Visible=F script.Parent.CountLabel.Visible=F script.Parent.MapName.Visible=F script.Parent.Count.Visible=F end)j.Map3.Changed:connect(function()local F=j.Map3.Value script.Parent.Image.Image=F.ImageAsset.Value script.Parent.MapName.Text=F.Name end)j.Count3.Changed:connect(function()script.Parent.Count.Text=j.Count3.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.Map3.Changed:connect(function()
	-- Update map name and image
	local newMap = voteStates.Map3.Value
	script.Parent.Image.Image = newMap.ImageAsset.Value
	script.Parent.MapName.Text = newMap.Name
end)

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