Can,
Electronic1.Position = Mouse.Hit.p
Can it be used like that?
Can,
Electronic1.Position = Mouse.Hit.p
Can it be used like that?
Yeah, it can.
mouse.Hit is the CFrame of the mouse.
mouse.Hit.p is the position of the mouse.
This is used to place objects of shoot bullets at a position.
Super simple script:
mouse.Button1Down:Connect(function()
print(mouse.Hit.p)
part = Instance.new("Part",workspace)
part.Position = mouse.Hit.p
end)
when placing object with mouse.Hit.p its recomended to use target filter in the mouse like:
mouse.TargetFilter = -----the object you are placing or the folder which contain the object
because The descendants of the object are ignored, so it is possible to ignore multiple objects so long as they are a descendant of the object so that it can be place in the same position
How do I make a placement system?