local PlayerDataHandler = require(game.ServerScriptService:WaitForChild("PlayerDataHandler"))
game.Players.PlayerAdded:Connect(function(player)
local spells = PlayerDataHandler:Get(player, "Spells")
--if it's an array
if table.find(spells, "Fireball") then
local c = player.PlayerGui.SpellsGUI.Frame.Border.SpellsList.placeholder:Clone()
c.Visible = true
c.Text = "Fireball"
end
end)
here is the code that i wrote to clone buttons that seemingly dont work