Hey Builders.
This is one of my first build project where it involves more build and less scripting and I have some troubles on my end.
I am making a game where the player pushes a ball up a hill with obstacles to help them push the ball up.
I don’t know if this was intended or if this is a bug.
My problem is when a part stops, at like a corner, and has its velocity at 0, it makes some interesting interactions with other parts when they, in my case, a tweening part.
Here is my script for the tweening piston :
local tween = game:GetService("TweenService")
local tween1 = tween:Create(script.Parent,TweenInfo.new(3,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),{Position = Vector3.new(-512.15, 141.698, -39.783)})
local tween2 = tween:Create(script.Parent,TweenInfo.new(3,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),{Position = Vector3.new(-513.718, 123.766, -39.783)})
while wait(3) do
tween1:Play()
wait(8.5)
tween2:Play()
wait(6)
end
It’s pretty basic. But I’m pretty sure the problem is involved in the actual physics itself.
Video of it working(notice how I have to move the ball for it to work):
Video of it not working :
Thoughts and feedback are greatly appreciated!