game.ReplicatedStorage.AddPlayer.OnClientEvent:Connect(function(player)
local ed = game.Players.LocalPlayer.PlayerGui:WaitForChild("Main")
local clony = game.ReplicatedStorage.PlayerKit:Clone()
clony.Name = player.Name
clony.Parent = ed.Stuff.Texture.ScrollingFrame
-- Fetch the thumbnail
local userId = player.UserId
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size420x420
local content, isReady = game:GetService("Players"):GetUserThumbnailAsync(userId, thumbType, thumbSize)
-- Set the ImageLabel's content to the user thumbnail
local imageLabel = clony.playerpho
imageLabel.Image = content
local tex = clony.Car:WaitForChild("TextLabel")
tex.Text = player.Name
for i,v in
--MAIN PROBLEM HERE
pairs(game.Players.LocalPlayer.PlayerGui.Main.Stuff.Texture.ScrollingFrame:GetChildren()) do
if clony.Position == v.Position then
print("ITS IN THE SAME POSITION")
--I TRIED THIS IN THE BOTTOM OF THE CONSOLE BAR AND IT WORKS BUT IT WONT WORK HERE
clony.Position = v.Position + UDim2.new(0.098, 0,0, 0)
end
end
end)
COMMUNITY QUESTION
My button wont move next to my other button?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
