I am trying to create an object that when you click on blurs your screen for 8 seconds, however when I tested this script with another friend the blur affected him and me when I clicked it. If you can help me that would be most helpful.
local CD = script.Parent.ClickDetector
local function onClicked() local blur = Instance.new("BlurEffect", game.Lighting) wait(8) game.Lighting.Blur:Destroy(10)
end
CD.MouseClick:Connect(onClicked)
Hello, I suppose you only want It client-sided right? If you do then you'd need to firstly do It In a localscript and It's the same code essentially just ran localy.
I'm really not sure why you put 10
Inside the Destroy()
local CD = script.Parent.ClickDetector function onClicked() local blur = Instance.new("BlurEffect", game:GetService("Lighting")) wait(8) blur:Destroy() end CD.MouseClick:Connect(onClicked)