I am trying to clone a GUI for a leaderboard but it isnt working
print("RAN")
local NewLbFrame = game.ReplicatedStorage:WaitForChild("LeaderboardFrame"):Clone()
NewLbFrame.Parent = game.StarterGui.ScreenGui.GameFinishe.Holder
NewLbFrame.Name = Name
for i, v in pairs(game.Players:GetChildren()) do
if v.Name == Name then
NewLbFrame.Presentage.Name = v:WaitForChild("leaderstats").Percentage .. "%"
NewLbFrame.HighestScore.Name = v:WaitForChild("leaderstats").HighestScore
end
end
NewLbFrame.Position = UDim2.new(0,0, NewLbFrame.Position.Y.Scale + (0.08 * #game.StarterGui.ScreenGui.GameFinishe.Holder:GetChildren()), 0)
print("RAN")