So wanna make it so that little + button down there creates a clone of the imagelabel Gui up there, and make it appear on the side.
But i don’t have any idea of how i could do it, like i don’t know if there’s any function that clones a GUI, i rarely mess with scripts, so yeah i don’t have a clue of how to do this.
local Button = script.Parent
local PlayerGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
local ScreenGui = PlayerGui:FindFirstChild("ScreenGui")
local Frame = ScreenGui:FindFirstChild("Frame")
local Window = Frame:FindFirstChild("Window")
local SettingsWindow = Window:FindFirstChild("SettingsWindow")
local IDImage = SettingsWindow:FindFirstChild("IDImage")
local cloned = IDImage:Clone()
local Scrolling = Window:FindFirstChild("Scrolling")
ScreenGui.Enabled = true
local function onButtonClick()
SettingsWindow.Visible = false
cloned.Parent = Scrolling -- That Scrolling frame
end
Button.MouseButton1Up:Connect(onButtonClick)
local Button = script.Parent
local PlayerGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
local ScreenGui = PlayerGui:FindFirstChild("ScreenGui")
local Frame = ScreenGui:FindFirstChild("Frame")
local Window = Frame:FindFirstChild("Window")
local SettingsWindow = Window:FindFirstChild("SettingsWindow")
local IDImage = SettingsWindow:FindFirstChild("IDImage")
local Scrolling = Window:FindFirstChild("Scrolling")
ScreenGui.Enabled = true
local function onButtonClick()
local cloned = IDImage:Clone()
cloned.Image = "rbxthumb://type=Asset&id="..IDHERE.."&w=150&h=150"
SettingsWindow.Visible = false
cloned.Parent = Scrolling
end
Button.MouseButton1Up:Connect(onButtonClick)