So I've just created a script that allows you to change your weapon. But when I went to test it, I noticed that the tool that equips to your humanoid using EquipTool is not working. I can't really explain it much but I hope the title cleared it up. This image I took shows it perfectly. https://gyazo.com/133ee1fa6237a2b03d51eeaa343fa34b Code:
local Player = game.Players.LocalPlayer
local UserInput = game:GetService("UserInputService")
game.StarterGui:SetCoreGuiEnabled("Backpack", false)
repeat wait() until Player.Character or Player.CharacterAdded:Wait()
local Pistol = Player.Character:WaitForChild("Humanoid"):EquipTool(game.ReplicatedStorage.Pistol:Clone())
UserInput.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.One then
if Player.Character:FindFirstChild("Pistol") == nil then
local Pistol = Player.Character:WaitForChild("Humanoid"):EquipTool(game.ReplicatedStorage.Pistol:Clone())
end
end
end)

3 comments
Hey Let me tell you I dont think this is a problem with your script. I am not the best at Coding yet but I believe this is an issue with the tool itself. To fix this maybe download a pluguin to put how you want the player to hold the tool. Try the Tool Grip Editor
Here is link to the Pluguin. https://www.roblox.com/library/153352998/Tool-grip-editor
@JuzeyPlayz I don't believe that it is. I have CloneTrooper's Tool Grip Editor and it's grip is fine. The gun worked perfectly before without the script and instead using the backpack.