Skip to content

Instantly share code, notes, and snippets.

@Windows81
Created January 1, 2021 08:10
Show Gist options
  • Save Windows81/f101fdd5acce75ad6322fcbf71895581 to your computer and use it in GitHub Desktop.
Save Windows81/f101fdd5acce75ad6322fcbf71895581 to your computer and use it in GitHub Desktop.
Run this on your Rōblox client code-executor software to get some snazzy camera angles.
--Each pair consists of a camera position and focus.
local cfs={
Vector3.new(42,48,200),Vector3.new(76,48,237),
Vector3.new(-52,48,200),Vector3.new(-86,48,237),
Vector3.new(-.25,18,127),Vector3.new(-.25,6,0),
Vector3.new(170,100,-70),Vector3.new(-.25,30,30),
}
game.workspace.CurrentCamera.CameraType='Scriptable'
_G.running=true
while _G.running do
for i=1,#cfs,2 do
local cf=CFrame.lookAt(cfs[i],cfs[i+1])
game.workspace.CurrentCamera.CFrame=cf
wait(math.pi)
end
end
game.workspace.CurrentCamera.CameraType='Custom'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment