THis is the local script: ```lua
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local equipAbility = ReplicatedStorage:WaitForChild("Guis"):WaitForChild("EquipAbility")
local shop = script.Parent.Shop
local abilityFrame = shop.ShopFrame.AbilityFrame
local unlockedPowers = abilityFrame.UnlockedPowers
local debounce = false
local abilityEquipped = script.AbilityEquipped
local clone
while task.wait(0.1) do
if shop.OpenCloseShop.Open.Value == true then
for _, button in pairs(unlockedPowers:GetChildren()) do
if button:IsA("TextButton") then
if button:HasTag("EquipAbility") then
button.Activated:Once(function()
if debounce then
return
end
debounce = true
task.delay(0.1, function()
debounce = false
end)
if abilityEquipped.Value ~= button.Name then
if clone then
clone:Destroy()
end
abilityEquipped.Value = button.Name
clone = equipAbility:Clone()
clone.Parent = button
print(2)
end
end)
end
end
end
end
end````