local player = game.Players.LocalPlayer
local char = player.Character
local mouse = player:GetMouse()
local tool = 0
mouse.WheelForward:connect(function()
tool = tool + 1
if tool >= 5 then --change 5 to how many tools you have
tool = tool - tool --resets it back to 0 so it equips the first tool again
end
end)
mouse.WheelBackward:connect(function()
tool = tool - 1
if tool <= 0 then
tool = tool + tool - tool + 5 --sets it to 5 so it equips the last ool
end
end)
while wait() do
if tool == 0 then
--remove all tools before adding the first tool, same with the rest.
elseif tool == 1 then
elseif tool == 2 then
elseif tool == 3 then
elseif tool == 4 then
elseif tool == 5 then
end
end
-------------------------
Something like that?
Also, that should be in a LocalScript
I made this up at the top of my head, just gave you an idea of what it may look like, you might have to modify it a lot, but this is as far i will help you, good luck! |