Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do I get some thing's name inside a leaderstat 'search' ?

Asked by 6 years ago
for i,v in pairs(script.Parent:GetChildren()) do
    local name = v.Name
    print(name)
    for _, player in ipairs(game.Players:GetPlayers()) do
        if player:FindFirstChild("leaderstats") then
            player.leaderstats.name = player.leaderstats.name -1
        end
    end
end 

I want it to search for the frame Name in the leaderstats (now it's named common and i have a leaderstat named common so. Now this just does nothing at all.

0
Help please :( DanielDeJong3 158 — 6y
0
Someone!!! DanielDeJong3 158 — 6y
0
BUMP!!!! DanielDeJong3 158 — 6y

Answer this question