#Cutscene help

1 messages · Page 1 of 1 (latest)

latent cipher
#

so i was making a Cutscene for my game and i want it so when u trigger the proximity prompt your character gets teleported to a certian position, the animation plays the screen fades to black and all of that other stuff, but im only up to the character gets teleported part bit but i keep running into an issue where it just dosent teleport the player but if it helps i had an error output before saying: "CFrame is not a valid member of Model "Workspace.MYUSERNAME" - Client - CutsceneHandler:28"

And help would be greatly appreciated!

#

lmk if you need anything else from me!

past pike
#

use player.Character:PivotTo(CFrame)

latent cipher
#

would you want me to share the code with you?

#

@past pike ?

plush frost
#

Make a module for it.

latent cipher
plush frost
#

Did you write it in a local script?

#

@latent cipher

latent cipher
#

yea

#

i did @plush frost

plush frost
#

I used a module script for mine and it works great

latent cipher
#

how does urs work

#

i just wanna know cuz i dont think im doing it the best way

plush frost
plush frost
#

The cutscene is a class, and the dialogue system is a service

#

Also, I wrote the cutscene as a inheritance of another module, called scenario, although I don’t know if it’s the best way, but it works so yeah. 😅

latent cipher
#

<--- dumbass

#

im still a bit new to scripting

plush frost
#

Nah no worries

latent cipher
plush frost
#

It’s related to OOP (Object Orientated Programming), so it’s like creating a object with properties that you can interact with.

#

Such as a part

latent cipher
#

ok

plush frost
#

Like a class such as “Vehicle”

latent cipher
#

uh huh

plush frost
#

It could have its own custom functions and variables

#

Like Vehicle:Stop()

#

Or Vehicle.Owner

latent cipher
latent cipher
plush frost
#

Yeah

latent cipher
#

oh ok

plush frost
#

Stop() is a function in ur class

#

function Vehicle.Stop()

latent cipher
# plush frost

i have something like that but its a bit different, i want the player to get teleported to a certian part, then an animatin plays, and then the screen fades to black and stuff

latent cipher
latent cipher
plush frost
latent cipher
plush frost
latent cipher
#

like if i wanted my cutscene stuff to be a class, how would it go? like Player:TeleportToPart() or Player:PlayAnimation()?

plush frost
latent cipher
#

ok

#

what would i have to do if i wanted everyone to see the animation and the doors opening?

#

like remote events and ServerScripts?

plush frost
#

Yeah. You can use a remote event from the server and call: RemoteEvent:FireAllClients

latent cipher
#

oh ok

#

tysm for ur help bro 🔥, ill do that once im back home cuz im leaving soon and will be busy for a while

#

dam this is gonna be hard to code tho

latent cipher
past pike
#

thats exactly the reason why OOP is hated, cause people use it for such simple things as a cutscene 😭

i wouldn't use a class for this it just overcomplicates stuff

latent cipher
turbid ibexBOT
#

studio** You are now Level 7! **studio

latent cipher
plush frost
past pike
#

nothing special just script that cutscene😭

plush frost
#

I think the system that I made would work better in an actual game. Since all u need to do is to is write the function inside my module and u can run it anytime. Like to me it’s amazing.

latent cipher
plush frost
#

I write functions in my modules, and basically all it does is run the function.

#

I’ll probably add a feature where you can add your own functions but I’ll be doing that later.

latent cipher
#

Alr

latent cipher
#

but like, i still cant find a solution to ts

plush frost
#

@latent cipher

#

I honestly just write it modularly because I find it fun to, but yeah it might not really be necessary.

latent cipher
#

Ok

past pike
#

The problem is that OOP would overcomplicate this easy task bro

latent cipher
#

I'll just ask ai atp

unique junco
#

models dont have a cframe

#

use model:pivotto as mentioned in first response (player.character is usually a model)

unique junco
#

and ya at this level ai can probably help you but that doesnt last long hehe

latent cipher