How to make a simple cutscene in Roblox Studio

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
howdy this is going to be a way shorter tutorial cuz like it just doesn't need to be that long so I'm going to show you how to make a simple cut scene in Roblox studio so the first thing you should do is insert a part and then put that part into a folder name that folder cameras and name that part cam one so for the first cut scene I'm going to make it uh I'm just going to add a sphere just so you can see I'm going to make the sphere neon and I'm going to make it oh that's not good C all right I'm just going to make it zoom into that so on your cam one go into to show orientation indicator and you can see this is the front so this is where the right here is where the camera would face so I'm going to change it change the size of the camera and I'm going to Anchor the camera so this is going to be where the camera starts out and this is going to be where it ends oh yeah turn your orientation indicator on just so you know where it's facing all right so now we have our two cameras we're going to oh yeah name the second one cam to all right now that we have our two cameras instead of starter GUI add a local script and name it camera Handler and do local Queen server service equals game get service between service like that we're going to need this just to smoothly animate the camera and local camera game. work. camera so now we have our camera and we have our twen service so we'll do local cam folder game. workspace do cameras and now we can animate so I want to wait uh I don't know 5 seconds and then do our little cut scene so fast. wa then we'll do camera camera type equals camera I mean equals ah enum camera type that's scriptable and then we'll do clean service create and we'll do camera clean info new and this is how long you want the uh like it's going to move from point A to point B and this is how long you want to take I'll make a video about tween later so we'll do uh 5 seconds and then we'll do key frame equals cam folder. cam 2. cframe and then we'll just above this we we do camera D Frame = camfolder cam1 D Frame we can just add play to the end of this after 5 Seconds it will do our little animation and move the camera to that part so that works so what we'll do is now inside of the camera's folder just highlight your cameras turn the transparency to one said Can Collide to false and we do test actually we'll turn this into an animation so we can just wait for it so remove the play and copy this and do local camera cut scene one equals and you can just paste that there so now we can do camera cut scene one play camera cutscene 1. completed colon wait and then after that's completed we can paste this script again and do custom so it will do our cut scene and then it'll put the camera back you don't want to uh happen right away I want to get there and wait a little bit longer so I'll just add task. wa to all right so I got this error I'm just going to add a weight for child just to be safe actually no we'll do it like this all right oop do cam 2. C frame and then all right that should fix it I just created variables for it so we'll see if that fixes that error and it's fixed sorry about that I always seem to make a mistake when I'm programming so wait a little bit longer and then we're out so that's it's fine if you wanted to like have a cut scene run when like you have a title screen and you press play what if you want to make a cut scene happen when you hit a part so we'll keep this code and we will add a part and we're going to name it cutscene part so just make it however big you want cuz you have to walk through this in order to trigger the cut scene and then turn off the can Collide and turn actually yeah we should be fine make sure it's anchored and we'll place it here in between instead of our script we're just going to add at the underneath the cam folder we addal cutscene part equals game that we're fa cutscene part and we'll delete this weight right here and we'll copy this script all right so now that we copied that code we'll do local touch or we be local but being played equals false and underneath we'll add if cutscene okay no we have to do cutscene part. touched connect function hit cut scene that touch connect function hit all right now that we have our hit before we add anything in here just to be safe we're going to add weights to these cams just so that the game doesn't try to run the script before the camera parts are actually loaded so we'll do cam 1 equals cam folder wait child cam 1 then cam 2 equals cam 4 child cam 2 and we'll clean our script up a little bit by deleting these un needed spaces and now inside of here we can add our script so we're going to add if cutscene played equals false meaning if the cut scene hasn't happened yet and hit. parent find first child humanoid so if it's a person and then one more thing and and hit. par. name equals player. so if the thing that touched the part equals the local player it will run the script so if somebody else touches the part you won't see the cut scene it just yeah that'd be annoying oops all right we're going to do cut scene played true so it won't happen again and we'll do camera. camera type = en num. camera type. scriptable then we'll do camera C frame = cam 1. C frame then we'll do camera cut scene one play and then we'll do camera cut scene one completed wait and after that I'll add my. to just so Waits a little bit longer and doesn't immediately start the uh it doesn't immediately end the cut scene and I'll do uh camera camera type e. camera type do custom so I'll fix our camera and now we have the script so on our place my part is still my part's visible again but uh we I'll make it slightly transparent just so I know I touched it so like that when you play it you cut scene plays when you touch the part so you can do basically anything with this using this simple like formula so yeah have fun making cut scenes thanks for watching
Info
Channel: RKGAM3ZS
Views: 43,190
Rating: undefined out of 5
Keywords: roblox studio, roblox, roblox scripting tutorial, roblox tutorials, roblox studio tutorial, roblox studio challenge, how to script in roblox studio, how to use roblox studio, roblox studio tutorials, how to script on roblox for beginners, roblox studio for beginners, roblox studio tips, roblox studio tricks, cutscene tutorial, how to make cutscene on roblox, game development, roblox studio beginners guide, roblox studio building tips, roblox cutscene tutorial, roblox cutscene
Id: Pe0DasqPiHo
Channel Id: undefined
Length: 9min 10sec (550 seconds)
Published: Thu Apr 11 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.