|ROBLOXCRITICAL| Right Clicking Object Deletes It Unintentionally; Undo Doesn't work


Description of the Issue:

In Roblox Studio, right-clicking to bring up the context menu sometimes results in accidental object deletion. This occurs under the following conditions:

  • The Cut option is too close to the mouse pointer, making it prone to accidental selection.
  • A double right-click or simultaneous right and left-click (due to fast input or a misclick) inadvertently triggers the Delete option, even though the user did not intend to delete the object.

Adding to the issue, the context menu accepts both right and left clicks, which increases the likelihood of triggering unintended actions, including deletion.


Significance:

This issue can lead to severe data loss for developers. While undo shortcuts can restore most objects, large objects may not be recoverable and can cause Roblox Studio to crash, resulting in further loss of data. Developers are then forced to go through version history to revert to an earlier version, which may require redoing all changes made since then.

I personally encountered this problem when I accidentally deleted my entire plugin due to this bug. The unintended deletion caused a major setback and highlighted the frustration of losing progress because of an easily triggered, unintentional action.


Visuals:


Steps to Reproduce:

  1. Open Roblox Studio and load a game or project.
  2. Right-click on an object in the scene (such as a part or model).
  3. The context menu will appear, showing Cut and Delete options.
  4. While interacting with the context menu, either by double right-clicking or simultaneously left-clicking and right-clicking, the object is accidentally deleted.
  5. The Cut option may also be mistakenly triggered because of its proximity to the mouse pointer, causing the object to disappear.

Expected Behavior:

The Cut and Delete options should be clearly separated within the context menu to prevent accidental activation. A double right-click or simultaneous left and right-clicks should not cause object deletion unless explicitly selected by the user.


System Information:

  • Operating System: Windows 11, macOS, etc.
  • Roblox Studio Version: Latest
  • Device: PC
  • RAM: 16GB
  • CPU: Intel i5 10th Gen

Additional Notes:

  • The issue seems to be linked to the proximity of the Cut option to the mouse pointer, which leads to accidental double right-clicking or simultaneous left and right clicks.
  • The context menu’s acceptance of both right and left clicks might be contributing to the issue, as both inputs seem to trigger unintended actions, such as object deletion.

Are you experiencing similar issues?:

  • Yes
  • No
  • Maybe

0 voters

4 Likes

Feel like this is more of a feature request to change the spacing between cursor and the right click menu. It’s also important to note that this is not a critical bug.

1 Like

Thanks for the feedback but I have to respectfully disagree. This is more of a usability bug with potentially destructive consequences.

The fact that a double right-click or a left+right click can accidentally trigger object deletion is clearly unintended behavior. A bug isn’t just a crash or error message but anything that causes the program to behave in a way that wasn’t intended by design. This fits that definition pretty well.

Also, I wouldn’t say it’s not critical. It might not break the Studio for every user, but when it does happen, it can cause serious data loss. I personally lost an entire plugin because of it. The undo feature isn’t always reliable, and if Studio crashes after the deletion (which it sometimes does with large objects), you’re stuck digging through version history and redoing work.

So yeah, spacing between menu items might help as part of a fix, but the real issue is that the context menu is way too easy to misfire in ways that delete things. This is a behavior flaw, and behavioral flaws are bugs.

3 Likes

I think I had a similar issue as I accidentally deleted a tunnel model I made and the undo button didn’t work. I had a save so was able to get tunnel model back.

This is a important bug as undo button doesn’t work.

3 Likes

Well for me the undo button works but for larger objects like my plugin they are too large to be reprocessed and crash my game. I can definitely see how the issue could affect other areas when the undo function doesn’t work since it may not always be reliable.

2 Likes

FYI ROBLOCRITICAL isn’t used anymore by engineers.

Yea I know but I added it because of how annoying this issue has been lately. I am working on a research paper for school through roblox studio and this issue is setting me back a lot because I keep deleting the plugin on accident and having to comb through version history.

I have to record myself presenting and I’m supposed to be testing the plugin but its already 5:00 and I have like no work done. I really think roblox needs better testing before releasing products. It feels like they say “Release now, fix later” despite developers being fully dependent on those changes

1 Like

Honestly I have also been very affected recently with that issue, you should keep in mind that it is related to the progressive Studio UI refresh, I think you should also post it here as Roblox engineers could give it more sooner attention:

1 Like

Thanks for letting me know. I made a post there

Make sure to vote in the poll so the engineers fix it

2 Likes

This has always been a problem, it’s not new to the Luau Explorer. I turned off the beta and the “right-click to select” behavior is identical.

What it might be is that the new Explorer shows the context menu faster than the old one. An upcoming update is going to slow it down a tiny bit for a different reason, so it might help you as well.

Yes thats likely true. Because it shows up so fast, it is much easier to misclick. Maybe rather than decreasing the speed you could offset the menu a little below the mouse like I have seen other platforms do.

image

See how discord has it offsetted a little bit from the mouse to give space. It could even be something like the dimension of the mouse itself as a tiny offset that would solve the issue

1 Like

Yeah, I’ve wanted extra padding for a while. I think it’s still a while til it’s there.

We’re decreasing the speed for a different reason, I’m just hoping it fixes this too.

1 Like