How to use code to obtain information on Roblox?

I am quite new to coding in general, and I’ve been wanting to somehow be able to obtain information like a player’s last online, groups that they’re in, etc. information that is available out there, somewhere on Roblox. And I wanted to obtain them through code, but I don’t know how. I’d appreciate it if you could help me by telling me how to start learning about it. Thanks!

read this it may be useful Player

You can obtain players data through player class functions. You can check who a user is friends with, What group they are in, Get information how a player joined the game etc.