#Two-Hand gun holding

1 messages · Page 1 of 1 (latest)

rugged apex
#

Hi guys, im working on a gun game right now. I wanted to make a two hand gun holding system. I made a script. This script:

local tool = script.Parent
local player = game.Players.LocalPlayer

local animation = tool.Animations:WaitForChild("Holding")
local animTrack

tool.Equipped:Connect(function()
print("Tool equipped")
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
animTrack = humanoid:LoadAnimation(animation)
print("Animation loaded:", animTrack)
animTrack:Play()
print("Animation played")
end)

tool.Unequipped:Connect(function()
if animTrack then
animTrack:Stop()
animTrack = nil
print("Animation stopped")
end
end)

And its in this order shown on the picture. I made an animation and put the ID there. But when i actually equip the tool i dont see hands. Please help me

rugged apex
#

@near palm

near palm
#

Output

vapid spire
#

Or wait not tools I should say, uhh Roblox first person

pastel elbow
#

Why doesn’t anyone just make the head and torso Invisible to the client?

rugged apex
vapid spire
#

its more complex and may result in you having to scrap your current system?

#

you sure you wanna do that, or do you want to continue using tools with a workaround