Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How i can do a Script to see around corners?

Asked by 5 years ago

Like when u press Q and the head moves to the left and when press E to the right. Like Rainbow Six Siege

i tried to do it with a animation but dont works

pls halp.

1 answer

Log in to vote
0
Answered by 5 years ago

I don't think you need to move anything. I guess you are making a first person game, otherwise you don't need to think about corner. in the first person game, whether you move head and do animation is irrelevant. all you need, is move the camera, like this,

workspace.CurrentCamera.CoordinateFrame = CFrame.new(player.Character.Head.Position + Offset, lookDirection)

of course, you need to work on which direction it looks when you press some key, or just turn an angle instead

Ad

Answer this question