Gui bug for game gui

This is my problem if you can help me fix it that would be nice thx

1 Like

What method are you using to detect the mouse clicking?

this may sound like a dumb idea, but when moving the object around could you add a very small wait time before it actually moves to where they clicked, like wait(0.1) or something barely noticeable because I assume either the button just isn’t working or it’s seeing the object movement first if that made any sense I just said.

I assume that you went to sleep after making the post, so I will assume that you are using UIS.

In the InputBegan / InputEnded / InputChanged events, it returns 2 things:

  • The Input Object
  • gameProcessedEvent

gameProcessedEvent returns true if something else is already processing the action, such as a button or a text box input.
Within the Input Began / ended / changed function, if you add a return if the gameProcessedEvent boolean is true, it may resolve your issue

Two options that I know about:

Use the .MouseEntered function (not recommended)
Make a function that checks if the Mouse Position (Player:GetMouse().X, etc) is inside of the gui so it doesn’t activate the placement script.