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

How do I make this have multiple decal texture ID's?

Asked by 10 years ago

I made a button that makes a decal appear, BUT, I want it to have 6 different decal IDs. I was wanting to know how to do this. And it's by random on which decal is chosen.

function onClick()
    game.Workspace.TS.PositionPart.Decal.Transparency = 0.9
    wait(.5)
    game.Workspace.TS.PositionPart.Decal.Transparency = 0.8
    wait(.5)
    game.Workspace.TS.PositionPart.Decal.Transparency = 0.7
    wait(.5)
    game.Workspace.TS.PositionPart.Decal.Transparency = 0.6
    wait(.5)
    game.Workspace.TS.PositionPart.Decal.Transparency = 0.5
    wait(.5)
    game.Workspace.TS.PositionPart.Decal.Transparency = 0.4
    wait(.5)
    game.Workspace.TS.PositionPart.Decal.Transparency = 0.3
    wait(.5)
    game.Workspace.TS.PositionPart.Decal.Transparency = 0.2
    wait(.5)
    game.Workspace.TS.PositionPart.Decal.Transparency = 0.1
    wait(.5)
    game.Workspace.TS.PositionPart.Decal.Transparency = 0
    wait(10)
    game.Workspace.TS.PositionPart.Decal.Transparency = 1
end

game.Workspace.TS.ButtonPart.ClickDetector.MouseClick:connect(onClick)

Answer this question