local frame = script.Parent.Parent:WaitForChild("Frame")
local open = script.Parent.Parent.Open
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
function PressI(key)
if (key == "x") then
if open.Value == false then
frame:TweenPosition(UDim2.new(0.243,0,0.127,0),"Out","Quint",1,true) -- Position of your frame when its opened
open.Value = true
elseif open.Value == true then
frame:TweenPosition(UDim2.new(0.243,0,-0.127,-401),"Out","Quint",1,true) -- Position of your frame when its closed
open.Value = false
end
end
end
Mouse.KeyDown:connect(PressI)

1 comment
Thank you, Senpai!