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 4 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 4 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 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

Ok I figured it out.

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

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

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

1local ScrollingFrame = script.Parent
2ScrollingFrame.InputChanged:Connect(function(input)
3    if input.UserInputType == Enum.UserInputType.MouseMovement and input.UserInputState ~= Enum.UserInputState.End then
4        print(input.Position.X,input.Position.Y)
5    end
6end)
Log in to vote
0
Answered by 4 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 — 4y
0
Okay. robloxtitanic584 92 — 4y

Answer this question