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

how to use Scroll wheel?

Asked by 8 years ago

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

Log in to vote
0
Answered by
Ryzox 220 Moderation Voter
8 years ago

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)
0
Thanks ghosteffectz 115 — 8y
Ad

Answer this question