iOSdeveloper

Untitled

May 17th, 2025
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.11 KB | None | 0 0
  1.  
  2. game.StarterGui:SetCoreGuiEnabled(2, false);
  3. local l__LocalPlayer__1 = game.Players.LocalPlayer;
  4. local v2 = l__LocalPlayer__1.Character or l__LocalPlayer__1.CharacterAdded:wait();
  5. local l__TweenService__3 = game:GetService("TweenService");
  6. local l__Parent__4 = script.Parent;
  7. local l__mouse__5 = l__LocalPlayer__1:GetMouse();
  8. local u1 = {};
  9. local function u2()
  10. for v6 = 1, 13 do
  11. if not u1[v6] then
  12. return v6;
  13. end;
  14. end;
  15. end;
  16. local l__Hotbar__3 = l__Parent__4.Hotbar;
  17. local l__UserInputService__4 = game:GetService("UserInputService");
  18. local u5 = {
  19. [Enum.KeyCode.ButtonL1] = 1,
  20. [Enum.KeyCode.ButtonL2] = 2,
  21. [Enum.KeyCode.ButtonR2] = 3,
  22. [Enum.KeyCode.ButtonR1] = 4
  23. };
  24. local l__Humanoid__6 = v2:WaitForChild("Humanoid");
  25. local l__Backpack__7 = l__LocalPlayer__1.Backpack;
  26. local u8 = nil;
  27. local function v7(p1)
  28. if not p1 or not (not p1:GetAttribute("Regged")) or not p1:IsA("Tool") then
  29. return;
  30. end;
  31. p1:SetAttribute("Regged", true);
  32. local v8 = u2();
  33. if v8 then
  34. u1[v8] = p1;
  35. l__Hotbar__3[v8].ToolName.Text = p1:GetAttribute("FakeName") or p1.Name;
  36. if l__UserInputService__4.GamepadEnabled then
  37. l__Hotbar__3[v8].Number.TextWrapped = false;
  38. l__Hotbar__3[v8].Number.TextXAlignment = "Left";
  39. l__Hotbar__3[v8].Number.Text = (function()
  40. for v9, v10 in pairs(u5) do
  41. if v10 == v8 then
  42. return string.gsub(v9.Name, "Button", ""):gsub("1", "B"):gsub("2", "T");
  43. end;
  44. end;
  45. end)();
  46. end;
  47. l__Hotbar__3[v8].Visible = true;
  48. local u9 = nil;
  49. local u10 = l__Hotbar__3[v8];
  50. u9 = p1:GetAttributeChangedSignal("FakeName"):Connect(function()
  51. if not p1 or not p1.Parent then
  52. return u9:Disconnect();
  53. end;
  54. u10.ToolName.Text = p1:GetAttribute("FakeName") or p1.Name;
  55. end);
  56. local v11 = l__Hotbar__3[v8].MouseButton1Down:Connect(function()
  57. if not p1:GetAttribute("Skill") or not l__LocalPlayer__1:GetAttribute("S_AutoUnequip") then
  58. return;
  59. end;
  60. l__Humanoid__6:EquipTool(p1);
  61. p1.Parent = l__Backpack__7;
  62. if u8 then
  63. u8.Overlay.ImageTransparency = 1;
  64. local l__Cooldown__12 = u8:FindFirstChild("Cooldown");
  65. if l__Cooldown__12 then
  66. l__Cooldown__12.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  67. end;
  68. u8 = nil;
  69. end;
  70. end);
  71. local u11 = l__Hotbar__3[v8].MouseButton1Click:Connect(function()
  72. if p1:GetAttribute("Skill") and l__LocalPlayer__1:GetAttribute("S_AutoUnequip") then
  73. if u8 then
  74. u8.Overlay.ImageTransparency = 1;
  75. local l__Cooldown__13 = u8:FindFirstChild("Cooldown");
  76. if l__Cooldown__13 then
  77. l__Cooldown__13.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  78. end;
  79. u8 = nil;
  80. end;
  81. return;
  82. end;
  83. if u8 == l__Hotbar__3[v8] then
  84. u8.Overlay.ImageTransparency = 1;
  85. local l__Cooldown__14 = u8:FindFirstChild("Cooldown");
  86. if l__Cooldown__14 then
  87. l__Cooldown__14.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  88. end;
  89. u8 = nil;
  90. l__Humanoid__6:UnequipTools();
  91. return;
  92. end;
  93. if u8 then
  94. u8.Overlay.ImageTransparency = 1;
  95. local l__Cooldown__15 = u8:FindFirstChild("Cooldown");
  96. if l__Cooldown__15 then
  97. l__Cooldown__15.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  98. end;
  99. end;
  100. local l__Cooldown__16 = l__Hotbar__3[v8]:FindFirstChild("Cooldown");
  101. if l__Cooldown__16 then
  102. l__Cooldown__16.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  103. end;
  104. l__Hotbar__3[v8].Overlay.ImageTransparency = 0;
  105. u8 = l__Hotbar__3[v8];
  106. l__Humanoid__6:EquipTool(p1);
  107. end);
  108. local u12 = l__Hotbar__3[v8].MouseButton1Up:Connect(function()
  109. if not p1:GetAttribute("Skill") or not l__LocalPlayer__1:GetAttribute("S_AutoUnequip") then
  110. return;
  111. end;
  112. return v2.Communicate:FireServer({
  113. Goal = "Auto Use End",
  114. Tool = p1
  115. });
  116. end);
  117. p1:GetPropertyChangedSignal("Parent"):Connect(function()
  118. if not p1.Parent then
  119. if u11 then
  120. u11:Disconnect();
  121. end;
  122. if u12 then
  123. u12:Disconnect();
  124. end;
  125. u1[v8] = nil;
  126. l__Hotbar__3[v8].ToolName.Text = "";
  127. l__Hotbar__3[v8].Overlay.ImageTransparency = 1;
  128. l__Hotbar__3[v8].Visible = false;
  129. end;
  130. end);
  131. end;
  132. game.StarterGui:SetCoreGuiEnabled(2, false);
  133. end;
  134. local u13 = {
  135. [Enum.KeyCode.One] = 1,
  136. [Enum.KeyCode.Two] = 2,
  137. [Enum.KeyCode.Three] = 3,
  138. [Enum.KeyCode.Four] = 4,
  139. [Enum.KeyCode.Five] = 5,
  140. [Enum.KeyCode.Six] = 6,
  141. [Enum.KeyCode.Seven] = 7,
  142. [Enum.KeyCode.Eight] = 8,
  143. [Enum.KeyCode.Nine] = 9,
  144. [Enum.KeyCode.Zero] = 10
  145. };
  146. l__UserInputService__4.InputBegan:Connect(function(p2, p3)
  147. if p3 then
  148. return;
  149. end;
  150. local l__KeyCode__17 = p2.KeyCode;
  151. if u5[l__KeyCode__17] then
  152. local v18 = u5[l__KeyCode__17];
  153. if u1[v18] then
  154. v2.Communicate:FireServer({
  155. Goal = "Console Move",
  156. Tool = u1[v18]
  157. });
  158. end;
  159. return;
  160. end;
  161. if not u13[l__KeyCode__17] then
  162. return;
  163. end;
  164. local v19 = u13[l__KeyCode__17];
  165. if u1[v19] then
  166. local v20 = u1[v19];
  167. if v20:GetAttribute("Skill") and l__LocalPlayer__1:GetAttribute("S_AutoUnequip") then
  168. l__Humanoid__6:EquipTool(v20);
  169. v20.Parent = l__Backpack__7;
  170. if u8 then
  171. u8.Overlay.ImageTransparency = 1;
  172. local l__Cooldown__21 = u8:FindFirstChild("Cooldown");
  173. if l__Cooldown__21 then
  174. l__Cooldown__21.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  175. end;
  176. u8 = nil;
  177. end;
  178. return;
  179. end;
  180. if u8 == l__Hotbar__3[v19] then
  181. u8.Overlay.ImageTransparency = 1;
  182. local l__Cooldown__22 = u8:FindFirstChild("Cooldown");
  183. if l__Cooldown__22 then
  184. l__Cooldown__22.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  185. end;
  186. u8 = nil;
  187. l__Humanoid__6:UnequipTools();
  188. return;
  189. end;
  190. if u8 then
  191. u8.Overlay.ImageTransparency = 1;
  192. local l__Cooldown__23 = u8:FindFirstChild("Cooldown");
  193. if l__Cooldown__23 then
  194. l__Cooldown__23.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  195. end;
  196. end;
  197. local l__Cooldown__24 = l__Hotbar__3[v19]:FindFirstChild("Cooldown");
  198. if l__Cooldown__24 then
  199. l__Cooldown__24.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  200. end;
  201. l__Hotbar__3[v19].Overlay.ImageTransparency = 0;
  202. u8 = l__Hotbar__3[v19];
  203. l__Humanoid__6:EquipTool(v20);
  204. end;
  205. end);
  206. l__UserInputService__4.InputEnded:Connect(function(p4, p5)
  207. local v25 = nil;
  208. if p5 then
  209. return;
  210. end;
  211. local l__KeyCode__26 = p4.KeyCode;
  212. if u5[l__KeyCode__26] then
  213. local v27 = u5[l__KeyCode__26];
  214. if u1[v27] then
  215. v2.Communicate:FireServer({
  216. Goal = "Console Move End",
  217. Tool = u1[v27]
  218. });
  219. end;
  220. return;
  221. end;
  222. if not u13[l__KeyCode__26] then
  223. return;
  224. end;
  225. local v28 = u13[l__KeyCode__26];
  226. if u1[v28] then
  227. v25 = u1[v28];
  228. if not v25:GetAttribute("Skill") or not l__LocalPlayer__1:GetAttribute("S_AutoUnequip") then
  229. return;
  230. end;
  231. else
  232. return;
  233. end;
  234. return v2.Communicate:FireServer({
  235. Goal = "Auto Use End",
  236. Tool = v25
  237. });
  238. end);
  239. l__Backpack__7.ChildAdded:Connect(v7);
  240. for v29, v30 in pairs(l__Backpack__7:GetChildren()) do
  241. if v30:IsA("Tool") then
  242. v7(v30);
  243. end;
  244. end;
  245. local u14 = {};
  246. function shared.ResetCooldowns()
  247. for v31, v32 in pairs(u14) do
  248. if v32.Parent then
  249. v32:Destroy();
  250. local v33 = script.Cooldown:Clone();
  251. v33.Name = "";
  252. v33.BackgroundColor3 = Color3.new(1, 1, 1);
  253. v33.Parent = v32.Parent;
  254. l__TweenService__3:Create(v33, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  255. BackgroundTransparency = 1
  256. }):Play();
  257. game:service("Debris"):AddItem(v33, 0.5);
  258. end;
  259. end;
  260. table.clear(u14);
  261. end;
  262. function shared.CooldownIndicator(p6)
  263. local l__Name__34 = p6.Name;
  264. local l__Cooldown__35 = p6.Cooldown;
  265. for v36, v37 in pairs(u1) do
  266. if v37 and v37.Parent and v37.Name == l__Name__34 then
  267. local v38 = l__Hotbar__3[v36];
  268. local v39 = script.Cooldown:Clone();
  269. if v37.Parent == v2 then
  270. v39.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  271. end;
  272. v39.Parent = v38;
  273. l__TweenService__3:Create(v39, TweenInfo.new(l__Cooldown__35, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {
  274. Size = UDim2.new(1, 0, 0, 0)
  275. }):Play();
  276. table.insert(u14, v39);
  277. task.delay(l__Cooldown__35, function()
  278. if not v39.Parent then
  279. return;
  280. end;
  281. local v40 = script.Cooldown:Clone();
  282. v40.Name = "";
  283. v40.BackgroundColor3 = Color3.new(1, 1, 1);
  284. v40.Parent = v38;
  285. l__TweenService__3:Create(v40, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  286. BackgroundTransparency = 1
  287. }):Play();
  288. game:service("Debris"):AddItem(v40, 0.5);
  289. v39:Destroy();
  290. end);
  291. local u15 = nil;
  292. u15 = v38:GetPropertyChangedSignal("Visible"):Connect(function()
  293. if v38.Visible then
  294. return;
  295. end;
  296. game:GetService("Debris"):AddItem(v39, 0);
  297. return u15:Disconnect();
  298. end);
  299. return;
  300. end;
  301. end;
  302. end;
  303. function shared.BackpackVisibility(p7)
  304. l__Parent__4.Visible = p7;
  305. end;
  306. --[[game.ReplicatedStorage.OnCooldown.OnClientEvent:Connect(function(Tools,times)
  307. spawn(function()
  308. for i,v in pairs(script.Parent.Hotbar:GetDescendants()) do
  309. if v:IsA("TextButton") then
  310. if v.Overlay.ImageTransparency == 0 and v.ToolName.Text == Tools then
  311. v.Overlay.ImageTransparency = 1
  312. local cooldown = script.Cooldown:Clone()
  313. cooldown.Parent = v
  314. l__TweenService__3:Create(cooldown, TweenInfo.new(times, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {
  315. Size = UDim2.new(1, 0, 0, 0)
  316. }):Play();
  317. task.delay(times,function()
  318. local v40 = script.Cooldown:Clone();
  319. v40.Name = "";
  320. v40.BackgroundColor3 = Color3.new(1, 1, 1);
  321. v40.Parent = v;
  322. l__TweenService__3:Create(v40, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  323. BackgroundTransparency = 1
  324. }):Play();
  325. game:service("Debris"):AddItem(v40, 0.5);
  326. cooldown:Destroy()
  327. end)
  328. end
  329. end
  330. end
  331. end)
  332. end)]]
  333. game.ReplicatedStorage.OnCooldown.OnClientEvent:Connect(function(Tools,times)
  334. local l__Name__34 = Tools;
  335. local l__Cooldown__35 = times;
  336. for v36, v37 in pairs(u1) do
  337. if v37 and v37.Parent and v37.Name == l__Name__34 then
  338. local v38 = l__Hotbar__3[v36];
  339. local v39 = script.Cooldown:Clone();
  340. if v37.Parent == v2 then
  341. v39.BackgroundColor3 = Color3.fromRGB(255, 78, 78);
  342. end;
  343. v39.Parent = v38;
  344. l__TweenService__3:Create(v39, TweenInfo.new(l__Cooldown__35, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {
  345. Size = UDim2.new(1, 0, 0, 0)
  346. }):Play();
  347. table.insert(u14, v39);
  348. task.delay(l__Cooldown__35, function()
  349. if not v39.Parent then
  350. return;
  351. end;
  352. local v40 = script.Cooldown:Clone();
  353. v40.Name = "";
  354. v40.BackgroundColor3 = Color3.new(1, 1, 1);
  355. v40.Parent = v38;
  356. l__TweenService__3:Create(v40, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  357. BackgroundTransparency = 1
  358. }):Play();
  359. game:service("Debris"):AddItem(v40, 0.5);
  360. v39:Destroy();
  361. end);
  362. local u15 = nil;
  363. u15 = v38:GetPropertyChangedSignal("Visible"):Connect(function()
  364. if v38.Visible then
  365. return;
  366. end;
  367. game:GetService("Debris"):AddItem(v39, 0);
  368. return u15:Disconnect();
  369. end);
  370. return;
  371. end;
  372. end;
  373. end)
Advertisement
Add Comment
Please, Sign In to add comment