Universal Script 📌
50 Views
24 Executions

gfgdgfsfsfsf

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

erterker

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer

local TELEPORT_OFFSET_DOWN = 4.5
local isActive = false
local currentTarget = nil
local noClipEnabled = false

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
	end
	for _, part in ipairs(char:GetDescendants()) do
		if part:IsA("BasePart") then
			part.CanCollide = not enabled
		end
	end
	noClipEnabled = enabled
end

local function teleportToTarget()
	if not currentTarget then return end
	local char = player.Character
	if not char then return end
	local hrp = char:FindFirstChild("HumanoidRootPart")
	if not hrp then return end
	local targetChar = currentTarget.Character
	if not targetChar then return end
	local targetHrp = targetChar:FindFirstChild("HumanoidRootPart")
	if not targetHrp then return end

	setNoClip(true)

	local targetPos = targetHrp.Position
	local newPos = targetPos + Vector3.new(0, -TELEPORT_OFFSET_DOWN, 0)


Comments

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

More universal scripts

See all
Universal Script 📌
50
1
Approved 2 hours ago
Script hub
205
1.1k
Bumped 4 hours ago

Script hub

Lunyx Hub

Script hub
120.8k
222.1k
Bumped 4 hours ago
Key System
Script hub
10.7k
203.7k
Bumped 5 hours ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.4k
301.1k
Bumped 8 hours ago