Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can i possibly get all properties of an object? (Read Description)

How can i possibly get all properties of an object and use GetPropertyChangedSignal to detect if they changed.

Example script:

local Character = game:GetService("Workspace"):FindFirstChild(tostring(game:GetService("Players").LocalPlayer.Name)) or false
local HumanoidRootPart = Character and Character:FindFirstChild("HumanoidRootPart") or false
--^^ the object that i want to get every property of

local Properties--Pretend that we got all the properties

HumanoidRootPart:GetPropertyChangedSignal(Properties):Connect(function(Property)
    print("The "..tostring(Property).. " property has changed!")
end)

Please let me know if theres a way or is it just impossible.

1 comment

0

You would have to call an http request to the api dump which lists every objects properties and match to see if the object has those properties. Trust me, whatever your doing, there has to be a better solution.

1 answer

There's this event called Changed that does exactly what you want.

HumanoidRootPart.Changed:Connect(function(propertyThatChanged)
   print("The " .. propertyThatChanged .. " property has changed!")
end)

1 comment

0

sorry maybe you should read the question again. Incase if you dont understand what i meant was how can i get every properties of an object

This discussion is preserved as it was. New answers, comments, and votes are closed.