So I want the player to not be able to look around with the camera unfortunately I don't really know how to do this. I am relatively new to coding and I know I have been asking a lot of questions so I am sorry about that.
Please Reply
Thanks
So I want the player to not be able to look around with the camera unfortunately I don't really know how to do this. I am relatively new to coding and I know I have been asking a lot of questions so I am sorry about that.
Please Reply
Thanks
Set the camera every frame with RenderStepped from RunService, then simply disconnect the events.
local Connection = {}
Connection[1] = game:GetService("RunService").RenderStepped:Connect(function()
workspace.CurrentCamera.CFrame = CFrame.new(--[[your pos & angle]])
end)
--However you want to stop the cam force
--eg with mouse click
Connection[2] = game.Players.LocalPlayer:GetMouse().Button1Down:Connect(function()
Connection[1]:Disconnect()
Connection[2]:Disconnect()
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
could setting the CameraType to Fixed be another way of doing this?
no, but you can position the camera with the block
Ok can you answer the question for me by doing that