Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mouse = game.Players.LocalPlayer:GetMouse()
- tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.Name = "Click TP"
- tool.Activated:connect(function()
- local pos = mouse.Hit+Vector3.new(0,2.5,0)
- pos = CFrame.new(pos.X,pos.Y,pos.Z)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
- end)
- tool.Parent = game.Players.LocalPlayer.Backpack
- wait(0.07)
- local TweenService = game:GetService("TweenService")
- local UserInputService = game:GetService("UserInputService")
- local Players = game:GetService("Players")
- local tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.Name = "Tween Click TP"
- local function onActivated()
- local mouse = Players.LocalPlayer:GetMouse()
- local pos = mouse.Hit + Vector3.new(0,2.5,0)
- local humanoidRootPart = Players.LocalPlayer.Character.HumanoidRootPart
- local tweenInfo = TweenInfo.new(
- 1,
- Enum.EasingStyle.Quad,
- Enum.EasingDirection.Out,
- 0,
- false,
- 0
- )
- local tween = TweenService:Create(humanoidRootPart, tweenInfo, {
- CFrame = CFrame.new(pos.X, pos.Y, pos.Z)
- })
- tween:Play()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement