ApplicationStorage is not a valid member of ServerStorage "ServerStorage"

I’m currently having issues trying to get the script to work, it shows that the Application storage from replicated isn’t there, but it is
Uploading: image.png(1)…

local sp = script.Parent
local click = sp.ClickDetector
local gui = sp.SurfaceGui
local main = gui.Main
local pos = main.InterviewPos
local interview = main.Interview
local interviewscroll = main.Interviews
local refresh = main.Refresh_Interviews
local cover = main.Cover
local fail = interview.Fail
local pass = interview.Pass
local hide = interview.Hide
local logout = main.Logout
local storage = game.ServerStorage.ApplicationStorage
local where = game.ReplicatedStorage.Interviews



function coverdown()
	cover:TweenPosition(UDim2.new(0, 0,0, 600), "Out", "Sine", 1, true)
end

function coverup()
	cover:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 1, true)
end

click.MouseClick:connect(function(player)
	if player:GetRankInGroup(950346)  >= 44 then --44
		coverdown()
		script.Me.Value = player.Name
		gui.Logged.Text = "Logged in as "..player.Name
		sp.Sound1:Play()
		click.MaxActivationDistance = 0
		gui.Clock.Script.Disabled = false
	end
end)

logout.MouseButton1Down:connect(function()
	coverup()
	click.MaxActivationDistance = 10
	gui.Logged.Text = "Not logged in"
	gui.Clock.Script.Disabled = true
end)

refresh.MouseButton1Down:connect(function()
	interviewscroll:ClearAllChildren()
	pos.Value = 0
	for _,interviewee in pairs(where:GetChildren()) do
		if interviewee:isA("ScrollingFrame") then
			local base = storage.Items.Base:clone()
			base.Parent = interviewscroll
			base.Visible = true
			base.Position = UDim2.new (0,0,0,pos.Value)
			base.Text = interviewee.Name
			base.Name = interviewee.Name
			pos.Value = pos.Value +50
			base.MouseButton1Down:connect(function()
				if where:FindFirstChild(interviewee.Name) ~= nil then
				interview.ScrollingFrame.Header.Text = interviewee.Name
				interview.Visible = true
				interview.Who.Value = interviewee.Name
				local basechild = interviewee:GetChildren()
				local interviewscrollframe = interview.ScrollingFrame:GetChildren()
					for _,qaspc in pairs (interviewscrollframe) do
						if qaspc:isA("TextBox") and where:FindFirstChild(interview.Who.Value) ~= nil then
							qaspc.Text = where[interview.Who.Value][qaspc.Name].Text
						end
					end
					if where[interviewee.Name] ~=nil then where[interviewee.Name]:Destroy() end
				end
			end)
		wait()
		end
	end
end)

pass.MouseButton1Down:connect(function()
	interview.Visible = false
	local pa = Instance.new("BoolValue",storage.Results)
	pa.Name = interview.Who.Value
	pa.Value = true
	local editedby = Instance.new("StringValue",pa)
	editedby.Value =  sp.SurfaceGui.Clock.Time.Text
	editedby.Name = script.Me.Value
	local winboard = sp.Parent.Parent:FindFirstChild("Passed")
	if winboard ~= nil then
		local faba = storage.Items.PaFa:clone()
		faba.Parent = winboard.SurfaceGui.Frame.ScrollingFrame
		faba.Text = pa.Name.. " interviewed by "..editedby.Name.." at "..editedby.Value 
		faba.Visible = true
		faba.Position= UDim2.new (0,0,0,winboard.positio.Value)
		faba.Name = interview.Who.Value
		winboard.positio.Value = winboard.positio.Value +40
		interview.Who.Value = ""
	end
end)

fail.MouseButton1Down:connect(function()
	interview.Visible = false
	local fa = Instance.new("BoolValue",storage.Results)
	fa.Name = interview.Who.Value
	fa.Value = false
	local editedby = Instance.new("StringValue",fa)
	editedby.Value = sp.SurfaceGui.Clock.Time.Text
	editedby.Name = script.Me.Value
	local failboard = sp.Parent.Parent:FindFirstChild("Failed")
	if failboard ~= nil then
		local faba = storage.Items.PaFa:clone()
		faba.Parent = failboard.SurfaceGui.Frame.ScrollingFrame
		faba.Text = fa.Name.. " interviewed by "..editedby.Name.." at "..editedby.Value 
		faba.Visible = true
		faba.Position= UDim2.new (0,0,0,failboard.positio.Value)
		faba.Name = interview.Who.Value
		failboard.positio.Value = failboard.positio.Value +40
		interview.Who.Value = ""
	end
end)

hide.MouseButton1Down:connect(function()
	hide.Parent.Visible = false
end)

1 Like

Try using WaitForChild!

local storage = game.ServerStorage:WaitForChild("ApplicationStorage")
local where = game.ReplicatedStorage:WaitForChild("Interviews")
2 Likes