is this possible? if yes how would i access the materials in another script
module["Potion"] ={
health = 50,
animationDuration = 1.25,
materials = {
herbs = 2,
redherb = 5
}
}
is this possible? if yes how would i access the materials in another script
module["Potion"] ={
health = 50,
animationDuration = 1.25,
materials = {
herbs = 2,
redherb = 5
}
}
Usually you can index it through this way:
module.Potion.materials, which is {herbs = 2, redherb = 5}
You can try to make this in your module (this is a personal example)
return {
Client = { -- Client
-- Sub
Suspicious = {StrangeActivity = "The server detected strange activity on your client"},
--Direct
},
Server = {
-- Sub
EventSecurity = {SecurityVerificationFailed = "Security check failed", CountdownBypass = "Possible attempt to bypass a countdown event"},
--Direct
MissingCriticalArgs = "Critical arguments are missing",
ArgsInvalid = "The arguments received are not valid"
}
}
And you can use it like that
local myModule = require(THE MODULE)
print(myModule.Client.Suspicious.SecurityVerificationFailed) -- Print > Security check failed