local UserInputService = game:GetService("UserInputService")
local Player = game:GetService("Players").LocalPlayer
UserInputService.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.E then
if script.Parent.Visible == false then
script.Parent.Visible = true
script.Parent:TweenPosition(
UDim2.new(0,0,0.487), -- end position {0, 0},{0.487, 0}
"Out", -- easing direction
"Quart", -- easing style
2, -- time
false, -- override?
nil -- other stuff
)
end
if script.Parent.Visible == true then
script.Parent:TweenPosition(
UDim2.new(0,0,0), -- end position {0, 0},{0.487, 0}
"Out", -- easing direction
"Quart", -- easing style
2, -- time
false, -- override?
nil -- other stuff
)
script.Parent.Visible = false
end
end
end)
i sad, please help.

3 comments
what does the error say in the output?
Udim2 needs 4 zeroes, not three. First two are x scale and offset and the other two are y scale and offset.
also u should use elseif on line 17 plus answer of radiant_Light203