So the only issue im having with my code is that its not deleting the cloned GUI from the players parent.
Could someone help me fix this issue?
Code:
WarnEvent.OnServerEvent:Connect(function(player, WarnPlayer)
local PlayerWarn = game.Players:FindFirstChild(WarnPlayer)
if admins[player.Name] and PlayerWarn then
local noti = game:GetService("ReplicatedStorage").Notification
noti:Clone().Parent = PlayerWarn.PlayerGui
wait(6)
noti.PlayerWarn.PlayerGui:Destroy()
end
end)