handle.Touched:connect(function(hit) if not pause2 then pause2 = true if Mouse.Button1Down then if humanoid and hit and not hit:isDescendantOf(person) and Mouse.Button1Down and var.Value == true then local target = hit.Parent:WaitForChild("Humanoid", 1) var.Value = false print("Target variable added.")
Specifically, on the part that says "if humanoid and hit and not hit:isDescencentOf(person) and Mouse.Button1Down and var.Value == true then" the statement is running even when the left click on the mouse isn't clicked. Keep in mind that I'm trying to make a sword.