Yes, it is legal to install and use extensions for Roblox. However, make sure to install the Roblox extension from a legitimate source, so you don't accidentally get any virus or ransomware on your PC.