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

how do i make a gui scrolling wheel? i've seen other games with it, but i don't know how to.

Asked by 2 years ago
Edited 2 years ago

i'm trying to make a scrolling wheel for gui, example here (bottom right) i can script it in, i just don't know the basic steps on how i would do it. i tried ddoing a basic non scroll wheel version, but it didn't work

uis.InputBegan:Connect(function(input, gameProcessed)
    if input.KeyCode == 120 then
        --Up
        Frame.Position = Vector2.new(Frame.Position.X.Scale, Frame.Position.Y.Scale + 0.2)
    elseif input.KeyCode == 122 then
        --Down
        Frame.Position = Vector2.new(Frame.Position.X.Scale, Frame.Position.Y.Scale - 0.2)
    end
end)

please help!

Answer this question