local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local bombModel = workspace["TNT STICK"]
local explosionAnimation = game:GetService("ReplicatedStorage").Throwing
local function throwBomb()
local Humanoid = player.Character:WaitForChild("Humanoid")
local Animator = Humanoid:FindFirstChildOfClass("Animator")
if Animator then
local clone = bombModel:Clone()
clone.Parent = player.Character.RightHand
local animation = Animator:LoadAnimation(explosionAnimation)
animation:Play()
--clone:SetPrimaryPartCFrame(player.Character.RightHand.CFrame)
print("1")
end
end
mouse.Button1Down:Connect(throwBomb)
So as you can see in the animation nps has dynamite in his hands, but when I play the animation, it is not. Why? Immediately say that this is where dynamite appears when you click (where it should be) but its location is not what you need.