How do you make the screen flash a certain color?

I put a teleporter in my game where if the player touches a part called “_TeleportA” then they will be teleported to another part called “_TeleportB”. I want to add a screen effect where the screen flashes a pink color when it teleports. I don’t want to make it like a frame though: I want it to use ColorCorrection to do so. I’ve looked around the forum for other people’s code, but none of them work.

local TeleportB = game.Workspace._TeleportB

game.Workspace._TeleportA.Touched:Connect(function(part)
	if part.Parent:FindFirstChildOfClass("Humanoid") then
		part.Parent:SetPrimaryPartCFrame(TeleportB.CFrame)
	end
end)

I want it to look like the teleporter in here (at around 10 seconds into the video):

As you can see here, the screen flashes but nothing covers the screen. It uses a ColorCorrection effect. I want to put that in my game but instead of flashing white, it flashes a pink color. How do I do this?

1 Like

Can someone help pls?


Add 2 color correction under lighting and set both to -1 contrast

1 Like

And in relation to the animation itself make a Tween animation that changes both color correction’s Constrast property:

local TweenService = game:GetService("TweenService");

local colorC1 = **location here**;
local colorC2 = **location here**;
colorC1.Contrast = 0;
colorC2.Contrast = 0;

local info = TweenInfo.new(
	0.5,
	Enum.EasingStyle.Sine,
	Enum.EasingDirection.InOut,
	0,
	true
);

local cC1Animation = TweenService:Create(colorC1, info, {
	Contrast = -1;
});

local cC2Animation = TweenService:Create(colorC2, info, {
	Contrast = -1;
});

local playContrast = function()
	cC1Animation:Play();
	cC2Animation:Play();
end;

playContrast();
Every time you wish to play the fading animation use "playContrast();"

This has a problem, it shows for everyone

You can use a LocalScript

1 Like