I have a TextButton, and, I want it to add a sword to my backpack when I click on it. The ONLY problem is that when I click on the TextButton, it does not give me my sword. Please help
-- This is inside a TextButton
script.Parent.MouseButton1Click:connect(function()
local RS = game:GetService("ReplicatedStorage")
local item = RS:WaitForChild("LinkedSword")
local player = game.Players.LocalPlayer
local cloned = item:Cloned()
cloned.Parent = player.Backpack
end)

1 comment
:WaitForChild("LinkedSword") < That might be the issue.