- What do you want to achieve and what’s the issue? Well I am doing a Menu for my game and I found out a error on the game really annoying. The problem is that everytime the mouse hover to the text button, it gets to replicated storage where there is a folder called “Icons” with a ImageLabel inside of it and then I clone this Icon to put near the TextButton so it is like “Hovered”.
The point is, I made a function everytime the player’s mouse leave the TextButton, the clone is destroyed. But I am expericianting an error that doesn’t delete it and the image just stay there, as if never happened. But other images continue to Clone and get to there, just the one that was not destroyed though. Sometimes this problem occurs, sometime not… I want to make it so the image is deleted sucessfuly.
- What solutions have you tried so far? Well I have looked to the DevForum but I didn’t find anything, just: “Destroy() do not working” or something like that… I already put “WaitForChild()” to try to delete when it gets to there, but nothing works.
The Script
Remember the Error can or not happens.
As you can see, I am out of the textbox and it is literally not destroyed/still there.
It seems to happen just when the “While v.MaxVisibleGraphemes == 0 then” is happening, but yet I don’t know how to fix.
Any help is appreciated, thank you in advance.