Hello there!
I’m trying to find a tool placement system like Islands with saving and rotating.
However, since my Roblox Studio is broken, I’m hoping someone out there can find it.
Best example I’ve seen so far but has no tutorial on how to do it:
I really need to find something like this so please let me know if you find it.
Thanks!
1 Like
Hey there! This is a veeeeery big favor you’re asking but I will try my very best to help you create something similar. I recommend not using the tool system for this but something like a GUI.
Here is some things that might help you.
First of all, for the following of the cursor, use Mouse.Hit. Mouse.Hit allows you to get the position where the mouse hits an object. Then, you can move the object to this position and make it stop following the mouse on the press of the left mouse button.
When the left mouse button is pressed, fire a Remote Event to the server and then let the server place the object in the world.
Good luck!
Thanks! I’ll see if it works. If so, I’ll make this post solved!
(EDIT: And also, how do I make it snap to a grid?)
mouse.Hit isn’t the position. If you want the position, it is mouse.Hit.p.
‘Mouse.Hit allows you to get the position’ I never said it was the position, but to make it more clear: Mouse.Hit is a CFrame, not a Position.
You can use math.floor for that. If you want to snap to 2 studs, use this:
x = math.floor(x / 2) * 2
And you can replace the 2 by the amount of studs you want to snap to. You can also add for example 1 or 2 to it, to create an offset. Do the same for y and z and create a new Vector3 with them in it. Good luck!
Hi again! I know it’s been a while, but I’m finally back from my break on Roblox. The placement system is made, but how might I make a hotbar & inventory? That’s one of the only things I’m stuck on. Thanks!