i made this code that will give a sword to a player when they press a Button but it seems to me that when they press the button you get a sword but the sword does not work??
*Does not hit an enemy
Code
local Sword = script.Parent.ClassicSword
local Button = script.Parent
local Plr = game.Players.LocalPlayer
Button.MouseButton1Click:Connect(function()
Sword:Clone().Parent = Plr.Backpack -- Sword:Clone() makes it not work????
Button.Visible = false
end)
