I’ve made a simple sword, but I want it to force equip when a player touches a block. How would I accomplish this? (What I kind of want is basically like the hammer in Flee the Facility- The player cannot unequip it when they are the beast)
Disable tools UI from local script, then use humanoid:EquipTool()
3 Likes
Usually, I would put it as the character’s child.
1 Like
From what I’ve heard, Humanoid:EquipTool() is more efficient, but that works as well.
Also, if this thread is solved, please mark it so.
Edit: Last part directed to thread creator
1 Like
Can you elaborate on tools UI? (Sorry if this question is strange, I’m new to scripting.)
I’ll elaborate:
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
Please refer to: Disabling Default UI Elements | Documentation - Roblox Creator Hub
3 Likes