Make changed() run initially

This commit is contained in:
Aaron Smith 2023-09-28 16:46:32 +01:00
parent 46937c6979
commit c03fb05779
4 changed files with 24 additions and 1 deletions

View file

@ -12,6 +12,8 @@ local function changed<T>(property: string, callback: (T) -> ())
cleanup(function()
con:Disconnect()
end)
callback((instance :: any)[property])
end)
end