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

How do i make this blur effect visible? [SOLVED]

Asked by 7 years ago
Edited 7 years ago

I am making a low health blur effect i have the blur effect in the player's gui however i did some testing because it wasnt appearing it would only show in lighting so i was wondering is there a way to fix this? or even a way to change a blur effect in lighting for 1 player but not for the rest? please tell me

1 answer

Log in to vote
0
Answered by 7 years ago

You need to parent it to the current camera in a LocalScript. Example:

local camera = game.Workspace:WaitForChild("CurrentCamera")
function addBlur(size)
    if camera:FindFirstChild("Blur") then
        camera.Blur:Destroy()
    end
    local blur = Instance.new("BlurEffect", camera)
    blur.Name = "Blur"
    blur.Size = size
    blur.Enabled = true
end
0
I used what you said and just made it so it doesnt use a function :) thanks! Thegrimdeathzombie 40 — 7y
Ad

Answer this question