local float = true while float == true do gui.back.title:TweenPosition(UDim2.new(0.114, 0,-0.151, 0),"Out","Quad",1,true) wait(1) gui.back.title:TweenPosition(UDim2.new(0.114, 0,-0.101, 0),"Out","Quad",1,true) wait(1) end gui.back.button.Activated:Connect(function() float = false end
This is because you have to do the binding first then the while loop:
while wait() do end print("This will NEVER print because of that while loop")
Instead this would be much better:
print("Now we can print what we want and run the loop") while wait() do end
Your code never reaches
gui.back.button.Activated:Connect(function() float = false end
because it gets caught in the loop. Move your connect function before the loop starts.