Instance:GetProperties() doesn't work..?

I wanted to find a method to get every property value of an instance but I couldn’t even start doing anything because “GetProperties()” isn’t working at all

GetProperties is not a valid member of Part "Workspace.testpart00"  -  Server - Script:1

I thought there could be something wrong with the script I made so I just copied this from documentation.

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local coreSheet = ReplicatedStorage:FindFirstChild("CoreSheet")

-- Get reference to style rule
local frameRule = coreSheet.Frame

local props = frameRule:GetProperties()
print(props)
--[[
{
	["AnchorPoint"] = 0.5, 0,
	["BackgroundColor3"] = 1, 0, 0.25
}
]]

the error↓↓↓

GetProperties is not a valid member of Part "ReplicatedStorage.CoreSheet.Frame"  -  Server - Script:8


Am I getting errors because I used parts as instead of something else?? please explain it to me

Instance doesnt have a :GetProperties method sadly, they might have at some point, but not anymore.

We’ve been begging roblox for one for ages, but alas.

tldr; there is no :GetProperties method.

2 Likes

where the hell did you even get :GetProperties() from :sob:

please double check stuff that ai gives you, it’s not always correct

4 Likes

:GetProperties is a method of StyleRule, not Instance. It returns the properties set by a rule for the UI Styling Beta.

2 Likes

not yet… :eyes:

image

6 Likes

the lies of roblox studio assistant strike again

2 Likes

Its currently disabled but i made tutorial how to get all properties of an instance (up to date) How to get ALL properties of an Instance

2 Likes

oh sorry, I thought it could work on everything else

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.