Opensource Placement System

Placement System

*Last Updated: 2/8/23*

:wave: Hey there, I’m TrentaFX a Roblox Game Developer. Recently I’ve been looking around some of my creations and came across some unused one’s that I think could really help some people out or even learn from! Therefore I have decided to opensource this placement system.

:question:The placement system is easy to set up and has a clean and organized code so you can modify it to all your liking. It includes boundries, ability to rotate, multiple items to place (can be customized) & much more!


Content

Video Placement System

PlacementSystem.rbxm (17.6 KB)

Download the file, and drag the downloaded file into “workspace” or right click workspace and then press insert from file


Contact

If you’re interested in hiring me for a job or commission feel free to contact me by joining my server using code: RBvZ3e4Mkg or by simply leaving me a message here on the DevForum!

45 Likes

this looks sick!:star_struck: i’m surely going to try this out and maybe make something with it :thinking:

5 Likes

made it support models, and made the buttons not hardcoded and will automatically make the buttons

8 Likes

Hey mind if i ask how did u manage to make it compatible with models?

1 Like

Can you share how you did models?

1 Like

is it possible for this to have a snap to grid option, .1 or 1 would be best, not sure where to plop it

1 Like

this looks amazing, does it work with terrain though?

1 Like

heeeeeeeeeelllloooooooooo how does models work?

2 Likes

Probably using :PivotTo on a model…

1 Like

TrentaFx please make it work with Models

1 Like

a hint. primary parts. ------------

1 Like

A better hint:

model:PivotTo(CFrame)
1 Like

Can you make a guide of how you make it compatible with Models?

1 Like

What could that used for? I don’t understand how would you use
:PivotTo to make it work with models?

1 Like

Sorry about slow response.

Every PVInstance (Position, Velocity) has a pivot point. Parts, models, unions etc. The pivot point is the origin of the PVInstance, meaning any manipulations done to the PVInstance will use that as the “center”, and maintain relative offsets of children.

This means: you can move the pivot point and rotate something around a different axis than what you normally do (which is rotate around the object’s center).

This is the standard pivot point of this model:

I’ll move it using the edit pivot tool.

Now, when I rotate this model using the rotate tool, you can see we rotate from the pivot.

You can use this in your script by doing model:PivotTo(CFrame).
This will set the CFrame of the pivot point to the input CFrame, and move the rest of the model with it.

I tried using :PivotTo then putting the mouse.Hit.Position but it goes to the screen. How would I fix this problem?

To the screen? Like, to the mouse’s position on the 2D viewport, instead of the world?

This is what I mean:

I can’t see your video, it says no video with supported format.

Here’s the MP4 version of the video: