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

Why isn't the description being set?

Asked by 9 years ago

I am using the CreatePlaceAsync() method. Everything is working except for setting the description of the place.

script.Parent.MouseButton1Click:connect(function()
    local serv = Game:GetService("AssetService")

    local n = script.Parent.Parent.Title
    local d = script.Parent.Parent.Desc

    local p = serv:CreatePlaceAsync(n.Text,178021862,d.Text)
    game:GetService("DataStoreService"):GetDataStore("VersionCrap"):SetAsync("V",p)

    wait()

    script.Parent.Parent.Visible = false
end)

does anybody have any idea why this isn't working?

1 answer

Log in to vote
-1
Answered by 9 years ago

I don't know what CreatePlaceAsync() does but here's my idea.

script.Parent.MouseButton1Click:connect(function()
    local serv = Game:GetService("AssetService")

    local n = script.Parent.Parent.Title
    local d = script.Parent.Parent.Desc

    local p = serv:CreatePlaceAsync(n.Text .."178021862".. d.Text) -- Connected the number as a string?
    game:GetService("DataStoreService"):GetDataStore("VersionCrap"):SetAsync("V",p)

    wait()

    script.Parent.Parent.Visible = false
end)

0
That would not work. These are seperate peramiters. nighttimeninja314 120 — 9y
0
Alright.. I'm sorry. :( I gave it a try. Any errors in output, @ nighttimeninja314 legoguy939 418 — 9y
Ad

Answer this question