Where did you get the scripts from?
Well if you search in the internet for the Perlin Noise library for unity you get the 3D Perlin Noise
Thanks