How to make Friend List GUI (Roblox Studio) #3

Subscribers:
232
Published on ● Video Link: https://www.youtube.com/watch?v=D1TpGWVf53s



Roblox
Game:
Roblox (2006)
Category:
Tutorial
Duration: 5:52
569 views
20


Welcome to another Roblox Studio Tutorial

Leave comment to request what's next Tutorial

SUBSCRIBE :D

\/ Here The Model and Source \/

Model: https://www.roblox.com/library/12567246879/Friend-List-GUI
Source Code:

Script [ServerScriptService]

game.Players.PlayerAdded:Connect(function(player)
local id = player.UserId
game.ReplicatedStorage.Event:FireClient(player, id)
end)

===================================
LocalScript

game.ReplicatedStorage.Event.OnClientEvent:Connect(function(id)
local players = game.Players


local friendsId = id
local PlayersFriends = {}

local success, page = pcall(function() return players:GetFriendsAsync(friendsId) end)
if success then
repeat
local info = page:GetCurrentPage()
for i, friendInfo in pairs(info) do
table.insert(PlayersFriends, friendInfo)
end
if not page.IsFinished then
page:AdvanceToNextPageAsync()
end
until page.IsFinished
end


for i,v in pairs(PlayersFriends) do

local frame = script.Frame:Clone()
frame.TextLabel.Text = v.Username
frame.Parent = script.Parent.Frame
frame.ImageLabel.Image = "https://web.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userid="..v.Id



end

end)







Tags:
roblox
roblox studio
lua
how to
how to make
how tomake friend list
friend list



Other Statistics

Roblox Statistics For Dimma Developer

There are 1,663 views in 19 videos for Roblox. There's close to 4 hours worth of content for Roblox published on his channel, or 9.45% of the total watchable video on Dimma Developer's YouTube channel.