Universal Script 📌
1.4k Views
15.9k Executions

Teleport Tool

10K executions
Universal Script 📌
Snapple
Snapple10K executions
1 month ago

Reviewed by QueueSpeedDemonPaid revieweron How review works

Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Simple Tool Teleport Script Open Sourced. #tool #teleport #noclip #fly #speed #jump

View Raw
local UIS = game:GetService("UserInputService")
local LP = game.Players.LocalPlayer
local Cam = workspace.CurrentCamera

local char = LP.Character or LP.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local root = char:WaitForChild("HumanoidRootPart")

local tool = Instance.new("Tool")
tool.Name = "Teleport Tool"
tool.RequiresHandle = false
tool.Parent = LP:WaitForChild("Backpack")

local function tp(pos)
	local ray = Cam:ViewportPointToRay(pos.X, pos.Y)
	local rp = RaycastParams.new()
	rp.FilterDescendantsInstances = {char, Cam}
	rp.FilterType = Enum.RaycastFilterType.Exclude
	local hit = workspace:Raycast(ray.Origin, ray.Direction * 5000, rp)
	local p = hit and hit.Position or ray.Origin + ray.Direction * 5000
	local _, y = root.CFrame:ToOrientation()
	root.CFrame = CFrame.new(p) * CFrame.Angles(0, y, 0)
end

tool.Activated:Connect(function()
	if UIS.TouchEnabled then return end
	tp(UIS:GetMouseLocation())
end)

UIS.TouchTap:Connect(function(t, g)
	if g or tool.Parent ~= char or #t == 0 then return end
	tp(Vector2.new(t[1].X, t[1].Y))
end)

task.spawn(function() hum:EquipTool(tool) end)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
41
1
Approved 53 minutes ago
Script hub
11.2k
56.8k
Bumped 2 hours ago
Key System
Script hub
1.6M
2.1M
Bumped 2 hours ago
Key System

Script hub

#14 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script 📌
94
8
Approved 2 hours ago
Universal Script 📌
91
8
Approved 2 hours ago