I am trying to move a humanoid model from 1 position to another using tween service. The distance between 2 positions is 8 studs. I want to achieve the closest speed to the actual Roblox player, which if I am not wrong is 16 studs per second. So, if I were to try and move the character, I would need tween to last only 0.5 seconds, right?
I just did not use tween service before, and only read the documentation.
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
local character = workspace.Character -- The humanoid model
local goal = CFrame.new() -- Whatever position you're trying to get character to
local tween = TweenService:Create(character, tweenInfo, {CFrame = goal})
On an unrelated note, the code I just provided is just to fulfill the minimum character requirement. I don’t actually know if it will work either.