How to Make a Cutscene Camera | 2024 Roblox Studio

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

Комментарии • 91

  • @kevlarstudiorblx
    @kevlarstudiorblx  6 месяцев назад +14

    local tweenservice = game:GetService("TweenService")
    local plr = game.Players.LocalPlayer
    local currentCamera = workspace.CurrentCamera
    local folder = workspace:WaitForChild("Cutscene")
    local db = true
    local function cueCutsceneCam(speed)
    local tweeninfo = TweenInfo.new(speed, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
    currentCamera.CameraType = Enum.CameraType.Scriptable
    currentCamera.CFrame = folder[1].CFrame
    for i = 2, #folder:GetChildren() do
    if folder:FindFirstChild(i.."S") then
    currentCamera.CFrame = folder[i.."S"].CFrame
    else
    tweenservice:Create(currentCamera, tweeninfo, {CFrame = folder[i].CFrame}):Play()
    wait(tweeninfo.Time)
    end
    end
    currentCamera.CameraType = Enum.CameraType.Custom
    end
    workspace:WaitForChild("Trigger").Touched:Connect(function(touched)
    if touched.Parent == plr.Character and db == true then db = false
    cueCutsceneCam(3)
    wait(5)
    db = true
    end
    end)

    • @Maskeowl
      @Maskeowl 6 месяцев назад

      thanx

    • @willthewhitetiger
      @willthewhitetiger 5 месяцев назад +2

      idk why but the comment says "local folder = workspace:WaitForChild("Cutscene")" however the video says "local folder = workspace.Cutscene" the one in the comment didnt work for me however typing the thing in your video directly did

    • @kevlarstudiorblx
      @kevlarstudiorblx  5 месяцев назад +1

      Thats odd, thanks for letting us know! Our guess is that it may have been an issue with the syntax from copying text in youtube.
      Although, were glad it worked out in the end for you!

    • @whitetalewolf_V1
      @whitetalewolf_V1 4 месяца назад

      on the tutorial as you showed to put 35 it does not skip and it remains blocked on the first cam

    • @OASonicTM
      @OASonicTM 4 месяца назад +1

      @@whitetalewolf_V1it’s 3S

  • @kpamzz6443
    @kpamzz6443 6 месяцев назад +6

    this guy explain more details than the other tutorial, hope you make a tutorial video about scripting

  • @FabryDolly
    @FabryDolly 6 месяцев назад +2

    Tysm for this video!

    • @kuwiest
      @kuwiest 6 месяцев назад +1

      hi ralsei

  • @ToastyYTR
    @ToastyYTR 6 месяцев назад

    Yo this is a w how to video!! Keep up the good work! 😄👍

  • @PurpleGuyMemes
    @PurpleGuyMemes Месяц назад

    criminally underrated

  • @furizagold
    @furizagold 2 часа назад

    Thx

  • @Ant9cs
    @Ant9cs 6 месяцев назад +1

    fire video 👍

  • @FestimBloxTV
    @FestimBloxTV 5 месяцев назад +2

    tysm

  • @l2708l
    @l2708l 3 месяца назад

    I LOVE SO SO MUCH 😭😭😭😭

  • @RollingSkyAC
    @RollingSkyAC 2 месяца назад +1

    Great tutorial! 🎉 But last question, how can I add and let the textbox out during camera moving, like those obby game🤔

  • @Ultrabot-k
    @Ultrabot-k Месяц назад

    Tanks bro!!!

  • @SaphirGX
    @SaphirGX Месяц назад +2

    how to add music

  • @AlevStudios
    @AlevStudios 22 дня назад

    i made the trigger part in the folder and i made the folders name "Objective8" i made it when i touch the trigger part the cam will go to the 1, from 1 to 2 with 10 seconds. and i made when i touch trigger so a text get in the screen. so i made some sort of cutscene with texts.

  • @wolfy9802
    @wolfy9802 14 дней назад

    Yo, how do u make a cutscemee play along with a roblox animation editor animation playing at the same time?

  • @Hanniell-i5v
    @Hanniell-i5v 5 месяцев назад

    TYSMMM

  • @asriel_4955
    @asriel_4955 4 месяца назад

    maybe if u can make it so the parts act as a path for the camera to take? and the time it takes to go between them is constant. because sometimes it can be 1 second but depending on the length there is between the parts it will go faster or slower

  • @ScoobRules
    @ScoobRules 6 месяцев назад +2

    do u know how to make them loop??

  • @PixelProwlerPlays
    @PixelProwlerPlays Месяц назад

    is there a way to make the animation looped and make it start even if the player doesn't touch it?

  • @从.从
    @从.从 6 месяцев назад

    better way is to use animation editor. Make it a model and rename a part HumanoidRootPart. then dd a script to have the camera set to it.

  • @abiyyuzn
    @abiyyuzn 3 месяца назад

    what if we want to make another trigger and make it another cutscene?

  • @Therealkusonokiplays
    @Therealkusonokiplays Месяц назад

    i copied and pasted the code but it didn't work

  • @yoyoyoyoyjaj
    @yoyoyoyoyjaj 5 месяцев назад

    This is so good man no bullshit

  • @BLODSWIPER
    @BLODSWIPER 6 месяцев назад

    How to give it a cooldown so the same player cant trigger it again within a time limit.

  • @samuraii.10
    @samuraii.10 5 месяцев назад

    Can you do a video explaining the script??? Its interesting. Btw, tysm!!

  • @SmartKatega
    @SmartKatega 6 месяцев назад +3

    can u show how to make the cutscene appear when u join the game?

    • @kevlarstudiorblx
      @kevlarstudiorblx  6 месяцев назад +2

      We will use 'repeat wait(1) until game:IsLoaded().' This will wait 1 second repeatedly until the game loads for the player. Then the loop will stop and continue to the next line, which is 'cueCutsceneCam.' This replaces the trigger function.
      Replace your code inside your local script with this:
      local tweenservice = game:GetService("TweenService")
      local plr = game.Players.LocalPlayer
      local currentCamera = workspace.CurrentCamera
      local folder = workspace:WaitForChild("Cutscene")
      local db = true
      local function cueCutsceneCam(speed)
      local tweeninfo = TweenInfo.new(speed, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
      currentCamera.CameraType = Enum.CameraType.Scriptable
      currentCamera.CFrame = folder[1].CFrame
      for i = 2, #folder:GetChildren() do
      if folder:FindFirstChild(i.."S") then
      currentCamera.CFrame = folder[i.."S"].CFrame
      else
      tweenservice:Create(currentCamera, tweeninfo, {CFrame = folder[i].CFrame}):Play()
      wait(tweeninfo.Time)
      end
      end
      currentCamera.CameraType = Enum.CameraType.Custom
      end
      repeat wait(1) until game:IsLoaded()
      cueCutsceneCam(3)

    • @Vztxs
      @Vztxs 5 месяцев назад

      @@kevlarstudiorblx it dosent end, it just stays on the last camera
      and is it possible you can tell me to make the cutscene end with a gui button eg. play button
      EDIT: i fixed the camera being stuck on the last one, now all im after is a button that pops up once the last camera is displayed, 5th for me and once the button is clicked the cutscene ends

  • @subnex4592
    @subnex4592 3 месяца назад

    Is it possible to have this as a opening cutscene because if I place it right below me at spawn then my camera will only get stuck

  • @keyblademaster8263
    @keyblademaster8263 6 месяцев назад +2

    Can you do a viewpoint frames video?

  • @La_Farina
    @La_Farina 5 месяцев назад

    can u do that when the player joins the game it makes you see as 1 and stay in 1? (i dont need the animation)

  • @AMBDONO
    @AMBDONO 6 месяцев назад

    You need 1000 follows !

  • @valentine-f6z
    @valentine-f6z 3 месяца назад

    Ctrl v dose not work and what is command v thats not on my keybored

  • @나우리서포터
    @나우리서포터 4 месяца назад

    how to add music on playing cutscene

  • @johncarney9049
    @johncarney9049 3 месяца назад

    Doesn't work. Placing the code, triple checking it is the same following every step to the letter - it doe snot trigger at all. Deleted everything and moving on to another "tutorial" that will hopefully work.

  • @ryohiro996
    @ryohiro996 4 месяца назад

    How I can do more cutscenes in the same localscript? (1 cutscene, and have 2 cutscene in the same local script but total different)

  • @FGX279
    @FGX279 5 месяцев назад +2

    if I touched it is it only for me or other players too?

  • @willthewhitetiger
    @willthewhitetiger 5 месяцев назад

    hey is there a way to make it so it stays on one of the nodes for a cirtain amount of time without moving or going to another node?

  • @BlackCovacha
    @BlackCovacha 6 месяцев назад

    how can i like change the speeds of different transitions?? like for example: i want the camera to go from 1 to 2 in 3 seconds and then i want to the camera to go from 3 to 4 in 6 seconds

  • @SuperZ_ofc
    @SuperZ_ofc 3 месяца назад

    how add animation on cutsenes?

  • @Uaws-Ka82
    @Uaws-Ka82 3 месяца назад

    why no working? D:

  • @HetPorototo
    @HetPorototo 6 месяцев назад

    Can you make a system where it starts the S3-4 only after clicking the screen

  • @ellynn697
    @ellynn697 Месяц назад

    How do i make it so that when the player loads in the game the cutscene automatically starts? Love ur work

    • @Trapzx_Brodie
      @Trapzx_Brodie Месяц назад +1

      place the trigger block where the player spawns, so that when they player loads in, they automatically land on the trigger block witch will then make it play the cutscene.

    • @ellynn697
      @ellynn697 Месяц назад

      @@Trapzx_Brodie Smart tyyy x

  • @Weird0B0y
    @Weird0B0y 5 месяцев назад +2

    it dont works when ı touch the part-

    • @LSPPlayZ
      @LSPPlayZ 4 месяца назад

      Make sure you named everything right because that is the most important step

  • @Denquill
    @Denquill 6 месяцев назад +1

    Thank you for the cutscene tutorial but my camera is going undersground the map??? please help me quickly btw W tutorial my guy!

    • @kevlarstudiorblx
      @kevlarstudiorblx  6 месяцев назад +1

      Did you make sure all of the parts are anchored?

    • @Denquill
      @Denquill 6 месяцев назад +2

      @@kevlarstudiorblx Oh I forgot about that XD Thank you a lot for your help 😄 I'll make my first animation 😊 I really appreciate it

    • @kevlarstudiorblx
      @kevlarstudiorblx  6 месяцев назад +1

      Of course! Good luck on your animation!🙂

  • @Jeremyshortss
    @Jeremyshortss 6 месяцев назад +1

    i've did every step of the video but,the outpot constantly say then trigger is not a valid member of the workspace,if someone can halp me w this thing,ill appreciate it ;)

    • @kevlarstudiorblx
      @kevlarstudiorblx  6 месяцев назад +2

      Hi, this was my mistake. It should be workspace:WaitForChild("Trigger"). Your output happens because the script looks for the trigger part before the part is even loaded.
      :WaitForChild() should fix the problem by letting the script wait for the part until it's loaded.
      I updated the code in the description and comments.
      If the issue persists... try checking if it is spelled right and if the trigger part is under workspace!
      Hope this helps! 🙂
      Try this code instead:
      local tweenservice = game:GetService("TweenService")
      local plr = game.Players.LocalPlayer
      local currentCamera = workspace.CurrentCamera
      local folder = workspace:WaitForChild("Cutscene")
      local db = true
      local function cueCutsceneCam(speed)
      local tweeninfo = TweenInfo.new(speed, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
      currentCamera.CameraType = Enum.CameraType.Scriptable
      currentCamera.CFrame = folder[1].CFrame
      for i = 2, #folder:GetChildren() do
      if folder:FindFirstChild(i.."S") then
      currentCamera.CFrame = folder[i.."S"].CFrame
      else
      tweenservice:Create(currentCamera, tweeninfo, {CFrame = folder[i].CFrame}):Play()
      wait(tweeninfo.Time)
      end
      end
      currentCamera.CameraType = Enum.CameraType.Custom
      end
      workspace:WaitForChild("Trigger").Touched:Connect(function(touched)
      if touched.Parent == plr.Character and db == true then db = false
      cueCutsceneCam(3)
      wait(5)
      db = true
      end
      end)

    • @fronyx1
      @fronyx1 5 месяцев назад

      @@kevlarstudiorblx ty bro

  • @Loyalツ
    @Loyalツ 14 дней назад

    it doesnt work..

  • @Eternal_Night17
    @Eternal_Night17 2 месяца назад

    Hi, how to do that whenever a player joins, a cutscene will play for him? Thanks!

  • @ZSpartaFPS
    @ZSpartaFPS 6 месяцев назад

    04:10:24.039 1 is not a valid member of Folder "Workspace.Cutscene" - Client - LocalScript:14 keeps popping up everytime i try to run it

    • @kevlarstudiorblx
      @kevlarstudiorblx  6 месяцев назад

      Did you make sure the part is named correctly? (It should just be named 1)
      And is the part in the Cutscene folder?
      Also make sure the part is anchored. (It could get destroyed when it falls into the void)
      If the problem persists, please join our Discord so we can assist you further 🙂

  • @darkyrblx9160
    @darkyrblx9160 6 месяцев назад

    Heyy... How could i make the same, but maybe changing the fov on some parts of the cutscene??

    • @kevlarstudiorblx
      @kevlarstudiorblx  6 месяцев назад

      To achieve that, we'll need a completely new script. We are planning to create a more advanced and modular tutorial for you and others! 😊
      This tutorial was meant to be as simple as possible.

    • @darkyrblx9160
      @darkyrblx9160 6 месяцев назад

      @@kevlarstudiorblx thanks!!

    • @darkyrblx9160
      @darkyrblx9160 6 месяцев назад

      @@kevlarstudiorblx btw ill credit this channel if i ever get to use some tutorials of it, im kinda overworking myself on some experiences and this would save my life hehe.

  • @user-ke7sd2ub5c
    @user-ke7sd2ub5c 4 месяца назад

    Cutscene

  • @yangheyu
    @yangheyu 6 месяцев назад

    why can‘t it run? It’s exactly the same as in the video 😢

    • @kevlarstudiorblx
      @kevlarstudiorblx  6 месяцев назад +3

      Did you make sure that everything is named properly? (Capitalization, spacing, and spelling matters!) Is everything in the right place? (Like the cutscene folder should be under workspace)
      Finally, whats your output? (Go to View from the top of your screen then>Output to open it) Let me know if you see any errors.

    • @kevlarstudiorblx
      @kevlarstudiorblx  6 месяцев назад +2

      Hi, I just updated the code which may fix your issue.
      Try the updated code from the comments or the description 🙂

    • @yangheyu
      @yangheyu 6 месяцев назад +1

      @@kevlarstudiorblx i made it according to your updated code,and I succeeded. It runs very well, thanks you for your help

    • @Mihitsinha1910
      @Mihitsinha1910 Месяц назад

      @@kevlarstudiorblx the normal code worked but the new one didnt

  • @ST4ROLIVI4234
    @ST4ROLIVI4234 5 месяцев назад

    it didn't work because it 2 year ago

  • @valentine-f6z
    @valentine-f6z 3 месяца назад

    to much words what this is going to take days but ok

  • @milo-dt6mb
    @milo-dt6mb 5 месяцев назад

    it dont work :(

    • @kevlarstudiorblx
      @kevlarstudiorblx  5 месяцев назад

      What does your output look like? To view the output go to view>output

  • @user-ke7sd2ub5c
    @user-ke7sd2ub5c 5 месяцев назад

    Trigger

  • @er_aviation
    @er_aviation 6 месяцев назад

    Is this server sided?

    • @kevlarstudiorblx
      @kevlarstudiorblx  6 месяцев назад

      This is client sided, aka local sided. To make this server sided we would need to use remote events.

    • @er_aviation
      @er_aviation 6 месяцев назад +1

      @@kevlarstudiorblx alright thank you! I'll try to revise this to become server-sided for my story game :)

    • @er_aviation
      @er_aviation 6 месяцев назад +1

      Update, I've managed to make the server-sided version work with the use of serverscriptservice scripts and remote events as well. Thank you so much for this tutorial! Without you, my story game won't be finished. If anyone wants it, lmk!

    • @kevlarstudiorblx
      @kevlarstudiorblx  6 месяцев назад +1

      Im glad you were able to get it to work! We wish you the best in your story game 🙂

    • @billmedici
      @billmedici 5 месяцев назад

      @@er_aviation please provide

  • @pangponzx2076
    @pangponzx2076 3 месяца назад

    ขอบคุณครับอาจารตอนนี้ผมทำกล้องเป็นแล้ว

  • @Gabri_KrOfficial
    @Gabri_KrOfficial 4 месяца назад

    555th to put like

  • @valentine-f6z
    @valentine-f6z 3 месяца назад

    not working