mouse.KeyDown:connect(function(key)
if key == "x" and enabled == true then
enabled = false
print("x pressed")
there= true
game:GetService("Chat"):Chat(char.Head,"Lightning Trident!")
spear = Instance.new("Part", game.Workspace)
spear.BrickColor = BrickColor.new("Gold")
spear.CanCollide = false
spear.Size = Vector3.new(1,1.2,10.41)
spear.Parent = game.Workspace
mesh = Instance.new("SpecialMesh", spear)
mesh.MeshId = "http://www.roblox.com/asset/?id=30694864"
mesh.MeshType = "FileMesh"
mesh.Scale = Vector3.new(2,2,2.5)
spear.CFrame = torso.CFrame *CFrame.new(0,0,-5)
weld = Instance.new("Weld")
weld.Parent = hrp
weld.Part0 = hrp
weld.C0 = hrp.CFrame:inverse()
weld.Part1 = spear
weld.C1 = spear.CFrame:inverse()
while there == true do
wait(0)
spear.CFrame = CFrame.new(spear.Position, mouse.Hit.p)
end
end
end)
COMMUNITY QUESTION
How do I make the weld not fling the player around?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Try parenting the part to the player model.
Same result, the player is flung. If you meant game.Players.LocalPlayer.Character then it would error. Thanks for trying though
Are the parts anchored? If so, that is likely why. I had a problem with a tool, where welding it while anchored resulted in flinging. Unanchoring fixed.
No the part is not anchored, I inserted BodyVelocity into the part and it goes into motion.