Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Argument 1 missing or nil. when creating a place, why?

Asked by 9 years ago

I enter this command into my command-bar in STUDIO:

newPlaceId = game:GetService('AssetService'):CreatePlaceAsync(Test1, 299399612, Test)

I get an error:

20:06:24.600 - Argument 1 missing or nil
20:06:24.601 - Script 'newPlaceId = game:GetService('AssetService'):CreatePlaceAsync(Test1, 299399612, Test)', Line 1
20:06:24.601 - Stack End

How is this possible? I thought I have all the arguments already? Someone help or advice me please?

1 answer

Log in to vote
0
Answered by 9 years ago

First argument for CreatePlaceAsync should be String. Test1 should be 'Test1'.

Ad

Answer this question