
11.4k Views
328 Executions
Position Lock Loop Teleport
Universal Script 📌
venox10 followers
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo 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
Script edited: Create script
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








im using this for a stand script!
thanks alot!