Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- -- Anti-hook protector snippet (place early to protect all loadstring calls)
- local orig_loadstring = loadstring
- local orig_load = load
- local orig_require = require
- local dummy_code = "return function() end"
- local function is_hooked(fn, original)
- return tostring(fn) ~= tostring(original)
- end
- loadstring = function(code, ...)
- if is_hooked(loadstring, orig_loadstring) or is_hooked(load, orig_load) or is_hooked(require, orig_require) then
- -- Hook detected: silently return dummy function (no error, no notification)
- 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) 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) then
- error("require is hooked - aborted")
- end
- return orig_require(...)
- end
- -- GUI setup
- 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 creator with round edges
- 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