Just wanted to let people know this function is not reliable and can result in desyncs depending on the code that relies on it. I think it works correctly for the host but not for guests in a multiplayer match.
Not sure what I can replace it with.
Never mind. This works: