I tried
game.Players.PlayerAdded:connect(function(x)
local z = x.Character.Sound:Clone()
z.Parent = game.ServerStorage
local y = x.Character.Head
for i, v in pairs(y) do
if v.ClassName == "Sound" then
v:Destroy()
end
end
end)
and it didn't work and gave me (Workspace.Script:2: attempt to index field 'Character' (a nil value)) in the output |