How do you add a bool value attribute on a part

Currently, I’m working on a plugin but I will need to use attributes. I decided to use :SetAttribute(). But when I looked at ROBLOX’s example, they did it with a Vector3 value while I’m doing it with a bool value.

Here’s what I want:

image
I want a bool value attribute like this but created with a script.

Okay, I got this working now, this was a pretty easy fix. All things that I have to do were:

script.Parent:SetAttribute("Yes", false)

2 Likes