i keep getting this clown error and its making me salty bro
![]()
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)