Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I do this efficient and how do I make a part go inside another part?

Asked by 6 years ago

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!

0
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. 1TheNoobestNoob 717 — 6y
0
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) NexanianStudios 91 — 6y
0
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 NexanianStudios 91 — 6y
0
We help you on YOUR script, we don't create it for you. hellmatic 1523 — 6y

Answer this question