I insert this script into a part and the LinkedSword is in Lighting... Idk what I did really. It just doesn't work. It's supposed to give the player who touched the part a sword.
local human = game.Players:FindFirstChild("Character")
function onTouched(hit)
game.Lighting.LinkedSword.Parent = human.Backpack
end
script.Parent.Touched:connect(onTouched) |