I am trying to tween a player’s location using their humanoid root part.
The block of code below works great in a server Script. When I try to use a Local Script, it makes the player’s character spin in a large circle - then moves the player’s camera along with the tween (but not the character).
local tweenInfo = TweenInfo.new(2)
local tweenPosition = TweenService:Create(humanoidRootPart, tweenInfo, {Position = tweenDestination.Position})
humanoidRootPart.Anchored = true
tweenPosition:Play()
local tweenCompleted = nil
tweenCompleted = tweenPosition.Completed:Connect(function()
humanoidRootPart.Anchored = false
tweenCompleted:Disconnect()
end)