Why does this not work:
while itemName.Value ~= "none" do
wait(.0001)
print("item value is not none")
gui.Visible = true
gui.Position = UDim2.new(0, mouse.X, 0, mouse.Y)
end
While this does:
while true do
wait(.0001)
if itemName.Value ~= "none" then
gui.Visible = true
gui.Position = UDim2.new(0, mouse.X, 0, mouse.Y)
end
end

1 comment
forgot to mention i've set this to run when it does not equal to "none" and on default it is something else.