Camera shake effect

Hello developer community,
I am currently trying to create a camera shake function, which replicates to all players when called by a script.

The issue I have run into (when I tried to go based off of a video), was that the system was only replicated for the local player and that it was attached to a tool, and when the tool was clicked, it did the camera shake effect.

I have tried to search for resources here on the DevFourm, and on other media platforms, such as YouTube, however I don’t see any resources on the DevFourm or on YouTube other than the video that was mentioned earlier.

Any help with this would be greatly appreciated.
Thanks!

1 Like

Don’t know enough about what you have or what exactly you want to give a detailed description but something along the lines of just taking the camera shake effect you already have, reusing most of that code but have it function through a RemoteEvent that fires all clients.

For example Tool fires RemoteEvent, RemoteEvent fires all clients, clients have localscript(in starterplayer assuming) that does the camera shake.

Maybe move the camera? Like use a script that will change position of camera.

Ah, thanks for the reply. Here is what I am trying to do, however.

I would like a script to be able to execute this as a function which can be used at any time, not by using a tool. Is this roughly what you are saying?

Could have the RemoteEvent and the Client has a script that handles the shake. Then you can just call the Event anytime you need to shake a camera, and just send it to the player whos camera you need to shake.

1 Like

Can you give me the code of the video so i can think of a way to do what you want?

Oh, sorry. I think I have the gist already down in response to what @CrispyBrix stated. Thanks for contributing though.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.