Like that ? (local script in StarterCharacterScripts)
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Button1Down:Connect(function()
local Hit = mouse.Hit.p
local Attachement = Instance.new("Attachment",mouse.Target)
Attachement.WorldCFrame = CFrame.new(Hit)
Attachement.Visible = true
end)