Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make everyone's screen shake in 1 script?

Asked by 6 years ago

Ive seen alot of games that do these. But How do I make my own? I can't find any information about it.

Anyone a code?

Thank You!

0
We cannot give you a code but what you should do is change the players camera User#20388 0 — 6y
0
I K but IDK how. kyanoke11 15 — 6y

2 answers

Log in to vote
1
Answered by 6 years ago

Well the camera can only be accessed by a local script so you would need one in every player. You could always have the 1 script clone the local script into all of the players.

Roblox wiki is a good basic to start learning at: http://wiki.roblox.com/index.php/Camera_manipulation

Ad
Log in to vote
0
Answered by
ede2355 22
3 years ago

First of all, you wouldn't be able to do it in one script. I won't provide it but I'll explain.

All that you basically would need to do is create a Remote Event and create a Local Script and a Server Script, in these scripts you will be using both OnClientEvent and FireAllClients due to the camera being local and you need this to happen for everyone. Once you've figured out how to use those, you'd have to loop through the players in the game and find their Character and Humanoid, then insert the humanoid as one of the parameters for the FireAllClients. After doing this, you can access the humanoid easily and offset the camera in the local script. I apologize if my formatting or explanations are bad, this is my first time helping someone on this website.

Answer this question