What is this error

15:26:43.952 - builtin_DraftsWidget.rbxm.DraftsWidget.Src.Reducers.DraftsReducer:58: Attempt to modify uninitialized state for draft ‘openRobuxShop’

15:26:43.955 - Stack Begin

15:26:43.956 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.Src.Reducers.DraftsReducer’, Line 58

15:26:43.956 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.Packages.package_index.Rodux-4f44c5b7b8ca-79f6c38c7ef6.packages.Rodux.createReducer’, Line 10

15:26:43.957 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.Packages.package_index.Rodux-4f44c5b7b8ca-79f6c38c7ef6.packages.Rodux.combineReducers’, Line 15

15:26:43.958 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.Packages.package_index.Rodux-4f44c5b7b8ca-79f6c38c7ef6.packages.Rodux.Store’, Line 89 - function dispatch

15:26:43.958 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.TestRunner.main’, Line 141 - function handleStatus

15:26:43.959 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.TestRunner.main’, Line 162 - function draftInit

15:26:43.959 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.TestRunner.main’, Line 184

15:26:43.960 - Stack End

15:26:44.224 - builtin_DraftsWidget.rbxm.DraftsWidget.Src.Reducers.DraftsReducer:58: Attempt to modify uninitialized state for draft ‘openRobuxShop’

15:26:44.225 - Stack Begin

15:26:44.225 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.Src.Reducers.DraftsReducer’, Line 58

15:26:44.225 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.Packages.package_index.Rodux-4f44c5b7b8ca-79f6c38c7ef6.packages.Rodux.createReducer’, Line 10

15:26:44.226 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.Packages.package_index.Rodux-4f44c5b7b8ca-79f6c38c7ef6.packages.Rodux.combineReducers’, Line 15

15:26:44.226 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.Packages.package_index.Rodux-4f44c5b7b8ca-79f6c38c7ef6.packages.Rodux.Store’, Line 89 - function dispatch

15:26:44.227 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.TestRunner.main’, Line 141 - function handleStatus

15:26:44.227 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.TestRunner.main’, Line 162 - function draftInit

15:26:44.227 - Script ‘builtin_DraftsWidget.rbxm.DraftsWidget.TestRunner.main’, Line 184

15:26:44.228 - Stack End

script.Parent.MouseButton1Click:Connect(function()
for i,v in pairs(script.Parent.Parent.Parent:GetChildren()) do
	if v.Name ~= "topBar" then
		if v:IsA("Frame") then
			v.Visible = false
		end
	end
end
if script.Parent.Parent:FindFirstChild(script.Parent.frameName) ~= nil then
	script.Parent.Parent:FindFirstChild(script.Parent.frameName).Visible = true
end

end)

I am not sure if the errors are related to the script but what is frameName? Is it a value? If it is, remember to add .Value after the frame name:

if script.Parent.Parent:FindFirstChild(script.Parent.frameName.Value) ~= nil then
	script.Parent.Parent:FindFirstChild(script.Parent.frameName.Value).Visible = true
end

I am saying that because I have never seen a property that is called frameName.
Hopefully that fixes it :slightly_smiling_face:

2 Likes

It is a string value. Thanks i forgot to put in the .Value but also your code has the .Value in the checking if the frame exists :stuck_out_tongue:

1 Like

Hey, I got this too. Did you ever solve it?

I got an error similar to this and it ended up resetting my draft to an empty script when I tried to commit all of my drafts in team create. This seems to be a studio bug.