Is it possible to apply a BlurEffect for a single player?

I don’t exactly want to use a LocalScript. Is there a possible way to use Server Scripts AND blur the screen for only one player?

1 Like

Sorry, you need to use a local script. The server is kinda responsible for replicating changes to all clients. So a remote will do.

8 Likes

You’ll have to trigger through a remote event or something else, there is no way to create the effect locally without a local script

server scripts:

make sure to add the player added event and then making the blur effect on screen
also add an if statement for what player name you need to find

game.Players.PlayerAdded:Connect(function(Player)
	if Player.Name == 'name' then
		game.Lighting.Blur.Enabled = true
	end
end)

That still makes the blur enabled for everyone if the player joins.

5 Likes

this only appears for me tho 30characters

Do you want to target a single player by their name? Or a Random Player in the game?

It works because you joined the game. If you had someone else join with you, they would have the blur enabled as well, because the server made the change.

When you make a change in the client it is not replicated across the whole Server but thats not the case for Server Scripts, if you change something from Server Sided Scripts it will replicate the change to the whole server.

1 Like

Create a Blur Instance on the Client or Server and change its properties on the Client (in a local script), in order to only do it for one player.

The reason this works is because, with FilteringEnabled turned on, if you edit something like Lighting on the Client it will only be affected for that Client.

You could have Remote Event in ReplicatedStorage that fires for a specific player when you want this to happen, for example:

-- SERVER - SCRIPT
BlurRemote:FireClient(Player,Value)

-- CLIENT - LOCAL SCRIPT
BlurRemote.OnClientEvent:Connect(function(Value)
    if Value == nil then Value = 24 end
    game:GetService("Lighting").Blur.Size = Value
    -- you could also tween Blur Instance, I just set it for example
end)
1 Like

I’m curious, why don’t you want to use a localscript?

4 Likes

It’s unclear why you don’t want to use a LocalScript here. Don’t avoid doing something properly because of some weird aversion to it. If you don’t use a LocalScript somewhere in the process, you can’t do this at all. The server is responsible for making changes that all clients will see. The only way around that is remotes since the server can choose which clients are affected by an event, but that still involves a LocalScript.

1 Like