Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a Blur For localPlayer For FilteringEnabled?. Does someone correct me?

local ola = Instance.new("BlurEffect",game.Workspace.CurrentCamera)
ola.Enabled = true

game.Players.LocalPlayer.CurrentCamera.Blur.Size = 50


3 answers

local ola = Instance.new("BlurEffect")
ola.Parent = workspace.CurrentCamera
ola.Enabled = true

game.Players.LocalPlayer.CurrentCamera.Blur.Size = 50

4 comments

0

dont work CurrentCamera is not Member of LocalPlayer

0

thats because currentcamera is a part of workspace.

0

game.Workspace -- Is the servers workspace

0

workspace -- Is the players local workspace directory

You no longer need game.Players.LocalPlayer.CurrentCamera.Blur.Size = 50 Just because you only need Blur Effect to be inside on Lighting.:

local blur = Instance.new("BlurEffect")
blur.Parent = game.Lighting
blur.Size = 50 --Adjust the size of the blur if needed.

The correct way would be in a localscript.

local blur = Instance.new("BlurEffect")
blur.Size = 25
blur.Parent = game:GetService("Workspace").CurrentCamera

This discussion is preserved as it was. New answers, comments, and votes are closed.