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

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

Asked by 3 years 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 1495 — 3y

1 answer

Log in to vote
0
Answered by
iuclds 720 Moderation Voter
3 years 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 LTRNightmare 66 — 3y
0
LMAO iuclds 720 — 3y
Ad

Answer this question