GUI Scripting Help Needed

Hello! Me and my friends are remaking the RPG game, OMORI. You may know that on the Title screen, the main character, Omori is “animated”, which is just 3 frames of changing the transparency over, and over again. Here is what I need to try to achieve:

https://www.youtube.com/watch?v=U27-y5fZ2dw

If anyone could help that would be nice!! :sweat_smile:

TweenService can help there.

1 Like

Because there is only 3 frames, you can use use a repeat loop and loop through the 3 images, and for a smooth run, preloading them before they are posted.

1 Like

Look something like this (Untested)

local ContentService = game:GetService("ContentProvider")
local ImageLabel = script.Parent --Or where the image label is located
local Assets = {} -- Put Images links in here, In order
ContentService:PreloadAsync(Assets)
print("Loaded Assets")
local ListNumber = 0
repeat
	ListNumber += 1
	if not Assets[ListNumber] then
		ListNumber = 1
	else
		ImageLabel.Image = Assets[ListNumber]
	end
	wait(3) --You can replace this with how quick you want the frames to go
until false
1 Like

Thanks! I’ll test this and tweak if needed. I put this in LocalPlayer, correct? I am definitely not a scripter, lol

If you want the easiest place where you don’t have to change it, you can put it as a child to the image label, inside of that Gui. Just be aware that if it’s not there you will need to change

local ImageLabel = script.Parent --Or where the image label is located

to the location of the image label, and making sure it’s in a local script

1 Like

And you will need to add each image in this list in this format:

local Assets = {"Image1", "Image2", "Image3"} --You replace the "Image1" and stuff to a real image ofc :)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.