Advertisement
TheMichelle

Simple name changer

Apr 12th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (typeof(done) === "undefined") {
  2.   var uname = "";
  3.   function updateName(name) {
  4.     MPP.client.sendArray([{
  5.       m: "userset",
  6.       set: {
  7.         name: name
  8.       }
  9.     }])
  10.   };
  11.   var nameList = ["name 1", "name 2", "name 3"]; //Add whatever names you what, and as many as you want.
  12.  
  13.   var foo = setInterval(function() {
  14.     var newName = nameList[Math.floor(Math.random() * nameList.length)];
  15.     updateName(`${uname} ${newName}`)
  16.   }, 3000); //Milliseconds between changes, don't set below 1000 (1 second) or the script will fail.
  17. } else {
  18.   console.log("Script already pasted");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement