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

How do I stop my scrollingframe from scrolling?

Asked by 3 years ago

Hello.

I need help on my scrollingframe.

I want to not allow scrolling, but still change the canvasposition.

3 answers

Log in to vote
0
Answered by 3 years ago

Please remember that this is a site only for scripting support.

There is a property in the scrolling frame called ''ScrollingEnabled''

0
Yeah Ik but it won't work MiAiHsIs1226 189 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

Ok I figured it out.

I was supposed to use MouseMoved but it wouldn't work

local ScrollingFrame = script.Parent
ScrollingFrame.MouseMoved:Connect(function(X,Y)
print(X,Y)
end)

This is an example

This for some reason doesn't work when you turn off ScrollingEnabled.

So you'll have to create your own MouseMoved Event

local ScrollingFrame = script.Parent
ScrollingFrame.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement and input.UserInputState ~= Enum.UserInputState.End then
        print(input.Position.X,input.Position.Y)
    end
end)
Log in to vote
0
Answered by 3 years ago

There is a property in the ScrollingFrame called ScrollingEnable and you have to uncheck it to disable it.

0
I know. MiAiHsIs1226 189 — 3y
0
Okay. robloxtitanic584 92 — 3y

Answer this question