I wanna have around 60 things that spawns in the workspace. Then I have a tool. If that tool touches one of the 60 things then I want that thing to disappear. But I see when I clone 60 scripts those scripts takes much of roblox's servers. On script performance it says that those scripts in total takes like 5% or something. I have no idea to fix this. Can someone help me with that please! I also have another thing that I need help with. I want That all of the 60 things is able to go underground. (The ground is a part). When I set a position to something so it is underground it just teleports up a bit instead. Help please!
COMMUNITY QUESTION
How do I do this efficient and how do I make a part go inside another part?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
We are here to help you with a code you have, not to make them for you. Please ask another question if you have problems with the code rather than asking us to make it.
Use CFrame, not position. Position automatically goes on top of a part, while cframe doesnt. CFrame can be used just like a Vector3 value. CFrame.new(X,Y,Z)
Also use a for loop and loop through all 60 parts with a touched event, as having a script in every part, as you said is very inefficient
We help you on YOUR script, we don't create it for you.