Having multiple bases for placement


Can still go in the wall :confused:

Is it possible to show the Region3? This can help for figuring out were the Region3 is.

How can I show that? just print

local region = Region3.new(position-size/2,position+size/2)
print(region)

??

Make a part and give it the position of
position-size/2
And size of
position+size/2
And then parent it to the workspace.

From studio? Cause how can I get position and size from studio since I dont have mouse.Hit.p

From the script
As Region.new the arguments are
Vector3 Positon
Vector3 Size

It is very simple to make a part with the Position and Size that was passed thru to the Region

Ah, alright. Here I was thinking it was a Vector3 lmao

Oops, my bad. They are both Vector3s, but one is point0 and the other is point1. I thought you were talking about how to print it’s location and bounds from the region object itself.

Ah, I see I thought it was position and size just like a part but yeah getting it’s location and bounds are also kinda helpful in seeing were it is coliding with other parts. (Just in case if the equation is wrong.

Ok, well it just creates a million parts as I move the model, and they all fly into my camera
com-video-to-gif%20(3)

local region = Region3.new(position-size/2,position+size/2)
		local part = Instance.new('Part', workspace)
		part.Size = size
		part.Position = position
		part.CanCollide = false

What exactly was the point of this again?

May I recommend that you keep one part and keep on setting its position and size?
As in you make the part outside of the loop and set the values in the loop.
You also need to add it to the ignore list.

A simple placement system. The model should be stuck to the floor and stay with the floors boundaries. Since I have multiple floors tho, it meant it would get thru different parts. Read OP for better explanation

I feel like this is just getting more and more complex than it actually needs to be :confused:




Few examples

So it should be able to see it’s inside of walls now I’m wondering what is your ignore list like as it appears to be ignoring the walls.

local ignl = {player.Character,PlayersPlot.Base, ItemClone, PlayersPlot.House, part}

Does PlayersPlot.House include the walls?

Ye it’s a folder with the walls in it

Their is your issue you need to seperate it or atleast make it so you aren’t ignoring the walls.

The walls need to be out of the ignore list.