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

Why does this script not work? It is supposed to be a camera blur intro script

Asked by
qu9090 -1
5 years ago

local size = 50

local blur = Instance.new("BlurEffect")

blur.enabled = true

blur.size = size

blur.parent = workspace.CurrentCamera

0
I dont need an explanation but one would be REALLY useful! thank you! qu9090 -1 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Hey, qu9090.

A couple things to note, if you're using a server script and trying to access CurrentCamera, I don't think that you can without access to the LocalPlayer or a Players.PlayerAdded event. Try using a LocalScript.

Also, you need to capitalize blur.Enabled, blur.Size, and blur.Parent! Those properties are CaSe sensitive.

Let me know how this works out in a LocalScript: ```lua local size = 50

local blur = Instance.new(“BlurEffect”)

blur.Enabled = true

blur.Size = size

blur.Parent = workspace.CurrentCamera ```

Ad

Answer this question