Script error with frame parent


I’m trying to make a script where “pixel”, a frame, will follow the mouse then after 1 second it will delete, making a trail type of effect

Why does it say that the Parent of property pixel is locked is that locked by something?

The script also doesn’t look for me to have problems but it’s weard that it says the Parent of property pixel is locked.

I dont think so. I don’t really know how you could even lock that

Are you setting it’s parent after destroying it? The error would throw if that was the case. Make sure not to set it’s parent when destroying the frame.