Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
1

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

Asked by 3 months ago
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

0
Yes, you used it wrong. Dovydas1118 993 — 3mo

1 answer

Log in to vote
0
Answered by
iuclds 591 Moderation Voter
3 months ago
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.

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 superspeedr1234 60 — 3mo
0
LMAO iuclds 591 — 3mo
Ad

Answer this question