I need help to this. Please if you know please tell me. And if you want to ask a question about my question then I will answer it :)
So you can get the position of the part by:
1 | print (workspace.Position) -- This will print out the position of the part in workspace |
So what you mean is if you add a vector3 position to a part you check the new position and get the part that if in that new position Here what i can do
01 | local Part = workspace.Part -- Change this if needed |
02 | local Part 2 |
03 |
04 | local Target = Part.Position + Vector 3. new( 0 , 10 , 0 ) |
05 | for i,v in pairs (workspace.Model:GetChildren()) do -- Change the model name |
06 | if v.Position = = Vector 3. new(Target) then |
07 | Part 2 = v |
08 | print ( "Found! Yay" ) |
09 | else |
10 | print ( "Not Found" ) |
11 | end |
12 | end |
Hope this helped
How you get a bricks position, you simply just need to get the Parts Position. This is a basic function of ROBLOX Studio.
1 | --[[Made By MillerrIAm]] -- |
2 | --[Server Variables]-- |
3 | local Part = script.Parent |
4 | local PartPosition = Part.Position |
5 | -- [ Main Script ] -- |
6 | print(PartPosition) |