Universal Script πŸ“Œ
1.4k Views
20.8k Executions

Teleport Tool

10K executions
Universal Script πŸ“Œ
Snapple
Snapple10K executions
2 months 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
Script hub
133
986
Bumped 21 minutes ago

Script hub

Lunyx Hub

Script hub
120.8k
221.2k
Bumped 39 minutes ago
Key System
Script hub
10.5k
200.6k
Bumped 58 minutes ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.3k
299.2k
Bumped 4 hours ago
Script hub
23.7k
5.3k
Bumped 4 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
301
977
Bumped 4 hours ago