StudioService
Show Deprecated
StudioService provides access to configuration of Roblox Studio, allows importing files from the user's file system, and other miscellaneous information. It is intended to be used by Plugins in order to provide a consistent user experience.
- Plugins that allow the user to move objects may find GridSize, RotateIncrement and UseLocalSpace useful.
- Plugins that require the user to import files should use PromptImportFile or PromptImportFiles in order to receive File objects.
- Plugins that display icons of Instance classes can use GetClassIcon.
- Plugins that care about which script is currently being edited (if any) can read this from ActiveScript.
Summary
Properties
Reflects the LuaSourceContainer currently being edited (if any).
Determines the distance in studs by which Studio's drag and move tools move objects each tick.
Determines the degrees by which Studio's rotation tool will rotate selected objects each tick.
The locale currently in-use by Studio, e.g. en_US.
Determines whether Studio tools will use local space of an object or global space.
Methods
Properties
Methods
GetUserId
Returns
Code Samples
StudioService:GetUserId
-- Can only be used in a plugin
local StudioService = game:GetService("StudioService")
local Players = game:GetService("Players")
local loggedInUserId = StudioService:GetUserId()
local loggedInUserName = Players:GetNameFromUserIdAsync(loggedInUserId)
print("Hello,", loggedInUserName)
GizmoRaycast
Parameters
Default Value: "RaycastParams{IgnoreWater=false, BruteForceAllSlow=false, RespectCanCollide=false, CollisionGroup=Default, FilterDescendantsInstances={}}"