RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Write me a script for a shoulder-view camera"
-- local script local camera = workspace.CurrentCamera local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoidRootPart = character.HumanoidRootPart camera.CameraType = Enum.CameraType.Scriptable camera.FieldOfView = 70 local cameraDistance = 10 local cameraHeight = 5 local cameraOffset = Vector3.new(0, cameraHeight, cameraDistance) while true do local characterPosition = humanoidRootPart.Position local cameraGoal = characterPosition - cameraOffset camera.CFrame = CFrame.new(cameraGoal, characterPosition) wait() end