Skip to content

Commit

Permalink
fix: CreateGroup now requires all arguments, because creating group w…
Browse files Browse the repository at this point in the history
…ithout items causes error
  • Loading branch information
bqmb3 committed Jul 27, 2024
1 parent efdfb67 commit cb15b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cb15b37

Please sign in to comment.