Script getting deleted entirely when cutting code

This morning I jumped on studio, and it seems my script gets deleted every time I use “Cut” on any part of my script, or select a line and press “Backspace”

It started as of this morning when my studio updated.

EDIT: I’ve realised that deselecting the script after opening is a potential fix, however when I deselect it and go to cut the code the “Cut” is greyed out.

image

I managed to reproduce this bug on a baseplate, and have attached the baseplate file.

BuggedPlace.rbxl (54.6 KB)

System Information:

Windows 11
13th Gen Intel(R) Core™ i9-13900K
32GB RAM
NVIDIA GeForce RTX 3080

Beta Features:

Assistant Preview
Dragger QoL improvements
Face Capture
Gamepad Emulator
Live Animation Creator
New Studio Camera Controls
Occlusion Culling
Scripts are non strict by default
Texture Generator
Video Uploads

Expected behavior

I expect to be able to cut and paste code without the script deleting itself.

4 Likes

It seems to affect the latest version of Studio.

The following portion of the context menu (when you right click within the studio) does not seem to respect that it should be in the context of the script, and instead acts as though it is in the context of the explorer.
image

So the behaviour observed by @demofocus is not the script getting deleted, rather it is the script (i.e. the most recently selected thing in the explorer) getting cut, which is the action clicked in the context menu.

The keyboard shortcuts for cut, copy, paste and delete do not seem to be affected by this bug, and hence are a viable alternative until the bug is resolved.

3 Likes

If you use paste, the entire file gets “pasted” into the workspace regardless of where the actual path leads and is no longer editable. This also just started with Studio version 661.

1 Like

The same thing happens to me but mainly when the elements to copy are somewhat large. When what I want to copy is little, for example, local Players = game:GetService(“Players”), it works correctly, the problem is when trying to copy a large volume of the script code.

1 Like

I got similar issue after the studio update, when try to cut some code move to other place, it will say “Kicked from Live Scripting Session: Script was deleted”, and delete my script. hoepfully they could fix the issue soon.

1 Like

We’re reverting the flag that we suspect caused this. Check back in an hour tops.

1 Like