in folder. char limit rule go awqay
so i got a folder, theres a part called !A!, now i want to know which part in the same folder is closest to A
you can see It on explorer tab.
this is my game btw… all my friennds play it
I NEED TO GET IT IN A SCRIPT. im talking baout distane between positions
Ohhh well I don’t really know how to do that you can make a topic on how to do that with a script.
just loop through the folder and check the absolute value of the “A” part’s position magnitude subtracted by the part the loop is on’s position magnitude.
HOW WOULD YOU DO THAT? are you smart? pls script example
for _,B:BasePart in Folder:GetChildren() do
local Distance:number = (A.Position - B.Position).Magnitude
end
It’s as simple as that
No offense, but don’t you have 10 years of experience? I’m not trying to be rude, but it’s literally just a for loop and some math. Not even gonna type the code because the person above me already did
Very nicely done
You have very good skills
But something is wrong with the door
it aint just a loop. can you stop saying nonsense
thanks so much… i know . i used the door from my public doors fangame
It… is? It’s a for loop. That’s all it is. It’s a for loop with one line of math, not super complicated or “nonsensical”
no its not. you need to compettntet them after
pls help withj this
What??? I don’t understand what “compettntet” means
It looks good! Nice recreation of it.
No it’s not because this is not what I ordered from you
Well, thank you so much. I could also use I’m helped if you want to help me with the interior