Hi I attempted a simple sword giver script, the script isn't sending the sword to my backpack, but it will send it to the workspace if I change it, am I missing something important?
local debounce = false
game.Workspace.Part.Touched:Connect(function()
if not debounce then
debounce = true
print("test")
local cloneSword = game.ServerStorage.ClassicSword:Clone()
cloneSword.Parent = game.Players:FindFirstChildOfClass("Backpack")
wait(1)
debounce = false
end
end)

2 comments
Index Backpack, don't use FindFirstChild() on it.
As in using the i, v table thing? could you show me an example?