Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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.

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

0

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

1 answer

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

1 comment

0

It is a scrolling frame.

This discussion is preserved as it was. New answers, comments, and votes are closed.