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

May someone look on my announcement script I made? It didnt work. [closed]

Asked by 4 years ago

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)
0
We require you to explain the error in the output EnzoTDZ_YT 275 — 4y
0
mmm Harry_TheKing1 325 — 4y
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. Just2Terrify 566 — 4y
0
i waited 3 hours for the error to pop still no error so i said that EnzoTDZ_YT 275 — 4y
View all comments (4 more)
0
Please tell us what the output says so we can help you further Lord_WitherAlt 206 — 4y
0
Do you even know what :IsA() does? ffancyaxax12 181 — 4y
0
They also can read the community guidelines which they should already be doing to avoid needidng to change it in the first place hiimgoodpack 2009 — 4y
0
Please show us error from output window please so we can help you without an error we cant tell what’s wrong EnzoTDZ_YT 275 — 4y

Closed as Non-Descriptive by hiimgoodpack and DeceptiveCaster

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?