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

CreatePlaceAsync() Description Not Showing?

Asked by 9 years ago
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?

0
That seems odd. Try putting your concatenated string in a separate bracket inside the function and see if that works. Spongocardo 1991 — 9y
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. FutureWebsiteOwner 270 — 9y
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? chess123mate 5873 — 8y

1 answer

Log in to vote
0
Answered by 7 years ago

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.

Ad

Answer this question