- What do you want to achieve?
Tween a player’s stand to be in front of them
- What is the issue?
The tween doesnt play, there are no errors
- What solutions have you tried so far?
I made sure that the tween object exists and the weld exists as well. I tried running the same code from the Command Bar and it seemed to work perfectly. The tween run from the script doesn’t play. (Yes the script runs, I tried adding a print statement)
Local Script (This function is called on all clients, so it is not a replication problem):
local createdTween = TweenService:Create(standWeld,TweenInfo.new(0.2),{C0 = standWeld.Part0.CFrame:ToObjectSpace(standWeld.Part1.CFrame),C1 = standWeld.Part0.CFrame:ToObjectSpace(standWeld.Part1.CFrame * CFrame.new(0,1,-3))})
createdTween:Play()
createdTween.Completed:Connect(function()
createdTween:Destroy()
end)