local U=_Tune.Controls local N=Instance.new("\070\111\108\100\101\114",script.Parent)N.Name="\067\111\110\116\114\111\108\115"for u,M in pairs(U)do local G=Instance.new("\083\116\114\105\110\103\086\097\108\117\101",N)G.Name=u G.Value=M.Name G.Changed:connect(function()if u=="\077\111\117\115\101\084\104\114\111\116\116\108\101"or u=="\077\111\117\115\101\066\114\097\107\101"then if G.Value=="\077\111\117\115\101\066\117\116\116\111\110\049"or G.Value=="\077\111\117\115\101\066\117\116\116\111\110\050"then U[u]=Enum.UserInputType[G.Value]else U[u]=Enum.KeyCode[G.Value]end else U[u]=Enum.KeyCode[G.Value]end end)end


local _CTRL = _Tune.Controls
local Controls = Instance.new("Folder",script.Parent)
Controls.Name = "Controls"
for i,v in pairs(_CTRL) do
	local a=Instance.new("StringValue",Controls)
	a.Name=i
	a.Value=v.Name
	a.Changed:connect(function()
		if i=="MouseThrottle" or i=="MouseBrake" then
			if a.Value == "MouseButton1" or a.Value == "MouseButton2" then
				_CTRL[i]=Enum.UserInputType[a.Value]
			else
				_CTRL[i]=Enum.KeyCode[a.Value]
			end
		else
			_CTRL[i]=Enum.KeyCode[a.Value]
		end
	end)
end
