ImageTransparency not tweening

When I execute the MouseButton1Click the som plays, but nothing is tweening…
(No errors on output)

local title = script.Parent.Parent.Parent.MainMenu.GameTitle
local play = script.Parent.Parent.Parent.MainMenu.Play
local credits = script.Parent.Parent.Parent.MainMenu.Credits
local donate = script.Parent.Parent.Parent.MainMenu.Donate
local background = script.Parent.Parent.Parent.MainMenu
local som = script.Parent.Parent.Parent.Click
-------
local TweenService = game:GetService('TweenService')
---Main Script
script.Parent.MouseButton1Click:Connect(function()
	som:Play()
	script.Parent.Parent.Visible = false
	background.Visible = true
	wait(2)
	
	TweenService:Create(
		background,
		TweenInfo.new(2),
		{ImageTransparency = 0.15}
	)
	
	wait(1)
	
	TweenService:Create(
		title,
		TweenInfo.new(2),
		{ImageTransparency = 0}
	)

You are creating your tweens and not playing them.

1 Like

With TweenService:Create(), you need to assign it to a variable because you need to play the tween.
When you create a tween, you are simply creating it and not playing it, basically.

This is how you would play a tween:

local tween = TweenService:Create( -- Assigns the tween to a variable so we can play it.
		background,
		TweenInfo.new(2),
		{ImageTransparency = 0.15}
	)
tween:Play() -- Plays the assigned tween.
2 Likes

Makes sense :rolling_eyes:
Thanks