I have a moving platform with a dummy standing on it, and I used Cframes at first to get the platform to move. When I welded the dummy to the platform, the dummy moved with it, but now I am using Tweening to get the platform to move, so it is less choppy. But, now the dummy welded to it stays in place. I cannot make it a union because the dummy has meshes. How can I get this to move with the platform?
you can Tween the CFrame with TweenService as well. i would recommend having a part in the position you will be tweening it to so it tweens correctly. Also this goes in #help-and-feedback:scripting-support i believe
I am using tweenservice, I think. I am using this script I found online (i have never used tweening before)
local Service = game:GetService(“TweenService”)
local Info = TweenInfo.new(2)
local Loop = true
repeat
local Anim = {Position = Vector3.new(23.81, 0.499, -30.049)}
local Tween = Service:Create(script.Parent, Info, Anim)
Tween:Play()
wait(1) -- Change Time Delay If Needed
local Anim = {Position = Vector3.new(-2.19, 0.499, -30.049)}
local Tween = Service:Create(script.Parent, Info, Anim)
Tween:Play()
wait(1)
until Loop == false
as i said you can tween a parts CFrame. and welded parts will move with it. So instead of tweening its Position tweens its CFrame
I’ll try that, thanks. _______
do make sure you have a cloned part put exactly at where in workspace you want it to go to same rotation etc and call its CFrame as the CFrame to move it to otherwise you will be changing the CFrame to tween to a lot