I was playing Minecraft and I had an idea of a placement system. But I am stumped.
Problem: When placing blocks and the side of other blocks the go inside each other.
Sample Code:
local Player = game.Players.LocalPlay
local mos = Player:GetMouse()
local part = workspace.Part
local place = game.replicatedstorage.place
mos.Move:connect(function()
Part.Position = mouse.Hit.p
end)
mouse.Clicked:Connect(function() --i know this dosnt work it will just give error. my place got corrupted so i have to remember all code
palce:FireServer(mouse.Hit.p)
end)
The code isnt perfect but i have to type directly into the question box.
If you could help that would be AWSOME

7 comments
This isnt what I mean. I am confused about the placement LOCATION not the script. The blocks when placing it places inside other block and doesn't eject to the side of the block. Here is an example game (Not created by me) https://www.roblox.com/games/4872321990/
Oh You may just look at this grid system https://devforum.roblox.com/t/creating-a-furniture-placement-system/205509
I found one for u https://www.youtube.com/watch?v=qjBS9OH7CS8
I have building it in a grid done, but when placing on the SIDE of a block, some of it is inside the other. Depending on what side it is +1 or +2 stud to the side
Heres what i got so far: https://www.roblox.com/games/5652103892/game (Terrible graphics, just a test)
Why does everyone stop helping when problems get hard?
srry for not responding i was busy well u have to make some if statements or idk just search on yt