Hi. I really need some help. I’d like to know if this is possible or not without using TweenService.
-
What do you want to achieve? A more convenient way of transitioning parts without using TweenService.
-
What is the issue? Technically question 1, except I have no idea of how to transition parts without using TweenService.
-
What solutions have you tried so far? I’ve tried many different functions and so on, none of them work.
Alright, so here we go. If you know about TweenService (which hopefully you do), you know that code samples many look like this:
local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In) -- And many more that you can add here.
local Goal = {}
Goal.Position = Vector3.new(39.435, 12.345, 93.102)
local Object = game.Workspace.Object
local Tween = TweenService:Create(Object, Info, Goal)
Tween:Play()
Tween.Completed:Wait()
Object:Destroy()
But I’d like to know if there are other ways to use this “Goal” method. For example, here’s a good example of what I want.
local Goal = Vector3.new(350.239, 43.849, 10.239)
local Object = game.Workspace.Object
while wait() do
Object.Position = Goal
end
However, this won’t work because it automatically teleports to the specified Position instead of slowly making its way toward that position. I know I know you’re going to say for loops would help in this case. Well, yes, but it’d take tons of precision for that kind of loop to make the object reach the exact specified position.
local Goal = Vector3.new(350.239, 43.849, 10.239)
local Object = game.Workspace.Object
for i = 1, 350 do
Object.Position = Object.Position+Vector3.new(3, 0.2, 0.025)
task.wait()
end
This will not help me reach the exact position specified. Instead, it will either go over the specified position, or it will be too far away from the position specified. Please, if you have any ways that I can make the part transition to the specified position without TweenService (Because TweenService limits quite a few things, such as Tweening the specified part only, even though another part can be welded to it with a WeldConstraint, and so many more issues that would make this topic a completely different topic.), then I’d be very grateful.