local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
 
local Window = Rayfield:CreateWindow({
   Name = "Ray Hub",
   LoadingTitle = "Ray Hub",
   LoadingSubtitle = "by RayRay and Chronic and shotz",
   ConfigurationSaving = {
      Enabled = false,
      FolderName = nil, -- Create a custom folder for your hub/game
      FileName = "SouthBronxExploiter"
   },
   Discord = {
      Enabled = true,
      Invite = "Z3Mttd5G", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
      RememberJoins = true -- Set this to false to make them join the discord every time they load it up
   },
   KeySystem = true, -- Set this to true to use our key system
   KeySettings = {
      Title = "Ray Hub Key System",
      Subtitle = "Key System",
      Note = "Join the discord for the key to be provided to u Paid Btw",
      FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
      SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
      GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
      Key = {"2ng9ty3hvty7x24m90x2tx23"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
   }
})
 
local MainTab = Window:CreateTab("Main", nil) -- Title, Image
local MainSection = MainTab:CreateSection("Main")
 
local AimbotTab = Window:CreateTab("Aimbot", nil) -- Title, Image
local AimbotSection = AimbotTab:CreateSection("Q to aimlock")
 
local EspTab = Window:CreateTab("Esp", nil) -- Title, Image
local EspSection = EspTab:CreateSection("last's for ever")
 
local AutoFarmTab = Window:CreateTab("AutoFarm", nil) -- Title, Image
local AutoFarmSection = AutoFarmTab:CreateSection("start before enable")
 
local TelaportsTab = Window:CreateTab("Telaports", nil) -- Title, Image
local TelaportsSection = TelaportsTab:CreateSection("when Telaport make sure to turn it off when u get there or it will repeat ")

 
local CreditsTab = Window:CreateTab("Credits", nil) -- Title, Image
local CreditsSection = CreditsTab:CreateSection("Credits")
 
 
 
Rayfield:Notify({
   Title = "You executed the   RayRay Hub!!!",
   Content = "Join The Discord",
   Duration = 5,
   Image = nil,
   Actions = { -- Notification Buttons
      Ignore = {
         Name = "Okay!",
         Callback = function()
         print("The user tapped Okay!")
      end
   },
},
})
 
 
local Slider = MainTab:CreateSlider({
   Name = "Change Ur WalkSpeed",
   Range = {0, 23},
   Increment = 1,
   Suffix = "Speed",
   CurrentValue = 16,
   Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
   Callback = function(Value)
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)
   end,
})



 
 local Section = AimbotTab:CreateSection("MISC")
local Button = AimbotTab:CreateButton({
Name = "Instant Interact",
	Callback = function()
		local function modifyProximityPrompts()
			local proximityPrompts = game:GetService("Workspace"):GetDescendants()
			for _, instance in ipairs(proximityPrompts) do
				if instance:IsA("ProximityPrompt") then
					instance.HoldDuration = 0
				end
			end
		end
		while true do
			modifyProximityPrompts()
			wait(5)
		end
	end
})
 
local Section = AimbotTab:CreateSection("AimLock")
 
local Section = CreditsTab:CreateSection("Made by RayRay and Chronic")
 
local Button = AimbotTab:CreateButton({
   Name = "Aimbot",
   Callback = function()
        getgenv().OldAimPart = "UpperTorso"
getgenv().AimPart = "Head" -- For R15 Games: {UpperTorso, LowerTorso, HumanoidRootPart, Head} | For R6 Games: {Head, Torso, HumanoidRootPart}  
    getgenv().AimlockKey = "Q"
    getgenv().AimRadius = 7111111100 -- How far away from someones character you want to lock on at
    getgenv().ThirdPerson = true 
    getgenv().FirstPerson = true
    getgenv().TeamCheck = false -- Check if Target is on your Team (True means it wont lock onto your teamates, false is vice versa) (Set it to false if there are no teams)
    getgenv().PredictMovement = true -- Predicts if they are moving in fast velocity (like jumping) so the aimbot will go a bit faster to match their speed 
    getgenv().PredictionVelocity = 0.01234
    getgenv().CheckIfJumped = true
    getgenv().Smoothness = true
    getgenv().SmoothnessAmount = 0.2
 
    local Players, Uis, RService, SGui = game:GetService"Players", game:GetService"UserInputService", game:GetService"RunService", game:GetService"StarterGui";
    local Client, Mouse, Camera, CF, RNew, Vec3, Vec2 = Players.LocalPlayer, Players.LocalPlayer:GetMouse(), workspace.CurrentCamera, CFrame.new, Ray.new, Vector3.new, Vector2.new;
    local Aimlock, MousePressed, CanNotify = true, false, false;
    local AimlockTarget;
    local OldPre;
 
 
 
    getgenv().WorldToViewportPoint = function(P)
        return Camera:WorldToViewportPoint(P)
    end
 
    getgenv().WorldToScreenPoint = function(P)
        return Camera.WorldToScreenPoint(Camera, P)
    end
 
    getgenv().GetObscuringObjects = function(T)
        if T and T:FindFirstChild(getgenv().AimPart) and Client and Client.Character:FindFirstChild("Head") then 
            local RayPos = workspace:FindPartOnRay(RNew(
                T[getgenv().AimPart].Position, Client.Character.Head.Position)
            )
            if RayPos then return RayPos:IsDescendantOf(T) end
        end
    end
 
    getgenv().GetNearestTarget = function()
        -- Credits to whoever made this, i didnt make it, and my own mouse2plr function kinda sucks
        local players = {}
        local PLAYER_HOLD  = {}
        local DISTANCES = {}
        for i, v in pairs(Players:GetPlayers()) do
            if v ~= Client then
                table.insert(players, v)
            end
        end
        for i, v in pairs(players) do
            if v.Character ~= nil then
                local AIM = v.Character:FindFirstChild("Head")
                if getgenv().TeamCheck == true and v.Team ~= Client.Team then
                    local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
                    local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.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] = {}
                    PLAYER_HOLD[v.Name .. i].dist= DISTANCE
                    PLAYER_HOLD[v.Name .. i].plr = v
                    PLAYER_HOLD[v.Name .. i].diff = DIFF
                    table.insert(DISTANCES, DIFF)
                elseif getgenv().TeamCheck == false and v.Team == Client.Team then 
                    local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
                    local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.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] = {}
                    PLAYER_HOLD[v.Name .. i].dist= DISTANCE
                    PLAYER_HOLD[v.Name .. i].plr = v
                    PLAYER_HOLD[v.Name .. i].diff = DIFF
                    table.insert(DISTANCES, DIFF)
                end
            end
        end
 
        if unpack(DISTANCES) == nil then
            return nil
        end
 
        local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
        if L_DISTANCE > getgenv().AimRadius then
            return nil
        end
 
        for i, v in pairs(PLAYER_HOLD) do
            if v.diff == L_DISTANCE then
                return v.plr
            end
        end
        return nil
    end
 
    Mouse.KeyDown:Connect(function(a)
        if not (Uis:GetFocusedTextBox()) then 
            if a == AimlockKey and AimlockTarget == nil then
                pcall(function()
                    if MousePressed ~= true then MousePressed = true end 
                    local Target;Target = GetNearestTarget()
                    if Target ~= nil then 
                        AimlockTarget = Target
                    end
                end)
            elseif a == AimlockKey and AimlockTarget ~= nil then
                if AimlockTarget ~= nil then AimlockTarget = nil end
                if MousePressed ~= false then 
                    MousePressed = false 
                end
            end
        end
    end)
 
    RService.RenderStepped:Connect(function()
        if getgenv().ThirdPerson == true and getgenv().FirstPerson == true then 
            if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 or (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then 
                CanNotify = true 
            else 
                CanNotify = false 
            end
        elseif getgenv().ThirdPerson == true and getgenv().FirstPerson == false then 
            if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 then 
                CanNotify = true 
            else 
                CanNotify = false 
            end
        elseif getgenv().ThirdPerson == false and getgenv().FirstPerson == true then 
            if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then 
                CanNotify = true 
            else 
                CanNotify = false 
            end
        end
        if Aimlock == true and MousePressed == true then 
            if AimlockTarget and AimlockTarget.Character and AimlockTarget.Character:FindFirstChild(getgenv().AimPart) then 
                if getgenv().FirstPerson == true then
                    if CanNotify == true then
                        if getgenv().PredictMovement == true then
                            if getgenv().Smoothness == true then
                                --// The part we're going to lerp/smoothen \\--
                                local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
 
                                --// Making it work \\--
                                Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
                            else
                                Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
                            end
                        elseif getgenv().PredictMovement == false then 
                            if getgenv().Smoothness == true then
                                --// The part we're going to lerp/smoothen \\--
                                local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
 
                                --// Making it work \\--
                                Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
                            else
                                Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
                            end
                        end
                    end
                end
            end
        end
         if CheckIfJumped == true then
       if AimlockTarget.Character.HuDDDDDDDDDDWmanoid.FloorMaterial == Enum.Material.Air then
 
           getgenv().AimPart = "HumanoidRootPart"
       else
         getgenv().AimPart = getgenv().OldAimPart
 
       end
    end
end)
   end,
})



local Button = EspTab:CreateButton({
   Name = "box and green bar",
   CurrentValue = false,
   Flag = "Toggle1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
   Callback = function(Value)
  -- Preview: https://[Log in to view URL]
-- Made by chronic1.0 And rayraythabeaner_90966
local Settings = {
    Box_Color = Color3.fromRGB(255, 0, 0),
    Tracer_Color = Color3.fromRGB(255, 0, 0),
    Tracer_Thickness = 1,
    Box_Thickness = 1,
    Tracer_Origin = "Bottom", -- Middle or Bottom if FollowMouse is on this won't matter...
    Tracer_FollowMouse = false,
    Tracers = true
}
local Team_Check = {
    TeamCheck = false, -- if TeamColor is on this won't matter...
    Green = Color3.fromRGB(0, 255, 0),
    Red = Color3.fromRGB(255, 0, 0)
}
local TeamColor = true
 
--// SEPARATION
local player = game:GetService("Players").LocalPlayer
local camera = game:GetService("Workspace").CurrentCamera
local mouse = player:GetMouse()
 
local function NewQuad(thickness, color)
    local quad = Drawing.new("Quad")
    quad.Visible = false
    quad.PointA = Vector2.new(0,0)
    quad.PointB = Vector2.new(0,0)
    quad.PointC = Vector2.new(0,0)
    quad.PointD = Vector2.new(0,0)
    quad.Color = color
    quad.Filled = false
    quad.Thickness = thickness
    quad.Transparency = 1
    return quad
end
 
local function NewLine(thickness, color)
    local line = Drawing.new("Line")
    line.Visible = false
    line.From = Vector2.new(0, 0)
    line.To = Vector2.new(0, 0)
    line.Color = color 
    line.Thickness = thickness
    line.Transparency = 1
    return line
end
 
local function Visibility(state, lib)
    for u, x in pairs(lib) do
        x.Visible = state
    end
end
 
local function ToColor3(col) --Function to convert, just cuz c;
    local r = col.r --Red value
    local g = col.g --Green value
    local b = col.b --Blue value
    return Color3.new(r,g,b); --Color3 datatype, made of the RGB inputs
end
 
local black = Color3.fromRGB(0, 0 ,0)
local function ESP(plr)
    local library = {
        --//Tracer and Black Tracer(black border)
        blacktracer = NewLine(Settings.Tracer_Thickness*2, black),
        tracer = NewLine(Settings.Tracer_Thickness, Settings.Tracer_Color),
        --//Box and Black Box(black border)
        black = NewQuad(Settings.Box_Thickness*2, black),
        box = NewQuad(Settings.Box_Thickness, Settings.Box_Color),
        --//Bar and Green Health Bar (part that moves up/down)
        healthbar = NewLine(3, black),
        greenhealth = NewLine(1.5, black)
    }
 
    local function Colorize(color)
        for u, x in pairs(library) do
            if x ~= library.healthbar and x ~= library.greenhealth and x ~= library.blacktracer and x ~= library.black then
                x.Color = color
            end
        end
    end
 
    local function Updater()
        local connection
        connection = game:GetService("RunService").RenderStepped:Connect(function()
            if plr.Character ~= nil and plr.Character:FindFirstChild("Humanoid") ~= nil and plr.Character:FindFirstChild("HumanoidRootPart") ~= nil and plr.Character.Humanoid.Health > 0 and plr.Character:FindFirstChild("Head") ~= nil then
                local HumPos, OnScreen = camera:WorldToViewportPoint(plr.Character.HumanoidRootPart.Position)
                if OnScreen then
                    local head = camera:WorldToViewportPoint(plr.Character.Head.Position)
                    local DistanceY = math.clamp((Vector2.new(head.X, head.Y) - Vector2.new(HumPos.X, HumPos.Y)).magnitude, 2, math.huge)
 
                    local function Size(item)
                        item.PointA = Vector2.new(HumPos.X + DistanceY, HumPos.Y - DistanceY*2)
                        item.PointB = Vector2.new(HumPos.X - DistanceY, HumPos.Y - DistanceY*2)
                        item.PointC = Vector2.new(HumPos.X - DistanceY, HumPos.Y + DistanceY*2)
                        item.PointD = Vector2.new(HumPos.X + DistanceY, HumPos.Y + DistanceY*2)
                    end
                    Size(library.box)
                    Size(library.black)
 
 
                    --// Health Bar
                    local d = (Vector2.new(HumPos.X - DistanceY, HumPos.Y - DistanceY*2) - Vector2.new(HumPos.X - DistanceY, HumPos.Y + DistanceY*2)).magnitude 
                    local healthoffset = plr.Character.Humanoid.Health/plr.Character.Humanoid.MaxHealth * d
 
                    library.greenhealth.From = Vector2.new(HumPos.X - DistanceY - 4, HumPos.Y + DistanceY*2)
                    library.greenhealth.To = Vector2.new(HumPos.X - DistanceY - 4, HumPos.Y + DistanceY*2 - healthoffset)
 
                    library.healthbar.From = Vector2.new(HumPos.X - DistanceY - 4, HumPos.Y + DistanceY*2)
                    library.healthbar.To = Vector2.new(HumPos.X - DistanceY - 4, HumPos.Y - DistanceY*2)
 
                    local green = Color3.fromRGB(0, 255, 0)
                    local red = Color3.fromRGB(255, 0, 0)
 
                    library.greenhealth.Color = red:lerp(green, plr.Character.Humanoid.Health/plr.Character.Humanoid.MaxHealth);
 
                    if Team_Check.TeamCheck then
                        if plr.TeamColor == player.TeamColor then
                            Colorize(Team_Check.Green)
                        else 
                            Colorize(Team_Check.Red)
                        end
                    else 
                        library.tracer.Color = Settings.Tracer_Color
                        library.box.Color = Settings.Box_Color
                    end
                    if TeamColor == true then
                        Colorize(plr.TeamColor.Color)
                    end
                    Visibility(true, library)
                else 
                    Visibility(false, library)
                end
            else 
                Visibility(false, library)
                if game.Players:FindFirstChild(plr.Name) == nil then
                    connection:Disconnect()
                end
            end
        end)
    end
    coroutine.wrap(Updater)()
end
 
for i, v in pairs(game:GetService("Players"):GetPlayers()) do
    if v.Name ~= player.Name then
        coroutine.wrap(ESP)(v)
    end
end
 
game.Players.PlayerAdded:Connect(function(newplr)
    if newplr.Name ~= player.Name then
        coroutine.wrap(ESP)(newplr)
    end
end)
   end,
})
 
 
local Button = EspTab:CreateButton({
   Name = "Hightlight and names",
   CurrentValue = false,
   Flag = "Toggle1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
   Callback = function(Value)
   -- made by disprrt
 
_G.FriendColor = Color3.fromRGB(0, 0, 255)
_G.EnemyColor = Color3.fromRGB(255, 0, 0)
_G.UseTeamColor = true
 
--------------------------------------------------------------------
local Holder = Instance.new("Folder", game.CoreGui)
Holder.Name = "ESP"
 
local Box = Instance.new("BoxHandleAdornment")
Box.Name = "nilBox"
Box.Size = Vector3.new(1, 2, 1)
Box.Color3 = Color3.new(100 / 255, 100 / 255, 100 / 255)
Box.Transparency = 0.7
Box.ZIndex = 0
Box.AlwaysOnTop = false
Box.Visible = false
 
local NameTag = Instance.new("BillboardGui")
NameTag.Name = "nilNameTag"
NameTag.Enabled = false
NameTag.Size = UDim2.new(0, 200, 0, 50)
NameTag.AlwaysOnTop = true
NameTag.StudsOffset = Vector3.new(0, 1.8, 0)
local Tag = Instance.new("TextLabel", NameTag)
Tag.Name = "Tag"
Tag.BackgroundTransparency = 1
Tag.Position = UDim2.new(0, -50, 0, 0)
Tag.Size = UDim2.new(0, 300, 0, 20)
Tag.TextSize = 15
Tag.TextColor3 = Color3.new(100 / 255, 100 / 255, 100 / 255)
Tag.TextStrokeColor3 = Color3.new(0 / 255, 0 / 255, 0 / 255)
Tag.TextStrokeTransparency = 0.4
Tag.Text = "nil"
Tag.Font = Enum.Font.SourceSansBold
Tag.TextScaled = false
 
local LoadCharacter = function(v)
	repeat wait() until v.Character ~= nil
	v.Character:WaitForChild("Humanoid")
	local vHolder = Holder:FindFirstChild(v.Name)
	vHolder:ClearAllChildren()
	local b = Box:Clone()
	b.Name = v.Name .. "Box"
	b.Adornee = v.Character
	b.Parent = vHolder
	local t = NameTag:Clone()
	t.Name = v.Name .. "NameTag"
	t.Enabled = true
	t.Parent = vHolder
	t.Adornee = v.Character:WaitForChild("Head", 5)
	if not t.Adornee then
		return UnloadCharacter(v)
	end
	t.Tag.Text = v.Name
	b.Color3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
	t.Tag.TextColor3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
	local Update
	local UpdateNameTag = function()
		if not pcall(function()
			v.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
			local maxh = math.floor(v.Character.Humanoid.MaxHealth)
			local h = math.floor(v.Character.Humanoid.Health)
		end) then
			Update:Disconnect()
		end
	end
	UpdateNameTag()
	Update = v.Character.Humanoid.Changed:Connect(UpdateNameTag)
end
 
local UnloadCharacter = function(v)
	local vHolder = Holder:FindFirstChild(v.Name)
	if vHolder and (vHolder:FindFirstChild(v.Name .. "Box") ~= nil or vHolder:FindFirstChild(v.Name .. "NameTag") ~= nil) then
		vHolder:ClearAllChildren()
	end
end
 
local LoadPlayer = function(v)
	local vHolder = Instance.new("Folder", Holder)
	vHolder.Name = v.Name
	v.CharacterAdded:Connect(function()
		pcall(LoadCharacter, v)
	end)
	v.CharacterRemoving:Connect(function()
		pcall(UnloadCharacter, v)
	end)
	v.Changed:Connect(function(prop)
		if prop == "TeamColor" then
			UnloadCharacter(v)
			wait()
			LoadCharacter(v)
		end
	end)
	LoadCharacter(v)
end
 
local UnloadPlayer = function(v)
	UnloadCharacter(v)
	local vHolder = Holder:FindFirstChild(v.Name)
	if vHolder then
		vHolder:Destroy()
	end
end
 
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
	spawn(function() pcall(LoadPlayer, v) end)
end
 
game:GetService("Players").PlayerAdded:Connect(function(v)
	pcall(LoadPlayer, v)
end)
 
game:GetService("Players").PlayerRemoving:Connect(function(v)
	pcall(UnloadPlayer, v)
end)
 
game:GetService("Players").LocalPlayer.NameDisplayDistance = 0
 
if _G.Reantheajfdfjdgs then
    return
end
 
_G.Reantheajfdfjdgs = ":suifayhgvsdghfsfkajewfrhk321rk213kjrgkhj432rj34f67df"
 
local players = game:GetService("Players")
local plr = players.LocalPlayer
 
function esp(target, color)
    if target.Character then
        if not target.Character:FindFirstChild("GetReal") then
            local highlight = Instance.new("Highlight")
            highlight.RobloxLocked = true
            highlight.Name = "GetReal"
            highlight.Adornee = target.Character
            highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
            highlight.FillColor = color
            highlight.Parent = target.Character
        else
            target.Character.GetReal.FillColor = color
        end
    end
end
 
while task.wait() do
    for i, v in pairs(players:GetPlayers()) do
        if v ~= plr then
            esp(v, _G.UseTeamColor and v.TeamColor.Color or ((plr.TeamColor == v.TeamColor) and _G.FriendColor or _G.EnemyColor))
        end
    end
end 
   end,
})
 
local Button = AutoFarmTab:CreateButton({
   Name = "AutoFarm",
   Callback = function()
   -- Create the ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
 
-- Create the frame
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 250, 0, 150)  -- Original width and longer height
Frame.Position = UDim2.new(0, 50, 0, 50)
Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)  -- Smokish grey color
Frame.Parent = ScreenGui
 
-- Create the frame title
local FrameTitle = Instance.new("TextLabel")
FrameTitle.Size = UDim2.new(1, 0, 0, 30)
FrameTitle.Position = UDim2.new(0, 0, 0, 0)
FrameTitle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
FrameTitle.Text = " SBE Autofarm"
FrameTitle.TextColor3 = Color3.fromRGB(227, 0, 34)
FrameTitle.Font = Enum.Font.SourceSansBold
FrameTitle.TextSize = 21
FrameTitle.Parent = Frame
 
-- Create the button
local Button = Instance.new("TextButton")
Button.Size = UDim2.new(0, 240, 0, 50)
Button.Position = UDim2.new(0, 10, 0, 40)  -- Higher position within the frame
Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Button.Text = "Autofarm: OFF"
Button.TextColor3 = Color3.fromRGB(227, 0, 34)
Button.Font = Enum.Font.SourceSansBold
Button.TextSize = 24
Button.Parent = Frame
 
-- Variables for drag functionality
local dragging = false
local dragInput, mousePos, framePos
 
-- Function to update the frame's position
local function update(input)
    local delta = input.Position - mousePos
    Frame.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
end
 
Frame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        mousePos = input.Position
        framePos = Frame.Position
 
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)
 
Frame.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement then
        dragInput = input
    end
end)
 
game:GetService("UserInputService").InputChanged:Connect(function(input)
    if input == dragInput and dragging then
        update(input)
    end
end)
 
-- Variables
local autofarmOn = false 
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local camera = game.Workspace.CurrentCamera
local cframe1 = CFrame.new(-555.769897, 3.53714561, -89.4789963, 0.00705527281, 1.04662078e-07, -0.999975085, 1.46552104e-08, 1, 1.04768084e-07, 0.999975085, -1.53940132e-08, 0.00705527281)
local cframe2 = CFrame.new(-401.491241, 3.4121933, -71.5438614, -0.998984277, -2.98057223e-08, -0.0450603478, -3.20220401e-08, 1, 4.84637397e-08, 0.0450603478, 4.98574373e-08, -0.998984277)
 
-- Function to move the player smoothly with a speed of 30
local function moveToPosition(targetCFrame, speed)
    speed = 25
    local startCFrame = humanoidRootPart.CFrame
    local distance = (targetCFrame.p - startCFrame.p).magnitude
    local duration = distance / speed
    local elapsed = 0
    while elapsed < duration do
        if not autofarmOn then return end
        elapsed = elapsed + game:GetService("RunService").Heartbeat:Wait()
        humanoidRootPart.CFrame = startCFrame:Lerp(targetCFrame, elapsed / duration)
        camera.CFrame = humanoidRootPart.CFrame * CFrame.new(0, 2, -10) -- Adjust the camera's position relative to the player
    end
    humanoidRootPart.CFrame = targetCFrame
    camera.CFrame = humanoidRootPart.CFrame * CFrame.new(0, 2, -10) -- Adjust the camera's position relative to the player
end
 
-- Function to simulate holding the "E" key
local function holdKeyE(duration)
    local VirtualInputManager = game:GetService("VirtualInputManager")
    VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E, false, game)
    wait(duration)
    VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E, false, game)
end
 
-- Function to toggle collisions
local function setCollisionsEnabled(enabled)
    for _, part in pairs(character:GetDescendants()) do
        if part:IsA("BasePart") then
            part.CanCollide = enabled
        end
    end
end
 
-- Function to toggle the autofarm
local function toggleAutofarm()
    autofarmOn = not autofarmOn
    Button.Text = autofarmOn and "Autofarm: ON" or "Autofarm: OFF"
 
    setCollisionsEnabled(not autofarmOn)
 
    while autofarmOn do
        -- Move to the first position
        moveToPosition(cframe1, 35)
        if not autofarmOn then break end
        wait(1.4)
 
        -- Hold "E" for 1 second
        holdKeyE(1)
        if not autofarmOn then break end
 
        wait(1.4)
 
        -- Equip the tool named "Crate"
        local crateTool = player.Backpack:FindFirstChild("Crate")
        if crateTool then
            crateTool.Parent = character
        end
 
        if not autofarmOn then break end
        wait(1.4)
 
        -- Move to the second position
        moveToPosition(cframe2, 35)
        if not autofarmOn then break end
        wait(1.3)
 
        -- Hold "E" for 1 second
        holdKeyE(1)
        if not autofarmOn then break end
 
        wait(1.3)
 
        -- Move back to the first position
        moveToPosition(cframe1, 35)
        if not autofarmOn then break end
        wait(1.4)
    end
 
    -- Re-enable collisions when autofarm is turned off
    setCollisionsEnabled(true)
end
 
-- Check if character dies
local function onCharacterRemoved()
    autofarmOn = false
    Button.Text = "Autofarm: OFF"
    setCollisionsEnabled(true)
end
 
character.HumanoidRootPart.AncestryChanged:Connect(function(_, parent)
    if parent == nil then
        onCharacterRemoved()
    end
end)
 
-- Connect the button click event to toggle the autofarm
Button.MouseButton1Click:Connect(toggleAutofarm)
   end,
})
 
 
   local Button = MainTab:CreateButton({
   Name = "Noclip",
   Callback = function()
   getgenv().Players = game:GetService'Players'
getgenv().Host = Players.LocalPlayer
getgenv().AddNotification = function(title, text) game:GetService'StarterGui':SetCore("SendNotification", {Title = title; Text = text;}) end
getgenv().RunService = game:GetService'RunService';
getgenv().ContextActionService = game:GetService'ContextActionService';
 
local Noclip = true;
local NoclipKey = 'X'; -- Change your key here
 
RunService.RenderStepped:Connect(function()
    if Noclip then
        for _,v in pairs(Host.Character:GetDescendants()) do
            if v:IsA'BasePart' and v.CanCollide then
                v.CanCollide = false
            end
        end
    else
        for _,v in pairs(Host.Character:GetDescendants()) do
            if v:IsA'BasePart' and not v.CanCollide then
                v.CanCollide = true
            end
        end
    end
end)
 
function Noclipping(ActionName, Properties)
    if ActionName == 'Noclip' then
        if not Properties or Properties.UserInputState == Enum.UserInputState.Begin then
            Noclip = not Noclip
            AddNotification('Noclip', 'Noclip is now - ' .. tostring(Noclip))
        end
    end
end
 
ContextActionService:BindAction('Noclip', Noclipping, true, Enum.KeyCode[NoclipKey])     
   end,
})


local Button = MainTab:CreateButton({
   Name = "Ctrl Click Deleate",
   Callback = function()
   --// Simple Ctrl Delete Script With Undo By Jalos34
local HoldToSelect  = Enum.KeyCode.LeftControl
local HoldToUndoAll = Enum.KeyCode.LeftAlt
local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
local Parts = {}
local Box = Instance.new("SelectionBox",game.Workspace)
local Sound0 = Instance.new("Sound")
local Sound1 = Instance.new("Sound")
Box.Name="Box"Box.LineThickness=0.01;Box.Adornee=nil;Box.Color3=Color3.fromRGB(255,0,0)Box.Visible=true;Sound1.Name="Sound"Sound1.SoundId="http://[Log in to view URL]"Sound1.Volume=1;Sound1.Looped=false;Sound1.archivable=false;Sound1.Parent=game.Workspace;Sound0.Name="Sound"Sound0.SoundId="http://[Log in to view URL]"Sound0.Volume=1;Sound0.Looped=false;Sound0.archivable=false;Sound0.Parent=game.Workspace;for a,b in pairs(game.Workspace:GetDescendants())do if b.ClassName=="Part"then b.Locked=false end end;Mouse.Button1Down:connect(function()if game:GetService("UserInputService"):IsKeyDown(HoldToSelect)then table.insert(Parts,Mouse.Target)Mouse.Target.Parent=game.CoreGui;Sound0:Play()end end)while wait()do Box.Adornee=nil;if game:GetService("UserInputService"):IsKeyDown(HoldToSelect)then Box.Adornee=Mouse.Target or nil end;if game:GetService("UserInputService"):IsKeyDown(HoldToUndoAll)then local c=0;for a,b in pairs(Parts)do c=a end;pcall(function()Parts[c].Parent=workspace;table.remove(Parts,c)Sound1:Play()end)wait(.1)end end
 
 end,
})
 
 
local Button = TelaportsTab:CreateButton({
   Name = "Dealership",
   Callback = function()
 
-- Create the ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
 
-- Create the frame
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 250, 0, 150)  -- Original width and longer height
Frame.Position = UDim2.new(0, 50, 0, 50)
Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)  -- Smokish grey color
Frame.Parent = ScreenGui
 
-- Create the frame title
local FrameTitle = Instance.new("TextLabel")
FrameTitle.Size = UDim2.new(1, 0, 0, 30)
FrameTitle.Position = UDim2.new(0, 0, 0, 0)
FrameTitle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
FrameTitle.Text = "Dealer"
FrameTitle.TextColor3 = Color3.fromRGB(227, 0, 34)
FrameTitle.Font = Enum.Font.SourceSansBold
FrameTitle.TextSize = 21
FrameTitle.Parent = Frame
 
-- Create the button
local Button = Instance.new("TextButton")
Button.Size = UDim2.new(0, 240, 0, 50)
Button.Position = UDim2.new(0, 10, 0, 40)  -- Higher position within the frame
Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Button.Text = "Box Job: OFF"
Button.TextColor3 = Color3.fromRGB(227, 0, 34)
Button.Font = Enum.Font.SourceSansBold
Button.TextSize = 24
Button.Parent = Frame
 
-- Variables for drag functionality
local dragging = false
local dragInput, mousePos, framePos
 
-- Function to update the frame's position
local function update(input)
    local delta = input.Position - mousePos
    Frame.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
end
 
Frame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        mousePos = input.Position
        framePos = Frame.Position
 
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)
 
Frame.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement then
        dragInput = input
    end
end)
 
game:GetService("UserInputService").InputChanged:Connect(function(input)
    if input == dragInput and dragging then
        update(input)
    end
end)
 
-- Variables
local autofarmOn = false
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local camera = game.Workspace.CurrentCamera
local cframe1 = CFrame.new(731.3900756835938, 4.111563682556152, 430.6238098144531)
local cframe2 = CFrame.new(731.3900756835938, 4.111563682556152, 430.6238098144531)
 
-- Function to move the player smoothly with a speed of 30
local function moveToPosition(targetCFrame, speed)
    local startCFrame = humanoidRootPart.CFrame
    local distance = (targetCFrame.p - startCFrame.p).magnitude
    local duration = distance / speed
    local elapsed = 0
    while elapsed < duration do
        if not autofarmOn then return end
        elapsed = elapsed + game:GetService("RunService").Heartbeat:Wait()
        humanoidRootPart.CFrame = startCFrame:Lerp(targetCFrame, elapsed / duration)
        camera.CFrame = humanoidRootPart.CFrame * CFrame.new(0, 2, -10) -- Adjust the camera's position relative to the player
    end
    humanoidRootPart.CFrame = targetCFrame
    camera.CFrame = humanoidRootPart.CFrame * CFrame.new(0, 2, -10) -- Adjust the camera's position relative to the player
end
 
-- Function to simulate holding the "E" key
local function holdKeyE(duration)
    local VirtualInputManager = game:GetService("VirtualInputManager")
    VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E, false, game)
    wait(duration)
    VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E, false, game)
end
 
-- Function to toggle collisions
local function setCollisionsEnabled(enabled)
    for _, part in pairs(character:GetDescendants()) do
        if part:IsA("BasePart") then
            part.CanCollide = enabled
        end
    end
end
 
-- Function to toggle the autofarm
local function toggleAutofarm()
    autofarmOn = not autofarmOn
    Button.Text = autofarmOn and "Autofarm: ON" or "Autofarm: OFF"
 
    setCollisionsEnabled(not autofarmOn)
 
    while autofarmOn do
        -- Move to the first position
        moveToPosition(cframe1, 30)
        if not autofarmOn then break end
        wait(1)
 
        -- Hold "E" for 1 second
        holdKeyE(1)
        if not autofarmOn then break end
 
        wait(1)
 
        -- Equip the tool named "Crate"
        local crateTool = player.Backpack:FindFirstChild("Crate")
        if crateTool then
            crateTool.Parent = character
        end
 
        if not autofarmOn then break end
        wait(1)
 
        -- Move to the second position
        moveToPosition(cframe2, 30)
        if not autofarmOn then break end
        wait(1)
 
        -- Hold "E" for 1 second
        holdKeyE(1)
        if not autofarmOn then break end
 
        wait(1)
 
        -- Move back to the first position
        moveToPosition(cframe1, 30)
        if not autofarmOn then break end
        wait(1)
    end
 
    -- Re-enable collisions when autofarm is turned off
    setCollisionsEnabled(true)
end
 
-- Check if character dies
local function onCharacterRemoved()
    autofarmOn = false
    Button.Text = "Autofarm: OFF"
    setCollisionsEnabled(true)
end
 
character.HumanoidRootPart.AncestryChanged:Connect(function(_, parent)
    if parent == nil then
        onCharacterRemoved()
    end
end)
 
-- Connect the button click event to toggle the autofarm
Button.MouseButton1Click:Connect(toggleAutofarm)
   end,
})
 
local Button = TelaportsTab:CreateButton({
   Name = "Box Job",
   Callback = function()
   -- Create the ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
 
-- Create the frame
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 250, 0, 150)  -- Original width and longer height
Frame.Position = UDim2.new(0, 50, 0, 50)
Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)  -- Smokish grey color
Frame.Parent = ScreenGui
 
-- Create the frame title
local FrameTitle = Instance.new("TextLabel")
FrameTitle.Size = UDim2.new(1, 0, 0, 30)
FrameTitle.Position = UDim2.new(0, 0, 0, 0)
FrameTitle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
FrameTitle.Text = "Box Job"
FrameTitle.TextColor3 = Color3.fromRGB(227, 0, 34)
FrameTitle.Font = Enum.Font.SourceSansBold
FrameTitle.TextSize = 21
FrameTitle.Parent = Frame
 
-- Create the button
local Button = Instance.new("TextButton")
Button.Size = UDim2.new(0, 240, 0, 50)
Button.Position = UDim2.new(0, 10, 0, 40)  -- Higher position within the frame
Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Button.Text = "Box Job: OFF"
Button.TextColor3 = Color3.fromRGB(227, 0, 34)
Button.Font = Enum.Font.SourceSansBold
Button.TextSize = 24
Button.Parent = Frame
 
-- Variables for drag functionality
local dragging = false
local dragInput, mousePos, framePos
 
-- Function to update the frame's position
local function update(input)
    local delta = input.Position - mousePos
    Frame.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
end
 
Frame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        mousePos = input.Position
        framePos = Frame.Position
 
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)
 
Frame.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement then
        dragInput = input
    end
end)
 
game:GetService("UserInputService").InputChanged:Connect(function(input)
    if input == dragInput and dragging then
        update(input)
    end
end)
 
-- Variables
local autofarmOn = false
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local camera = game.Workspace.CurrentCamera
local cframe1 = CFrame.new(-521.3500366210938, 3.5124402046203613, -83.01344299316406)
local cframe2 = CFrame.new(-521.3500366210938, 3.5124402046203613, -83.01344299316406)
 
-- Function to move the player smoothly with a speed of 30
local function moveToPosition(targetCFrame, speed)
    local startCFrame = humanoidRootPart.CFrame
    local distance = (targetCFrame.p - startCFrame.p).magnitude
    local duration = distance / speed
    local elapsed = 0
    while elapsed < duration do
        if not autofarmOn then return end
        elapsed = elapsed + game:GetService("RunService").Heartbeat:Wait()
        humanoidRootPart.CFrame = startCFrame:Lerp(targetCFrame, elapsed / duration)
        camera.CFrame = humanoidRootPart.CFrame * CFrame.new(0, 2, -10) -- Adjust the camera's position relative to the player
    end
    humanoidRootPart.CFrame = targetCFrame
    camera.CFrame = humanoidRootPart.CFrame * CFrame.new(0, 2, -10) -- Adjust the camera's position relative to the player
end
 
-- Function to simulate holding the "E" key
local function holdKeyE(duration)
    local VirtualInputManager = game:GetService("VirtualInputManager")
    VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E, false, game)
    wait(duration)
    VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E, false, game)
end
 
-- Function to toggle collisions
local function setCollisionsEnabled(enabled)
    for _, part in pairs(character:GetDescendants()) do
        if part:IsA("BasePart") then
            part.CanCollide = enabled
        end
    end
end
 
-- Function to toggle the autofarm
local function toggleAutofarm()
    autofarmOn = not autofarmOn
    Button.Text = autofarmOn and "Autofarm: ON" or "Autofarm: OFF"
 
    setCollisionsEnabled(not autofarmOn)
 
    while autofarmOn do
        -- Move to the first position
        moveToPosition(cframe1, 30)
        if not autofarmOn then break end
        wait(1)
 
        -- Hold "E" for 1 second
        holdKeyE(1)
        if not autofarmOn then break end
 
        wait(1)
 
        -- Equip the tool named "Crate"
        local crateTool = player.Backpack:FindFirstChild("Crate")
        if crateTool then
            crateTool.Parent = character
        end
 
        if not autofarmOn then break end
        wait(1)
 
        -- Move to the second position
        moveToPosition(cframe2, 30)
        if not autofarmOn then break end
        wait(1)
 
        -- Hold "E" for 1 second
        holdKeyE(1)
        if not autofarmOn then break end
 
        wait(1)
 
        -- Move back to the first position
        moveToPosition(cframe1, 30)
        if not autofarmOn then break end
        wait(1)
    end
 
    -- Re-enable collisions when autofarm is turned off
    setCollisionsEnabled(true)
end
 
-- Check if character dies
local function onCharacterRemoved()
    autofarmOn = false
    Button.Text = "Autofarm: OFF"
    setCollisionsEnabled(true)
end
 
character.HumanoidRootPart.AncestryChanged:Connect(function(_, parent)
    if parent == nil then
        onCharacterRemoved()
    end
end)
 
-- Connect the button click event to toggle the autofarm
Button.MouseButton1Click:Connect(toggleAutofarm)
   end,
})
 
 
local Button = TelaportsTab:CreateButton({
   Name = "Main Gun",
   Callback = function()
   -- Create the ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
 
-- Create the frame
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 250, 0, 150)  -- Original width and longer height
Frame.Position = UDim2.new(0, 50, 0, 50)
Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)  -- Smokish grey color
Frame.Parent = ScreenGui
 
-- Create the frame title
local FrameTitle = Instance.new("TextLabel")
FrameTitle.Size = UDim2.new(1, 0, 0, 30)
FrameTitle.Position = UDim2.new(0, 0, 0, 0)
FrameTitle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
FrameTitle.Text = "Main Gun"
FrameTitle.TextColor3 = Color3.fromRGB(227, 0, 34)
FrameTitle.Font = Enum.Font.SourceSansBold
FrameTitle.TextSize = 21
FrameTitle.Parent = Frame
 
-- Create the button
local Button = Instance.new("TextButton")
Button.Size = UDim2.new(0, 240, 0, 50)
Button.Position = UDim2.new(0, 10, 0, 40)  -- Higher position within the frame
Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Button.Text = "Main Gun: OFF"
Button.TextColor3 = Color3.fromRGB(227, 0, 34)
Button.Font = Enum.Font.SourceSansBold
Button.TextSize = 24
Button.Parent = Frame
 
-- Variables for drag functionality
local dragging = false
local dragInput, mousePos, framePos
 
-- Function to update the frame's position
local function update(input)
    local delta = input.Position - mousePos
    Frame.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
end
 
Frame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        mousePos = input.Position
        framePos = Frame.Position
 
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)
 
Frame.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement then
        dragInput = input
    end
end)
 
game:GetService("UserInputService").InputChanged:Connect(function(input)
    if input == dragInput and dragging then
        update(input)
    end
end)
 
-- Variables
local autofarmOn = false
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local camera = game.Workspace.CurrentCamera
local cframe1 = CFrame.new(216.20567321777344, 4.075550079345703, -174.9682159423828)
local cframe2 = CFrame.new(216.20567321777344, 4.075550079345703, -174.9682159423828)
 
-- Function to move the player smoothly with a speed of 30
local function moveToPosition(targetCFrame, speed)
    local startCFrame = humanoidRootPart.CFrame
    local distance = (targetCFrame.p - startCFrame.p).magnitude
    local duration = distance / speed
    local elapsed = 0
    while elapsed < duration do
        if not autofarmOn then return end
        elapsed = elapsed + game:GetService("RunService").Heartbeat:Wait()
        humanoidRootPart.CFrame = startCFrame:Lerp(targetCFrame, elapsed / duration)
        camera.CFrame = humanoidRootPart.CFrame * CFrame.new(0, 2, -10) -- Adjust the camera's position relative to the player
    end
    humanoidRootPart.CFrame = targetCFrame
    camera.CFrame = humanoidRootPart.CFrame * CFrame.new(0, 2, -10) -- Adjust the camera's position relative to the player
end
 
-- Function to simulate holding the "E" key
local function holdKeyE(duration)
    local VirtualInputManager = game:GetService("VirtualInputManager")
    VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E, false, game)
    wait(duration)
    VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E, false, game)
end
 
-- Function to toggle collisions
local function setCollisionsEnabled(enabled)
    for _, part in pairs(character:GetDescendants()) do
        if part:IsA("BasePart") then
            part.CanCollide = enabled
        end
    end
end
 
-- Function to toggle the autofarm
local function toggleAutofarm()
    autofarmOn = not autofarmOn
    Button.Text = autofarmOn and "Autofarm: ON" or "Autofarm: OFF"
 
    setCollisionsEnabled(not autofarmOn)
 
    while autofarmOn do
        -- Move to the first position
        moveToPosition(cframe1, 35)
        if not autofarmOn then break end
        wait(1)
 
        -- Hold "E" for 1 second
        holdKeyE(1)
        if not autofarmOn then break end
 
        wait(1)
 
        -- Equip the tool named "Crate"
        local crateTool = player.Backpack:FindFirstChild("Crate")
        if crateTool then
            crateTool.Parent = character
        end
 
        if not autofarmOn then break end
        wait(1)			

local Button = MainTab:CreateButton({
   Name = "CamLock Working",
   Callback = function()
        loadstring(game:HttpGet("https://[Log in to view URL]"))()
   end,
})

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: