Comment on page
require
Access the returned values from the specified script. This will yield if the specified script has not yet returned.
Require will error if you try to require scripts in a cycle
Example usage:
config
-- Return config values for other scripts
return {
damageOnHit = 50
}
damage-on-hit
Events.Damage(function(event)
-- Get the damage from the "config" script
event.damage = require("config").damageOnHit
end)
Last modified 3mo ago