Ive been trying to make this, but it doesn't work.

local serverfolder = workspace:WaitForChild("Server")
local servermessage = serverfolder:WaitForChild("message")
local serverannouncement = serverfolder:WaitForChild("announcement")


servermessage:GetPropertyChangedSignal("Value"):Connect(function()
	
	if servermessage.Value ~= " " then
	script.Parent.Message.Visible = true
	script.Parent.Message.TextLabel.Text = servermessage.Value
	
elseif servermessage.Value == " " then
	script.Parent.Message.Visible = false
	
	end
end)

serverannouncement:GetPropertyChangedSignal("Value"):Connect(function()
		
		for i,v in pairs(game.Lighting:GetChildren()) do
			if v:IsA("BlurEffect") then
				v:Destroy()
			end
		end
		
		local blur = game.ReplicatedStorage.Blur:Clone()
		blur.Parent = game.Lighting
		script.Parent.Announcement.sender.Text = serverannouncement.sender.Value
		script.Parent.Announcement.label.Text = serverannouncement.Value
		script.Parent.Announcement.Visible = true
		wait(10)
		
		for i,v in pairs(game.Lighting:GetChildren()) do
			if v:IsA("BlurEffect") then
				v:Destroy()
			end
		end
		
		script.Parent.Announcement.Visible = false


end)

8 comments

0

We require you to explain the error in the output

0

mmm

0

I wish people were patient with people, do understand that people don't check this site consistently and there for it will take them time to respond and fix their post. Always give people the opportunity to fix themselves.

0

i waited 3 hours for the error to pop still no error so i said that

0

Please tell us what the output says so we can help you further

0

Do you even know what :IsA() does?

0

They also can read the community guidelines which they should already be doing to avoid needidng to change it in the first place

0

Please show us error from output window please so we can help you without an error we cant tell what’s wrong