GetAtttribute is not a valid member of Folder

Hey everyone, I’ve come across this weird problem with Attributes. (I’m sorry if there is a really easy fix, I’m just stuck)

  1. What do you want to achieve? I’ve started to begin scripting a voting system, for my upcoming game (PPS).

  2. What is the issue? I’ve been getting this error: GetAtttribute is not a valid member of Folder "ReplicatedStorage.RoundObjects"

Heres the code

-- Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")

-- Folders
local remoteEventsFolder = ReplicatedStorage.RemoteEvents
local roundEvents = remoteEventsFolder.RoundEvents
local roundObjects = ReplicatedStorage:WaitForChild("RoundObjects")

-- Values
local inRound = roundObjects:GetAtttribute("InRound")

Photo of the folder

  1. What solutions have you tried so far? I’ve tried to do change and reformat the whole script and put it under a PlayerAdded event, it still doesn’t work.

Sorry again if there is a really easy fix for this.

https://developer.roblox.com/en-us/api-reference/function/Instance/GetAttribute

Also, you added 3 t’s in attribute instead of 2 :slight_smile:

1 Like

Omg, I’m so sorry. I have some problems with spelling. :sweat_smile: I’m so sorry, lol.

No worries man xD

Only realized it myself when reading it through the second time

1 Like