How do people make players screen flash?

I’ve seen various games have a red screen flashing effect, I want to put this into my game to, but how?

How do people make players screen flash?

1 Like

If you want the player’s screen to flash red then here is the local script:

local Flash = Instance.new("ColorCorrectionEffect")
Flash.Parent = game.Lighting

spawn(function()
	while true do
		Flash.TintColor = Color3.fromRGB(255, 0, 0) -- to change the screen flash color then change 255, 0, 0 to what color you want!
		game:GetService("TweenService"):Create(Flash, TweenInfo.new(0.3), {TintColor = Color3.fromRGB(255, 255, 255)}):Play()
		task.wait(0.5)
	end
end)

Make sure to place the local script in StarterPlayer > StarterPlayerScripts

5 Likes

If you want to make a flashing effect on player’s screens, one of the options to do this is a Gui.

  1. Make a ScreenGui and put it in StarterGui.
  2. Make a Frame and put it in the ScreenGui you just made, then size it to {1, 0, 1, 0} - this covers the whole screen
  3. Insert a LocalScript inside the ScreenGui and paste this code in:
local Frame = script.Parent:WaitForChild("Frame", 0.1)
local TweenService = game:GetService("TweenService")
Frame.BackgroundTransparency = 1

local function Flash(_Color3, FadeOutTime)
	Frame.BackgroundTransparency = 0
	Frame.BackgroundColor3 = _Color3
	TweenService:Create(Frame, TweenInfo.new(FadeOutTime, Enum.EasingStyle.Linear), {BackgroundTransparency = 1}):Play()
end

Flash(Color3.new(1,1,1), 3) -- Example of utilizing the function.