I'm trying to use the delay function in a ModuleScript but I get the following error:

attempt to call global 'delay' (a nil value)

delay(0.1, function() --code here end)

Is that because of the fact I'm not using a global or client script?