How would I go about making this effect?

So right now I’m in the midst of replicating the death effect from GMod: Murder. I tried finding an image online to show here, but I, unfortunately, couldn’t find one. Fortunately though I can do a good explanation.

So basically when the player would be murdered, the world around them would appear black, and nothing would be visible except for the player themselves. The player could be seen bright as day. I’ve already got the part where everything is invisible nailed down, but all I need is to make the world completely black, however I don’t want this effect to be made using the ColorCorrection Class or the Lighting Class!

The player’s colors in GMod were completely untouched. This idea actually sprouted from when I was playing around with water in Studio and I submerged my camera underwater, and that gave a blue hue to the world. I’ve tried looking on ROBLOX’ Github for the code that handles this feature, but I wasn’t successful. Could someone give a few pointers?

I find the best way is to use the Lighting class but, if you don’t wanna use that, you could use ScreenGUIs.

Make a ScreenGui with a large frame that covers the whole screen, then color it.

When the player dies, activate it, and keep slowly moving the transparency from 0 to 1.

(You can use tweens to change the transparency slowly I think.)

(Oh, you want the player to be able to seen, use a viewport frame and clone the character inside when the character dies)

This is the tricky part. It looks like nothing is used to modify the UI. It just makes the world black behind the player.

Exactly then, just use a lighting effect which is colorcorrection to make it black behind, then put a viewportframe over the exact character when it dies, locking onto it. The player will appear very easily while everything else around is black.

1 Like

Hm. I’ll try this.

Could try to make use of having a part in front of the players screen and mess around those the parts property.

But I believe Lighting is the best way to go since that’s what these effects are made for.
Additionally, you can use tweens to make the effect better.

Thank you so much! I have it fully functional now! :smile:

Your welcome! Glad to help ;3

I know you don’t want to mess with lighting, and you have a solution, but you could set the skybox to a plain black image on the client.

Setting to skybox to black only wouldn’t do anything as its just the sky, everything else will still be visible including the map and people.