There is a part named "Rock" in this LocalScript. There is also an animation object in this LocalScript.
What is supposed to happen is when you equip the tool, the part named "Rock" welds onto your Left Arm. Then when you activate the tool, an animation plays and fire emittes out out of the torch. The animation plays great, and the fire comes out of the torch, but the rock is in a random position in Workspace (not your left arm). Help...?
animation = script:WaitForChild('Animation')
player = game.Players.LocalPlayer
tool = script.Parent
firepart = tool.Handle.FirePart
rock = script.Rock
enabled = true
tool.Equipped:connect(function()
local weld = Instance.new("Weld")
weld.Part0 = player.Character["Left Arm"]
weld.C0 = player.Character["Left Arm"].CFrame:inverse() -- attempt to weld rock to player's left arm
wele.Part1 = rock
weld.C1 =rock.CFrame:inverse()
end)
tool.Activated:connect(function()
if enabled then
enabled = false
local animationTrack = player.Charcater.Humanoid:LoadAnimation(animation) -- play animation
animationTrack:Play()
wait(2)
local fire = Instance.new("Fire")
fire.Color = Color3.new(236, 139, 70)
fire.SecondaryColor = Color3.new(139, 80, 55)
fire.Size = 3
fire.Heat = 15
fire.Parent = firepart
end
end)

2 comments
change the rock's CFrame to the arms CFrame - a few on the Y axis so it's near the "hand" part of the arm
how exactly would I do that?