Proximity Prompt fires Camera Manipulation

  1. What do you want to achieve? I want to make a camera manipulation, using proximity prompt. Basically the prompt fires the camera event for a local(/single) player (who has fired the event)

  2. What is the issue? I know how to use RemoteEvents and proximity prompts, but I need more advices or better scripts.

  3. What solutions have you tried so far? N/A

4 Likes

By the way I read some articles about camera manipulations, still I don’t find any answers.

1 Like

Well, you could try creating a part where you want the camera to be. (You would set the transparency to 1 and CanCollide to false) then, when the proximity prompt is activated you could get the player’s camera and tween it to the position of the part. Or, if you wanted to instantly put the camera in the position, just set the camera’s position to that of the part without tweening it. (I believe this would all be done in a local script)

2 Likes

This is where I had some troubles, could you explain it?

2 Likes

It’s actually quite simple to do. To get the player’s camera, it is:

local camera = workspace.CurrentCamera

From there, you can change many different properties of the camera. Here is an article on the DevHub that might help you.

Oh now I understand, thank you!

2 Likes

yo im having the same problem rn, because we can only manipulate the camera with a local script (from what I know) and to use a proximity prompt you need a script. I’ve tried using an event but it doesn’t seem to work, it would be great if you can help me!

1 Like