I’v recently used the new link data to create a referral system in my game, however I have an issue with this. Currently to copy their referral code the player can select text in a textbox and use control + C to copy it, however this is inefficient since the link takes up a large amount of Ui space. I’v currently solved that by using a scrolling frame for the link but that has issues with selecting the whole string.
Is there any way to create a button that would prompt the user to copy a string? Iv tried searching on devforum but the only post I could find was unrelated to my issue.
Roblox doesn’t provide any API’s that allows developers to copy and paste, primarily for privacy.
I read that your referral codes were long, would you be able to change this and maybe make the referral code someone’s UserId? UserId’s are unique identifiers so you won’t have to worry about serializing referral codes.
The user is the referral code, the copy and paste function is used to copy a link to the game with the user ID as JoinData. Thanks for clarifying that the Api’s dont exist.
1 Like