Help with Map Voting

Hello, I can currently Making a map voting system and I’m having trouble with it, when u vote on a map it sends a remote event to a sever script and they sever script sends another Remote event to fire all clients and Change the Vote value, I need it to only change the Map that’s been voted value, any help?

click vote script


local Remote = game.ReplicatedStorage.Vote.Voted

script.Parent.MouseButton1Click:Connect(function()
	local CanClick = script.Parent.Parent.CanClick.Value
	if CanClick == true then
		local Map1 = script.Parent.Parent.CanClick
		script.Parent.Parent.CanClick.Value = false
		Remote:FireServer(Map1)
		
		script.Parent.Parent.Parent["Map 2"].CanClick.Value = true
		script.Parent.Parent.Parent["Map 3"].CanClick.Value = true
	else
		if CanClick == false then
		end
	end
end)

server script


local Remote = game.ReplicatedStorage.Vote.Voted
local Remote1 = game.ReplicatedStorage.Vote.ChangNumber

Remote.OnServerEvent:Connect(function(Map1, Map2, Map3)
	Remote1:FireAllClients()
end)

script that changes voting value

local Remote1 = game.ReplicatedStorage.Vote.ChangNumber

Remote1.OnClientEvent:Connect(function()
	script.Parent.Value = script.Parent.Value + 1
end)
local Remote = game.ReplicatedStorage.Vote.Voted

script.Parent.MouseButton1Click:Connect(function()
	local CanClick = script.Parent.Parent.CanClick.Value
	if CanClick == true then
		local Map1 = CanClick.Parent
		CanClick = false
		Remote:FireServer(Map1)
		
		script.Parent.Parent.Parent.Map2.CanClick.Value = true -- remove the space to avoid errors
		script.Parent.Parent.Parent.Map3.CanClick.Value = true
	else
		if CanClick == false then
		end
	end
end)

It probably won’t work because your changing the Value locally. You need to change the value on a server script so the whole server vote changes.

i am changing it server side kinda, i send a remote event to a server script that sends it back changing the value by FireAllClients

It will fire all clients, but will still only change it for the client and not the server. For example everyone may see that map3 has only been voted once because only the server has voted.