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?
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?
If you want to make a flashing effect on player’s screens, one of the options to do this is a Gui.
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.