Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Fix on my blacklist gui, GUI detecting problem HELP ME FAST?

I am gonna tell you every thing, so i started to make a blacklist system for my game, i made like 70% but i am stuck on a error that not showing in output or console

here is the look of gui

so the problem comes if the local player added a player in the black list, so when a player got added i want to not add an button that represents the already blacklisted player

Here is the code i am using

for c=1, #players,1 do --Checks for player
				for _,v in pairs(blacked:GetChildren()) do -- Get all children of the blacklist scrolling frame
						if not v.Name==players[c].Name then --Checks if not the button name = (equals) the player name then it add others button [here comes the problem that nothing happenes]
						local button = blackgui.testing.ButtonTemplate:Clone()
						button.Parent = blackgui.ToBlack
						button.Visible=true
						button.Name=players[c].Name
						button.Text=players[c].Name
					end
				end

So anyhelp is appreciated =D

1 answer

I fixed it here is the script if anyone intersted

for c=1, #players,1 do
				for _,v in pairs(blacked:GetChildren()) do
				if v:IsA("TextButton") then
					if v.Name ~= players[c].Name then
						local button = blackgui.testing.ButtonTemplate:Clone()
						button.Parent = blackgui.ToBlack
						button.Visible=true
						button.Name=players[c].Name
						button.Text=players[c].Name
					end
				end
				end

This discussion is preserved as it was. New answers, comments, and votes are closed.