Hi there Developers! Today and starting from now I will teach new tutorials!
I know some people want to make magic but they wonder how to do so. I would also like to give some credits to Jeristo4 for teaching me how to do this. Here is his YT: https://www.youtube.com/channel/UC5LCHOR0uq829jNRT1TV4ig
I recommend watching some of his tutorials for more intros on how to make some magical effects.
Sometimes I even think and wonder how mad city has made cool fireball effects.
1st. Add a Local script to Starter Player scripts.
2nd lets assign some variables.
This will let us press a key and make us have a fireball effect. Let’s say you want a key on your keyboard to get pressed and make the firebal efect get activated. Also, name the local script “SkillActivation”. The “mouse” key will make the script know that the game is gonna make the
3rd. Make the script know the KeyCode for the Activation Is “Z”
For Pc users, They will need to press the keycode “Z”
4th. We need to now make the script know the key code for mobile users!
5th.
Make sure that you have script in serverscriptservice!
6th Now make are two folders in ReplicatedStorage.
Events
FireBallEvents
Also make sure You add a RemoteEvent In Events. Name It “FireBall”. We put in Fireall to make the script know when the keycode z is pressed. Remote events are crucial when needed to make something happen just like slipping off a part. You will need a remote event to tell the script to shoot a fireball.
Put In the fireball you want to shoot out. Name it “FireBall” Then Name the object that you want to appear when the fireball hits something.
7th. Now, go to the server script. Lets add some variables. We add variables so that when we want to call something it would be easier to say the name of that variable for example, “effects” Its is it Replicated Storage now the script will now that. And refer to It.
fireball - ReplicatedStorage - effects.
etc
8th. Now, make sure that you do this effectively. Make sure Your spelling is correct.
Add some functions. Make sure that you add some functions like IsDescendantOf.
That will help.
That is the end of this tutorial!
Thanks for reading.