So I’m making a horror game, and I have a camera system. I am planning to add an animation when the character enters the cameras. It would look pretty weird for example, if you were looking at a camera in front the computer. Here’s what happens.
sorry for the low quality, I think thats on roblox’s part.
i made a different script with different names but u should be able to change stuff
local thing = script.Parent.ProximityPrompt
thing.Triggered:Connect(function(plr)
local char = plr.Character
local rootPart = char:WaitForChild("HumanoidRootPart")
if rootPart then
local lookAtPosition = script.Parent.Position
local newOrientation = (lookAtPosition - rootPart.Position).Unit
rootPart.CFrame = CFrame.new(rootPart.Position, rootPart.Position + newOrientation)
end
end)
depends on ur camlock script, why not make a boolvalue store it somewhere and when the prompt is triggered then it sets it to true and then ur script gets disabled
I don’t really understand the question but if you want to make the player face a certain direction, you just need to set Humanoid.AutoRotate to false (when set to true, the character rotates from walking and, in first person, moving the camera) and then setting the character’s CFrame.
Then when you want to unrestrict the character’s rotation set Humanoid.AutoRotate back to true.