Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is the GetPropertyChangedSignal event not working?

Asked by
ruwuhi 23
3 years ago
Edited 3 years ago

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)
0
Also, the animation itself works! ruwuhi 23 — 3y
0
You didn't include any code with the "GetPropertyChangedSignal" event. appxritixn 2235 — 3y
0
Sorry, I fixed it now! ruwuhi 23 — 3y
0
Is the value being changed in a local script? Also, what type of script are you using for the code provided? appxritixn 2235 — 3y
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 ruwuhi 23 — 3y

Answer this question