Ill make it simple: I want to make the character play a certain walking animation when going forward and another when going backwards, this is what i've tried so far:
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
local Humanoid = Character.Humanoid
local Camera = workspace.CurrentCamera
local Result = Camera.CFrame:VectorToObjectSpace(Humanoid.MoveDirection)
while true do
wait(1)
print(Result) --This prints 0,0,0 every 1 second- Doesnt work.
end
Anything that helps me reach my goal would be appreciated, thanks.

3 comments
You might want to use lookvector or something. Might want to look up a tutorial, I'll be back soon with an update.
Okay, you actually might want to use UIS(UserInputService) search up a tutorial about UIS. This might help you.
The UserInputService worked, but with some glitches, i guess i can fix that with no problems,thanks!