#Model placement on shelf
18 messages · Page 1 of 1 (latest)
so
try this
whenever u move the mouse
and its hit object
is the place
the red thing
put the object in that place
and blacklist the object
from filters
local snapDistance = 2
local function onMouseMove()
if isDragging then
local bottlePosition = bottle.Position
Mouse.TargetFilter = bottlePosition
local Target = Mouse.Target
if shelfPositions[Target] then
bottle.CFrame = CFrame.new(Mouse.Hit.p)
end
print("Following mouse cursor")
end
end
try this
i took a break from that now im trying to make the box open for example i press f and then box gets destroyed and then some water bottles appear but for some reason the box does not get destroyed