From cb15b37e534ea637dcddb210a0b6150ff012fcdf Mon Sep 17 00:00:00 2001 From: bqmb3 Date: Sun, 28 Jul 2024 00:18:05 +0900 Subject: [PATCH] fix: CreateGroup now requires all arguments, because creating group without items causes error --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 91a6060..4ae92f1 100644 --- a/main.lua +++ b/main.lua @@ -76,11 +76,11 @@ end --- Creates a group (Model or Folder) containing the specified items. -- @tparam "Model"|"Folder" Type Type of the group -- @tparam[opt=workspace] Instance Parent Parent instance, defaults to workspace --- @tparam[opt={}] {Instance,...} Items Items to group, defaults to empty table +-- @tparam {Instance,...} Items Items to group -- @treturn Model|Folder Created group function F3X:CreateGroup(Type, Parent, Items) EnsureInitialized(self) - return self._endpoint:InvokeServer("CreateGroup", Type, Parent or workspace, Items or {}) + return self._endpoint:InvokeServer("CreateGroup", Type, Parent or workspace, Items) end --- Ungroups the specified groups.