This post brings me flashbacks when I asked the exact thing around 5 years ago. In all honestly it was pretty simple, all you need is to get the mouse’s hit position then move the part / model there. (If that’s what you mean with a placement system, I hope this isn’t a misunderstanding.) You can use an if statement to check if the user is in the team. I’d use these: GetTouchingParts()
for boundaries, mouse.Hit.p
and Clone
Some good posts for this would be these:
I’m trying to make a placement system, but i dont know how implement a grid into it, because of the orientation of the blocks. I also see that some of the blocks dont rotate when the mouse goes on it, because its in a model. any help?
Heres the script:
local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Char = Player.Character or Player.CharacterAdded:Wait()
local Mouse = Player:GetMouse()
…
This guide was originally written for scriptinghelpers . The original can be found here .
One of the most common requests I get for blog post topics are for a decoration placement system that saves. I’ve shied away from this topic in the past as there is no singular “correct” way to do it. That being said, I think it’s a good exercise for all game devs to go through and will potentially place a role in a future blog post I plan to write.
In addition to change things up, I’ll also take the ti…
I have been working on a placement system for a bit now and have been wondering how “Build A Boat For Treasure” does their system. There is a Grid system, rotating, and the part is able to snap to the surface of another part. Also, there’s no unintentional overlapping of parts, which I assume could be done by making a rectangular bounding box for everything.
I'm looking into creating a tycoon from scratch, and the first thing I want to tackle is the grid placement system.
I'm unsure what this entails, so some wiki links and/or basic examples would help me out alot to understand this.
Thanks!
1 Like