Run it
Copy the script and paste it into your executor.
player = .Players.LocalPlayer
character = player.Character player.CharacterAdded:()
UserInputService = :()
Players = :()
RunService = :()
TweenService = :()
isFollowing =
isMoving =
targetPlayer =
offset = .(, , )
followSpeed =
moveSpeed =
screenGui = .(, player.PlayerGui)
screenGui.Name =
textLabel = .(, screenGui)
textLabel.Text =
textLabel.Font = .Font.Arcade
textLabel.TextColor3 = .(, , )
textLabel.TextSize =
textLabel.BackgroundTransparency =
textLabel.Size = .(, , , )
textLabel.Position = .(, , , )
textLabel.TextTransparency =
tweenInfo = TweenInfo.(, .EasingStyle.Linear, .EasingDirection.Out)
goal = {TextTransparency = }
tween = TweenService:(textLabel, tweenInfo, goal)
tween:()
tween.Completed:(()
textLabel:()
)
moveButton = .(, screenGui)
moveButton.Text =
moveButton.Font = .Font.SourceSans
moveButton.TextSize =
moveButton.Size = .(, , , )
moveButton.Position = .(, , , )
moveButton.BackgroundColor3 = .(, , )
moveButton.TextColor3 = .(, , )
followButton = .(, screenGui)
followButton.Text =
followButton.Font = .Font.SourceSans
followButton.TextSize =
followButton.Size = .(, , , )
followButton.Position = .(, , , )
followButton.BackgroundColor3 = .(, , )
followButton.TextColor3 = .(, , )
()
closestPlayer =
shortestDistance = .huge
_, otherPlayer (Players:())
otherPlayer ~= player otherPlayer.Character otherPlayer.Character:()
otherCharacter = otherPlayer.Character
distance = (character.HumanoidRootPart.Position - otherCharacter.HumanoidRootPart.Position).Magnitude
distance < shortestDistance
shortestDistance = distance
closestPlayer = otherPlayer
closestPlayer
(deltaTime)
targetPlayer targetPlayer.Character targetPlayer.Character:()
targetPosition = targetPlayer.Character.HumanoidRootPart.Position
currentPosition = character.HumanoidRootPart.Position
direction = (targetPosition - currentPosition).Unit
newPosition = currentPosition + direction * moveSpeed * deltaTime
character.HumanoidRootPart.CFrame = .(newPosition, targetPosition)
isMoving =
(deltaTime)
targetPlayer targetPlayer.Character targetPlayer.Character:()
targetRootPart = targetPlayer.Character.HumanoidRootPart
targetPosition = targetRootPart.Position - targetRootPart.CFrame.LookVector * offset.Z
currentPosition = character.HumanoidRootPart.Position
direction = (targetPosition - currentPosition).Unit
newPosition = currentPosition + direction * followSpeed * deltaTime
character.HumanoidRootPart.CFrame = .(newPosition, targetRootPart.Position)
isFollowing =
moveButton.MouseButton1Click:(()
targetPlayer = ()
targetPlayer
isMoving = isMoving
(isMoving )
()
)
followButton.MouseButton1Click:(()
targetPlayer = ()
targetPlayer
isFollowing = isFollowing
(isFollowing )
()
)
RunService.Heartbeat:((deltaTime)
isMoving
(deltaTime)
isFollowing
(deltaTime)
)
скрипт перемащает игрока за спину 2 игрока момент из one punch man приятной игры можно использовать в других играх есть 2 вида перемищения 1 на X 2 на C

Universal