So I have a script that is supposed to make a folder's parent the workspace if the player count is less than 2. In the folder, there are 4 bots that follow the player and attack them. here's the script.
players = game.Players:GetChildren()
if #players >= 2 then
game.ReplicatedStorage.Bots.Parent.new = workspace
end
the problem is that nothing actually happens. can someone please fix the script?

1 comment
Bots.Parent = game.Workspace