My UI only clone once

My Ui only clone once if the player get aways and come back it only clones once!

Hi! Do you mind giving a more detailed explanation on your objective and show us what you mean by ‘only clones once’? :smiley:

My objective is do one robbable atm that if the player hold “e” for a short time the atm gives him money and if it robs once and he come back to steal the atm again the gui dont appears

It looks like this is the problem:

if player.PlayerGui:FindFirstChild("HoldE") then
    player.PlayerGui.HoldE:Destroy()

You might be destroying the original instead of the clone.

It is deleting the player one! sadly thats not the case image

Oh I found it! So basically the problem lies in the Debounce. At the start, the local variable was declared as false. And in the while wait() do loop at bottom, you check if Debounce is false (which it will) it sets it to true. The next time you return to it, Debouce is true; it will not trigger again. You should add a debounce = false after the player.PlayerGui.HoldE:Destroy().

1 Like