Kenken_I

Untitled

Jul 15th, 2025 (edited)
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. -- Virtual Machine Container
  2. (function()
  3. local TweenService = game:GetService("TweenService")
  4. local Players = game:GetService("Players")
  5. local player = Players.LocalPlayer
  6. local playerGui = player:WaitForChild("PlayerGui")
  7.  
  8. -- GUI Container
  9. local screenGui = Instance.new("ScreenGui")
  10. screenGui.Name = "MoveGui"
  11. screenGui.ResetOnSpawn = false
  12. screenGui.Parent = playerGui
  13.  
  14. local frame = Instance.new("Frame")
  15. frame.Size = UDim2.new(0, 180, 0, 140)
  16. frame.Position = UDim2.new(0.5, -90, 0.5, -70)
  17. frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  18. frame.BorderSizePixel = 0
  19. frame.Active = true
  20. frame.Draggable = true
  21. frame.Parent = screenGui
  22.  
  23. local corner = Instance.new("UICorner")
  24. corner.CornerRadius = UDim.new(0, 10)
  25. corner.Parent = frame
  26.  
  27. local title = Instance.new("TextLabel")
  28. title.Size = UDim2.new(1, 0, 0, 30)
  29. title.BackgroundTransparency = 1
  30. title.Text = "ken_i v1"
  31. title.TextColor3 = Color3.new(1, 1, 1)
  32. title.Font = Enum.Font.SourceSansBold
  33. title.TextSize = 18
  34. title.Parent = frame
  35.  
  36. -- Button creation utility
  37. local function createButton(name, posY)
  38. local btn = Instance.new("TextButton")
  39. btn.Size = UDim2.new(0, 160, 0, 35)
  40. btn.Position = UDim2.new(0, 10, 0, posY)
  41. btn.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
  42. btn.TextColor3 = Color3.new(1, 1, 1)
  43. btn.Text = name
  44. btn.Font = Enum.Font.SourceSansBold
  45. btn.TextSize = 16
  46. btn.Parent = frame
  47.  
  48. local btnCorner = Instance.new("UICorner")
  49. btnCorner.CornerRadius = UDim.new(0, 8)
  50. btnCorner.Parent = btn
  51.  
  52. return btn
  53. end
  54.  
  55. local saveZoneBtn = createButton("Save Collect Zone Position", 40)
  56. local activateBtn = createButton("Activate Forward + Up", 85)
  57. activateBtn.Visible = false
  58.  
  59. -- Hidden variables (not globally accessible)
  60. local savedCollectPosition = nil
  61. local speed = (19 / 0.65) * 1.06
  62.  
  63. local function moveForwardThenUp()
  64. local character = player.Character
  65. if not character then return end
  66. local root = character:FindFirstChild("HumanoidRootPart")
  67. if not root then return end
  68.  
  69. local distance = 48
  70. local forward = root.CFrame.LookVector
  71. local targetPos = root.Position + (forward * distance)
  72. local targetCFrame = CFrame.new(targetPos, targetPos + forward)
  73. local duration = distance / speed
  74.  
  75. local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  76. local tween = TweenService:Create(root, tweenInfo, {CFrame = targetCFrame})
  77. tween:Play()
  78.  
  79. tween.Completed:Connect(function()
  80. local upPos = root.Position + Vector3.new(0, 300, 0)
  81. root.CFrame = CFrame.new(upPos, upPos + forward)
  82.  
  83. if savedCollectPosition then
  84. task.delay(0.1, function()
  85. local currentPos = root.Position
  86. local dist = (savedCollectPosition - currentPos).Magnitude
  87. local look = (savedCollectPosition - currentPos).Unit
  88. local savedCFrame = CFrame.new(savedCollectPosition, savedCollectPosition + look)
  89. local dur = dist / speed
  90.  
  91. local tween2 = TweenService:Create(root, TweenInfo.new(dur, Enum.EasingStyle.Sine), {CFrame = savedCFrame})
  92. tween2:Play()
  93. end)
  94. end
  95. end)
  96. end
  97.  
  98. saveZoneBtn.MouseButton1Click:Connect(function()
  99. local character = player.Character
  100. if character and character:FindFirstChild("HumanoidRootPart") then
  101. savedCollectPosition = character.HumanoidRootPart.Position
  102. warn("Player go by your base")
  103. saveZoneBtn.Visible = false
  104. activateBtn.Visible = true
  105. end
  106. end)
  107.  
  108. activateBtn.MouseButton1Click:Connect(moveForwardThenUp)
  109.  
  110. -- Anti-hook tamper protection (VM-style)
  111. local function checkTamper()
  112. local hook_detected = false
  113. local function isHooked(fn)
  114. local ok, info = pcall(function() return tostring(fn) end)
  115. return not ok or (type(info) == "string" and info:find("function: 0x") == nil)
  116. end
  117.  
  118. local fakes = {
  119. require = require,
  120. load = load,
  121. loadstring = rawget(_G, "loadstring")
  122. }
  123.  
  124. for name, func in pairs(fakes) do
  125. if func and isHooked(func) then
  126. hook_detected = true
  127. break
  128. end
  129. end
  130.  
  131. if hook_detected then
  132. -- Optional response to tampering:
  133. pcall(function()
  134. for _, v in pairs(playerGui:GetChildren()) do
  135. if v:IsA("ScreenGui") and v.Name == "MoveGui" then
  136. v:Destroy()
  137. end
  138. end
  139. end)
  140. error("Hooking detected. Script disabled.")
  141. end
  142. end
  143.  
  144. task.spawn(function()
  145. while true do
  146. task.wait(2.5)
  147. checkTamper()
  148. end
  149. end)
  150. end)()
  151.  
Advertisement
Add Comment
Please, Sign In to add comment