I wish to play this fade animation when the Event value in replicated storage is changed to 1. I realized from debugging that it is not going in this event even when the value is 1. Any ideas on why this is happening?

replicatedStorage:WaitForChild("Event"):GetPropertyChangedSignal("Value"):Connect(function()
	
		
	if replicatedStorage:WaitForChild("Event").Value == 1 then
		
		TweenService:Create(
			Frame, 
			TweenInfo.new(2), 
			{BackgroundTransparency = 0} 
		):Play()
		
	end
end)

5 comments

0

Also, the animation itself works!

0

You didn't include any code with the "GetPropertyChangedSignal" event.

0

Sorry, I fixed it now!

0

Is the value being changed in a local script? Also, what type of script are you using for the code provided?

0

the value is being chnaged in a server script in server script service and this script is in a server script in starter gui