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

how to make the player's camera rotate in a fixed x axis in first person (classic doom camera)?

Asked by 2 years ago

The question is very simple really, the problem is how I to even make it. I looked at many forum posts online and couldn't find a solution that explained it well enough. I even found one that supposedly worked and "explains the script" problem is that they didn't explain it well enough for me to get it working. I've made many draft scripts that were all tested and failed. The closet's effect on what I wanted was the complete opposite which I made by complete accident. I tried looking into the orbital camera but there really isn't much info on it. Many "solutions" just read me to the official roblox dev site which reviewed camera manipulation which didn't help much. Then there was another "solution" which redirected to a forum post that also didn't help due to local variables that would only fit in their game. Other solutions just used a brick and made it into a non-rotatable camera attached to the player. I would really appreciate some help here right now.

TL: DR not much working past solutions that explain how to get the thing working need help making the thing

0
Can you show or visualize of what your goal is? Please send a recording T3_MasterGamer 2189 — 2y
0
Heres two walkthroughs of doom 1 and chex quest, https://youtu.be/S5MSM5Inuz0 https://youtu.be/zh8HaoVRAAE. Notice how in both walkthroughs the player never looks up or down, yeah that's because they can't. And that's what I want to accomplish. Tornado12546 0 — 2y
0
It's been a week since I posted the question, does it really take this long to answer a question I have? (this is my first question I made here so I wouldn't quite know) Tornado12546 0 — 2y
0
2 weeks now :/ Tornado12546 0 — 2y
View all comments (2 more)
0
Here's a test script that I tried to make with no success Tornado12546 0 — 2y
0
local RunService = game:GetService('RunService') local Camera = workspace.CurrentCamera local player = game:GetService("Players").LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local root = character:WaitForChild("Head") --Camera.CameraSubject=root --Camera.CameraType = Camera.CameraType.EnumType.Attach local NewCameraCFrame = CFrame.new(root - (Camera.CFrame. Tornado12546 0 — 2y

Answer this question