Is this an error with my code, or a roblox error?

You can write your topic however you want, but you need to answer these questions:
I get this error on the code below:

script.Parent.Remove.MouseButton1Down:Connect(function()
	if RemoveSelected == false then
		RemoveSelected = true
		--//Cancel out other selections
		HumansSelected = false
		WeatherSelected = false
		--//Contiue
		Selected.Visible = true
		script.Parent.ButtonPressed:Play()
		Selected:TweenPosition(UDim2.new(script.Parent.Remove.Position.X,script.Parent.Remove.Position.Y), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.1)
	elseif RemoveSelected == true then
		RemoveSelected = false
		Selected.Visible = false
		script.Parent.ButtonPressed:Play()
	end
end)
Mouse.Button1Down:Connect(function()
if RemoveSelected == false then return end
	--do something later
end)

This code works anywhere else

Example of it working
script.Parent.Weather.MouseButton1Down:Connect(function()
	if WeatherSelected == false then
		WeatherSelected = true	
		--//Cancel out other selections
		HumansSelected = false
		RemoveSelected = false
		--//Continue
		Selected.Visible = true
		script.Parent.ButtonPressed:Play()
		Selected:TweenPosition(UDim2.new(0.119, 0,0.12, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 0.1)
	elseif WeatherSelected == true then
		WeatherSelected = false
		Selected.Visible = false
		script.Parent.ButtonPressed:Play()
	end
end)
Mouse.Button1Down:Connect(function()
if WeatherSelected == false then return end
	print("Do cool weather stuff")
end)

All image buttons.
image

Error with your code.

Instance:Remove is a deprecated function by Roblox. Class members have precedence over children, so you’re trying to access the Remove method. Change the name to something like Delete and that will fix your problem.