Skip to content
OliverF edited this page Feb 25, 2014 · 1 revision

Returns the parent of the control.

Syntax

control control:GetParent()

Returns

  1. control
    Parent of control

Example

local button = RSAS.GUI.Control("button", "myButtonID")
local label = RSAS.GUI.Control("label", "myLabelID")
label:SetParent(button) --add label to button as a child

local parent = label:GetParent() --returns previous button

Clone this wiki locally