So, i want to make it so that once you spawn you will be automatically given the first tool in the Player Backpack, but you can not deselect/unequip the tool and you can only switch to the other tools by pressing one of the number keys on the keyboard.
I only found a script with the player spawning in with one of the tools, but i can’t seem to find a script where you can’t be holstered. Here is the script (you can get it at https://create.roblox.com/marketplace/asset/417063995/Never-Unequip-Tool):
task.wait(1)
local tool = script.Parent
local player = game.Players.LocalPlayer
local hum = player.Character.Humanoid
tool.Equipped:Connect(function()
game:GetService("RunService").RenderStepped:connect(function()
if not hum.Parent:FindFirstChild(tool.Name) then
hum:EquipTool(tool)
end
end)
end)
I am asking this because i want this feature to be used in my horror and FPS games.
This is my first devforum post. Also, i apologize if i am asking too much.