this script works
for i,Data in pairs(game.Players.LocalPlayer.Data:GetChildren()) do
for i,Values in pairs(script.Parent.Stats:GetChildren()) do
local DName = Data.Name
local VName = Values.Name
if DName == VName then
Values:FindFirstChild(DName)
Values.Text = (VName)
end
end
end
when i added that on line nine, it stopped working
for i,Data in pairs(game.Players.LocalPlayer.Data:GetChildren()) do
for i,Values in pairs(script.Parent.Stats:GetChildren()) do
local DName = Data.Name
local VName = Values.Name
if DName == VName then
Values:FindFirstChild(DName)
Values.Text = (VName) ": "
end
end
end
Output of it when i added it
17:29:55.574 - Players.Player1.PlayerGui.ScreenGui.Index.Frame.LocalScript:9: attempt to call local 'VName' (a string value)

1 comment
ahh okay. it didnt work in studip. thats what mixed me up