so i want to change the ImageLabels or ImageButton Image outside StarterGui. here the script that i wrote:

logs =  "rbxassetid://261517000"
function change()
game.StarterGui.ScreenGui.Inventory.ImageLabel.Image = logs
end
script.Parent.Touched:connect(change)

4 comments

0

You should reformat the code in your post to make it more readable.

0

So what exactly is the problem with the code that you have proposed?

0

this script should change the image in ImageLabel when i touch the part but it wont change

0

Is the game FilteringEnabled? Scripts cannot access StarterGui when FE is on.