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

How to change size of blur in lighting?

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()

4 comments

0

I think you posted the wrong title/script

0

I think you posted the wrong title/script

0

Nah from the looks she's trying to tween the size of the blur.

0

yes

2 answers

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.

4 comments

0

I just named it part, the parent of the script is the blur

0

So i assume blur is inside of Lighting, then my first theory is true.

0

Yes, i moved the local script into workspace, and changed it to local part = game.Lighting.Blur still not working though

0

oh oops i pjut the local script in workspace im put it in starterplayer

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.

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