Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is wrong with this loop?

Asked by 9 years ago
while true do
    if Vector2.new(Mouse.X, Mouse.Y) > v.AbsolutePosition and Vector2.new(Mouse.X, Mouse.Y) < v.AbsolutePosition + v.AbsoluteSize then
        v.BackgroundColor = Color3.new(1, 135/255, 135/255)
        v.Font = Enum.Font.SourceSans
    else
        v.BackgroundColor = Color3.new(1, 1, 1)
        v.Font = Enum.Font.SourceSansLight
    end
    game:GetService("RunService").RenderStepped:wait()
end

So, I know the loop starts, but for some reason at the if statement the loop stops and nothing in the if statements fire. Anyone know what is up with this?

0
any errors? User#5978 25 — 9y
0
No. The loop just stops with no explanation at all. MisaMiner 50 — 9y

Answer this question