message (1) (1)
message (1) (1)
getgenv().Settings = {
['Camlock'] = {
['Enabled'] = true,-- [true | false] para desactivar o activar
['Keybind'] = "C", -- tecla al trackear || key to tracking
['Prediction'] = 0.026, -- prediccion || prediction
['Part'] = "Head", -- parte para q te tracke || part to track enemige
['EnableJumpPart'] = true, -- [true | false]
['JumpPart'] = "Head", -- parte donde apunta cuando salta | part where it
points when it jumps
['Smoothness'] = 0.9, -- suavidad de movimientos || Smoothness of movement
['Offset'] = 0.1, -- suvaidad al trackeo en vertical || suvaidity to
vertical tracking
['Resolver'] = false, -- resolver || resolver
},
['Fly'] = {
['Enabled'] = true, -- [true | false] para desactivar o activar
['Keybind'] = "L", -- tecla para volar || key to fly
['Speed'] = 85 -- velocidad del vuelo || velocity to fly
},
['Spin'] = {
['Enabled'] = true, -- [true | false] para activar/desactivar
['Keybind'] = "T", -- Tecla para girar || key to spin
['Speed'] = 100, -- || velocidad del giro
['InFirstPerson'] = true -- || Aativar el giro en primera persona
},
['Esp'] = {
['Enabled'] = true, -- [true | false] para activar/desactivar
['Keybind'] = "P", -- key to esp || Tecla para activar/desactivar el esp
['BoxColor'] = Color3.fromRGB(156, 114, 255), -- Box color | color de la
caja (rodear al enemigo con un cubo)
['TracerColor'] = {
['Enabled'] = false, -- [true | false] para activar/desactivar
['Color'] = Color3.fromRGB(255, 255, 255), -- color
['Thickness'] = 2, -- grosor del trazador || thickness of the tracer
},
['NameColor'] = Color3.fromRGB(255, 255, 255), -- Name color || Nombre del
color
['FontSize'] = 13 -- no change this || no cambies esto
},
["IntroSettings"] = {
['IntroID'] = "rbxassetid://95551562136264" -- no toques esto
},
}
local players = game:GetService("Players")
local localplayer = players.LocalPlayer
local mouse = localplayer:GetMouse()
local userinputservice = game:GetService("UserInputService")
local runservice = game:GetService("RunService")
local currentCamera = workspace.CurrentCamera
SplashScreen:Destroy()
end
intro()
if target then
local targetHumanoid = target.Parent:FindFirstChildOfClass("Humanoid")
if not targetHumanoid or targetHumanoid.Health <= 0 then
target = nil
end
end
return target
end
if localplayer.Character and
localplayer.Character:FindFirstChild("HumanoidRootPart") then
localplayer.Character.HumanoidRootPart.CFrame =
localplayer.Character.HumanoidRootPart.CFrame * rotation
end
if getgenv().Settings.Spin.InFirstPerson then
currentCamera.CFrame = currentCamera.CFrame * rotation
end
wait(0.01)
end
end)()
end
end
if flying then
humanoid.PlatformStand = false
flying = false
userinputservice.InputBegan:Connect(function(input, processed)
if processed then return end
if targeting then
victim = target()
else
victim = nil
end
end
end)
runservice.RenderStepped:Connect(function()
if flying then
local moveDirection = Vector3.new()
local speed = getgenv().Settings.Fly.Speed
if userinputservice:IsKeyDown(Enum.KeyCode.W) then
moveDirection += (currentCamera.CFrame.LookVector * speed)
end
if userinputservice:IsKeyDown(Enum.KeyCode.S) then
moveDirection -= (currentCamera.CFrame.LookVector * speed)
end
if userinputservice:IsKeyDown(Enum.KeyCode.A) then
moveDirection -= (currentCamera.CFrame.RightVector * speed)
end
if userinputservice:IsKeyDown(Enum.KeyCode.D) then
moveDirection += (currentCamera.CFrame.RightVector * speed)
end
if userinputservice:IsKeyDown(Enum.KeyCode.Space) then
moveDirection += Vector3.new(0, speed, 0)
end
if userinputservice:IsKeyDown(Enum.KeyCode.LeftControl) then
moveDirection -= Vector3.new(0, speed, 0)
end
runservice.RenderStepped:Connect(function()
if targeting and victim and victim.Parent then
local humanoid = victim.Parent:FindFirstChildOfClass("Humanoid")
if humanoid and humanoid.Health > 0 then
local aimPart =
victim.Parent:FindFirstChild(getgenv().Settings.Camlock.Part) or victim
lastKnownPosition = aimPart.Position
if getgenv().Settings.Camlock.UsePrediction then
local predictedPos = aimPart.Position + (velocity *
getgenv().Settings.Camlock.Prediction)
local targetCFrame = CFrame.new(currentCamera.CFrame.Position,
predictedPos)
currentCamera.CFrame = currentCamera.CFrame:Lerp(targetCFrame,
getgenv().Settings.Camlock.Smoothness)
end
elseif lastKnownPosition then
local targetCFrame = CFrame.new(currentCamera.CFrame.Position,
lastKnownPosition)
currentCamera.CFrame = currentCamera.CFrame:Lerp(targetCFrame,
getgenv().Settings.Camlock.Smoothness)
end
end
end)
runservice.Heartbeat:Connect(function(deltaTime)
if victim and victim.Parent then
local currentPos = victim.Position
local displacement = currentPos - oldPos
local velocityVector = displacement / deltaTime
velocity = velocity:Lerp(Vector3.new(
velocityVector.X,
velocityVector.Y * (0.3 * (getgenv().Settings.Camlock.Offset or 1)),
velocityVector.Z
), math.clamp(deltaTime * 5, 0, 1))
oldPos = currentPos
end
end)
runservice.RenderStepped:Connect(function()
if targeting and victim and victim.Parent then
local humanoid = victim.Parent:FindFirstChildOfClass("Humanoid")
if humanoid and humanoid.Health > 0 then
local aimPartName = isInAir(humanoid) and
getgenv().Settings.Camlock.EnableJumpPart
and getgenv().Settings.Camlock.JumpPart
or getgenv().Settings.Camlock.Part
local predictedPos
if getgenv().Settings.Camlock.UsePrediction then
local predictionVelocity = getgenv().Settings.Camlock.Resolver
and velocity or victim.Velocity
predictedPos = aimPart.Position + (predictionVelocity *
(getgenv().Settings.Camlock.Prediction or 0))
else
predictedPos = aimPart.Position
end
local smoothness =
math.clamp(getgenv().Settings.Camlock.Smoothness, 0.1, 1)
local targetCFrame = CFrame.new(currentCamera.CFrame.Position,
predictedPos)
currentCamera.CFrame = currentCamera.CFrame:Lerp(targetCFrame,
smoothness)
end
elseif lastKnownPosition then
local targetCFrame = CFrame.new(currentCamera.CFrame.Position,
lastKnownPosition)
currentCamera.CFrame = currentCamera.CFrame:Lerp(targetCFrame,
getgenv().Settings.Camlock.Smoothness)
end
end
end)
if onScreen then
esp.BoxOutline.Position = boxPos
esp.BoxOutline.Size = boxSize
esp.BoxOutline.Visible = espEnabled
esp.Box.Position = boxPos
esp.Box.Size = boxSize
esp.Box.Visible = espEnabled
local headPos =
workspace.CurrentCamera:WorldToViewportPoint(player.Character.Head.Position)
esp.Name.Position = Vector2.new(headPos.X, headPos.Y - 20)
esp.Name.Text = player.Name
esp.Name.Visible = espEnabled
if getgenv().Settings.Esp.TracerColor.Enabled then
esp.Tracer.From =
Vector2.new(workspace.CurrentCamera.ViewportSize.X / 2,
workspace.CurrentCamera.ViewportSize.Y)
esp.Tracer.To = Vector2.new(screenPos.X, screenPos.Y)
esp.Tracer.Color = getgenv().Settings.Esp.TracerColor.Color
esp.Tracer.Thickness =
getgenv().Settings.Esp.TracerColor.Thickness
esp.Tracer.Visible = espEnabled
else
esp.Tracer.Visible = false
end
local distance = (humanoidRootPart.Position -
localplayer.Character.HumanoidRootPart.Position).Magnitude
esp.Distance.Position = Vector2.new(screenPos.X, screenPos.Y + 20)
esp.Distance.Text = string.format("[%.1fm]", distance)
esp.Distance.Visible = espEnabled
else
esp.Name.Visible = false
esp.Box.Visible = false
esp.BoxOutline.Visible = false
esp.Tracer.Visible = false
esp.Distance.Visible = false
end
else
esp.Name.Visible = false
esp.Box.Visible = false
esp.BoxOutline.Visible = false
esp.Tracer.Visible = false
esp.Distance.Visible = false
end
end
end
runservice.RenderStepped:Connect(function()
if espEnabled then
UpdateESP()
else
for _, esp in pairs(EspPlayers) do
esp.Name.Visible = false
esp.Box.Visible = false
esp.BoxOutline.Visible = false
esp.Tracer.Visible = false
esp.Distance.Visible = false
end
end
end)
players.PlayerAdded:Connect(function(player)
CreatePlayerESP(player)
end)
players.PlayerRemoving:Connect(function(player)
local esp = EspPlayers[player]
if esp then
for _, drawing in pairs(esp) do
drawing:Remove()
end
EspPlayers[player] = nil
end
end)