Hey! i got a issuse with ui properties tweening

man im a scripter for like idk 1.5 years or more idk i didint count all of them but i still know shit about ui properties tweening

local image0tween = {

	ImageTransparency = 0

}
local image1tween = {
	
	ImageTransparency = 1
	
}

local ti = TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0)
local ts = game.TweenService
local tweenimagetransparency0 = ts:Create(script.Parent.MainFrame.Beat, ti, image0tween)
local tweenimagetransparency1 = ts:Create(script.Parent.MainFrame.Beat, ti, image1tween)

game.Players.PlayerAdded:Connect(function(plr)
	
	repeat until game.Loaded
	
	wait(2)
	tweenimagetransparency0:Play()
	
end)

plz fix this shitty ahh crappy code

1 Like

What’s the problem?

character limit character limit

1 Like

it doesnt do the tween tween thingy

repeat task.wait() until game:IsLoaded() would be proper usage
Even then, this could get stuck forever potentially.

Still not all that helpful tbh.
Any errors or anything?

Btw profanity isn’t allowed in public channels, which this is…

If this is a LocalScript, you might need to wait until the images are loaded before attempting to tween them. You could use ContentProvider:PreloadAsync({array of image ids here}) to yield until the images are loaded.

my bad. gawd i hate the threety character limit

1 Like

Try adding a print statement when the tween plays to see if the code is running at all.