Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does my ImageButtonActivated not appear when I click my ImageButton? Can someone fix this too?

My script for changing the image (actually its Feahren's)

local Button = script.Parent

local ImageActivated = "rbxgameasset://Images/ImagesButtonActivated"
local ImageNormal = "rbxgameasset://Images/ImageButtonNormal"

local function OnButtonActivated()
	Button.Image = ImageActivated
	delay(4.5, function()
		Button.Image = ImageNormal
	end)	
end

Button.Activated:Connect(OnButtonActivated)

2 comments

0

Did you put this in a LocalScript or just a regular Script? It should be in a LocalScript.

0

It is in a LocalScript. My problem is when I click my ImageButton, which looks like ImageButtonNormal, It does not change into ImageButtonActivated. Instead it turns to blank.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.