I’m trying to make sure that ONLY 1 Gui can be created of 1 Type for the side-bar. It’s really annoying.
casn you give your current script please?
There is no current script as the UI’s are simply parented. I had the idea to use OnChildAdded function instead however for a new script.
parent = script.Parent -- set it to where the buttons are parented
parent.ChildAdded:Connect(function(child)
local dupe = 0
for i, v in pairs(parent:GetChildren()) do
if v.Name == child.Name then
dupe += 1
end
end
if dupe > 1 then
child:Destroy()
end
end)
maybe this?
I’ll try it.
char limiteeeeeeeee