Hello.
I need help on my scrollingframe.
I want to not allow scrolling, but still change the canvasposition.
Please remember that this is a site only for scripting support.
There is a property in the scrolling frame called ''ScrollingEnabled''
Ok I figured it out.
I was supposed to use MouseMoved but it wouldn't work
1 | local ScrollingFrame = script.Parent |
2 | ScrollingFrame.MouseMoved:Connect( function (X,Y) |
3 | print (X,Y) |
4 | 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
1 | local ScrollingFrame = script.Parent |
2 | ScrollingFrame.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 |
6 | end ) |
There is a property in the ScrollingFrame called ScrollingEnable and you have to uncheck it to disable it.