Having a small issue with changing the color back and forth between a disabled and enabled toggle switch.
thisButton.MouseButton1Click:Connect(function()
visible = not visible
if visible then
thisButton.Image = enabledImage
thisButton.ImageColor3.new = Color3.new(55,255,0)
else
thisButton.Image = disabledImage
thisButton.ImageColor3 = Color3.new(255,0,0)
end
for i,v in pairs(Players:GetPlayers()) do
turnOffOverhead(v)
end
end)
thisButton.MouseButton1Click:Connect(function()
visible = not visible
if visible then
thisButton.Image = enabledImage
thisButton.ImageColor3= Color3.RGB(55,255,0)
else
thisButton.Image = disabledImage
thisButton.ImageColor3 = Color3.RGB(255,0,0)
end
for i,v in pairs(Players:GetPlayers()) do
turnOffOverhead(v)
end
end)
thisButton.MouseButton1Click:Connect(function()
visible = not visible
if visible then
thisButton.Image = enabledImage
thisButton.ImageColor3 = Color3.RGB(55,255,0)
else
thisButton.Image = disabledImage
thisButton.ImageColor3 = Color3.RGB(255,0,0)
end
for i,v in pairs(Players:GetPlayers()) do
turnOffOverhead(v)
end