Mod Action Log help

I’m trying to make something for my game that when a moderator writes a player ID or name into a TextBox it shows what punishments the user has had in the past (using datastore) and then it copies a GUI template from a folder into a scrolling frame with the mod name and reason in it.

Unfortunately, I have no idea how to do that it looks in the datastore if there were moderation actions and then writes it into text labels.
Can someone help me or give me such a script?

So first you would need to get the information from the datastore using getasync. I would do this by having a “RequestActions” remotefunction. Then on the server check if the remote is being called by you or admins or whoever is allowed. Here you will get the information and you will return it to the client. You then have a table with actions which you can use to create or change texts.

Could you give me an example of the scripts? Because I really do not understand the datastore stuff