I’m trying to change an image in an imageubtton, but whenever I set it to something new it turns blank. I imagine that I’m inputting the image string incorrectly. This should be a relatively simple problem to fix, but it’s proving difficult for some reason.
Excerpt from the script in question:
local revokeImage = "http://www.roblox.com/asset/?id=9849672457"
if revokedPlrs[plr] then
invite.Image = revokeImage
invite.BackgroundColor3 = Color3.new(255,0,0)
end
Some context I forgot to include: This is in a script which loops through the “players” class every second to create a custom player menu. During this loop, it refreshes the local player menu and determines whether each player is invited to the local player’s plot and, if so, changes the “invite to plot” button to a “revoke from plot” button.