"Something unexpectedly tried to set the parent of Quackshire to Playing while trying to set the parent of Quackshire. Current parent is Queue."
here's the script that's causing it but I don't know why it is. (this is in a normal script and game is FE)
if script.Parent.Match.Value == false then script.Parent.Match.Value = true for i,v in pairs(plrs) do v.Parent = script.Parent.Playing game.Workspace[v.Name]:MoveTo(script.Parent.Position) end else return end
also it's showing up in orange so i'm assuming it's a warning, because of it the item isn't transferring parents. why is this happening and how can I fix this?
Since you want to edit the v variable's path, you should clone. Here, try this:
if script.Parent.Match.Value == false then script.Parent.Match.Value = true for i,v in pairs(plrs) do v.Parent = script.Parent.Playing local clone = game.Workspace[v.Name]:Clone() clone.Parent = script.Parent.Position game.Workspace[v.Name]:Destroy() end else return end
If this works, mark as the answer!
As always, good scripting!