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

This is only displaying a blank image when it changes. Why?

Asked by 6 years ago

So, I'm trying to make an animation with a ScreenGui, and the image will not change. Why so?

Here's my code:

local i = 1
while i < 10 do
    game.StarterGui.ScreenGui.Frame.ImageLabel.Image = "rbxassetid://1592018044"
    wait(0)
    game.StarterGui.ScreenGui.Frame.ImageLabel.Image = "rbxassetid://1592018636"
    wait(0)
end
1
You're changing an object in StarterGui, meaning you won't see the change until your character is reloaded. You need to access PlayerGui Gey4Jesus69 2705 — 6y
0
In addition, just to point it out, I believe those wait statements are quite useless..? T0XN 276 — 6y
0
If you're attempting to debounce the loop, then perhaps use half second increments or so? T0XN 276 — 6y

Answer this question