Checked All The Things In the Roblox Wiki Experimented With the Module script And Never Worked. Please Help me Make a script to Run This Module Script
01 | repeat wait () until game.Workspace.CurrentCamera ~ = nil |
02 |
03 | local c = game.Workspace.CurrentCamera |
04 | local data = LoadLibrary( "RbxUtility" ).DecodeJSON(script.CutsceneData.Value) |
05 | local rs = game:GetService( "RunService" ).RenderStepped |
06 |
07 | function tweenCam(c 1 ,f 1 ,time,fov,roll) |
08 | local c 0 ,f 0 ,fv 0 ,r 0 ,frames = c.CoordinateFrame,c.Focus,c.FieldOfView,c:GetRoll(),time/ 0.015 |
09 | for i = 1 ,frames do |
10 | c.CameraType = "Scriptable" |
11 | c.CoordinateFrame = CFrame.new(c 0. p:lerp(c 1. p,i/frames),f 0. p:lerp(f 1. p,i/frames)) |
12 | c.FieldOfView = (fv 0 +(fov-fv 0 )*(i*( 1 /frames))) |
13 | c:SetRoll(r 0 +(roll-r 0 )*(i*( 1 /frames))) |
14 | rs:wait() |
15 | end |
I am sorry, but this site isnt a request site. If you want to know how to script this you should go on "Roblox Wiki". Learn about ButtonGUI and how to connect things with it via a script. You could make a button clicked event in a script and just script what you want it to do. A cut scene? Script and play it with "play ()".