Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- A simple TP tool script for games with a (bad) anticheat.
- Tested on Blox Fruits
- https://www.roblox.com/games/2753915549/Blox-Fruits
- ]]
- getgenv().speed = 250 -- Change this to control the speed of the tool
- -- Script
- local Players = game:GetService("Players")
- local TweenService = game:GetService("TweenService")
- local LocalPlayer = Players.LocalPlayer
- local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
- local Mouse = LocalPlayer:GetMouse()
- function tweenTeleport(to, speed)
- local rootPart = Character.HumanoidRootPart
- local tween = TweenService:Create(rootPart, TweenInfo.new((to.Position - rootPart.Position).Magnitude / speed, Enum.EasingStyle.Linear), {
- CFrame = to
- })
- tween:Play()
- tween.Completed:Wait()
- end
- -- Teleport Tool
- local tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.Name = "Teleport Tool"
- tool.Activated:connect(function()
- local position = Mouse.Hit + Vector3.new(0, 2.5, 0)
- tweenTeleport(CFrame.new(position.X, position.Y, position.Z), getgenv().speed)
- end)
- tool.Parent = LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement