Issue with change image

Send a screenshot of the StarterGui in Edit Mode (When you are not playing)

1 Like

edited message, @TheZanderius @EruptingStudiosGD

explorer

So, you’re getting the path wrong. That’s what it sounds like, this should help.

repeat wait() until player:FindFirstChild("PlayerGui")

button.MouseButton1Up:Connect(function()
player.PlayerGui:FindFirstChild("ScreenGui").Main.Settings.BackgroundImageSet.Image = "rbxassetid://9330937417"
end)

Oh right I see your issue

This should work

local player = game.Players.LocalPlayer
local button = script.Parent

button.MouseButton1Up:Connect(function()
player.PlayerGui.ScreenGui.Main.Settings.BackgroundImageSet.Image = "rbxassetid://9330937417"
end)
1 Like

You see, you’re gonna get the same error I gotten. Look at the quotation marks, they’re a different type of symbol.

1 Like

Oh true my bad thanks for telling me I have updated it, also there is no need to wait for player Gui because by the time the player clicks the button, which is in player GUI, it has loaded already

1 Like

Yeah, thank you for letting me know. I’m just used to doing that incase anything happens, might be a bad habit.

1 Like

@TheZanderius @edozune I don’t know why but the developer form quotation marks are odd

I think you’ve might’ve done Quote instead of format.

Quotes look like these:

print(“Hello World!”)

You can see that the quotes are different from a formatted text, like this:

print("Hello World")
1 Like

Yeah I think that is what is happening

2 Likes