If you mean something like:
local function e (Thing)
-- Do something
end)
Then no, I don’t have anything like that.
Here is my script:
local OwnerClone = game.Players[Button.Owner.Value].PlayerGui.MenuUI.PlayerLobby
OwnerClone.NameOfMatch.Text = NameText
OwnerClone.Visible = true
OwnerClone.OwnerLobby.Value = Button.Owner.Value
local Clone = Instance.new("StringValue")
Clone.Name = "Member"
Clone.Value = Player.Name
Clone.Parent = OwnerClone:WaitForChild("OwnerLobby") -- Value
local OtherClone = OwnerClone:Clone()
OtherClone.NameOfMatch.Text = NameText
OtherClone.Visible = true
OtherClone.Parent = game.Players[Obj.Value].PlayerGui.MenuUI
------- SOLO -------
if Choose == "Solo(1v1)" then
OwnerClone.Image3:Destroy()
OwnerClone.Image4:Destroy()
OtherClone.Image3:Destroy() -- Clone at the bottom clone
OtherClone.Image4:Destroy()
for i = 1, 2 do
local UserId = game.Players[Button.Owner.Value].UserId
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size420x420
local content = game.Players:GetUserThumbnailAsync(UserId, thumbType, thumbSize)
OwnerClone.Image1.Image = content
OtherClone.Image1.Image = content
local UserId2 = game.Players[Obj.Value].UserId
local thumbType2 = Enum.ThumbnailType.HeadShot
local thumbSize2 = Enum.ThumbnailSize.Size420x420
local content2 = game.Players:GetUserThumbnailAsync(UserId2, thumbType2, thumbSize2)
OwnerClone.Image2.Image = content2
OtherClone.Image2.Image = content2
end
end
-------- TEAMS --------
if Choose == "Teams(4v4)" then
local UserId = game.Players[Button.Owner.Value].UserId
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size420x420
local content = game.Players:GetUserThumbnailAsync(UserId, thumbType, thumbSize)
OwnerClone.Image1.Image = content
OtherClone.Image1.Image = content
for _, PlayerE in pairs(Button.Owner:GetChildren()) do -- Loops twice
local userId = Player.UserId
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size420x420
local content, isReady = game.Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
if OwnerClone.Image2.Image and OtherClone.Image2.Image == "rbxasset://textures/ui/GuiImagePlaceholder.png" then
OwnerClone.Image2.Image = content
OtherClone.Image2.Image = content
break
else
print("Else statment")
end
print("Here")
if OwnerClone.Image3.Image and OtherClone.Image3.Image == "rbxasset://textures/ui/GuiImagePlaceholder.png" then
OwnerClone.Image3.Image = content
OtherClone.Image3.Image = content
break
else
print("Continuing")
end
if OwnerClone.Image4.Image and OtherClone.Image4.Image == "rbxasset://textures/ui/GuiImagePlaceholder.png" then
OwnerClone.Image4.Image = content
OtherClone.Image4.Image = content
else
break
end
end
end
@McThor2