Hello, What I am trying to do is when a player triggers a “ProximityPrompt” it moves sticks there camera to a block and not move but if the player dies it puts there camera back to normal.
I have look on youtube and other places and I cant find any information to help my issues.
I would provide a script but I can’t find anywhere to start the script.
I’m having trouble understanding on what your goal is. What does this mean?
Does this mean that the camera will be fixed to a part?
Yes sorry sometimes I need to understand that I might be able to read it but others wont.
Alright. So, I think that you need to first change the camera type to scriptable, like this:
workspace.CurrentCamera.CameraType = "Scriptable"
but you must do this from a LocalScript
.
Then, set the CFrame:
workspace.CurrentCamera.CFrame = part.CFrame
to the part you want. Of course, doing all of this after the event was triggered.
If this is confusing to you, this might take a while. I’m bad at explaining to new scripters.
Also don’t forget this:
You would have to connect a function to the humanoids .Died Event, and in it set the CameraType back to normal
1 Like