May 3rd, 2020
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- game:GetService('StarterGui'):SetCore('SendNotification',{
- Text ='Press L.Ctrl'
- game:GetService('StarterGui'):SetCore('SendNotification',{
- Text ='Press L.Alt'
- PLAYER = game.Players.LocalPlayer
- CC = game.Workspace.CurrentCamera
- ENABLED =false
- _G.ESP_BIND =52
- local PLAYERS ={}
- local DISTANCES ={}
- if v ~= PLAYER then
- end
- for i, v inpairs(PLAYERS)do
- if v and(v.Character)~=niland v.TeamColor ~= PLAYER.TeamColor then
- if AIM ~=nilthen
- local DISTANCE =(AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
- local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p,(MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
- local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
- local DIFF =math.floor((POS - AIM.Position).magnitude)
- PLAYER_HOLD[v.Name .. i].dist = DISTANCE
- PLAYER_HOLD[v.Name .. i].diff = DIFF
- end
- elseif_G.FREE_FOR_ALL truethen
- if AIM ~=nilthen
- local DISTANCE =(AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
- local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p,(MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
- local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
- local DIFF =math.floor((POS - AIM.Position).magnitude)
- PLAYER_HOLD[v.Name .. i].dist = DISTANCE
- PLAYER_HOLD[v.Name .. i].diff = DIFF
- end
- end
- ifunpack(DISTANCES)nilthen
- end
- local L_DISTANCE =math.floor(math.min(unpack(DISTANCES)))
- returnfalse
- if v.diff L_DISTANCE then
- end
- returnfalse
- GUI_MAIN = Instance.new('ScreenGui', game.CoreGui)
- GUI_AIM_AT = Instance.new('TextLabel', GUI_MAIN)
- GUI_MAIN.Name ='AIMBOT'
- GUI_TARGET.Size = UDim2.new(0,200,0,30)
- GUI_TARGET.BackgroundColor = BrickColor.new('Fossil')
- GUI_TARGET.Position = UDim2.new(0.5,-100,0,0)
- GUI_TARGET.TextColor3 = Color3.new(1,1,1)
- GUI_TARGET.TextWrapped =true
- GUI_TARGET.Font ='SourceSansBold'
- GUI_AIM_AT.Size = UDim2.new(0,200,0,20)
- GUI_AIM_AT.BackgroundColor = BrickColor.new('Fossil')
- GUI_AIM_AT.Position = UDim2.new(0.5,-100,0,30)
- GUI_AIM_AT.TextColor3 = Color3.new(1,1,1)
- GUI_AIM_AT.TextWrapped =true
- GUI_AIM_AT.Font ='SourceSansBold'
- local TRACK =false
- function CREATE(BASE, TEAM)
- local ESP_MAIN = Instance.new('BillboardGui', PLAYER.PlayerGui)
- local ESP_NAME = Instance.new('TextLabel', ESP_MAIN)
- ESP_MAIN.Name ='ESP'
- ESP_MAIN.AlwaysOnTop =true
- ESP_MAIN.Size = UDim2.new(0,5,0,5)
- ESP_DOT.Name ='DOT'
- ESP_DOT.BackgroundColor = BrickColor.new('Bright red')
- ESP_DOT.BorderSizePixel =0
- ESP_DOT.Size = UDim2.new(2,0,2,0)
- ESP_DOT.ZIndex =10
- ESP_NAME.Name ='NAME'
- ESP_NAME.BackgroundColor3 = Color3.new(255,255,255)
- ESP_NAME.BorderSizePixel =0
- ESP_NAME.Size = UDim2.new(1,0,10,0)
- ESP_NAME.ZIndex =10
- ESP_NAME.FontSize ='Size14'
- ESP_NAME.TextColor = BrickColor.new('Bright red')
- for _,v inpairs(PLAYER.PlayerGui:children())do
- v:Destroy()
- end
- CLEAR()
- spawn(function()
- if TRACK then
- for i,v inpairs(game.Players:GetChildren())do
- if v.Character and v.Character:FindFirstChild('Head')then
- if v.TeamColor ~= PLAYER.TeamColor then
- CREATE(v.Character.Head,true)
- end
- if v.Character:FindFirstChild('Head')then
- end
- end
- end
- wait(1)
- end
- MOUSE.KeyDown:connect(function(KEY)
- if KEY _G.BIND then
- end
- KEY = KEY:lower():byte()
- ENABLED =false
- end)
- MOUSE.KeyDown:connect(function(KEY)
- if KEY _G.ESP_BIND then
- FIND()
- print('ESP : ON')
- wait()
- TRACK =false
- print('ESP : OFF')
- end
- if KEY _G.CHANGE_AIM then
- _G.AIM_AT ='Torso'
- elseif_G.AIM_AT 'Torso'then
- GUI_AIM_AT.Text ='AIMING : HEAD'
- end
- game:GetService('RunService').RenderStepped:connect(function()
- local TARGET = GetNearestPlayerToMouse()
- local AIM = TARGET.Character:FindFirstChild(_G.AIM_AT)
- CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
- GUI_TARGET.Text ='AIMBOT : '.. TARGET.Name:sub(1,5)
- GUI_TARGET.Text ='AIMBOT : OFF'
- end
- wait()
- FIND()
- until ESP_ENABLED false
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!
- game:GetService('StarterGui'):SetCore('SendNotification',{
- Text ='Press L.Ctrl'
- game:GetService('StarterGui'):SetCore('SendNotification',{
- Text ='Press L.Alt'
- PLAYER = game.Players.LocalPlayer
- CC = game.Workspace.CurrentCamera
- ENABLED =false
- _G.ESP_BIND =52
- local PLAYERS ={}
- local DISTANCES ={}
- if v ~= PLAYER then
- end
- for i, v inpairs(PLAYERS)do
- if v and(v.Character)~=niland v.TeamColor ~= PLAYER.TeamColor then
- if AIM ~=nilthen
- local DISTANCE =(AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
- local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p,(MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
- local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
- local DIFF =math.floor((POS - AIM.Position).magnitude)
- PLAYER_HOLD[v.Name .. i].dist = DISTANCE
- PLAYER_HOLD[v.Name .. i].diff = DIFF
- end
- elseif_G.FREE_FOR_ALL truethen
- if AIM ~=nilthen
- local DISTANCE =(AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
- local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p,(MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
- local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
- local DIFF =math.floor((POS - AIM.Position).magnitude)
- PLAYER_HOLD[v.Name .. i].dist = DISTANCE
- PLAYER_HOLD[v.Name .. i].diff = DIFF
- end
- end
- ifunpack(DISTANCES)nilthen
- end
- local L_DISTANCE =math.floor(math.min(unpack(DISTANCES)))
- returnfalse
- if v.diff L_DISTANCE then
- end
- returnfalse
- GUI_MAIN = Instance.new('ScreenGui', game.CoreGui)
- GUI_AIM_AT = Instance.new('TextLabel', GUI_MAIN)
- GUI_MAIN.Name ='AIMBOT'
- GUI_TARGET.Size = UDim2.new(0,200,0,30)
- GUI_TARGET.BackgroundColor = BrickColor.new('Fossil')
- GUI_TARGET.Position = UDim2.new(0.5,-100,0,0)
- GUI_TARGET.TextColor3 = Color3.new(1,1,1)
- GUI_TARGET.TextWrapped =true
- GUI_TARGET.Font ='SourceSansBold'
- GUI_AIM_AT.Size = UDim2.new(0,200,0,20)
- GUI_AIM_AT.BackgroundColor = BrickColor.new('Fossil')
- GUI_AIM_AT.Position = UDim2.new(0.5,-100,0,30)
- GUI_AIM_AT.TextColor3 = Color3.new(1,1,1)
- GUI_AIM_AT.TextWrapped =true
- GUI_AIM_AT.Font ='SourceSansBold'
- local TRACK =false
- function CREATE(BASE, TEAM)
- local ESP_MAIN = Instance.new('BillboardGui', PLAYER.PlayerGui)
- local ESP_NAME = Instance.new('TextLabel', ESP_MAIN)
- ESP_MAIN.Name ='ESP'
- ESP_MAIN.AlwaysOnTop =true
- ESP_MAIN.Size = UDim2.new(0,5,0,5)
- ESP_DOT.Name ='DOT'
- ESP_DOT.BackgroundColor = BrickColor.new('Bright red')
- ESP_DOT.BorderSizePixel =0
- ESP_DOT.Size = UDim2.new(2,0,2,0)
- ESP_DOT.ZIndex =10
- ESP_NAME.Name ='NAME'
- ESP_NAME.BackgroundColor3 = Color3.new(255,255,255)
- ESP_NAME.BorderSizePixel =0
- ESP_NAME.Size = UDim2.new(1,0,10,0)
- ESP_NAME.ZIndex =10
- ESP_NAME.FontSize ='Size14'
- ESP_NAME.TextColor = BrickColor.new('Bright red')
- for _,v inpairs(PLAYER.PlayerGui:children())do
- v:Destroy()
- end
- CLEAR()
- spawn(function()
- if TRACK then
- for i,v inpairs(game.Players:GetChildren())do
- if v.Character and v.Character:FindFirstChild('Head')then
- if v.TeamColor ~= PLAYER.TeamColor then
- CREATE(v.Character.Head,true)
- end
- if v.Character:FindFirstChild('Head')then
- end
- end
- end
- wait(1)
- end
- MOUSE.KeyDown:connect(function(KEY)
- if KEY _G.BIND then
- end
- KEY = KEY:lower():byte()
- ENABLED =false
- end)
- MOUSE.KeyDown:connect(function(KEY)
- if KEY _G.ESP_BIND then
- FIND()
- print('ESP : ON')
- wait()
- TRACK =false
- print('ESP : OFF')
- end
- if KEY _G.CHANGE_AIM then
- _G.AIM_AT ='Torso'
- elseif_G.AIM_AT 'Torso'then
- GUI_AIM_AT.Text ='AIMING : HEAD'
- end
- game:GetService('RunService').RenderStepped:connect(function()
- local TARGET = GetNearestPlayerToMouse()
- local AIM = TARGET.Character:FindFirstChild(_G.AIM_AT)
- CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
- GUI_TARGET.Text ='AIMBOT : '.. TARGET.Name:sub(1,5)
- GUI_TARGET.Text ='AIMBOT : OFF'
- end
- wait()
- FIND()
- until ESP_ENABLED false
RAW Paste Data