--[[
local Player = game:GetService("Players").LocalPlayer
local Camera = workspace.CurrentCamera
game:GetService("RunService").RenderStepped:Connect(function()
Camera.CFrame = CFrame.new(Camera.CFrame.Position, workspace.Rig.Torso.Position)
end)
]]
-- u can change the colour on line 26 using RGB format Btw
-- made for the ts remakes (The streets remake and the streets prison remake)
-- not hideable
-- q to select x to autoshoot
local Aimbot = Instance.new("ScreenGui")
local Text = Instance.new("TextLabel")
--// Services
local Players = game:GetService("Players")
--// Player
local Player = Players.LocalPlayer
local Mouse = Player:GetMouse()
local Camera = workspace.CurrentCamera
local ScreenHeight = Camera.ViewportSize.Y
--local Part = workspace:WaitForChild("Part")
local Size = 5 -- The higher the smaller the lock area
local holdx = true
Aimbot.Name = "Aimbot"
Aimbot.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
Aimbot.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
Aimbot.ResetOnSpawn = false
local Frame1 = Instance.new("Frame")
Frame1.Size = UDim2.fromScale(1, 0.3)
Frame1.BackgroundColor3 = Color3.new(1, 0, 0)
Frame1.BackgroundTransparency = 0.9
Frame1.Visible = false
Frame1.Parent = Aimbot
local Frame2 = Instance.new("Frame")
Frame2.Size = UDim2.fromScale(1, 0.3)
Frame2.BackgroundColor3 = Color3.new(1, 0, 0)
Frame2.BackgroundTransparency = 0.9
Frame2.Position = UDim2.fromScale(0, 0.7)
Frame2.Visible = false
Frame2.Parent = Aimbot
Text.Parent = Aimbot
Text.BackgroundColor3 = Color3.new(0.444511, 0.771695, 0.998947)
Text.BorderColor3 = Color3.new(0.39057, 0.39057, 0.39057)
Text.BorderSizePixel = 2
Text.Position = UDim2.new(0.75, 0, 0.75, 0)
Text.Size = UDim2.new(0, 132, 0, 50)
Text.Font = Enum.Font.Code
Text.Text = "Target: Nil"
Text.TextColor3 = Color3.fromRGB(0, 0, 255)
Text.TextScaled = false
Text.TextSize = 15
Text.TextWrapped = true
Text.BackgroundTransparency = 1
Text.Visible = false
Mouse.KeyDown:Connect(function(key)
if key == "q" then
Text.Visible = true
if Mouse.Target.Parent:FindFirstChild("Humanoid") then
Text.Text = Mouse.Target.Parent.Name
end
if Mouse.Target.Parent:IsA("Accessory") then
Text.Text = Mouse.Target.Parent.Parent.Name
end
task.wait(2)
Text.Visible = false
end
end)
Mouse.KeyDown:Connect(function(key)
if key == "x" then
holdx = true
end
end)
Mouse.KeyUp:Connect(function(key)
if key == "x" then
holdx = false
end
end)
Mouse.Button1Down:Connect(function()
-- is x being held
if holdx then
-- get target
local target = Players:FindFirstChild(Text.Text)
-- get target bodyparts
local torso = target.Character.Torso
local humanoid = target.Character.Humanoid
local myhum = Player.Character.Humanoid
-- get current gun
local gun = Player.Character:FindFirstChildOfClass("Tool")
-- is either player dead
if (humanoid.Health <= 3 or myhum.Health <= 3) then
return
end
-- is target in correct screen area
if (Camera:WorldToViewportPoint(torso.Position).Y > ScreenHeight / 2 - ScreenHeight / Size and Camera:WorldToViewportPoint(torso.Position).Y < ScreenHeight / 2 + ScreenHeight / Size) then
-- is target not jumping
if math.abs(torso:GetVelocityAtPosition(torso.Position).Y) < 1 then
-- get the aimbot position
local hit = (torso.CFrame * CFrame.new(0, 0.7, 0) + torso.Velocity / 10)
-- fire the gun
gun.Shoot:FireServer(hit)
end
end
task.wait()
end
end)