#funky train movement
1 messages · Page 1 of 1 (latest)
@weary jewel i think this is it
mTweenInfo = TweenInfo.new(
0.1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
);
but the code to move the train is very messy as i didnt make it
my mate did
Try EasingDirection.InOut
but this would effect the whole train system?
Don't think so, just changing the tween a little
Almost home
the tween is already fine, this has something to do with your code
Any other spot you make TweenInfo?
You sure? It certainly looks like it's easing from point to point, I feel like this could still be an issue
I can send both files which I think are related
are they large files...
250 lines and 82
so depends what u class as large
i think these are the only two important ones
Oh are you using tweens to move it or a constraint?
I mean not sure tbf
Looks like a bit of both
and it looks like you... lerp too?
Gosh this is confusing.
Script looks real old too.
he's moving the train using a translation which i assuming the alignposition with tween
function UpdateTrainCFrame(pNewCFrame)
mTarget.CFrame = pNewCFrame;
if (mCurrentTween) then
mCurrentTween:Cancel();
end
local goal = {}
goal.CFrame = mTarget.CFrame;
--goal.Position = mTarget.Position;
mCurrentTween = TweenService:Create(mCabin.Translation, mTweenInfo, goal);
mCurrentTween:Play();
--mCabin.Translation.BodyPosition.Position = mTarget.Position;
--mCabin.Translation.BodyGyro.CFrame = mTarget.CFrame;
end
he commented out the constraint stuff but yeah there could be a few methods in tandem
why are you using physics object to move it though?
We are not
But you can
the code says you're moving it using physics object
I don’t even know what on earth
first of all, did you code this?
You may wanna talk to your mate, hard to help someone who didn't write the code they need help with