alexsany
(archived)
May 8, 2022, 4:17pm
#1
Hello! So I want make a HumanoidRootPart look at the direction it moves. Sure you can say “Why not just use Humanoid.MoveDirection
?” The thing is that the moment when I need that, player can’t move, only physics. I have tried HumanoidRootPart.AssemblyLinearVelocity
and HumanoidRootPart.CFrame.LookVector
but they don’t work as I need. Is there a way to make it?
Here the example of what I want to do:
So here on the picute stickman falls down . And so I want face his HumanoidRootPart
look down
Like that:
Any help appreciated!
4 Likes
Valkyrop
(JustAGuy)
May 8, 2022, 5:01pm
#2
Maybe one of these might help -
To be simple I want my car to drift only if the direction it’s steering is not equal to the direction it’s moving. So it would only drift if the wheel is facing sideways relative to the steering direction of the car. It seems simple but I have been stuck on this for the past 2 hours and all I figured out was getting the steer direction.
Diagram of what I mean
[drift-diagram]
I have tried multiple times but this is what I am at right now and still doesn’t work. The velocity is the direction…
So, I’m trying to make a drawer open when a player touches it, the problem is that I would like the drawer to ALWAYS open forward (even if I rotate it 90 degrees), I put a video showing how it looks when I rotate it to the side, see:
I would like it to always open to the front, but I don’t know how it would do this (I would like to do this in a way that I don’t have to worry about changing the drawer script anymore)
Script:
local CollectionService = game:GetService("CollectionServi…
Hello all,
I’m trying to make an if statement that checks if a part is facing a certain direction. How would I do this?
Is there a property that I can check?
-- example
if part.WhatWouldGoHere = Value then
game.Workspace.Part.Color = 'Red'
end
1 Like
alexsany
(archived)
May 8, 2022, 5:29pm
#3
Thanks, helped to find out how to make it!