This is another part for my survival game! I've figured out what I've needed, the player holding the curtains, and detecting if they're facing at it or not! The only thing left to do is when they press the Spacebar, the player jumps towards the position they're facing at.
I have a bit of code for this such as
if mouse.Target == game.Workspace.facingright then
UIS.InputBegan:Connect(function(input, gameProcessedEvent)
if input.KeyCode == Enum.Keycode.Space then
--jump code would go here.
end
end)
end
As I don't know how to start where the player jumps towards the position. I've made many attempts for this such as having the player's camera be stationary, but still able to be rotated, (like first person.) I've disabled the player jumping manually, as the script makes them get closer to the position they're facing. But I still can't seem to figure this out.
Can anyone help me on this? Thanks!
Any working answer is appreciated, thanks!

2 comments
I appreciate this answer so much! However, I should've been more specific. What I'm looking for is that the players camera moves towards the position they're facing.
Then use cframe, hold on ill update my answer and if its also not what your looking for then ill fix it until you get ur answer