How Could I Make a Script that Equips a pet

Hello so i want to make a GUI Button That Equips a pet here is an example of
what i mean

I want to know the script i would use to make this work because im not so experienced with scripting so if somebody is willing to help me out please let me know!

1 Like