Roblox Studio Freeze when deleting cloned part

Hi,

I have this problem where my game freeze when I delete a cloned part while touching another part. I delete the part by pressing a button. I guess the touch event is the problem, but I am not sure. Any suggestions?

Can you post your script here? This will allow someone to help you. From the description you’ve given, it looks like you’ve not used what’s typically called a “debounce” which would stop a function being spammed (almost like an infinite loop).

Yes indeed, it was a debounce problem!
It was needed a debounce on my loop where I thought that I have debounce, but I didn’t.
Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.