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

How to change size of blur in lighting?

Asked by 3 years ago

no error; im pretty new to scripting:

local TweenService = game:GetService("TweenService")
local part = script.Parent
local Info = TweenInfo.new(
    5,
    Enum.EasingStyle.Sine,
    Enum.EasingDirection.Out,
    0,
    false,
    0
)
local Goals = 
    { 
        Size = 12   
    }
local tween = TweenService:Create(part, Info, Goals)
tween:Play()
0
I think you posted the wrong title/script haba_nero 386 — 3y
0
I think you posted the wrong title/script haba_nero 386 — 3y
0
Nah from the looks she's trying to tween the size of the blur. greatneil80 2647 — 3y
0
yes Radiant_Sparkles 69 — 3y

2 answers

Log in to vote
1
Answered by
imKirda 4491 Moderation Voter Community Moderator
3 years ago
Edited 3 years ago

Scripts do not run in Lighting, not server, not local, you need to put the script into a container it can run in, for server that is:

  • ServerScriptService
  • Workspace
  • PlayerGui
  • Tools
  • ReplicatedScriptService (not yet released)

Maybe there are more i don't know, it's best to put them into ServerScriptService always.

And for client:

  • Tool (Instance)
  • PlayerGui (UI Instances) (Basically all you put into StarterGui)
  • StarterPlayerScripts
  • ReplicatedScriptService (not yet released)

You need to put the code based off of your situation as i don't see it, choose container that fits here the most. Then to get reference to Lighting you would simply do

local Lighting = game:GetService('Lighting')

My theory might be wrong if part refers to something else, if it actually refers to BasePart instance then uh.. parts do not have property Blur.

0
I just named it part, the parent of the script is the blur Radiant_Sparkles 69 — 3y
0
So i assume blur is inside of Lighting, then my first theory is true. imKirda 4491 — 3y
0
Yes, i moved the local script into workspace, and changed it to local part = game.Lighting.Blur still not working though Radiant_Sparkles 69 — 3y
0
oh oops i pjut the local script in workspace im put it in starterplayer Radiant_Sparkles 69 — 3y
Ad
Log in to vote
0
Answered by
azobo 4
3 years ago

When you add the blur effect into lighting, what you would want to do is open the properties tab, click on the blur effect, and open properties. Then, you would go to the scroll that says size and you can change the size to whatever you desire. Please note that the size changes the amount of blur, not how much of it is on the screen or anything like that.

Answer this question