Buttons appearance changes when respawning (ContextActionService)

I was working with ContexActionService and created a few buttons for different purposes.
However, the UI’s changes when you respawn, is there anyone who knows what causes this?

Here’s how it looks like when respawning:
https://gyazo.com/3b163fc11699462c4ea9a75fd0fd9875

I have tried a few methods, such as placing the appearance script inside StarterPlayerScripts and StarterGui.
Anyone know how to solve this?

What are your GUI Sizes?
Are you properly making the GUI scale for all sizes?
Do you have any scripts that may be causing this issue?

I have another script that finds every Button inside the ContextActionGui and changes the size of the buttons. But I’m 99% that it’s not what’s causing this.

Try disabling ResetOnSpawn and see if it works

I had a different script that only set the UI size and appearance once, which means when you respawn, it doesn’t run again, however we managed to solve it by changing the size and appearance already when you get the button by running ContextActionService:GetButton().

However, I appreciate your help :slight_smile:

1 Like