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

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
