Roblox Gui Hack Lua

May 3rd, 2020
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
  1. game:GetService('StarterGui'):SetCore('SendNotification',{
  2. Text ='Press L.Ctrl'
  3. game:GetService('StarterGui'):SetCore('SendNotification',{
  4. Text ='Press L.Alt'
  5. PLAYER = game.Players.LocalPlayer
  6. CC = game.Workspace.CurrentCamera
  7. ENABLED =false
  8. _G.ESP_BIND =52
  9. local PLAYERS ={}
  10. local DISTANCES ={}
  11. if v ~= PLAYER then
  12. end
  13. for i, v inpairs(PLAYERS)do
  14. if v and(v.Character)~=niland v.TeamColor ~= PLAYER.TeamColor then
  15. if AIM ~=nilthen
  16. local DISTANCE =(AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  17. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p,(MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  18. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  19. local DIFF =math.floor((POS - AIM.Position).magnitude)
  20. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  21. PLAYER_HOLD[v.Name .. i].diff = DIFF
  22. end
  23. elseif_G.FREE_FOR_ALL truethen
  24. if AIM ~=nilthen
  25. local DISTANCE =(AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  26. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p,(MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  27. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  28. local DIFF =math.floor((POS - AIM.Position).magnitude)
  29. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  30. PLAYER_HOLD[v.Name .. i].diff = DIFF
  31. end
  32. end
  33. ifunpack(DISTANCES)nilthen
  34. end
  35. local L_DISTANCE =math.floor(math.min(unpack(DISTANCES)))
  36. returnfalse
  37. if v.diff L_DISTANCE then
  38. end
  39. returnfalse
  40. GUI_MAIN = Instance.new('ScreenGui', game.CoreGui)
  41. GUI_AIM_AT = Instance.new('TextLabel', GUI_MAIN)
  42. GUI_MAIN.Name ='AIMBOT'
  43. GUI_TARGET.Size = UDim2.new(0,200,0,30)
  44. GUI_TARGET.BackgroundColor = BrickColor.new('Fossil')
  45. GUI_TARGET.Position = UDim2.new(0.5,-100,0,0)
  46. GUI_TARGET.TextColor3 = Color3.new(1,1,1)
  47. GUI_TARGET.TextWrapped =true
  48. GUI_TARGET.Font ='SourceSansBold'
  49. GUI_AIM_AT.Size = UDim2.new(0,200,0,20)
  50. GUI_AIM_AT.BackgroundColor = BrickColor.new('Fossil')
  51. GUI_AIM_AT.Position = UDim2.new(0.5,-100,0,30)
  52. GUI_AIM_AT.TextColor3 = Color3.new(1,1,1)
  53. GUI_AIM_AT.TextWrapped =true
  54. GUI_AIM_AT.Font ='SourceSansBold'
  55. local TRACK =false
  56. function CREATE(BASE, TEAM)
  57. local ESP_MAIN = Instance.new('BillboardGui', PLAYER.PlayerGui)
  58. local ESP_NAME = Instance.new('TextLabel', ESP_MAIN)
  59. ESP_MAIN.Name ='ESP'
  60. ESP_MAIN.AlwaysOnTop =true
  61. ESP_MAIN.Size = UDim2.new(0,5,0,5)
  62. ESP_DOT.Name ='DOT'
  63. ESP_DOT.BackgroundColor = BrickColor.new('Bright red')
  64. ESP_DOT.BorderSizePixel =0
  65. ESP_DOT.Size = UDim2.new(2,0,2,0)
  66. ESP_DOT.ZIndex =10
  67. ESP_NAME.Name ='NAME'
  68. ESP_NAME.BackgroundColor3 = Color3.new(255,255,255)
  69. ESP_NAME.BorderSizePixel =0
  70. ESP_NAME.Size = UDim2.new(1,0,10,0)
  71. ESP_NAME.ZIndex =10
  72. ESP_NAME.FontSize ='Size14'
  73. ESP_NAME.TextColor = BrickColor.new('Bright red')
  74. for _,v inpairs(PLAYER.PlayerGui:children())do
  75. v:Destroy()
  76. end
  77. CLEAR()
  78. spawn(function()
  79. if TRACK then
  80. for i,v inpairs(game.Players:GetChildren())do
  81. if v.Character and v.Character:FindFirstChild('Head')then
  82. if v.TeamColor ~= PLAYER.TeamColor then
  83. CREATE(v.Character.Head,true)
  84. end
  85. if v.Character:FindFirstChild('Head')then
  86. end
  87. end
  88. end
  89. wait(1)
  90. end
  91. MOUSE.KeyDown:connect(function(KEY)
  92. if KEY _G.BIND then
  93. end
  94. KEY = KEY:lower():byte()
  95. ENABLED =false
  96. end)
  97. MOUSE.KeyDown:connect(function(KEY)
  98. if KEY _G.ESP_BIND then
  99. FIND()
  100. print('ESP : ON')
  101. wait()
  102. TRACK =false
  103. print('ESP : OFF')
  104. end
  105. if KEY _G.CHANGE_AIM then
  106. _G.AIM_AT ='Torso'
  107. elseif_G.AIM_AT 'Torso'then
  108. GUI_AIM_AT.Text ='AIMING : HEAD'
  109. end
  110. game:GetService('RunService').RenderStepped:connect(function()
  111. local TARGET = GetNearestPlayerToMouse()
  112. local AIM = TARGET.Character:FindFirstChild(_G.AIM_AT)
  113. CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
  114. GUI_TARGET.Text ='AIMBOT : '.. TARGET.Name:sub(1,5)
  115. GUI_TARGET.Text ='AIMBOT : OFF'
  116. end
  117. wait()
  118. FIND()
  119. until ESP_ENABLED false
Gui

Roblox penetration-testing robloxdev robloxlua exploit-development roblox-lua rlua roblox-hack roblox-exploiting roblox-engine Updated Apr 29, 2021 Lua. This is a truly horrible way to do administration. It would be better to create a simple Gui with buttons that send events. Also, you should break the joints of anyone sending a command who is not the admin and log them for the attempt, or add them to a ban list. Also, you should not do this based on the name of the player, but UserId.

RAW Paste Data
May 3rd, 2020

Roblox Gui Hack Lua Minecraft

Never

Roblox Script Lua

Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
  1. game:GetService('StarterGui'):SetCore('SendNotification',{
  2. Text ='Press L.Ctrl'
  3. game:GetService('StarterGui'):SetCore('SendNotification',{
  4. Text ='Press L.Alt'
  5. PLAYER = game.Players.LocalPlayer
  6. CC = game.Workspace.CurrentCamera
  7. ENABLED =false
  8. _G.ESP_BIND =52
  9. local PLAYERS ={}
  10. local DISTANCES ={}
  11. if v ~= PLAYER then
  12. end
  13. for i, v inpairs(PLAYERS)do
  14. if v and(v.Character)~=niland v.TeamColor ~= PLAYER.TeamColor then
  15. if AIM ~=nilthen
  16. local DISTANCE =(AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  17. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p,(MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  18. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  19. local DIFF =math.floor((POS - AIM.Position).magnitude)
  20. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  21. PLAYER_HOLD[v.Name .. i].diff = DIFF
  22. end
  23. elseif_G.FREE_FOR_ALL truethen
  24. if AIM ~=nilthen
  25. local DISTANCE =(AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  26. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p,(MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  27. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  28. local DIFF =math.floor((POS - AIM.Position).magnitude)
  29. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  30. PLAYER_HOLD[v.Name .. i].diff = DIFF
  31. end
  32. end
  33. ifunpack(DISTANCES)nilthen
  34. end
  35. local L_DISTANCE =math.floor(math.min(unpack(DISTANCES)))
  36. returnfalse
  37. if v.diff L_DISTANCE then
  38. end
  39. returnfalse
  40. GUI_MAIN = Instance.new('ScreenGui', game.CoreGui)
  41. GUI_AIM_AT = Instance.new('TextLabel', GUI_MAIN)
  42. GUI_MAIN.Name ='AIMBOT'
  43. GUI_TARGET.Size = UDim2.new(0,200,0,30)
  44. GUI_TARGET.BackgroundColor = BrickColor.new('Fossil')
  45. GUI_TARGET.Position = UDim2.new(0.5,-100,0,0)
  46. GUI_TARGET.TextColor3 = Color3.new(1,1,1)
  47. GUI_TARGET.TextWrapped =true
  48. GUI_TARGET.Font ='SourceSansBold'
  49. GUI_AIM_AT.Size = UDim2.new(0,200,0,20)
  50. GUI_AIM_AT.BackgroundColor = BrickColor.new('Fossil')
  51. GUI_AIM_AT.Position = UDim2.new(0.5,-100,0,30)
  52. GUI_AIM_AT.TextColor3 = Color3.new(1,1,1)
  53. GUI_AIM_AT.TextWrapped =true
  54. GUI_AIM_AT.Font ='SourceSansBold'
  55. local TRACK =false
  56. function CREATE(BASE, TEAM)
  57. local ESP_MAIN = Instance.new('BillboardGui', PLAYER.PlayerGui)
  58. local ESP_NAME = Instance.new('TextLabel', ESP_MAIN)
  59. ESP_MAIN.Name ='ESP'
  60. ESP_MAIN.AlwaysOnTop =true
  61. ESP_MAIN.Size = UDim2.new(0,5,0,5)
  62. ESP_DOT.Name ='DOT'
  63. ESP_DOT.BackgroundColor = BrickColor.new('Bright red')
  64. ESP_DOT.BorderSizePixel =0
  65. ESP_DOT.Size = UDim2.new(2,0,2,0)
  66. ESP_DOT.ZIndex =10
  67. ESP_NAME.Name ='NAME'
  68. ESP_NAME.BackgroundColor3 = Color3.new(255,255,255)
  69. ESP_NAME.BorderSizePixel =0
  70. ESP_NAME.Size = UDim2.new(1,0,10,0)
  71. ESP_NAME.ZIndex =10
  72. ESP_NAME.FontSize ='Size14'
  73. ESP_NAME.TextColor = BrickColor.new('Bright red')
  74. for _,v inpairs(PLAYER.PlayerGui:children())do
  75. v:Destroy()
  76. end
  77. CLEAR()
  78. spawn(function()
  79. if TRACK then
  80. for i,v inpairs(game.Players:GetChildren())do
  81. if v.Character and v.Character:FindFirstChild('Head')then
  82. if v.TeamColor ~= PLAYER.TeamColor then
  83. CREATE(v.Character.Head,true)
  84. end
  85. if v.Character:FindFirstChild('Head')then
  86. end
  87. end
  88. end
  89. wait(1)
  90. end
  91. MOUSE.KeyDown:connect(function(KEY)
  92. if KEY _G.BIND then
  93. end
  94. KEY = KEY:lower():byte()
  95. ENABLED =false
  96. end)
  97. MOUSE.KeyDown:connect(function(KEY)
  98. if KEY _G.ESP_BIND then
  99. FIND()
  100. print('ESP : ON')
  101. wait()
  102. TRACK =false
  103. print('ESP : OFF')
  104. end
  105. if KEY _G.CHANGE_AIM then
  106. _G.AIM_AT ='Torso'
  107. elseif_G.AIM_AT 'Torso'then
  108. GUI_AIM_AT.Text ='AIMING : HEAD'
  109. end
  110. game:GetService('RunService').RenderStepped:connect(function()
  111. local TARGET = GetNearestPlayerToMouse()
  112. local AIM = TARGET.Character:FindFirstChild(_G.AIM_AT)
  113. CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
  114. GUI_TARGET.Text ='AIMBOT : '.. TARGET.Name:sub(1,5)
  115. GUI_TARGET.Text ='AIMBOT : OFF'
  116. end
  117. wait()
  118. FIND()
  119. until ESP_ENABLED false
RAW Paste Data

Roblox Gui Hack Lua 2