How can i make a texture that repeats itself, but also rotate with the object?

oh. thanks a lot! by the way do you know if there is one that can work on a deferred decal? cause it only works on surface