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

why wont the GUI image change. Did i use rbxassetid wrong?

function pause()
	if workspace.MusicScript.S1.Playing == true then
		game.Workspace.MusicScript.S1.Playing = false
		script.Parent.Image = rbxassetid://(12255380)
	end
end
script.Parent.MouseButton1Click:Connect(pause)

i used

rbxassetid

1 comment

0

Yes, you used it wrong.

1 answer

function pause()
    if workspace.MusicScript.S1.Playing == true then
        game.Workspace.MusicScript.S1.Playing = false
        script.Parent.Image = 'rbxassetid://12255380'
    end
end
script.Parent.MouseButton1Click:Connect(pause)

This will work.

Also, Dovydas1118, you are acting really immature right now. Spamming instead of helping, especially since this is really easy, shows how much of a retard you are.

2 comments

0

13:06:33.354 - Image "https://assetdelivery.roblox.com/v1/asset?id=12255380" failed to load in "Players.superspeedr1234.PlayerGui.MusicGUI.ImageButton.Image": Request failed

0

LMAO

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