When the Player Touches a brick they get a LinkedSword. this is not working...
script.Parent.Touched:connect(function(player) -- Getting brick and defining the player.
end)
script.Parent.Touched:connect(function(player)
local Tool = game.Workspace.LinkedSword:Clone(); -- Defining a tool that will be cloned.
Tool.Parent = player.Backpack; -- Defining the parent of the cloned tool.
end)

1 comment
Maybe, you should insert a "if player then", to filter npcs and other stuff containing a Humanoid.