Advertisement
probanana

Anti AFK

Dec 20th, 2022
2,986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGUI = Instance.new("ScreenGui")
  7. local LIGHTUX = Instance.new("Frame")
  8. local UICorner = Instance.new("UICorner")
  9. local DropShadowHolder = Instance.new("Frame")
  10. local DropShadow = Instance.new("ImageLabel")
  11. local Navigation = Instance.new("Frame")
  12. local UICorner_2 = Instance.new("UICorner")
  13. local TextLabel = Instance.new("TextLabel")
  14. local TextLabel_2 = Instance.new("TextLabel")
  15. local Discord = Instance.new("TextLabel")
  16. local TextLabel_3 = Instance.new("TextLabel")
  17.  
  18. --Properties:
  19.  
  20. ScreenGUI.Name = "ScreenGUI"
  21. ScreenGUI.Parent = game.CoreGui
  22.  
  23. LIGHTUX.Name = "LIGHTUX"
  24. LIGHTUX.Parent = ScreenGUI
  25. LIGHTUX.BackgroundColor3 = Color3.fromRGB(11, 19, 31)
  26. LIGHTUX.BorderSizePixel = 0
  27. LIGHTUX.Position = UDim2.new(0.77668035, 0, 0.377777725, 0)
  28. LIGHTUX.Size = UDim2.new(0, 166, 0, 190)
  29. LIGHTUX.Active = true
  30. LIGHTUX.Draggable = true
  31.  
  32. UICorner.CornerRadius = UDim.new(0, 4)
  33. UICorner.Parent = LIGHTUX
  34.  
  35. DropShadowHolder.Name = "DropShadowHolder"
  36. DropShadowHolder.Parent = LIGHTUX
  37. DropShadowHolder.BackgroundTransparency = 1.000
  38. DropShadowHolder.BorderSizePixel = 0
  39. DropShadowHolder.Size = UDim2.new(1, 0, 1, 0)
  40. DropShadowHolder.ZIndex = 0
  41.  
  42. DropShadow.Name = "DropShadow"
  43. DropShadow.Parent = DropShadowHolder
  44. DropShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  45. DropShadow.BackgroundTransparency = 1.000
  46. DropShadow.BorderSizePixel = 0
  47. DropShadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  48. DropShadow.Size = UDim2.new(1, 47, 1, 47)
  49. DropShadow.ZIndex = 0
  50. DropShadow.Image = "rbxassetid://6014261993"
  51. DropShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  52. DropShadow.ImageTransparency = 0.500
  53. DropShadow.ScaleType = Enum.ScaleType.Slice
  54. DropShadow.SliceCenter = Rect.new(49, 49, 450, 450)
  55.  
  56. Navigation.Name = "Navigation"
  57. Navigation.Parent = LIGHTUX
  58. Navigation.BackgroundColor3 = Color3.fromRGB(4, 9, 16)
  59. Navigation.BorderSizePixel = 0
  60. Navigation.Position = UDim2.new(0, 0, 0.205090374, 0)
  61. Navigation.Size = UDim2.new(0, 165, 0, 35)
  62.  
  63. UICorner_2.CornerRadius = UDim.new(0, 4)
  64. UICorner_2.Parent = Navigation
  65.  
  66. TextLabel.Parent = Navigation
  67. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  68. TextLabel.BackgroundTransparency = 1.000
  69. TextLabel.Size = UDim2.new(0, 166, 0, 35)
  70. TextLabel.Font = Enum.Font.FredokaOne
  71. TextLabel.Text = "Active"
  72. TextLabel.TextColor3 = Color3.fromRGB(0, 136, 255)
  73. TextLabel.TextSize = 18.000
  74.  
  75. TextLabel_2.Parent = LIGHTUX
  76. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  77. TextLabel_2.BackgroundTransparency = 1.000
  78. TextLabel_2.Size = UDim2.new(0, 166, 0, 38)
  79. TextLabel_2.Font = Enum.Font.FredokaOne
  80. TextLabel_2.Text = "Anti AFK"
  81. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  82. TextLabel_2.TextSize = 22.000
  83.  
  84. Discord.Name = "Discord"
  85. Discord.Parent = LIGHTUX
  86. Discord.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. Discord.BackgroundTransparency = 1.000
  88. Discord.Position = UDim2.new(0, 0, 0.828335881, 0)
  89. Discord.Size = UDim2.new(0, 159, 0, 26)
  90. Discord.Font = Enum.Font.FredokaOne
  91. Discord.Text = "gg/sdCSmXRjuX"
  92. Discord.TextColor3 = Color3.fromRGB(255, 255, 255)
  93. Discord.TextSize = 16.000
  94. Discord.TextXAlignment = Enum.TextXAlignment.Right
  95. Discord.TextYAlignment = Enum.TextYAlignment.Bottom
  96.  
  97. TextLabel_3.Parent = LIGHTUX
  98. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  99. TextLabel_3.BackgroundTransparency = 1.000
  100. TextLabel_3.Position = UDim2.new(0, 0, 0.394736856, 0)
  101. TextLabel_3.Size = UDim2.new(0, 166, 0, 47)
  102. TextLabel_3.Font = Enum.Font.FredokaOne
  103. TextLabel_3.Text = "M to open/close the gui"
  104. TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  105. TextLabel_3.TextSize = 17.000
  106. TextLabel_3.TextWrapped = true
  107.  
  108. -- Scripts:
  109.  
  110. local function RGSZ_fake_script() -- LIGHTUX.LocalScript
  111. local script = Instance.new('LocalScript', LIGHTUX)
  112.  
  113. local frame = script.Parent.Parent.LIGHTUX --in the .frame - you should need to change it what is your frame name.
  114. local hotkey = Enum.KeyCode.M --Change your keybind you want.
  115.  
  116. local UIS = game:GetService("UserInputService")
  117. local open = true
  118.  
  119.  
  120.  
  121. UIS.InputBegan:Connect(function(key, gp)
  122. if key.KeyCode == hotkey then
  123. if UIS:GetFocusedTextBox() == nil then
  124. if open == false then
  125. open = true
  126. frame.Visible = open
  127. elseif open == true then
  128. open = false
  129. frame.Visible = open
  130. end
  131. end
  132. end
  133. end)
  134. end
  135. coroutine.wrap(RGSZ_fake_script)()
  136. local function UPDLMSN_fake_script() -- LIGHTUX.LocalScript
  137. local script = Instance.new('LocalScript', LIGHTUX)
  138.  
  139. game.Players.LocalPlayer.Idled:Connect(function()
  140. local VU = game:GetService("VirtualUser")
  141. VU:CaptureController()
  142. VU:ClickButton2(Vector2.new())
  143. end)
  144. end
  145. coroutine.wrap(UPDLMSN_fake_script)()
  146.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement