Scrolling Frame not moving? {Unanswered}
I have done everything I thought would fix it, and I am getting no errors. Thanks for all help. I put in prints at after 11 and 19, and nothing happens when tested.
01 | Player = game.Players.LocalPlayer |
02 | Mouse = Player:GetMouse() |
04 | Size = script.Parent.AbsoluteWindowSize |
07 | Mouse.KeyDown:connect( function (key) |
08 | if key = = "e" and script.Parent.CanvasPosition ~ = Vector 2. new(Size/ 4 * 3 , 0 ) then |
10 | script.Parent.CanvasPosition = script.Parent.CanvasPosition +Vector 2. new(Size/ 4 , 0 ) |
12 | script.Parent.SelectedTool.Value = script.Parent.SelectedTool.Value + 1 |
15 | Mouse.KeyDown:connect( function (key) |
16 | if key = = "q" and script.Parent.CanvasPosition ~ = Vector 2. new( 0 , 0 ) then |
18 | script.Parent.CanvasPosition = script.Parent.CanvasPosition -Vector 2. new(Size/ 4 , 0 ) |
20 | script.Parent.SelectedTool.Value = script.Parent.SelectedTool.Value - 1 |