Rust Styled Alt Looking

In Facepunch Studios’ Rust, there is a feature where you can hold LeftAlt to continue moving in the same direction while freely moving your camera around without affecting your move direction.
This is useful because if you are trying to run a long distance as fast as you can, you can go in a straight line without lowering your speed trying to look around.

I have remade this in Roblox, and the model includes a Vector3Value that stores the original camera orientation and a BoolValue that states whether or not the player is AltLooking.

Model: https://www.roblox.com/library/6941061167/Rust-Styled-Alt-Looking

How To Use

You can determine whether or not the player is AltLooking by using

Character.AltLook.IsAltLooking.Value

This can be used with ViewModels by replacing Camera.CFrame with:

(CFrame.new(Camera.CFrame.Position) * Character.AltLook.CameraPos.Value)

You can also stop alt looking it by calling the BindableEvent (from a localscript)

Character.AltLook.StopAltLooking:Fire()

To answer some questions you may have:

This works in general, not just for gun kits. The added line of code was for ViewModels to make them be facing straight forward since ViewModels are always attached to the camera. Normal tools are attached to the character, so this is not needed.

Place the script in StarterCharacterScripts to get it to work.

In the video, when I shoot the gun it is to showcase how you can use the BindableEvent to make it stop alt looking when you perform an action

23 Likes

Sorry, I can’t tell;

Does this only work with Gun Systems, or just in General it works? Because I’m really unsure on what I have to do/get for this to work.
Where do you place the Script? I’d assume in StarterPlayerScripts but I can’t be sure.

Perhaps edit the post is it’s a little more clear? Thanks, Arid.

1 Like

I edited it, I think it should answer your questions. My bad for not clarifying those

1 Like

In TF2 (as far as I know) when you hold Alt, and move your mouse around, it makes your character move at the speed and direction you’re moving your mouse. Perhaps you could add that in as a feature to toggle?

1 Like

I could do that but it would be a separate thing from this I think

1 Like

I suggest adding a limit to how far back they can look, Other than that this is pretty cool

1 Like

Yeah I was gonna suggest something like this. Maybe something similar to Escape from Tarkov where the furthest you can stray off from the original camera position is like 45 degrees. When I alt look in Rust I feel like an owl because I can just twist my head 180 degrees.

2 Likes

This is sick! I’ve been looking for something like this for a while. Great job!

I appreciate you taking the time to make it.

Sorry for reviving this post?
But are you still working on this?

model link doesn’t work anymore does anyone have it

I have it?
It still works
LoL
/

could u send it to me? i’m seeing multiple people saying it doesn’t actually work anymore.

This resources works, But is incompatible with ACS guns. Further editing is required for people who want to use it with ACS guns.

2 Likes