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

Why isn't the description being set?

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

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)

2 comments

0

That would not work. These are seperate peramiters.

0

Alright.. I'm sorry. :( I gave it a try. Any errors in output, @ nighttimeninja314

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