So my friend has a Discord Server and you pay robux to get a code to dm the bot and it gives you a role. I'm not sure how I'd test this because im not as good as my friend at scripting
game.ReplicatedStorage.GetCode.OnClientEvent:Connect(function(p1)
script.Parent.Parent.TextBox.Text = p1;
end);
script.Parent.Activated:Connect(function()
game.ReplicatedStorage.Prompt:FireServer();
end);

1 comment
As far as im concerned if you are playtesting in roblox studio then you cant get charged for things like this. If you want a way around this then just add a brick with a click detector or a gui with a text button that will give you the code