For some reason when I try to tween the Size property of my BlurEffect, nothing happens with tween2 but tween1 plays!
local Box = script.Parent
local UI = script.Parent.Parent
local TweenService = game:GetService("TweenService")
local Lighting = game:GetService("Lighting")
local blur = Lighting.Blur
local debounce = false
local tweenInfor = TweenInfo.new(0.6,Enum.EasingStyle.Back,Enum.EasingDirection.In)
local tweenblurinfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
local tween1 = TweenService:Create(UI, tweenInfor, {Position = UDim2.new(0.5,0,1.5,0)})
local tween2 = TweenService:Create(blur, tweenblurinfo, {Size = 0})
Box.MouseButton1Click:Connect(function()
if debounce == false then
print("play")
debounce = true
tween2:Play()
tween1:Play()
wait(2)
debounce = false
end
end)
Is this a bug? Or did I oversee something simple?
Thanks in advance!!
By the way, I could not find errors related to this local script in the Output
1 Like
in the devhub post processing effects article it says you have to put the blur into the camera in workspace.

also tweening game lighting blur would just blur everyone screen
just pointing out something ;-;
1 Like
The server is overriding the tween
In simpler terms
Tween makes a change to the size
Server sets it back to what it was before since this is being changed locally and the effect is in lighting
Try using a remote event and tweening the effect on the server
If you only want it to change the blur effect of the player that clicked it you’ll need to put the effect in the workspaces camera like @IceTheOneAndOnly said
1 Like
IIRC blur will not show if your graphics are too low, so try setting them to max to see if it’s still not working. If it isnt, check the Size property itself to see if it has changed if you havent already.
its a local script so it wouldnt. Another friend tested my script out… and it worked for him
I have max settings set (30char)
What are you trying to do exactly? Make the blur go away? Or make it appear. Might seem like a silly question but I’d just like to know for sure.
Yes! Thank you for pointing this out! I got it working now thanks to starnova’s addition to your comment!
1 Like
Got it working because of your and Ice his/her advice! Thank you!
1 Like
always happy to help a fellow dev 