I am trying to make a player only tool so I have a folder and in that folder, I have a local script and the tool I want to duplicate in the local script is
local player = game.Players.LocalPlayer
local sword = script.Parent.Bird_Destroyer
local clone = sword:Clone()
clone.Parent = player.Backpack
clone.Name = "Bird Destroyer"
the folder rn is in server storage and it doesn't work but if I put it in workspace the tool falls to the ground and if I touch it I pick it up
Edit: So right now I have a local script in starter player scripts saying
local sword = game.ReplicatedStorage.Bird_Destroyer
local clone = sword:Clone()
local toolusers = {"triniti110","cjkizzy286"}
print("somethings wrong")
game.Players.PlayerAdded:Connect(function(player)
print("player joined")
for i = 1, #toolusers do
print("for")
if toolusers[i] == player.Name then
print("before cloned")
clone.Parent = player.Backpack
clone.Name = "Bird Destroyer"
print("cloned")
end
end
end)
but nothing happens still nor does it print anything but "somethings wrong"

2 comments
Change it to a Server Script and place it in ServerScriptService
Make sure the tool is not touching the ground, make it hover a little. That solved my problem.