Argument 1 missing or nil

i keep getting this clown error and its making me salty bro

image

local LobbyList = script.Parent.LobbyList
local Ribbon = script.Parent.Ribbon
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Events = ReplicatedStorage.Events
local lobbydecorations = script.Parent.LobbyDecorations

local function toggleLobbylist()
	if LobbyList.Visible == false then
		LobbyList.Visible = true
		lobbydecorations.Visible = true
	elseif LobbyList.Visible == true then
		LobbyList.Visible = false
		lobbydecorations.Visible = false
	end
end
function CreateLobbyThingy(targetlobby, mode, user)
	print("Called")
	local Clone = ReplicatedStorage.Lobby:Clone()
	Clone.TargetLobby.Value = targetlobby
	Clone.Mode.Text = mode
	Clone.User.Text = user.Value.Name
	Clone.Parent = LobbyList
end
local function RefreshLobbyList()
	LobbyList:ClearAllChildren()
	wait(0.2)
	for i , v in pairs(ReplicatedStorage.Lobbies:GetChildren()) do
		
		print(v)
		--wait(0.2)
		CreateLobbyThingy(v, v.Mode.Value, v.Players:FindFirstChild())
	end
	

end

Ribbon.Play.MouseButton1Click:Connect(toggleLobbylist)

lobbydecorations.Create.MouseButton1Click:Connect(function()
	Events.CreateLobby:FireServer("Contract")
end)

ReplicatedStorage.Lobbies.ChildAdded:Connect(function()
	RefreshLobbyList()
end)

This seems to be the most likely place where the issue is happening, you didn’t provide an instance name in FindFirstChild it should try to find

1 Like

THANK YOU SO MUCH BRO

char limit

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.