#How could i make the rig walk over to the mouse location
1 messages · Page 1 of 1 (latest)
wouldnt that js tp it tho
i need the character to like
move there
like walk over
Tween it
tweenInfo = TweenInfo.new([however long you want it to take])
Goal ={Position = click.Position}
Tween = tween.creat(goal, info, part)
Tween:play
Not sure abt the order but you get what I mean
If you want to be extra you can make a function that gets the studs from the rig to the end location and give it a fixed studs per second and get the time it needs to take that way
Ik it’s late but it’s because humanoid:Move must be called continuously
Another detail however is that Humanoid:Move takes a direction Vector relative to the humanoid root part so it wouldn’t go in the right direction unless you get the direction vector by subtraction. An alternative that will allow you to call it once Humanoid:MoveTo() which will finish for yourself and does take a position
Technically tween would get you to the target although there will be no animation I think