So whenever a player joins I add a frame into tdmboard
I want to keep the local script and all the templates but I end up just deleting all the children
Picture of everything i want to keep
If they are not in the picture I want to delete it
for _,v in pairs(tdmboardGui:GetChildren()) do
if not v:IsA("LocalScript") then
if not v == "BlueKill" or not v == "RedKill" or not v == "BlueTemplate" or not v == "RedTemplate" then
v:Destroy()
end
end
end
for _,v in pairs(tdmboardGui:GetChildren()) do
if not v:IsA("LocalScript") then
if v.Name ~= "BlueKill" and v.Name ~= "RedKill" and v.Name ~= "RedTemplate" and v.Name ~= "BlueTemplate" then
v:Destroy()
end
end
end