Universal Script 📌
11.4k Views
328 Executions

Position Lock Loop Teleport

Universal Script 📌
venox
venox10 followers
2 years 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

Features: -Teleports player to a designated position. (position of char when executing) -Executes every 2 seconds. (can be changed)

Updates

  1. Script edited: Create script

View Raw
getgenv().teleport = true

local player = game.Players.LocalPlayer
local character = player.Character
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

local currentPosition = humanoidRootPart.CFrame
local targetPosition = Vector3.new(currentPosition.X, humanoidRootPart.Position.Y, currentPosition.Z) 

while getgenv().teleport do
    wait(2) -- Teleport Delay (freeze char. under 1 second)
    local TweenService = game:GetService('TweenService')
    local currentCFrame = humanoidRootPart.CFrame
    local rotation = currentCFrame - currentCFrame.p

    local targetCFrame = CFrame.new(targetPosition) * rotation

    local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear)
    local tweenProperties = {
        CFrame = targetCFrame
    }

    local tween = TweenService:Create(humanoidRootPart, tweenInfo, tweenProperties)
    tween:Play()
end



Comments

2
Log in to join the conversation. Login
StarProjectz's profile picture
StarProjectz2 years ago(edited)

im using this for a stand script!

1
StarProjectz's profile picture
StarProjectz2 years ago(edited)

thanks alot!

1

More universal scripts

See all
Universal Script 📌
3
1
Approved 3 minutes ago
Key System
Universal Script 📌
2
1
Approved 9 minutes ago
Script hub
3
1
Approved 12 minutes ago
Key System
Universal Script 📌
13
0
Approved 22 minutes ago
Universal Script 📌
12
2
Approved 31 minutes ago
Universal Script 📌
30
4
Approved 37 minutes ago
Key System