Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make shockwave attacks? (the cirlcles that grow bigger and you have to jump over them)

Alright, I need help on making shockwaves, like the attack Mega Tank from Zombie Attack uses that players have to jump over, I am making a boss fight and i need help on scripting the attack since i am a beginner. any help?

1 comment

0

Please help!

2 answers

I suggest looking up tutorials on Tween Services as I believe this will be the style of code you are after. I'm not an expert myself on them, but I recommend checking out TheDevKing on youtube for tutorials.

Link to video: https://www.youtube.com/watch?v=pKbQbCf9i90

7 comments

0

Link?

0

Thank you!

0

No problem

0

Oh also just a quick question, does it show how to grow it only sideways and not growing upwards/downwards?

0

I believe that's down to how you set up the tween, it should go through that in the video

0

ok

It's best to get your information directly from the source rather than YouTube videos as videos do not change and if the API changes, the information in the videos will be outdated and you won't even know. I stand by this not only due to deprecations but also because if you watch a video and copy the code and be done with it, you will not learn anything.

So, the source for the tween service is: https://developer.roblox.com/en-us/api-reference/class/Tween

As for creating a shockwave, there are a number of ways you could do this. The easiest would probably be to make a part look like a wave or whatever you want them to jump over and use the tween service to change the cframe and size of the shockwave part.

On the other answer you asked this: Does it show how to grow it only sideways and not growing upwards/downwards?

The best way to understand how to do that is by reading up on CFrames here: https://developer.roblox.com/en-us/articles/Understanding-CFrame

If this answers your question, then remember to mark it as the accepted answer.

9 comments

0

this is basically the top guy's answer.. I don't think API deprecations are a prominent concern.

0

You would be surprised at how many YouTube tutorials I've seen that use deprecated code. I'm not worried about deprecation in the tween service as its still fairly new, but more about things like using Workspace instead of workspace or :connect instead of :Connect. That's why videos are almost never the first source you should look at when learning a programming language.

0

And also, I even included a way to actually do it, rather than simply pointing him to a video.

0

true that, documentations are to provide the up-most information about APIs, but here is a thing, deprecation doesn't necessarily mean you can't use it, it means its not recommended.. your right about not resorting to videos first - but this would mostly apply to experienced devs, for nooby, videos are actually a great place start, they help you make connections in the future,

0

and reduce your reliance to them to the point where you'll find documentations better than videos

0

in other words, documentations provide general information, while videos provide specific info.. once you see how someone does it, it betters the connections you make going in the future

0

Actually I do know of a case where something was actually fully removed past the point of deprecation. Also things are usually deprecated because there is a better way to do it. And I recommended the friendlier tutorial on CFrames and Tweens rather than the actual API Docs.

0

How exactly do i mark it?

0

There should be a button under these comments that says something like mark as accepted.

This discussion is preserved as it was. New answers, comments, and votes are closed.