PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GetStudioUserId

Returns the studio user’s userId if they’re logged in, otherwise returns 0.

Returns

Return Type Summary

Code Samples


Plugin:GetStudioUserId1

The below example would print the currently logged in user’s ID. If, for example, Shedletsky were to run this it would print 261.

local Plugin = PluginManager():CreatePlugin()
wait(5)
print(Plugin:GetStudioUserId())