I’m trying to return specific individual attributes via a function in a modulescript, but when I print it from a server script it returns all of the args rather than the specific value I requested. It’s probably a simple fix but I figured I’d ask anyways. Thanks for any tips!
local doorModule = {}
function doorModule.getDoor(doorInstance)
local doorProperties = {
doorType = doorInstance:GetAttributes("DoorType"),
interactDebounce = doorInstance:GetAttributes("InteractDebounce"),
locked = doorInstance:GetAttributes("Locked"),
openSpeed = doorInstance:GetAttributes("OpenSpeed"),
resetTime = doorInstance:GetAttributes("ResetTime")
}
return doorProperties.doorType
end
return doorModule

