Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

CreatePlaceAsync() Description Not Showing?

local asset = game:GetService("AssetService")

local function match(plr1,plr2) --plr1 and plr2 are strings
local matchnum = 1337 --(a number from a datastore would be put here)
local placeid = asset:CreatePlaceAsync("Siegecast Matchup Game #"..tostring(matchnum),211481450,plr1.." vs "..plr2)
print(plr1.." vs "..plr2) --prints out "FutureWebsiteOwner vs GlueChomp" when tested (GlueChomp is an alt account i use for testing)
end

The function successfully creates the place, but the description doesn't seem to show... Any ideas?

3 comments

0

That seems odd. Try putting your concatenated string in a separate bracket inside the function and see if that works.

0

I don't really understand what you mean by that. If you mean putting the string in the variable, then I have tried that and still no description shows up.

0

What exactly do you mean by "but the description doesn't seem to show". The place isn't given a description, or the print statement doesn't work?

1 answer

Try this.

local asset = game:GetService("AssetService")

local function match(plr1,plr2) --plr1 and plr2 are strings
local matchnum = 1337 --(a number from a datastore would be put here)
local placeid = asset:CreatePlaceAsync("Siegecast Matchup Game #"..tostring(matchnum),211481450,(plr1.." vs "..plr2))
print(plr1.." vs "..plr2) --prints out "FutureWebsiteOwner vs GlueChomp" when tested (GlueChomp is an alt account i use for testing)
end

I did (plr1.." vs "..plr2) in stead of plr1.." vs "..plr2 just in case lua got confused. I don't know if this helps any.

This discussion is preserved as it was. New answers, comments, and votes are closed.