Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a backpack gui that shows up when you press letter e?

Asked by 10 years ago

I Have seen a script like a backpack but its already shown up. what i need is an backpack gui that when you press letter e it will show up and can be expanded when you use a bigger backpack

1 answer

Log in to vote
0
Answered by 10 years ago

You need to use a KeyHandler system like this:

function onKeyPressed(key)
    key = string.lower(key)
    if string.byte(key) == 69 then -- If the key pressed is "E" then...
        -- Your code
    end
end
0
thnx Spo4cloz213 0 — 10y
Ad

Answer this question