I am trying to make a placement system to place down stuff
I am using mouse.Hit.Position
The problem is the mouse is targeting the block that is being placed so the part zooms into the camera
How do I solve this?
I am trying to make a placement system to place down stuff
I am using mouse.Hit.Position
The problem is the mouse is targeting the block that is being placed so the part zooms into the camera
How do I solve this?
Maybe lock its Y value so it could only move on the Z and X axis?
Use a fake mouse ray and have it ignore the part that is being dragged, or any parts that you want it to ignore.
local ignoreList = {item, player.Character}
local mouseRay = mouse.UnitRay
local newRay = Ray.new(mouseRay.Origin, mouseRay.Direction.unit * MAX_PLACEMENT_DISTANCE)
target, pos, norm = workspace:FindPartOnRayWithIgnoreList(newRay, ignoreList)
You could try setting Mouse.TargetFilter
to the part you’re trying to place
thanks for all the responses! @Hell_ish’s solution worked for me