I'm a bit confused with this, I don't know how would I connect this script which would give the tool to the player once, the number value reaches zero.
local wood = game.ServerStorage.WoodStorage.Wood
local hits = script.Parent.Hits
part = script.Parent
function Wood(Player)
while wait() do
if hits.Value == 0 then
wood:clone()
wood.Parent = Player.Backpack
part:Destroy()
end
end
end
script.Parent.Hits:connect(Wood)
The error is the last line
connect is not a valid member of NumberValue
Help and explain.
