I am using the EquipTool Function for a customized backpack I was scripting, the problem is that when the function equips the tool, the tool decides to not weld to the players hand, even though its a literal function.
To keep it simple, once the tool is “Equipped” It will not weld to the players hand, instead it decides to phase through its origins, but its not anchored, nor can-collide is on. It will only go once, then it won’t return to it’s origins.
Lobby_Test - Roblox Studio (gyazo.com)
I’ve looked up a developer hub article and through a developer forum page, heres what I’ve found and Fixed
- I’ve Ticked the Enable from true to false based on whether it is in the players Backpack or with in the Players Character.
- (Not Really a fixed) I verified that the tool was located with in the players backpack before triggering the function.
- I’ve ticked off “RequireHandle”
With all of these attempts I have no real idea what the problem could be, other than two options.
Option 1: Does Not Support FE (All Is located with in a local script, should make it Filtering Enabled? Even though its meant to be client-sided?
Option 2: A possible setting is ticked on/off that will interfere.
Option 3: Roblox being Roblox (Self-Explanatory but highly doubt it)
Lets Start off with where the problem first occurs, with the tool.
Here are the Tool Properties
A Portion of the code where it occurs:
print(value) -- Value is obtained when a key (Lets say 1) is pressed.
if Debounce == false then -- Debounce
for i,Tool in pairs(Backpack:GetChildren()) do -- Checks for every tool in the Backpack
if Tool:IsA("Tool") then -- If its a tool or a hidden dinosaur with a fedora
print(Tool) -- lazy debugging
local val = script.Parent.Main:FindFirstChild(Tool.Name .. tostring(value))
if val ~= nil then
if tostring(Selected) ~= tostring(value) and Tool.Parent ~= Character then
--Tool.Parent = Backpack -- no luck, as its already in the backpack.
val["Tool"].Size = UDim2.fromScale(1,1)
Tool.Enabled = true -- Enables the tool, Saw this on the Roblox DevHub, probably doesn't matter.
Character.Humanoid:EquipTool(Tool) -- This is the function where the error occurs.
Selected = value
Debounce = true
break
end
end
end
end
I’m not 100% sure what the problem is exactly, but hopefully it can be explained
Sincerely, MazinMark