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

How do i make a script that make the player switch tools?

Asked by 4 years ago

I want to make a script that make when i scroll, the tool equiped change (like in fps). I dont find anything that you can do in a script that will change the tool equiped…

Sorry for my bad English and my that spamming

0
Just like that the tool need to be already equipped scorpion981 27 — 4y
0
Sorry i already know this that not what i want scorpion981 27 — 4y

1 answer

Log in to vote
0
Answered by
2ndwann 131
4 years ago
Edited 4 years ago

Combine the Humanoid:EquipTool() function and Mouse.WheelForward event to achieve what you are looking for.

You can make a function that executes when Mouse.WheelForward fires. Put Humanoid.EquipTool() in that function.

You also may wanna read these:

https://developer.roblox.com/en-us/api-reference/event/Mouse/WheelForward

https://developer.roblox.com/en-us/api-reference/function/Humanoid/EquipTool

Ad

Answer this question