How to give textbox/click detector multiple functions?
Asked by
4 years ago Edited 4 years ago
I tried to make a text box that would have multiple functions. For a example you click it once it will go to the right you click it again it will go to the left with 1 button the problem is that when i try to do it i click it it goes to the left and i click it again it stays at the left here is what i tried.
1 | script.Parent.MouseButton 1 Down:Connect( function () |
2 | script.Parent.Position = UDim 2. new( 0.727 , 0 , 0.401 , 0 ) |
5 | script.Parent.MouseButton 1 Down:Connect( function () |
6 | script.Parent.Position = UDim 2. new( 0.019 , 0 , 0.397 , 0 ) |
Any help is appreciated.