Universal Script 📌
11.4k Views
369 Executions

Position Lock Loop Teleport

Universal Script 📌
venox
venox10 followers
3 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
Script hub
4.1M
558.4k
Bumped 5 minutes ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow #1 *OP*

Script hub
5.4k
28.8k
Bumped 59 minutes ago
Key System
Script hub
14.0k
28.4k
Bumped 2 hours ago
Universal Script 📌
339.0k
74.9k
Bumped 2 hours ago
Script hub
462.0k
989.7k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 52 Supported Games + OP!

Universal Script 📌
66
6
Approved 3 hours ago