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

Whats the best way to make an xbox supported shop?

Asked by 5 years ago
Edited 5 years ago

hello! ive been trying to figure out an xbox supported shop for sometime now, and im stuck on one thing, let me explain. my shop is named "ShopGui" for starters, i have 4 tabs, trails (TrailsFrame), and i have a line ('Line') under the tab, i want the line to move to a different tab once the R1 button was pressed and make ('PetsFrame') visible, how would i do that?

function onetotwo()
    userInputService.InputBegan:connect(function(input, processed)
        if input.KeyCode == Enum.KeyCode.ButtonR1 then
            line:TweenPosition(UDim2.new(0,150,0,0))
            trailsframe.Visible = false
            petsframe.Visible = true
        end
    end)
end

Thats what i have so far, but wont work why?

0
function onetotwo() userInputService.InputBegan:connect(function(input, processed) if input.KeyCode == Enum.KeyCode.ButtonR1 then line:TweenPosition(UDim2.new(0,150,0,0)) trailsframe.Visible = false petsframe.Visible = true end end) end thats what i have so far, but wont work, why? bluffaloo -8 — 5y
0
Rap your code in code blocks which are "~" so we can read your question. mixgingengerina10 223 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Just like a mouse clicks a button, you need a key to open a menu with an xbox controller. You're on the right track and what you're doing should work appropriately for the situation. You'll also want to make sure the xbox player knows what buttons to press by adding the key on the same button.

Ad

Answer this question