Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to lock de-equip tool?

Ok, So I made a localscript where I can lock first person camera when they equip their tool. But how do I disable tool de-quiping? Here is my localscript:

local p= game.Players.LocalPlayer
local tool= script.Parent
function equipped()
wait()
p.CameraMode= 1
end
function unequipped()
wait()
p.CameraMode= 0
end
tool.Equipped:connect(equipped)
tool.Unequipped:connect(unequipped)

1 comment

1

What do you mean by 'Disable Tool 'de-equipping''? From how I'm looking at your code, it appears to be fine?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.