This script only works when I put -
1 | local d = game.workspace.poster.decal |
but the problem is, I want to put this poster inside of a model, and duplicate that model multiple times. It won't work. Just so you know, the part that is affecting it is
1 | local d = script.Parent.Parent.Parent.Parent.Decal |
1 | Frame = script.Parent |
2 | Frame.GenerateButton.MouseButton 1 Click:connect( function () |
3 | local d = script.Parent.Parent.Parent.Parent.Decal |
4 | d.Texture = "http://www.roblox.com/asset/?id=" .. tonumber (script.Parent.TextureId.Text)- 1 |
5 | end ) |
Roblox recently had an update when you don't have to substract the ID of a decal. Try this:
1 | Frame = script.Parent |
2 | Frame.GenerateButton.MouseButton 1 Click:connect( function () |
3 | local d = script.Parent.Parent.Parent.Parent.Decal |
4 | d.Texture = "http://www.roblox.com/asset/?id=" ..script.Parent.Text |
5 | end ) |