My friend and I have made a dungeon and before the latest ROBLOX update when you touched the entrance your camera would face downwards and be above your head. Now ROBLOX has updated and the script only functions when its an active script as soon as the player joins the game
it also only works as a localscript
This is the script:
local offset = Vector3.new(-2.5,15,0)
local fieldOfView = 80
local player = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera
local RunService = game:GetService("RunService")
--player.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam
camera.FieldOfView = fieldOfView
camera.CameraType = "Scriptable"
function onRenderStep()
local playerPosition = player.Character.HumanoidRootPart.Position
local cameraPosition = playerPosition + offset
camera.CoordinateFrame = CFrame.new(cameraPosition, playerPosition)
end
please help
thank you
