Hey everyone, I am attempting to reduce exploiters in my game by using filtering enabled, one issue I have found is that startergui wont copy over to playergui (I assume the same happens with starterpack although I can think of an easy workaround for that). I attempted to do this:
player.CharacterAdded:connect(function(character)
for i,v in pairs(game:GetService("StarterGui"):GetChildren()) do
v:clone().Parent = player:WaitForChild("PlayerGui")
end
end)
with no success, any ideas?

8 comments
Why user CharacterAdded when you can use PlayerAdded? Try PlayerAdded. Also, anything in the output?
Nothing
Is that your entire script?
nope
Post the uppermost function that this is nested inside of. FilteringEnabled doesn't stop Server to Client replication, only Client to Server, so the StarterGui should be being copied over.
Sorry, tried the playeradded thing and it worked, for whatever reason I assumed that the playergui replicated with every character addition, sorry for not commenting earlier.
Yeah, for future reference, every time a Player's Character is added, unless teh ResetPlayerGuiOnSpawn property is ticked, they will get a copy of the current contents of StarterGui added to their PlayerGui. If that property is unticked, the old contents will be removed and then the startergui contents will be added.
cheers