I’m trying to use tools without the backpack gui. With the backpack gui, it works perfectly, but when i disable it and then i use a script to put the tool in the char, the tool works and the players hand rotates and stuff, but the handle stays on the floor. I did name the handle “Handle” and it is not anchored. Please someone help me.
Please share the script where you are putting the tool in the character
Code:
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
local tool = game.StarterPack:WaitForChild(“Tool”)
local plr = game.Players.LocalPlayer
local char = plr.Character
tool.Parent = char
Try using :EquipTool()
so the character equips the tool
I tried this just now, also didn’t work
Code:
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
local tool = game.StarterPack:WaitForChild(“Tool”)
local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char:WaitForChild(“Humanoid”)
hum:EquipTool(tool)
Have you checked the Handle part for any unnecessary welds that makes it welded to the baseplate?
Yes, it is not welded to anything. I don’t know why this is happening.
Well, as I said it works perfectly when the backpack GUI is visible but not if it isn’t.
Oh sorry I didn’t realize that. But considering if the tool is in the StarterPack, then once the player plays the game then it will be stored in the player’s Backpack, so try calling the tool from the backpack.
local plr = game.Players.LocalPlayer
local backpack = plr.Backpack
local tool = backpack:WaitForChild("insert name")
local character = plr.Character
character:WaitForChild("Humanoid"):EquipTool(tool)
Also judging by the use of LocalPlayer, wouldn’t you want a server script to have the player equip the tool or am I wrong? Just curious about this.
^^ this script should work correctly.
Huh, I figured out that it’s not the backpack visibility, It’s the equip tool. It equips the tool, but not with the handle.
I fixed it, I’m not quite sure how, but I did. Thank you all for contributing
If anyone ever has this problem, then just make sure the tool is in workspace, and use equiptool.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.