Hi,
I have a problem with GetPropertyChangedSignal() while I am trying to get some Int Values updated.
The problem is that I don’t get the text updated. I think it is because the GetPropertyChangedSignal() is called in a Local Script from a Server Script with a Remote Function.
I don’t get any errors at all. I tried some debugging and I don’t get anything passing through the property changed, even that the Int Value is Changing. If I put that function in a Local Script I get the value changed, but I want to do it remotely.
Any suggestions for this kind of problem?
local function updateIntValues(player, name)
for _, updateStats in pairs(player:FindFirstChild("Inventory"):GetChildren()) do
updateStats.BackPack:GetPropertyChangedSignal("Value"):Connect(function()
if updateStats.Value == name then
game.Workspace.Folder:FindFirstChild(player.Name)[name].Status.Capacity.Text = updateStats.BackPack.Value.." / "..updateStats.MaxCap.Value
end
end)
end
end
game.ReplicatedStorage:FindFirstChild("ChangeIntValue").OnServerInvoke = updateIntValues