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

This script doesn't work, at the end it doesn't change the text?

Asked by 6 years ago
script.Parent.MouseButton1Click:connect(function()
    local info = script.Parent.Parent.Infobar
    local storage = game.ReplicatedStorage
    local a = storage.Accepted
    local d = storage.Declined
    local appname = game.Players.LocalPlayer.Name
    local app1 = script.Parent.Parent:FindFirstChild("FillOut")
    local app2 = a:FindFirstChild(appname)
    local app3 = d:FindFirstChild(appname)

    if app2 == nil and app3 == nil and app1 == nil then
    info.Text = "Your Application Hasn't Been Read Yet!"    
    wait(2)
    info.Text = ""
    elseif app2 == true then
    info.Text = "Your Application Has Been Accepted Congragulations!"   
    wait(2)
    info.Text = ""
    elseif app3 == true then
    info.Text = "Your Application Has Been Declined Sorry, Try Again Next Time!"    
    wait(2)
    info.Text = ""
    else
    info.Text = "Your Application Hasn't Been Sent Yet!"
    wait(2)
    info.Text = ""
    end
end)

For some reason, I don't know why but this at the end doesn't change the text in the info bar to "Your Application Hasn't Been Sent Yet!" It doesn't give me an error either, this is in a local script.

0
where is the script located wookey12 174 — 6y
0
for appname you dont need ".Name" you just need game.Players.LocalPlayer Univ_Z 0 — 6y
0
The way it is set up the name of the app is the name of the player so I do need the ".Name" part. The script is located in the client Ize_Cubz 18 — 6y
0
What condition do you need set in order to make the text change to it? ultrasonicboomer 85 — 6y
0
All this script is doing is checking if an frame is located in one of the two folders in replicated storage, or if it's still in the players GUI Ize_Cubz 18 — 6y

Answer this question