Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- local destinations = {
- CFrame.new(196.75387573242188, 2.9980247020721436, -234.80709838867188),
- CFrame.new(127.27082824707031, 2.9980247020721436, -119.6380615234375),
- CFrame.new(310.6056213378906, 2.9980247020721436, -232.6556854248047),
- CFrame.new(183.8242645263672, 2.9980247020721436, 31.61514663696289),
- CFrame.new(289.7371520996094, 2.9980247020721436, 21.79258155822754),
- CFrame.new(406.2591552734375, 2.9980247020721436, -219.95846557617188),
- CFrame.new(386.2557678222656, 2.9980247020721436, -264.6410827636719),
- CFrame.new(221.3898468017578, 2.9980247020721436, -75.41827392578125),
- CFrame.new(362.8822937011719, 2.9980247020721436, -80.82730865478516),
- CFrame.new(174.37269592285156, 2.9980247020721436, 25.34210777282715),
- CFrame.new(117.36202239990234, 2.998026132583618, -100.84730529785156)
- }
- local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
- local function teleportWithTween(destination)
- local tween = TweenService:Create(humanoidRootPart, tweenInfo, {CFrame = destination})
- tween:Play()
- tween.Completed:Wait() -- Attendre que le tween soit terminé avant de passer à la prochaine position
- end
- for _, destination in ipairs(destinations) do
- teleportWithTween(destination)
- wait(10) -- Attendre 10 secondes entre chaque tween
- end
Advertisement
Add Comment
Please, Sign In to add comment