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

How do i make a hulk transformation?

Asked by 4 years ago

I want to know how to create a transformation sequence where each body part is set to a dif size, change their whole body color, and play a sound when u hit a certain key but idk how to do it.

0
This isn't a request site. Aztralzz 169 — 4y
0
Aztralzz, this doesn't fall under a request according to the site rules. This falls under the concept category because he is asking how to do it, but not asking for a script. SteamG00B 1633 — 4y
0
I kean ik how to switch a character face but not their color or head is all Flash71913 2 — 4y

2 answers

Log in to vote
0
Answered by
SteamG00B 1633 Moderation Voter
4 years ago
Edited 4 years ago

So Aztralzz is correct, this isn't a request site, so due to how complex this could be for a beginner, I can only explain how it works and not give you a script (because how will you learn if you don't try it yourself first).

So, first we'll start with the Input. There are currently two ways of handling input: UserInputService, and ContextActionService. I recommend using the UserInputService simply because its easier to work with in my opinion, but it's up to you. For example, in UserInputService, you can specify if you want it to occur when the key is pressed (InputBegan) or released (InputEnded).

Next would be to handle the transformation sequence. For this, I recommend you use the TweenService. It allows you to specify the parts in the player's character to transform and also allows you to determine how long the transformation would take. Now the main reason why I recommend this is because it is easy to use, but also because you can set the time it takes to transform to the length of the sound effect you want to play.

So all of this put together:

You would make a function containing everything for the tween service, and you would have a function handling input that would check if the key was pressed and then call the tween service function. Then you would have this input function called when the UserInputService.InputBegan event was fired.

Link for everything you need to know about the TweenService: https://developer.roblox.com/en-us/api-reference/class/TweenService

Link for everything you need to know about the UserInputService: https://developer.roblox.com/en-us/api-reference/class/UserInputService

If you need clarification on anything, feel free to leave me a comment below, and also don't forget to mark this as the accepted answer if it clarifies everything for you.

0
Thanks i only needed an explanation not a script Flash71913 2 — 4y
0
If this answers your question, then don't forget to mark it as accepted (a button below this comment section) so people don't go to this thinking it is unanswered. SteamG00B 1633 — 4y
0
Ik Flash71913 2 — 4y
0
Also forgot to mention you might need to have the tween service part in a server script and use a remote event. So on key press, it does a FireServer() and then in the server with the OnServerInvoke event, you call the tween service function. SteamG00B 1633 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

First off i wasnt making a request. 2nd off i was only asking how to do it myself.

Answer this question