Hello, I am trying to do an in-game friendslist. However, the Frame doesn't want to clone for some reason. I've been trying to solve this issue for over 30 minutes and couldn't find a single solution. Here is the script;
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local onlineFriends = player:GetFriendsOnline(8)
for i, friend in pairs(onlineFriends) do
local ui = script.Parent:WaitForChild("Player")
ui:Clone()
ui.Parent = script.Parent
end
No errors, it just doesn't clone.

1 comment
Thanks a lot, it looks like I got a bit messed up!