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

OpenScript

Used to open the given script instance in an editor window, in Roblox studio, at the given line. If no line is given as an argument it will default to 0.

Parameters

Name Type Default Description
int
1

Returns

Return Type Summary

Code Samples


Plugin:OpenScript

The following would open a newly created Script in Workspace, assuming the variable “Plugin” was already declared.

local NewScript = Instance.new("Script", Workspace)
Plugin:OpenScript(NewScript)