Join Player v2 Roblox

this makes it you will allways join the same lobby as your freinds but it might not work if they have it you cant join them or random people

  1. // ==UserScript==
  2. // @name Join Player v2 Roblox
  3. // @license C4-Suhail
  4. // @namespace http://tampermonkey.net/
  5. // @version 1.6
  6. // @description this makes it you will allways join the same lobby as your freinds but it might not work if they have it you cant join them or random people
  7. // @Note Dont Steal This Code i Worked Really Hard On It
  8. // @author C4-Suhail
  9. // @match https://*www.roblox.com/users/*
  10. // @icon https://www.google.com/s2/favicons?domain=roblox.com
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14.  
  15.  
  16.  
  17.  
  18. 'use strict';
  19. //button and Text
  20. var btn = document.createElement("BUTTON");
  21. const text = document.createElement("p");
  22.  
  23.  
  24.  
  25. document.body.appendChild(text);
  26. document.body.appendChild(btn);
  27.  
  28. text.style = ("position: absolute; top: 125px; left: 63%;")
  29. text.innerHTML = ("")
  30.  
  31. btn.id = ("Joinv2")
  32. btn.innerHTML = "Join v2"
  33. btn.style = ("position: absolute; top: 100px; left: 65%; z-index: 3; background-color: rgb(0, 176, 111); color: rgb(255, 255, 255); border-bottom-color: rgb(0, 176, 111); border-bottom-color: rgb(0, 176, 111); border-top-color: rgb(0, 176, 111); border-right-color: rgb(0, 176, 111);border-left-color: rgb(0, 176, 111); border-radius: 8px; font-size: 20px; border: rgb(0, 176, 111);")
  34. //onclick
  35. btn.onclick = function () {
  36. text.innerHTML = ("Connecting to user")
  37. text.style = ("position: absolute; top: 125px; left: 63%; color: #ce1818;")
  38. var player_id = ("N/A"+window.location.href);
  39. player_id = player_id.replace(/\D/g,'');
  40. Roblox.GameLauncher.followPlayerIntoGame(player_id);;
  41. setTimeout(Text, 5000)
  42. function Text() {
  43. text.innerHTML = "Connected to user"
  44. text.style = ("position: absolute; top: 125px; left: 63%; color: #4fb532;")
  45. setTimeout(Text, 7000)
  46. function Text() {
  47. btn.innerHTML = "Join v2"
  48. text.innerText = "";
  49. }
  50. }
  51.  
  52. };
  53.  
  54. var table = document.getElementById('content');
  55. table.appendChild(btn);
  56. table.appendChild(text);