Hello, so I’m making it so when an user presses a TextButton it equips a tool to them using :EquipTool, the thing is whenever they press it, the tool does equip but it’s like not welded to the player’s hand, it’s just there in the middle of the map.
The tool is made correctly and when you manually equip it from backpack it welds fine to your hand, but when you use the ui button(EquipTool) it just drops there.
If anyone can help, I’d really appreciate it:smiling_face_with_tear:![]()
Make sure you have a part named “Handler” inside the tool. Weld all the parts to the handle. Also make sure the “RequiresHandle” property is ticked in the tool. Make every basepart in the tool unanchored and probably uncollidable.
Also you should not equip the tool on the client. When your button is clicked, fire a remote event to the server and equip the tool there instead of the client.
Yeah, everything is exactly how you told me it should be, that’s why I’m worrying why it’s not working, it’s working on a FiredEvent in a LocalScript, it has the Handle and everything, plus it works correctly when I get it from backpack.
Where is the EquipTool function located? In a normal script or a local script?
It’s located in a server script.
Is the tool anchored? If so then it wouldn’t go to their hand.
No, it’s not… I really can’t spot any problem to this script… This is the server script:
game.ReplicatedStorage.Oven1.OnServerEvent:Connect(function(player,cacon)
cacon.Character.HumanoidRootPart.CFrame = workspace.Oven1Platform.CFrame
local clonedo = cacon.Backpack.Tool:Clone()
cacon.character.Humanoid:EquipTool(clonedo)
wait (0.2)
cacon.character.HumanoidRootPart.Anchored = true
end)
I don’t know if this would change anything but I noticed that you didn’t parent the cloned tool to anything. Maybe try adding in:
cloned.Parent = cacon.Backpack
so it would look like:
game.ReplicatedStorage.Oven1.OnServerEvent:Connect(function(player,cacon)
cacon.Character.HumanoidRootPart.CFrame = workspace.Oven1Platform.CFrame
local clonedo = cacon.Backpack.Tool:Clone()
clonedo.Parent = cacon.Backpack
cacon.character.Humanoid:EquipTool(clonedo)
wait (0.2)
cacon.character.HumanoidRootPart.Anchored = true
end)
The thing is I don’t want it to go to the backpack, just straight up to the character.
NVM
Okay it worked, thank you soooooo much!!!
No problem, I’m glad I could help
! I noticed that you accidentally gave yourself the solution marker, would you mind fixing it please. Thanks!