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

Help With Naming And Functions?

Asked by
Scootakip 299 Moderation Voter
8 years ago
script.Parent.MouseButton1Click:connect(function(lool)
    for i,v in pairs(game.Workspace.Zombies:GetChildren()) do
        if v.Owner.Name == script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name then
            v.Name = script.Parent.Parent.TextBox.Text
        end
    end
end)

This is basically supposed to search through the group called Zombies for a zombie with a value called "Value" that is the value of the player's name. If it does, it changes the zombie's name to whatever is in TextBox, but this isn't working. No errors either, just nothing. Help?

Answer this question