Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Enable a ColourCorrection for only a certain player?

Asked by 5 years ago

I wan to enable it for a player who stands on a brick. any way to do this?

0
There is a way to do this. User#19524 175 — 5y
0
you can use the .Touched function on a brick and it can clone the ColorCorrection from whereever it was, into the player's camera. oSyM8V3N 429 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

Honestly, I'm not entirely sure but we do know that BlurEffect, when used by the client, is local meaning that only a player can see it.

Then, that means we have to let the Player's Client create this effect. That means a remote event.

First, insert a RemoteEvent into ReplicatedStorage. Don't name it anything.

So first you have a part, and a script inside the part. First, let's use .Touched event

Now in the script:

script.Parent.Touched:Connect(function(h)
    if game.Players:GetPlayerFromCharacter(h) then
        game:GetService('ReplicatedStorage').RemoteEvent:FireClient(game.Players:GetPlayerFromCharacter(h))
    end
end)

Then, place a LocalScript inside of StarterPlayerScripts or StarterCharacterScripts

game:GetService('ReplicatedStorage').RemoteEvent.OnClientEvent:Connect(function()
    -- Clone or Create your blur
end)

This is your basic set up.

Hopefully, this helped.

Best of luck developer!

Ad

Answer this question