Answered by
7 years ago Edited 7 years ago
1 minutes of google searching and it seems like that function returns an instance back to you. If i'm correct, to create a new instance we use Instance.New("Class")
Taking this example from the wiki about LoadLibrary
01 | local RbxUtility = LoadLibrary( "RbxUtility" ) |
02 | local Create = RbxUtility.Create |
04 | local redPart = Create "Part" { |
07 | BrickColor = BrickColor.new( "Bright red" ); |
08 | Position = Vector 3. new( 5 , 5 , 5 ); |
Instead of doing this we should do this
1 | local redPart = Instance.new( "Part" ) |
2 | redPart.Name = "Red Part" |
3 | redPart.Transparency = 0.5 |
4 | redPart.BrickColor = BrickColor.new( "Bright red" ) |
5 | redPart.Position = Vector 3. new( 5 , 5 , 5 ) |
6 | redPart.Parent = workspace |
You shouldn't use the second argument of Instance.new to parent that instance immediately because it will take longing to replicate it.
1 | Instance.new( "Part" ,workspace) |
More in depth reason
(That function must be really old o.o)