I originally wrote this script to make a part shake whenever I touch it. The script works fine as it is. I’m just having trouble with getting the part to shake only after i hit it with a weapon. As of now from what i tested it shakes both after i hit it and touch it. The script is below:
local part = script.Parent
part.Touched:Connect(function(BoneAxe)
script.Parent.Orientation = Vector3.new(math.random(), math.random(), math.random())
end)