I have a blur effect in lighting and everytime someone spawns it shows the blur. I made it so that you can click a button and the blur will go away but when someone joins the game or respawns it comes back.

script.Parent.MouseButton1Click:connect(function()
	for i = 1,24 do
		blur.Size = blur.Size - 1
		wait(0.01)
	end
	for i = 1,10 do
		script.Parent.Parent.BackgroundTransparency = script.Parent.Parent.BackgroundTransparency + 0.03
		wait(0.01)
	end
	 script.Parent.Parent.Visible = false
end)


2 comments

0

Make sure its in a local script, add a toggle with a boolean

0

ok thankyou