I am changing an attribute on the player reasonably quickly on the server, but the client does not pick up these changes.
function InventoryManager.Equip(player)
--// stuff
InventoryManager.Unequip(player)
player:SetAttribute("CurrentSlot", 2)
end
function InventoryManager.Unequip(player)
player:SetAttribute("CurrentSlot", 0)
end
Client
local ItemChangeConnection = Player:GetAttributeChangedSignal("CurrentSlot"):Connect(function()
print("CHANGE")
self:Equip()
end)
This print does not fire. However, if I manually change the attribute on the client, it does fire, so it’s connected correctly. But when I change it to 0 then to 2 it’s obviously going too fast?