How To Get The Players Name That Is Editing The Game

So im making a Plugin and i’m trying to set a TextBox’s Text to the editors name but im not sure how, I tried looking it up but i didn’t find anything. I could do game.CreatorId and stuff but then I don’t want to because they could be in a Team Create.

anyone know?

i got the answer from a friend, you can use the StudioService

local StudioService = game:GetService('StudioService')
print(StudioService:GetUserId())
1 Like

Thank you for sharing your solution as opposed to just closing the topic.

1 Like