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)

1 comment
Try adding some Print()'s in your script and see if they fire.