Im currently trying to print out “Currently not hitting part” when a player is not hitting the part, but right now it only prints “print(“hitting part”)” but when im not touching the part it dosen’t print anything :), anyone know the solution to my problem?
workspace.Shop.HitBox.Touched:Connect(function(hitbox)
if hitbox.Parent:FindFirstChild("Humanoid") then
local plr = game.Players:GetPlayerFromCharacter(hitbox.Parent)
if plr then
print("hitting part")
else
print("Currently not hitting part")
end
end
end)
Thanks!