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

how to use Scroll wheel?

I have no idea where to look for answers on this but, how do i use the scroll wheel, like in some fps games to change weapons? is it a button function? Any clues?

1 answer

✓ Accepted answer

http://wiki.roblox.com/index.php?title=Mouse

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

Mouse.WheelForward:connect(function()
	WeaponsForward() -- just an example function
end)

Mouse.WheelBackward:connect(function()
	WeaponsBack() -- just an example function
end)

1 comment

0

Thanks

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