idk whats wrong with the script no errors but it wont work and its not disalbed how do i fix?
game.ReplicatedStorage.Transfromgold.UNDOTRANS.OnServerEvent:Connect(function(plr)
local chr = plr.Character
local hum = chr.Humanoid
local waited = plr.PlayerGui:WaitForChild("er")
for _,none in pairs(hum:GetChildren()) do
if none:IsA("NumberValue") then
none:Remove()
end
end ---this part wont work
for _,kill in pairs(waited:GetChildren()) do
if kill:IsA("NumberValue") then
local copy = kill:Clone()
copy.Parent = workspace
end
end
---
end)