Universal Script 📌
188 Views
1.4k Executions

Big TP Script

Universal Script 📌
elersen21
elersen21First script
4 months ago
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

that script lets you tp someones under but you cant free watch your self while tping because camera can sometimes get buggy so camera will be lock while you tping I shared it as open source so that you can easily change the location of the camera or the character (sorry if ı write somethink wrong my english not that good) ( if you cant find the panel its on right corner the black square) if you find bug you can comment it hello tofu and canavar apla

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
--YOU CAN CHANGE YOUR TP LOCATİON OR CAMERA LOCATİON İN THERE
local TELEPORT_OFFSET_DOWN = 4.5
local CAMERA_OFFSET_BEHIND = 5
local CAMERA_OFFSET_UP = 2
local isActive = false
local currentTarget = nil
local noClipEnabled = false
local cameraLocked = false

local function lockCamera()
	if not currentTarget or not currentTarget.Character then return end
	local targetChar = currentTarget.Character
	local targetHrp = targetChar:FindFirstChild("HumanoidRootPart")
	if not targetHrp then return end
	cameraLocked = true
	game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
	local targetCFrame = targetHrp.CFrame
	local cameraPosition = targetCFrame.Position + (targetCFrame.LookVector * -CAMERA_OFFSET_BEHIND) + Vector3.new(0, CAMERA_OFFSET_UP, 0)
	game.Workspace.CurrentCamera.CFrame = CFrame.new(cameraPosition, targetCFrame.Position)
end

local function unlockCamera()
	cameraLocked = false
	game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
	local char = player.Character
	if char then
		game.Workspace.CurrentCamera.CameraSubject = char:FindFirstChild("Humanoid")
	end
end

local function setNoClip(enabled)
	local char = player.Character
	if not char then return end
	local hum = char:FindFirstChild("Humanoid")
	if hum then
		hum.PlatformStand = enabled
		hum.AutoRotate = not enabled


Comments

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

More universal scripts

See all
Script hub
17
3
Approved 35 minutes ago
Universal Script 📌
38
1
Approved 1 hour ago
Script hub
199
1.0k
Bumped 4 hours ago

Script hub

Lunyx Hub

Script hub
120.8k
221.8k
Bumped 4 hours ago
Key System
Script hub
10.7k
202.7k
Bumped 4 hours ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1