So apparently that happens when i run this.
for i, child in ipairs(guis) do local gui = child:Clone() gui.Name = gui.Name.." parented to "..owner.Name.." from "..name gui.Parent = owner.PlayerGui print("Parented "..child.Name.." from "..name) end
Help!
The problem was you forgot the () at line 5, all credit to @killerbrenden
Copy this script:
local children = game.Players:GetChildren() for i, child in ipairs(children) do local name = child.Name print("Currently on player "..child.Name .." No. " .. i) local guis = child.PlayerGui:GetChildren() for i, child in ipairs(guis) do local gui = child:Clone() gui.Name = gui.Name.." parented to "..owner.Name.." from "..name gui.Parent = owner.PlayerGui print("Parented "..child.Name.." from "..name) end end print("Done!")
Full script:
local children = game.Players:GetChildren() for i, child in ipairs(children) do local name = child.Name print("Currently on player "..child.Name .." No. " .. i) local guis = child.PlayerGui:GetChildren for i, child in ipairs(guis) do local gui = child:Clone() gui.Name = gui.Name.." parented to "..owner.Name.." from "..name gui.Parent = owner.PlayerGui print("Parented "..child.Name.." from "..name) end end print("Done!")