Up there is a video of what is happenining
Down below is the Local Script that I thought would work.
local Button = script.Parent local ImageActivated = "rbxassetid://5049442176" local ImageNormal = "rbxassetid://4888438209" local function OnButtonActivated() Button.Image = ImageActivated delay(3, function() Button.Image = ImageNormal end) end Button.Activated:Connect(OnButtonActivated) if parent.Image == ImageActivated then parent.Selectable = false end end
ImageActivated hasnt been approved from ROBLOX yet because I had just made the decal that is why it is black i think
**I mean you literally answered your question yourself.
"ImageActivated hasnt been approved from ROBLOX yet because I had just made the decal that is why it is black i think"
I tested it for you. It works, just not yet with those decals.
The code is great. Good job!**
Edit: I'm wrong.
When I went to your video I was puzzled as to why it wouldn't work on my screen at all but it somewhat worked on yours. So I did some research.
I tested it with my decals. I got the asset ID by putting my decals/images on a decal object in-game. That's why I jumped to my answer that I originally had.
To get a real asset ID you go to your link here: https://www.roblox.com/library/4888438209/Images-about-to-throw-die and paste that into the "texture ID" area for a Decal object in studio.
The decal object will then auto-correct to the right ID (it will clearly say it). That is how you know what to use.
Sorry about that.
local Button = script.Parent local ImageActivated = "rbxassetid://5049442168" -- these are the correct assetid's local ImageNormal = "rbxassetid://4888438200" Button.Image = ImageNormal -- this makes it so the image is image normal to begin with function OnButtonActivated() Button.Image = ImageActivated delay(3, function() Button.Image = ImageNormal -- the function is last changed to image normal end) end Button.MouseButton1Click:Connect(OnButtonActivated) -- for some reason I couldn't get .Activated to work but mousebutton1click worked.