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

How can i make a changing decal?

Asked by 10 years ago

I want to make a train destination board that changes by pressing a button, but don't know how to do it!

0
I suggest looking into using a ScreenGUI rather than a changing decal - then you can add images and text dynamically, i.e. without having to upload separate images for each display. duckwit 1404 — 10y

3 answers

Log in to vote
0
Answered by 10 years ago

Just make it change decal id number every how many seconds you want.

0
how RobskiT 5 — 10y
0
??? Please explain in more detail please RobskiT 5 — 10y
Ad
Log in to vote
0
Answered by
Kozero 120
10 years ago
function click()
while true do 
Decal1.Texture.Decal.Texture=""--Copy this line and the one below it for more pictures
wait(5)
script.Parent.Decal.Texture = "http://www.roblox.com/asset/?id=76907393"--Edit for your textures asset Id.
wait(5)
script.Parent.Decal.Texture = "http://www.roblox.com/asset/?id=76907352"
end 
end
script.Parent.ClickDetector.MouseClick:connect(click)

There is an easier way to do this using Global tables but I didn't have the time to write because I have exams I need to study for.

Log in to vote
0
Answered by 10 years ago

Do you see the properties called texture? They show which decal you are using by id that is where you can change it.

Answer this question