Hello! I am currently trying to make a custom hotbar and backpack system, however, whenever you press backspace whilst holding a tool, the tool goes into your backpack. I want to disable this (so hitting backspace does nothing). Does anyone have any ideas for how to accomplish this?
i donāt think thatās a good idea because exploiters could delete the local script
and break the game, i recommend better using a custom backpack system using
welds instead of tools.
Iāve made this script to reparent the tool back to the character of the player.
Sadly this wonāt really āunbindā the backspace key
But I hope it helps out :d
local players = game:GetService("Players")
function listen(player, char)
player.Backpack.ChildAdded:Connect(function(child)
if child:IsA("Tool") then
task.wait()
child.Parent = char
end
end)
end
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
listen(player, char)
end)
end)