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.

5 comments

0

where is the script located

0

for appname you dont need ".Name" you just need game.Players.LocalPlayer

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

0

What condition do you need set in order to make the text change to it?

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