Send a screenshot of the StarterGui in Edit Mode (When you are not playing)
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)
You see, youâre gonna get the same error I gotten. Look at the quotation marks, theyâre a different type of symbol.
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
Yeah, thank you for letting me know. Iâm just used to doing that incase anything happens, might be a bad habit.
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")
Yeah I think that is what is happening