Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Virtual Machine Container
- (function()
- local TweenService = game:GetService("TweenService")
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- -- GUI Container
- 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
- -- Button creation utility
- 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
- -- Hidden variables (not globally accessible)
- local savedCollectPosition = nil
- local speed = (19 / 0.65) * 1.06
- 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)
- -- Anti-hook tamper protection (VM-style)
- local function checkTamper()
- local hook_detected = false
- local function isHooked(fn)
- local ok, info = pcall(function() return tostring(fn) end)
- return not ok or (type(info) == "string" and info:find("function: 0x") == nil)
- end
- local fakes = {
- require = require,
- load = load,
- loadstring = rawget(_G, "loadstring")
- }
- for name, func in pairs(fakes) do
- if func and isHooked(func) then
- hook_detected = true
- break
- end
- end
- if hook_detected then
- -- Optional response to tampering:
- pcall(function()
- for _, v in pairs(playerGui:GetChildren()) do
- if v:IsA("ScreenGui") and v.Name == "MoveGui" then
- v:Destroy()
- end
- end
- end)
- error("Hooking detected. Script disabled.")
- end
- end
- task.spawn(function()
- while true do
- task.wait(2.5)
- checkTamper()
- end
- end)
- end)()
Advertisement
Add Comment
Please, Sign In to add comment