roblox
Missing API Documentation
This API Class does not have any or complete API documentation. Please add API documentation if possible.

The ScriptDocument class inherits from Instance.

Methods

CloseAsync(): Tuple

  • YieldsThis function can yield the script it is used in.
This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/CloseAsync.
  • Security: PluginSecurity.
  • Thread safety: unsafe

EditTextAsync(newText: string, startLine: int, startCharacter: int, endLine: int, endCharacter: int): Tuple

  • YieldsThis function can yield the script it is used in.
Parameters
NameType
newTextstring
startLineint
startCharacterint
endLineint
endCharacterint
  • Security: PluginSecurity.
  • Thread safety: unsafe

ForceSetSelectionAsync(cursorLine: int, cursorCharacter: int, anchorLine: int? = nil, anchorCharacter: int? = nil): Tuple

  • YieldsThis function can yield the script it is used in.
Parameters
NameTypeDefault
cursorLineint
cursorCharacterint
anchorLineint?nil
anchorCharacterint?nil
  • Security: PluginSecurity.
  • Thread safety: unsafe

GetInternalUri(): string

This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/GetInternalUri.
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

GetLine(lineIndex: int? = nil): string

Parameters
NameTypeDefault
lineIndexint?nil
  • Security: PluginSecurity.
  • Thread safety: unsafe

GetLineCount(): int

This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/GetLineCount.
  • Security: PluginSecurity.
  • Thread safety: unsafe

GetScript(): LuaSourceContainer

This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/GetScript.
  • Security: PluginSecurity.
  • Thread safety: unsafe

GetSelectedText(): string

This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/GetSelectedText.
  • Security: PluginSecurity.
  • Thread safety: unsafe

GetSelection(): Tuple

This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/GetSelection.
  • Security: PluginSecurity.
  • Thread safety: unsafe

GetSelectionEnd(): Tuple

This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/GetSelectionEnd.
  • Security: PluginSecurity.
  • Thread safety: unsafe

GetSelectionStart(): Tuple

This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/GetSelectionStart.
  • Security: PluginSecurity.
  • Thread safety: unsafe

GetText(startLine: int? = nil, startCharacter: int? = nil, endLine: int? = nil, endCharacter: int? = nil): string

Parameters
NameTypeDefault
startLineint?nil
startCharacterint?nil
endLineint?nil
endCharacterint?nil
  • Security: PluginSecurity.
  • Thread safety: unsafe

GetViewport(): Tuple

This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/GetViewport.
  • Security: PluginSecurity.
  • Thread safety: unsafe

HasSelectedText(): bool

This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/HasSelectedText.
  • Security: PluginSecurity.
  • Thread safety: unsafe

IsCommandBar(): bool

This class member is missing documentation. Create or add to its subpage at Class:ScriptDocument/IsCommandBar.
  • Security: PluginSecurity.
  • Thread safety: unsafe

MultiEditTextAsync(edits: Array): Tuple

  • YieldsThis function can yield the script it is used in.
Parameters
NameType
editsArray
  • Security: PluginSecurity.
  • Thread safety: unsafe

RequestSetSelectionAsync(cursorLine: int, cursorCharacter: int, anchorLine: int? = nil, anchorCharacter: int? = nil): Tuple

  • YieldsThis function can yield the script it is used in.
Parameters
NameTypeDefault
cursorLineint
cursorCharacterint
anchorLineint?nil
anchorCharacterint?nil
  • Security: PluginSecurity.
  • Thread safety: unsafe

Events

SelectionChanged(positionLine: int64, positionCharacter: int64, anchorLine: int64, anchorCharacter: int64)

Parameters
NameType
positionLineint64
positionCharacterint64
anchorLineint64
anchorCharacterint64
  • Security: PluginSecurity.
  • Thread safety: unsafe

ViewportChanged(startLine: int64, endLine: int64)

Parameters
NameType
startLineint64
endLineint64
  • Security: PluginSecurity.
  • Thread safety: unsafe

Removed members

Methods

External links