-
What do you want to achieve? Keep it simple and clear!
I want to create a humanoid character that can use move to but I also would like it to roll while moving
-
What is the issue? Include screenshots / videos if possible!
I can’t seem to get it to roll when using the humanoid:MoveTo function
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tries to use constraints, velocity, humanoid stateTypes, and nothing seems to work!
Here’s a video to show what I want
I want the ball to roll to the part but I can’t figure out how? Any Ideas would be greatly appreciated!
Thanks in advance!
Try running a for loop with the rotation CFRAME values to see if it can give off the illusion that it is rolling.
Otherwise, try unanchoring the part to see if that works.
1 Like
Thanks I’ll try that. The part is not anchored though I should have mentioned that earlier.
Put script in humanoid model:
script.Parent:FindFirstChildOfClass('Humanoid').PlatformStand = true
The problem with this is that the humanoid doesn’t move when I activate platform stand
Are you activating it through properties? If yes, It just turns off by itself.
I’m activating it through script and the whole thing stops moving:
This is the script:
Have you tried pathfinding?
(chars)
No, I didn’t think pathfinding would help as all I need to do is make the ball roll towards a desired object. Do you think pathfinding would help?
Change humanoid.PlatformStand = true to
spawn(function()
wait(0.05)
humanoid.PlatformStand = true
end)
1 Like
Oh my gosh it works! Thank you! do you think you could explain what the difference is real quick?
When I ran it, It didn’t work for me.
Maybe do wait(0.1)
1 Like
But why didn’t my previous code work compared to this?
Maybe Moving the humanoid doesn’t move immediately just in milliseconds.
When a humanoid is platform standing, it can’t move.
But you can make it platform stand while the humanoid is moving
1 Like
Ohh! That makes a load of sense. Now I can use this knowledge to my advantage! Thanks!