I want to make :GetAttributeChangedSignal() to pass the new attributes value, sort of like .GetPropertyChangedSignal()
It doesnt seem to exist
I looked on the forums and found nothing about this
function onMovesetChange(newChar)
for _, Moveset in pairs(Movesets) do
if newChar == Moveset then
if Moveset == "Default" then
deleteExcess()
local Moves = movesets.Default:GetChildren()
for _, move in pairs(Moves) do
if move:IsA("Tool") then
local tool = move:Clone()
tool.Parent = player.Backpack
end
end
end
return
end
end
print("No Moveset")
player:SetAttribute("Moveset", "Default")
end
player:GetAttributeChangedSignal("Moveset"):Connect(function()
onMovesetChange()
end)