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

Scrolling Frame not moving? {Unanswered}

Asked by 9 years ago

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.

Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()

Size = script.Parent.AbsoluteWindowSize
RSize = Size/4

Mouse.KeyDown:connect(function(key)
    if key == "e" and script.Parent.CanvasPosition ~= Vector2.new(Size/4*3, 0) then
        for i = 1,5 do
        script.Parent.CanvasPosition = script.Parent.CanvasPosition +Vector2.new(Size/4, 0)
        end
        script.Parent.SelectedTool.Value =  script.Parent.SelectedTool.Value +1
    end
end)
Mouse.KeyDown:connect(function(key)
    if key == "q" and script.Parent.CanvasPosition ~= Vector2.new(0, 0) then
        for i = 1,5 do
        script.Parent.CanvasPosition = script.Parent.CanvasPosition -Vector2.new(Size/4, 0)
        end 
        script.Parent.SelectedTool.Value =  script.Parent.SelectedTool.Value -1
    end
end)
0
Try adding some Print()'s in your script and see if they fire. damagex443 325 — 9y

1 answer

Log in to vote
-1
Answered by 9 years ago

All you really need to do is get a scrolling frame from basic objects

0
It is a scrolling frame. MisaMiner 50 — 9y
Ad

Answer this question