Static/Film grain effect

And if you want to see this in-game.

If you use my code please give credit and post a link to the place its used in thx :slight_smile:

local RunService = game:GetService("RunService")
local Textures = {
        268592485,
        268592462,
        268592427,
        268590007,
}
local Frames = {}
 
for i,v in pairs(Textures) do
        local ImageLabel = Instance.new("ImageLabel")
        ImageLabel.Image = "http://www.roblox.com/asset/?id="..v
        ImageLabel.BackgroundTransparency = 1
        ImageLabel.ImageTransparency = 0.58
        ImageLabel.Visible = true
        ImageLabel.Size = UDim2.new(1,0,1,0)
        ImageLabel.Parent = script.Parent
        Frames[#Frames+1] = ImageLabel
end
 
local FramesToWait = 3
while true do
        local Last = nil
        for i,v in pairs(Frames) do
                if Last ~= nil then
                        Last.Visible = false
                end
                v.Visible = true
                Last = v
                for i = 1, FramesToWait do RunService.RenderStepped:wait() end
        end
        Last.Visible = false
end
45 Likes

Without the horizontal lines it’d look like proper film grain, there’s a use for those lines as well though

Don’t worry, my code doesn’t include the lines.

1 Like

Psst, you might find this gif recorder better.

It looks really nice, I can see a few cases where it would come in handy.

4 Likes

Ooh… I’m definitely going to have to use this somewhere.

Neat! :durrr:
Reminds me the first Hitman dunno why ?

[quote] Neat! :durrr:
Reminds me the first Hitman dunno why ? [/quote]

probably because my sig has the word HITMAN in it. (My Hitman and Hitman Agent 47 are completely different games)

I’m more interested by the rain

TV model + SurfaceGui = profit

r u going to make it local or server because if server use heartbeat not renderstepped

This is amazing! I’ll totally use this in my new game. I’ll give you credit in the menu. :smiley:

This fits with the style of my game so well. (It’s called The Ghost Outside of Town. It’s an adventure thriller.)

Excuse me where do i need to put that script?

inside of a screengui probably

Used this in an intro when you join the game, like valve’s.

1 Like

Do I place it into screengui? Genuinely confused

1 Like

I’m bumping, sorry but I don’t know where to put this… has a roblox update broken it? Tried a local script everywhere but it doesn’t work.

make a ScreenGui and make a Local Script in it and paste the code in

2 Likes

It looks good! (Sorry for bumping lol)

:+1:

Thank you so much its really good appreciate you :grinning: :+1:

1 Like