I would like to create a script which allows me to press the key "C" and it will clone what ever item I am holding!
I have managed to do that however, I would like it so when I clone the tool it appears 2 studs in-front of me instead of cloning and just ending up in my Backpack.
Heres the code I have already:
game:GetService("UserInputService").InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.C then
for _, child in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if child.ClassName == 'Tool' then
C = child:Clone()
C.Parent = game.Workspace
end
end
end
end)
Thank you for your help.
