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

Why won't (Asset.Creator) work?

Asked by 10 years ago

I am getting really mad at this.. Does anyone know why this Script works all the way until after the removal?

local Asset = game:GetService("MarketplaceService"):GetProductInfo(157360914)
M = Instance.new("Message")
M.Parent = game.Workspace
wait()
M.Text = Asset.Name.. " : " ..Asset.Description
wait(4)
M:remove()
wait()
M.Text = "Created" ..Asset.Created.. "."
0
What's the output? TheGuyWithAShortName 673 — 10y

1 answer

Log in to vote
1
Answered by
Nickoakz 231 Moderation Voter
10 years ago

I think you're staring right at the issue. You can't remove a message and expect to be able to use it again.

local Asset = game:GetService("MarketplaceService"):GetProductInfo(157360914)
M = Instance.new("Message")
M.Parent = game.Workspace
wait()
M.Text = Asset.Name.. " : " ..Asset.Description
wait(4)
M.Text = "Created" ..Asset.Created.. "." --Swap
wait(4)
M:Destroy() --Swap
0
lol ConnorVIII 448 — 10y
Ad

Answer this question