Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago
Edited 3 years ago

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.

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. greatneil80 2647 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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

HumanoidRootPart.Changed:Connect(function(propertyThatChanged)
   print("The " .. propertyThatChanged .. " property has changed!")
end)
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 RemsFriend -24 — 3y
Ad

Answer this question