local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local Background = workspace.DeathBackgroundBlue
if not character then return end
if not Background then return end
if not character.PrimaryPart then character.PrimaryPart = character.HumanoidRootPart end
local tween = TweenService:Create(Character.PrimaryPart, TweenInfo.new (3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {CFrame = Background.MainPart.CharAttach.WorldCFrame}):Play()
вроде так
Скрипт:
local Character = game.Players.LocalPlayer.Character:Clone()
local Background = workspace.DeathBackgroundBlue
TweenService:Create(Character.PrimaryPart, TweenInfo.new (3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {CFrame = Background.MainPart.CharAttach.WorldCFrame}):Play()