so i tried aking rainbow gui that is customizable but i cant turn off the rainbow effect
--// objects
local Border = Instance.new("Frame")
local Bordertop = Instance.new("Frame")
--// properties
rainbowbtn.MouseButton1Click:Connect(function()
if rainbowbtn.Text == "Rainbow OFF" then
rainbowbtn.Text = "Rainbow ON"
function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
counter = 0
while wait(0.1) do
Border.BorderColor3 = Color3.fromHSV(zigzag(counter),1,1)
Bordertop.BorderColor3 = Color3.fromHSV(zigzag(counter),1,1)
counter = counter + 0.01
end
else
rainbowbtn.Text = "Rainbow OFF"
Bordertop.BorderColor3 = Color3.new(0, 1, 0.2)
Border.BorderColor3 = Color3.new(0, 1, 0.2)
end
end)
its really annoying and i dont know how to turn it off every time i tried to tur it off it just started again at even faster speed

1 comment
thanks i tried this way but i did something wrong ty tho!