Tween doesnt play

  1. What do you want to achieve? white screen that fades over time

  2. What is the issue? the tween doesnt play and there arent any errors

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    i cant find anything about it

local tweenService = game:GetService("TweenService")

local whitescreen = script.Parent:WaitForChild("EggAnimation"):WaitForChild("Whitescreen")

local tweenInfo = TweenInfo.new(
	.3, --Time
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.In,
	0, --Repeat count
	false, --Reverse
	0 --Delay
)

local tween = tweenService:Create(whitescreen, tweenInfo, {BackgroundTransparency = 0})

game.ReplicatedStorage.HatchEgg.OnClientEvent:Connect(function(pet)
	whitescreen.Visible = true
	wait(.1)
	tween:Play()
	wait(2)
	whitescreen.Visible = false
end)

check if the client is even receiving the signal so put a print(“working”) after onclientevent

i just tried what you did and it printed working

Are you Tweening an Object or UI because its very different

You need to put :Play() after the last bracket I think.

yea but if its a variable which it is he can play it from inside the function like he did tween:Play()

{BackgoundTransparency = 1}

If you want the frame to fade out.

i literally just realized it thanks so much