I want to tween a players position smoothly from their current position to a new position.
I tried tweening the humanoid root part but that just disconnects the humanoid root part from the body not bringing any other part of the character, same thing with tweening the torso
3 Likes
I just tried tweening my character’s HumanoidRootPart, and it worked just fine for me.
1 Like
Have you tried tweening the CFrame of the rootpart?
8 Likes
local TweenService = game:GetService("TweenService")
game.Players.PlayerAdded:Connect(function(player)
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local info = TweenInfo.new(2) -- how long the tween will play for
local Animation = TweenService:Create(hrp, info, {Position = workspace.RandomPart.Position})
Animation:Play()
end)
1 Like
Did you tween its position or its CFrame?
I tweened the Position. Not the CFrame.
I guess you could try character:PivotTo(CFrame)
?
Model:PivotTo(part.CFrame) hasn’t been released yet
1 Like
It has in non-team-create games.
Tween the cframe. Because it’s a rig, the entire thing will move
1 Like
I mean I guess CFrame would be better, but when I used Position it still worked.
1 Like