-
-
Save Windows81/0ce5e4eb249b9c3dcb850b766829ffa3 to your computer and use it in GitHub Desktop.
Run this on your script executor to allow custom CFrame camera-angle capturing via Rōblox chat.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local pl = game.Players.LocalPlayer | |
| local F = ' ]]CFrame.new(%f,%f,%f)*CFrame.fromEulerAnglesYXZ(%f,%f,%.0f),--[[' | |
| if _G.chat then _G.chat:Disconnect() end | |
| _G.cfs = _G.cfs or {} | |
| _G.looping = false | |
| function printcf() | |
| print('{--[[COPY FROM HERE') | |
| for _, cf in next, _G.cfs do | |
| print(string.format(F, cf.x, cf.y, cf.z, cf:toEulerAnglesYXZ())) | |
| end | |
| print('COPY UNTIL HERE]]}') | |
| end | |
| function slideshow_once() | |
| local cc = game.Workspace.CurrentCamera | |
| cc.CameraType = 'Scriptable' | |
| for _, g in next, _G.cfs do | |
| cc.CFrame = g | |
| wait(4.56) | |
| end | |
| cc.CameraType = 'Custom' | |
| end | |
| function slideshow_loop() | |
| _G.looping = not _G.looping | |
| if _G.looping then | |
| local cc = game.Workspace.CurrentCamera | |
| cc.CameraType = 'Scriptable' | |
| while _G.looping do | |
| for _, g in next, _G.cfs do | |
| cc.CFrame = g | |
| wait(4.56) | |
| end | |
| end | |
| cc.CameraType = 'Custom' | |
| end | |
| end | |
| _G.chat = pl.Chatted:Connect(function(m) | |
| if m == 'cfa' then | |
| local cf = game.Workspace.CurrentCamera.CFrame | |
| _G.cfs[#_G.cfs + 1] = cf | |
| elseif m == 'cfr' then | |
| _G.cfs[#_G.cfs] = nil | |
| elseif m == 'cfp' then | |
| printcf() | |
| elseif m == 'cfs' then | |
| slideshow_once() | |
| elseif m == 'cfl' then | |
| slideshow_loop() | |
| end | |
| end) | |
| print(_G.chat) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment