FXModule - Easy full-screen effects!

![FXModule-Icon|150x150](upload://m8OpgqTl2T9HdMaCWPsLOMImOHY.png)

FXModule

Quick & easy full screen effects

Demonstration:

Glitch Effect Demo (sry for 480p)

Setup:

  1. Open a new script in ServerScriptService

  2. Require the module:

local FXModule = require(6155196906)
  1. Use one of the methods listed below

Methods:

FXModule:Glitch(Player, Time)

Player - Can be a UserId, player Name, or a player Instance. If nil, this defaults to all players.
Time - Amount of time the glitch effect is shown. If nil, this defaults to 1 second.

FXModule:FadeBlack(Player, FadeTime, Time)

Player - Can be a UserId, player Name, or a player Instance. If nil, this defaults to all players.
FadeTime - Amount of time the dark screen effect takes to fade in/out. If nil, this defaults to 0.5 seconds.
Time - Amount of time the dark screen effect is shown. If nil, this defaults to 1 second.

FXModule:FadeWhite(Player, FadeTime, Time)

Player - Can be a UserId, player Name, or a player Instance. If nil, this defaults to all players.
FadeTime - Amount of time the light screen effect takes to fade in/out. If nil, this defaults to 0.5 seconds.
Time - Amount of time the light screen effect is shown. If nil, this defaults to 1 second.

Idea Contributors

@R0bl0x10501050 - Glitch, FadeBlack, FadeWhite

Github

There is now a Github repository of the source code!

Conclusion

Thanks for stopping by to read this! If you have any ideas for more effects, just PM me with this copy-and-paste format (your username will be in contributions if you choose to):

## Idea
(Idea here)
I (do/do not) want my username in the contributions.

Enjoy! :smile:

Edit Log:

1m - Added this
6m - Altered Contributors tab
12m - Added Github
16m - Fixed AssetId
23m - Fixed icon after system altered it
24m - Fixed icon again

6 Likes

The module, is currently not for sale. That means nobody except you can access the module.

3 Likes

Oh yes, thanks for telling me! I’ll set it to public immediately.

1 Like

Update 2

  • The module is now public!
  • Fixed AssetId to updated module

Also,Make sure the Module is called MainModule before you upload it, it will not work.

image

1 Like

Fixed that, thanks for telling me. The new id is 6155196906.

This will be great for my game called Mirrors for the transition effects on each level.

1 Like

Why wouldn’t it work? I always put my modules as custom names?

there’s a lot of repetitions in your code

why are you handling tweens on the server

overall cool module but there are things you should improve

2 Likes

Yea, this was thrown together in around 15 minutes so I didn’t really get to optimization or anything but I plan to add a vignette method with a darkness strength and fix the AllPlayers lag as well as the repetitive code.

Why would you post a resource that you “threw together in 15 minutes” to the forum? You should look to put your best work on here.

2 Likes

As long as it’s good quality and works properly, it’s worth putting on the forum. I never said my 15 minute work wasn’t my close-to-best work.

1 Like

If you made it in 15 minutes, have tweens running on the server, and a ton of repetition in your scripts, it is not classed as “good quality” work.

I’d suggest spending more time on it, rather than rushing it.

2 Likes

Lol I wasn’t rushing it but you’re right there’s definitely improvements. Also, repetitive code is a bad practice but not exactly detrimental.

1 Like

May I suggest an idea? A 20s filter like in arsenal where it looks like an old B&W film

1 Like

Yeah, that’s a good idea! I’ll add it after I fix all the other minor problems.

1 Like

It is detrimental. If you copy and paste code over and over again and you decide you want to rewrite that section again, or you want to modify what you wrote long ago to work differently for a variety of cases, I can guarantee that it will be detrimental; because I still do it. :stuck_out_tongue:

It’s not bad practice. It’s worst practice. I’d reckon that the ultimate goal of programming is to be “lazy.” If you’re making yourself do more work and neglecting the optimal way to decrease the workload, you’re doing something wrong. Please don’t try to worm your way around recommendations that are vital for your programming experience.

Also–this script should not be a server script. Effects that only the user can see should only be done by the user, and tweens especially should not be done on the server. Just my two cents.

As for my recommendation, I think it’d be neat if there was more depth/variance to the glitch effect. Currently, the glitch effect isn’t the “glitch” effect, it’s the “no signal” background that was used on older televisions. Maybe make it animated with boxes on the screen with lighting effects utilized as well. That would be a fantastic glitch effect.

Cheers.

6 Likes