so I want to make a script where it changes the "PlayerSlot"'s name to the a player's name, assigning them the specific slot. But after I changed it the name is no longer "PlayerSlot" and cannot be changed again, thus breaks the script.
local names = game.Workspace:GetDescendants()
local playing = {}
while wait(3) do
for i, v in pairs(game.Players:GetPlayers()) do
if v.Character and v.Character then
table.insert(playing, v.Name)
end
end
local slot = game.Workspace:FindFirstChild("Slot")
slot.Slot1.PlayerSlot.Name = playing[1]
if playing[2] then
slot.Slot2.PlayerSlot.Name = playing[2]
end
if playing[3] then
slot.Slot3.PlayerSlot.Name = playing[3]
end
end

3 comments
Can you give a little more info about what you are trying to do?
First of all, "Workspace" is depreciated, try using "workspace".
^ what are you talking about?? I did game.Workspace not "wOrkSPacE"