GetAttribute
This function allows you to get attributes of an instance.
-- Getting ReplicatedStorage and Workspace service
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local workspace = game:GetService("Workspace")
-- Referencing Essentials
local Essentials = require(ReplicatedStorage.Essentials)
-- Referencing the instance you want to set the attribute to
local damagePart = workspace.DamagePart
-- Getting the attribute's value
Essentials.GetAttribute(damagePart, true)Essentials: Successfully retrieved damagePart's attribute DamageParameters
instance: Instance
attributeName: string
debugging: bool
References
Last updated