I want to make it so when you equip a tool and click anywhere, it clones where the mouse is clicked at.
local p = Game.Players.LocalPlayer
local m = Tool.Equipped:connect(function(mouse)
local model = Game.ReplicatedStorage['NameHere'];
m.Button1Down:connect(function()
if m.Target then
local x = model:Clone()
if x:IsA("Model") then
x.Parent = Workspace
x:MoveTo(m.Hit.p)
elseif x:IsA("BasePart") then
x.Parent = Workspace
x.Position = m.Hit.p
end
end)

1 comment
Yes but it still doesn't work.